kumade
It was a refactoring week on kumade, the Heroku deployer. Gabe Berke-Williams and Josh Clayton refactored the Packager
class, splitting it out into handlers for Jammit, Less, and no-op packagers ([d854184](http://github.com/thoughtbot/kumade/commit/d854184744a70d1786e65a3a4bbd6429988b7f00 “Refactor Kumade::Packager
This moves the logic of each of the packagers into their own classes,
introduces a PackagerList class that maintains all the various
packagers, and improves tests around the packager.”)). Then Gabe Berke-Williams (gabebw) went off on his own to introduce a CommandLine
class, wrapping Cocaine with some Thor (0c3840d and [72424c0](http://github.com/thoughtbot/kumade/commit/72424c09238657c3018fcb9ac348e0dc41ed9252 “Use Kumade::CommandLine to run commands.
This commit also gives full test coverage to the Git class.”)). Meanwhile Joshua Clayton (joshuaclayton) changed should_not have_received
to should have_received.never
(6652197).
suspenders
Our app making gem, suspenders, saw some updates from Matt Jankowski (mjankowski): Rails 3.1 (10ac09a, 97881fc, 354321d, c8f8c85, and db08366), bourbon (d490b36), flutie (e0bab83), the Hoptoad → Airbrake name change (6def3d7), and tying together the asset pipeline (a4ce3e7 and c760a33).
paul_revere
We have a one-off announcement plugin for Rails, named paul_revere. Nick Quaranto (qrush) released version 0.2.1 (3574b40 and dfbf940).
shoulda-matchers
Our collection of RSpec matchers, shoulda-matchers, is not passing on my laptop. Prem Sichanugrist (sikachu) built out the continuous integration tests more to attempt to clarify the issue ([3d94390](http://github.com/thoughtbot/shoulda-matchers/commit/3d9439030b09208517311c1583beb0fe0a6c903b “Update settheflash_matcher to also duplicate the used set to fix a bug in Rubinius
Tests now also passed on Rubinius 2.0”), 4450c86, [1a3aeec](http://github.com/thoughtbot/shoulda-matchers/commit/1a3aeec47cfb6c340f084a096829264d5bfbd80a “Fix havedbindex_matcher bug on JRuby
So matched_index.unique actually returns an integer instead of true and returns nil instead of false in JRuby. This !!
operator should fix it.”), 6785f59, f1f5e6d).
bourbon
The SCSS gem, bourbon, saw actual words being used by Matt Jankowski (mjankowski) in the documentation (b8afdea), plus Phil LaPier (plapier) updated the docs with resources for investigating browser compatibility (35539c9). He also added this sweet variable, $all-text-inputs
, representing all HTML5 textual inputs like color, date, phone, password, URL, and so on (d1def76 and fb299e6). To wrap it all up he released version 0.1.8 (f3046bd).
paperclip
Lots of bug fixes in paperclip, the Rails image uploader plugin gem, this week. Cody Caughlan (ruckus) added S3 support for an HTTP proxy (4661cef). Denis Yagofarov (denyago) preserved the path set for the Cocaine gem (3a35ba9). Aditya Sanghi (asanghi) gave us a warning when two models save files to the same place on the filesystem (8d43e19). Daniel Evans (danielevans) removes the temporary file after it has been uploaded and processed (748332e). Edison (edison) added a feature where you can set the file system path based on a method in the model (996ca87 and 1738f3c).
Prem Sichanugrist (sikachu) then attacked some outstanding bugs: escape the URL (23cb822), handle a space leak where an array was growing by one for each request (d18d814), make the Interpolations.hash
class method confirm to the expected signature for hash
methods ([e526c86](http://github.com/thoughtbot/paperclip/commit/e526c86adb428f322b094bbc89ce283bb5d12c32 “Fix the method signature of Interpolations.hash to accept no argument
This will make sure Interpolations is comply with Ruby”)), and preserve the filename for S3 attachments when we know the filename (522a53e).
Prem then did some refactoring, splitting the storage tests into individual unit tests (0ca98d1, d204c7d, 31d74d6), stubbing Cocaine (0a77f64), removing some noisy debugging (fd891e0), and cleaning up whitespace (825e1f1 and b2cac53). After all of this he released version 2.4.2 (9edeb01).
factory_bot1
Features and refactorings were the name of the game for factory_bot, the fixture replacement for Rails. Joe Ferris and Josh Clayton fixed traits so now you can override attributes of them. They did this by refactoring attributes, introducing an intermediate Declaration
object that knows how to compile down to a full factory ([a154e64](http://github.com/thoughtbot/factory_bot/commit/a154e64da18fc282d9437c136c17972faf7c1d58 “Introduce declarations
Declarations are another layer of abstraction between defining the factories via the DSL and compiling the factories and their attributes.
Declarations know how to return their attribute(s), and running a factory compiles the declarations before building all attributes on the factory. This moves all the attribute compilation logic into one centralized location on the Factory instance, which means traits (and potentially other features down the road) can have individual attributes overridden within child factories or through FactoryBot.modify
Closes #205”) and f8638b). Joe Ferris (jferris) made callbacks into first-class objects with validations (0f87ca3, ede051f, and 4d30663). Thomas Walpole (twalpole) fixed an inconsistency, ensuring that parent callbacks are called before child callbacks (27c4b21).
Oh man check this: Joel Meador (janxious) updated the ChangeLog (306e51b and 88cf88)! Joshua Clayton (joshuaclayton) went along with this, too (9c95a2) before releasing version 2.1.2 (58e75bc and c1360e).
capybara-webkit
The capybara-webkit test driver, which Joe presented about at Boston Ruby, continues to improve. Gabe Berke-Williams (gabebw) gave us a documentation edit (f493b22), while Matthew Mongeau (halogenandtoast) striped and normalized spaces for consistency with Selenium (6d92f35) and also added support for unknown content types (ff0a6e7, 9257fe3, and 353fe86)
Project name history can be found here.
-
Looking for FactoryGirl? The library was renamed in 2017. ↩