Commit 444bfaf4caa1d6076ed82eff68322ae9811eae03

Authored by Cyril Mougel
1 parent f2da6ac6
Exists in master and in 1 other branch production

Update some gem version to latest

We need to be up to date with our dependencies. Now it's almost done
@@ -5,15 +5,16 @@ gem 'mongoid', '~> 2.7.1' @@ -5,15 +5,16 @@ gem 'mongoid', '~> 2.7.1'
5 gem 'mongoid_rails_migrations' 5 gem 'mongoid_rails_migrations'
6 gem 'devise', '~> 1.5.4' 6 gem 'devise', '~> 1.5.4'
7 gem 'haml' 7 gem 'haml'
8 -gem 'htmlentities', "~> 4.3.0" 8 +gem 'htmlentities'
9 gem 'rack-ssl', :require => 'rack/ssl' # force SSL 9 gem 'rack-ssl', :require => 'rack/ssl' # force SSL
10 10
11 -gem 'useragent', '~> 0.4.16' 11 +gem 'useragent'
12 gem 'inherited_resources' 12 gem 'inherited_resources'
13 gem 'SystemTimer', :platform => :ruby_18 13 gem 'SystemTimer', :platform => :ruby_18
14 gem 'actionmailer_inline_css', "~> 1.3.0" 14 gem 'actionmailer_inline_css', "~> 1.3.0"
15 gem 'kaminari', '>= 0.14.1' 15 gem 'kaminari', '>= 0.14.1'
16 gem 'rack-ssl-enforcer' 16 gem 'rack-ssl-enforcer'
  17 +# fabrication 1.3.0 is last supporting ruby 1.8. Update when stop supporting this version too
17 gem 'fabrication', "~> 1.3.0" # Used for both tests and demo data 18 gem 'fabrication', "~> 1.3.0" # Used for both tests and demo data
18 gem 'rails_autolink', '~> 1.0.9' 19 gem 'rails_autolink', '~> 1.0.9'
19 # Please don't update hoptoad_notifier to airbrake. 20 # Please don't update hoptoad_notifier to airbrake.
@@ -44,8 +45,8 @@ gem 'bitbucket_rest_api' @@ -44,8 +45,8 @@ gem 'bitbucket_rest_api'
44 45
45 # Notification services 46 # Notification services
46 # --------------------------------------- 47 # ---------------------------------------
47 -# Campfire  
48 -gem 'campy' 48 +# Campfire ( We can't upgrade to 1.0 because drop support of ruby 1.8
  49 +gem 'campy', '0.1.3'
49 # Hipchat 50 # Hipchat
50 gem 'hipchat' 51 gem 'hipchat'
51 # Google Talk 52 # Google Talk
@@ -125,14 +125,15 @@ GEM @@ -125,14 +125,15 @@ GEM
125 foreman (0.63.0) 125 foreman (0.63.0)
126 dotenv (>= 0.7) 126 dotenv (>= 0.7)
127 thor (>= 0.13.6) 127 thor (>= 0.13.6)
128 - haml (3.1.7) 128 + haml (4.0.3)
  129 + tilt
129 happymapper (0.4.0) 130 happymapper (0.4.0)
130 libxml-ruby (~> 2.0) 131 libxml-ruby (~> 2.0)
131 has_scope (0.5.1) 132 has_scope (0.5.1)
132 hashie (1.2.0) 133 hashie (1.2.0)
133 highline (1.6.19) 134 highline (1.6.19)
134 hike (1.2.2) 135 hike (1.2.2)
135 - hipchat (0.4.1) 136 + hipchat (0.9.0)
136 httparty 137 httparty
137 hoi (0.0.6) 138 hoi (0.0.6)
138 httparty (> 0.6.0) 139 httparty (> 0.6.0)
@@ -141,22 +142,22 @@ GEM @@ -141,22 +142,22 @@ GEM
141 activesupport 142 activesupport
142 builder 143 builder
143 htmlentities (4.3.1) 144 htmlentities (4.3.1)
144 - httparty (0.10.0) 145 + httparty (0.11.0)
145 multi_json (~> 1.0) 146 multi_json (~> 1.0)
146 - multi_xml  
147 - httpauth (0.1) 147 + multi_xml (>= 0.5.2)
  148 + httpauth (0.2.0)
