Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
tjgrathwell committed Jan 7, 2017
1 parent 4651c4e commit aedbdc6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
AllCops:
Exclude:
- 'db/migrate/20151210035820_init_schema.rb'
- 'db/schema.rb'

Lint/BlockAlignment:
Exclude:
- 'lib/tasks/db.rake'
Expand Down Expand Up @@ -108,8 +113,6 @@ Style/ExtraSpacing:
Exclude:
- 'bin/setup'
- 'config.ru'
- 'db/migrate/20131210054655_init_schema.rb'
- 'db/schema.rb'

Style/FrozenStringLiteralComment:
Enabled: false
Expand All @@ -128,6 +131,8 @@ Style/IndentationWidth:

Style/IndentHash:
EnforcedStyle: consistent
Exclude:
- 'app/models/course.rb'

Style/Lambda:
Enabled: false
Expand Down Expand Up @@ -249,6 +254,3 @@ Style/VariableNumber:

Style/WordArray:
MinSize: 3
Exclude:
- 'db/schema.rb'
- 'db/migrate/20131210054655_init_schema.rb'
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def change
# URLs of the form https://www.meetup.com/sfruby/events/13311831/
# still work fine.
meetup_events = Event.where.not(imported_event_data: nil)
.select { |e| e.imported_event_data['student_event']['url'].match /sfruby/ }
.select { |e| e.imported_event_data['student_event']['url'].match(/sfruby/) }
meetup_events.each do |e|
imported_event_data = e.imported_event_data
imported_event_data['volunteer_event']['url'] = "https://www.meetup.com/sfruby/events/#{imported_event_data['volunteer_event']['id']}/"
Expand Down
4 changes: 2 additions & 2 deletions spec/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
sequence(:name) { |n| "Location #{n}" }
sequence(:address_1) { |n| "#{n} Street" }
city "San Francisco"
latitude 37.7955458
longitude -122.3934205
latitude(37.7955458)
longitude(-122.3934205)
region
end

Expand Down

0 comments on commit aedbdc6

Please sign in to comment.