-
Notifications
You must be signed in to change notification settings - Fork 57
[1553] Update dependencies (May 2016) #1565
Conversation
ae9fb47
to
f3234e4
Compare
Whoops forgot to update .travis.yml with the new Ruby version. |
Any reason we didn't update to ruby 2.3? |
Excellent point, I'll update and adjust. |
f3234e4
to
a993dd6
Compare
Updated with Ruby 2.3.1, we can merge this once we're done with #1566 (I'll have to rebase). |
5003a94
to
2edb90d
Compare
Updated a few gems that had since pushed minor updates and rebased onto the latest |
@@ -19,7 +19,8 @@ | |||
|
|||
it 'has the appropriate columns' do | |||
expect(csv.first.split(',')).to eq( | |||
FactoryGirl.build(model).attributes.keys - PROTECTED_COLS) | |||
FactoryGirl.build(model).attributes.keys - PROTECTED_COLS | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this preferable over this?
expect(csv.first.split(',')).to \
eq(FactoryGirl.build(model).attributes.keys - PROTECTED_COLS)
(Before I definitely preferred the split parentheses but now that rubocop forces the separate parenthesis line I think I prefer the above...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I prefer it your way, I'll go through and update where possible.
2edb90d
to
7ecbbed
Compare
Updated a bunch of rubocop fixes and had another update, ready for another look-through! EDIT Also found another instance of #1528 |
config.mailer_sender = if AppConfig.table_exists? && !AppConfig.first.nil? | ||
AppConfig.first.admin_email | ||
else | ||
config.mailer_sender = 'admin@reservations.app' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config.mailer_sender
can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
left a few small comments! |
7ecbbed
to
62ebbb1
Compare
Fixed, nice catches 😄. One more review? |
@@ -64,7 +65,7 @@ def self.item_to_row(item) | |||
# get the average of an array of values, discounting nil values | |||
def self.average2(arr) | |||
arr = arr.reject(&:nil?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this the same as arr.compact!
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to address this comment since it's not really included in #1570 (as compared to most of the other comments) and then we should be good to go.
end | ||
new_notes += "\n#{name} changed from " + old_val + ' to ' + new_val\ | ||
+ '.' if old_val && new_val | ||
end | ||
new_notes += "\n\n" + notes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as this
62ebbb1
to
c95ffcd
Compare
Updated |
yup, this is good to go |
Great! I'm actually going to block this on #1566 after which I'll rebase and deal with any new rubocop errors before squashing for a final review. |
Rebasing now |
Resolves #1553 - Highlights: - Update Ruby to 2.2.5 - Update Devise to v4.1 - Update Capybara to v2.7 - Email validators are now more permissive due to Devise update - Capybara matchers no longer return hidden inputs by default - Several new rubocop cops were implemented and dealt with
c95ffcd
to
23d45c3
Compare
@esoterik ready for another glance through, there were merge conflicts in the following files:
and a new rubocop error (missing |
I think this is ready! |
Thanks! |
Of course a few of our dependencies are already out of date, but nothing critical 😛. Let's aim to revisit this in a month (I'll open up a new issue). |
Resolves #1553