148 i18n (0.6.1) 149 i18n (0.6.1)
149 - inherited_resources (1.3.1) 150 + inherited_resources (1.4.0)
150 has_scope (~> 0.5.0) 151 has_scope (~> 0.5.0)
151 - responders (~> 0.6) 152 + responders (~> 0.9)
152 journey (1.0.4) 153 journey (1.0.4)
153 json (1.8.0) 154 json (1.8.0)
154 - jwt (0.1.5)  
155 - multi_json (>= 1.0) 155 + jwt (0.1.8)
  156 + multi_json (>= 1.5)
156 kaminari (0.14.1) 157 kaminari (0.14.1)
157 actionpack (>= 3.0.0) 158 actionpack (>= 3.0.0)
158 activesupport (>= 3.0.0) 159 activesupport (>= 3.0.0)
159 - kgio (2.7.4) 160 + kgio (2.8.0)
160 launchy (2.3.0) 161 launchy (2.3.0)
161 addressable (~> 2.3) 162 addressable (~> 2.3)
162 libv8 (3.11.8.17) 163 libv8 (3.11.8.17)
@@ -201,13 +202,13 @@ GEM @@ -201,13 +202,13 @@ GEM
201 nokogiri (1.5.9) 202 nokogiri (1.5.9)
202 nokogiri-happymapper (0.5.7) 203 nokogiri-happymapper (0.5.7)
203 nokogiri (~> 1.5) 204 nokogiri (~> 1.5)
204 - oauth2 (0.8.0) 205 + oauth2 (0.8.1)
205 faraday (~> 0.8) 206 faraday (~> 0.8)
206 httpauth (~> 0.1) 207 httpauth (~> 0.1)
207 jwt (~> 0.1.4) 208 jwt (~> 0.1.4)
208 multi_json (~> 1.0) 209 multi_json (~> 1.0)
209 rack (~> 1.2) 210 rack (~> 1.2)
210 - octokit (1.0.7) 211 + octokit (1.18.0)
211 addressable (~> 2.2) 212 addressable (~> 2.2)
212 faraday (~> 0.8) 213 faraday (~> 0.8)
213 faraday_middleware (~> 0.8) 214 faraday_middleware (~> 0.8)
@@ -216,7 +217,7 @@ GEM @@ -216,7 +217,7 @@ GEM
216 omniauth (1.1.4) 217 omniauth (1.1.4)
217 hashie (>= 1.2, < 3) 218 hashie (>= 1.2, < 3)
218 rack 219 rack
219 - omniauth-github (1.0.2) 220 + omniauth-github (1.1.0)
220 omniauth (~> 1.0) 221 omniauth (~> 1.0)
221 omniauth-oauth2 (~> 1.1) 222 omniauth-oauth2 (~> 1.1)
222 omniauth-oauth2 (1.1.1) 223 omniauth-oauth2 (1.1.1)
@@ -261,8 +262,8 @@ GEM @@ -261,8 +262,8 @@ GEM
261 activesupport (= 3.2.13) 262 activesupport (= 3.2.13)
262 bundler (~> 1.0) 263 bundler (~> 1.0)
263 railties (= 3.2.13) 264 railties (= 3.2.13)
264 - rails_autolink (1.0.9)  
265 - rails (~> 3.1) 265 + rails_autolink (1.1.0)
  266 + rails (> 3.1)
266 railties (3.2.13) 267 railties (3.2.13)
267 actionpack (= 3.2.13) 268 actionpack (= 3.2.13)
268 activesupport (= 3.2.13) 269 activesupport (= 3.2.13)
@@ -270,13 +271,13 @@ GEM @@ -270,13 +271,13 @@ GEM
270 rake (>= 0.8.7) 271 rake (>= 0.8.7)
271 rdoc (~> 3.4) 272 rdoc (~> 3.4)
272 thor (>= 0.14.6, < 2.0) 273 thor (>= 0.14.6, < 2.0)
273 - raindrops (0.10.0) 274 + raindrops (0.11.0)
274 rake (10.0.4) 275 rake (10.0.4)
275 rbx-require-relative (0.0.9) 276 rbx-require-relative (0.0.9)
276 rdoc (3.12.2) 277 rdoc (3.12.2)
277 json (~> 1.4) 278 json (~> 1.4)
278 ref (1.0.4) 279 ref (1.0.4)
279 - responders (0.9.2) 280 + responders (0.9.3)
280 railties (~> 3.1) 281 railties (~> 3.1)
281 rest-client (1.6.7) 282 rest-client (1.6.7)
282 mime-types (>= 1.16) 283 mime-types (>= 1.16)
@@ -340,11 +341,11 @@ GEM @@ -340,11 +341,11 @@ GEM
340 execjs (>= 0.3.0) 341 execjs (>= 0.3.0)
341 multi_json (~> 1.0, >= 1.0.2) 342 multi_json (~> 1.0, >= 1.0.2)
342 underscore-rails (1.4.2.1) 343 underscore-rails (1.4.2.1)
343 - unicorn (4.3.1) 344 + unicorn (4.6.2)
344 kgio (~> 2.6) 345 kgio (~> 2.6)
345 rack 346 rack
346 raindrops (~> 0.7) 347 raindrops (~> 0.7)
347 - useragent (0.4.16) 348 + useragent (0.6.0)
348 warden (1.2.1) 349 warden (1.2.1)
349 rack (>= 1.0) 350 rack (>= 1.0)
350 webmock (1.11.0) 351 webmock (1.11.0)
@@ -367,7 +368,7 @@ DEPENDENCIES @@ -367,7 +368,7 @@ DEPENDENCIES
367 bitbucket_rest_api 368 bitbucket_rest_api
368 bson 369 bson
369 bson_ext 370 bson_ext
370 - campy 371 + campy (= 0.1.3)
371 capistrano 372 capistrano
372 capybara 373 capybara
373 coveralls 374 coveralls
@@ -383,7 +384,7 @@ DEPENDENCIES @@ -383,7 +384,7 @@ DEPENDENCIES
383 hipchat 384 hipchat
384 hoi 385 hoi
385 hoptoad_notifier (~> 2.4) 386 hoptoad_notifier (~> 2.4)
386 - htmlentities (~> 4.3.0) 387 + htmlentities
387 httparty 388 httparty
388 inherited_resources 389 inherited_resources
389 kaminari (>= 0.14.1) 390 kaminari (>= 0.14.1)
@@ -393,7 +394,7 @@ DEPENDENCIES @@ -393,7 +394,7 @@ DEPENDENCIES
393 mongo 394 mongo
394 mongoid (~> 2.7.1) 395 mongoid (~> 2.7.1)
395 mongoid_rails_migrations 396 mongoid_rails_migrations
396 - octokit (~> 1.0.0) 397 + octokit
397 omniauth-github 398 omniauth-github
398 oruen_redmine_client 399 oruen_redmine_client
399 pivotal-tracker 400 pivotal-tracker
@@ -401,7 +402,7 @@ DEPENDENCIES @@ -401,7 +402,7 @@ DEPENDENCIES
401 rack-ssl 402 rack-ssl
402 rack-ssl-enforcer 403 rack-ssl-enforcer
403 rails (= 3.2.13) 404 rails (= 3.2.13)
404 - rails_autolink (~> 1.0.9) 405 + rails_autolink
405 ri_cal 406 ri_cal
406 rspec-rails (~> 2.6) 407 rspec-rails (~> 2.6)
407 ruby-debug 408 ruby-debug
@@ -414,7 +415,7 @@ DEPENDENCIES @@ -414,7 +415,7 @@ DEPENDENCIES
414 uglifier (>= 1.0.3) 415 uglifier (>= 1.0.3)
415 underscore-rails 416 underscore-rails
416 unicorn 417 unicorn
417 - useragent (~> 0.4.16) 418 + useragent
418 webmock 419 webmock
419 xmpp4r 420 xmpp4r
420 yajl-ruby 421 yajl-ruby
spec/models/notice_spec.rb
@@ -37,7 +37,9 @@ describe Notice do @@ -37,7 +37,9 @@ describe Notice do
37 37
38 describe "user agent" do 38 describe "user agent" do
39 it "should be parsed and human-readable" do 39 it "should be parsed and human-readable" do
40 - notice = Fabricate.build(:notice, :request => {'cgi-data' => {'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16'}}) 40 + notice = Fabricate.build(:notice, :request => {'cgi-data' => {
  41 + 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16'
  42 + }})
