rails_version 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,7 +8,7 @@ application versions.
8
8
 
9
9
  As usual, add this line to your application's Gemfile and bundle afterward:
10
10
 
11
- gem 'rails_version', ">= 0.2.0", :group => :production, :git => "git://github.com/clearsightstudio/rails_version.git"
11
+ gem 'rails_version', ">= 0.2.2", :group => :production
12
12
 
13
13
  Sign up and get your API key from http://railsversion.herokuapp.com, then go to your config/environments/production.rb file and add this:
14
14
 
@@ -20,7 +20,7 @@ module RailsVersion
20
20
  else
21
21
  inject_script_before_end_body_tag(ping_image)
22
22
  end
23
- rescue Timeout::Error
23
+ rescue # Blind rescue...no exceptions shown.
24
24
  false
25
25
  end
26
26
 
@@ -8,6 +8,8 @@ module RailsVersion
8
8
  pinger = RailsVersion::Pinger.new(request, response)
9
9
  response.body = pinger.body if pinger.ping!
10
10
  end
11
+ rescue OpenURI::HTTPError
12
+ nil # No HTTPError here! Nuh uh. Nope. Nothing to see here.
11
13
  end
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module RailsVersion
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,39 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rails_version
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 17
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 3
10
+ version: 0.2.3
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Jamon Holmgren
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-02-05 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: actionpack
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- description: ! ' Pings a server and reports the current app''s Rails version. '
31
- email:
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :development
33
+ version_requirements: *id001
34
+ description: " Pings a server and reports the current app's Rails version. "
35
+ email:
32
36
  - jamon@clearsightstudio.com
33
37
  executables: []
38
+
34
39
  extensions: []
40
+
35
41
  extra_rdoc_files: []
36
- files:
42
+
43
+ files:
37
44
  - .gitignore
38
45
  - Gemfile
39
46
  - LICENSE
@@ -48,29 +55,37 @@ files:
48
55
  - test/rails_version_test.rb
49
56
  homepage: https://github.com/clearsightstudio/rails_version
50
57
  licenses: []
58
+
51
59
  post_install_message:
52
60
  rdoc_options: []
53
- require_paths:
61
+
62
+ require_paths:
54
63
  - lib
55
64
  - rails
56
- required_ruby_version: !ruby/object:Gem::Requirement
65
+ required_ruby_version: !ruby/object:Gem::Requirement
57
66
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
75
  none: false
64
- requirements:
65
- - - ! '>='
66
- - !ruby/object:Gem::Version
67
- version: '0'
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ hash: 3
80
+ segments:
81
+ - 0
82
+ version: "0"
68
83
  requirements: []
84
+
69
85
  rubyforge_project:
70
- rubygems_version: 1.8.22
86
+ rubygems_version: 1.8.24
71
87
  signing_key:
72
88
  specification_version: 3
73
89
  summary: Pings a server and reports the current app's Rails version.
74
- test_files:
90
+ test_files:
75
91
  - test/rails_version_test.rb
76
- has_rdoc: