We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b27db5 commit 1ba8fc9Copy full SHA for 1ba8fc9
Gemfile.lock
@@ -118,7 +118,7 @@ GEM
118
sprockets (2.0.3)
119
hike (~> 1.2)
120
rack (~> 1.0)
121
- tilt (!= 1.3.0, ~> 1.1)
+ tilt (~> 1.1, != 1.3.0)
122
sqlite3 (1.3.4)
123
therubyracer (0.9.9)
124
libv8 (~> 3.3.10)
lib/tasks/load_mlab_data.rake
@@ -31,9 +31,7 @@ namespace :load_mlab_data do
31
row = row.to_hash.with_indifferent_access
32
countrymeasurement = CountryMeasurement.new(row.to_hash.symbolize_keys)
33
begin
34
- day = row['month'].split('-')[1]
35
- month = row['month'].split('-')[0]
36
- year = row['month'].split('-')[2]
+ month, day, year = row['month'].split('-')
37
countrymeasurement.month = "#{year}-#{month}-#{day}"
38
rescue
39
end
0 commit comments