41 notice.user_agent.browser.should == 'Chrome' 43 notice.user_agent.browser.should == 'Chrome'
42 notice.user_agent.version.to_s.should =~ /^10\.0/ 44 notice.user_agent.version.to_s.should =~ /^10\.0/
43 end 45 end
@@ -51,7 +53,7 @@ describe Notice do @@ -51,7 +53,7 @@ describe Notice do
51 describe "user agent string" do 53 describe "user agent string" do
52 it "should be parsed and human-readable" do 54 it "should be parsed and human-readable" do
53 notice = Fabricate.build(:notice, :request => {'cgi-data' => {'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16'}}) 55 notice = Fabricate.build(:notice, :request => {'cgi-data' => {'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16'}})
54 - notice.user_agent_string.should == 'Chrome 10.0.648.204 (Intel Mac OS X 10_6_7)' 56 + notice.user_agent_string.should == 'Chrome 10.0.648.204 (OS X 10.6.7)'
55 end 57 end
56 58
57 it "should be nil if HTTP_USER_AGENT is blank" do 59 it "should be nil if HTTP_USER_AGENT is blank" do
spec/models/problem_spec.rb
@@ -334,7 +334,7 @@ describe Problem do @@ -334,7 +334,7 @@ describe Problem do
334 it "adding a notice adds a string to #user_agents" do 334 it "adding a notice adds a string to #user_agents" do
335 lambda { 335 lambda {
336 Fabricate(:notice, :err => @err, :request => {'cgi-data' => {'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16'}}) 336 Fabricate(:notice, :err => @err, :request => {'cgi-data' => {'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16'}})
337 - }.should change(@problem, :user_agents).from({}).to({Digest::MD5.hexdigest('Chrome 10.0.648.204 (Intel Mac OS X 10_6_7)') => {'value' => 'Chrome 10.0.648.204 (Intel Mac OS X 10_6_7)', 'count' => 1}}) 337 + }.should change(@problem, :user_agents).from({}).to({Digest::MD5.hexdigest('Chrome 10.0.648.204 (OS X 10.6.7)') => {'value' => 'Chrome 10.0.648.204 (OS X 10.6.7)', 'count' => 1}})
338 end 338 end
339 339
340 it "removing a notice removes string from #user_agents" do 340 it "removing a notice removes string from #user_agents" do
@@ -342,7 +342,9 @@ describe Problem do @@ -342,7 +342,9 @@ describe Problem do
342 lambda { 342 lambda {
343 @err.notices.first.destroy 343 @err.notices.first.destroy
344 @problem.reload 344 @problem.reload
345 - }.should change(@problem, :user_agents).from({Digest::MD5.hexdigest('Chrome 10.0.648.204 (Intel Mac OS X 10_6_7)') => {'value' => 'Chrome 10.0.648.204 (Intel Mac OS X 10_6_7)', 'count' => 1}}).to({}) 345 + }.should change(@problem, :user_agents).from({
  346 + Digest::MD5.hexdigest('Chrome 10.0.648.204 (OS X 10.6.7)') => {'value' => 'Chrome 10.0.648.204 (OS X 10.6.7)', 'count' => 1}
  347 + }).to({})
346 end 348 end
347 end 349 end
348 350