rack_heroku 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack_heroku (0.1.0)
4
+ rack_heroku (0.2.0)
5
5
  rack
6
6
 
7
7
  GEM
data/README.rdoc CHANGED
@@ -21,23 +21,23 @@ In your app:
21
21
 
22
22
  === Licence
23
23
 
24
- Copyright (c) 2013 Black Square Media
25
-
26
- Permission is hereby granted, free of charge, to any person obtaining
27
- a copy of this software and associated documentation files (the
28
- "Software"), to deal in the Software without restriction, including
29
- without limitation the rights to use, copy, modify, merge, publish,
30
- distribute, sublicense, and/or sell copies of the Software, and to
31
- permit persons to whom the Software is furnished to do so, subject to
32
- the following conditions:
33
-
34
- The above copyright notice and this permission notice shall be
35
- included in all copies or substantial portions of the Software.
36
-
37
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
41
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
42
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
43
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
+ Copyright (c) 2013 Black Square Media
25
+
26
+ Permission is hereby granted, free of charge, to any person obtaining
27
+ a copy of this software and associated documentation files (the
28
+ "Software"), to deal in the Software without restriction, including
29
+ without limitation the rights to use, copy, modify, merge, publish,
30
+ distribute, sublicense, and/or sell copies of the Software, and to
31
+ permit persons to whom the Software is furnished to do so, subject to
32
+ the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be
35
+ included in all copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
41
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
42
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
43
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -2,7 +2,6 @@ class Rack::Heroku::Railtie < Rails::Railtie
2
2
 
3
3
  initializer "rack_heroku.middleware" do |app|
4
4
  app.config.middleware.insert_before ActionDispatch::Static, Rack::Heroku::Profiler
5
- app.config.middleware.insert_after ActionDispatch::DebugExceptions, Rack::Heroku::Info
6
5
  end
7
6
 
8
7
  end
data/lib/rack/heroku.rb CHANGED
@@ -3,8 +3,8 @@ require 'rack'
3
3
  module Rack::Heroku
4
4
  end
5
5
 
6
- %w|profiler info|.each do |name|
6
+ %w|profiler|.each do |name|
7
7
  require "rack/heroku/#{name}"
8
8
  end
9
9
 
10
- require 'rack/heroku/railtie' if defined?(Rails)
10
+ require 'rack/heroku/railtie' if defined?(Rails)
data/rack_heroku.gemspec CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
 
6
6
  s.name = "rack_heroku"
7
7
  s.summary = "Rack middleware for Heroku"
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
  s.license = "MIT"
10
10
 
11
11
  s.authors = ["Dimitrij Denissenko"]
metadata CHANGED
@@ -1,113 +1,112 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_heroku
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.2.0
4
5
  prerelease:
5
- version: 0.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dimitrij Denissenko
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-07 00:00:00.000000000 Z
12
+ date: 2013-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- prerelease: false
16
- type: :runtime
17
15
  name: rack
18
- version_requirements: !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ! '>='
22
- - !ruby/object:Gem::Version
23
- version: '0'
24
16
  requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
18
  requirements:
27
19
  - - ! '>='
28
20
  - !ruby/object:Gem::Version
29
21
  version: '0'
30
- - !ruby/object:Gem::Dependency
22
+ type: :runtime
31
23
  prerelease: false
32
- type: :development
33
- name: rake
34
24
  version_requirements: !ruby/object:Gem::Requirement
35
25
  none: false
36
26
  requirements:
37
27
  - - ! '>='
38
28
  - !ruby/object:Gem::Version
39
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
40
32
  requirement: !ruby/object:Gem::Requirement
41
33
  none: false
42
34
  requirements:
43
35
  - - ! '>='
44
36
  - !ruby/object:Gem::Version
45
37
  version: '0'
46
- - !ruby/object:Gem::Dependency
47
- prerelease: false
48
38
  type: :development
49
- name: bundler
39
+ prerelease: false
50
40
  version_requirements: !ruby/object:Gem::Requirement
51
41
  none: false
52
42
  requirements:
53
43
  - - ! '>='
54
44
  - !ruby/object:Gem::Version
55
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
56
48
  requirement: !ruby/object:Gem::Requirement
57
49
  none: false
58
50
  requirements:
59
51
  - - ! '>='
60
52
  - !ruby/object:Gem::Version
61
53
  version: '0'
62
- - !ruby/object:Gem::Dependency
63
- prerelease: false
64
54
  type: :development
65
- name: rack-test
55
+ prerelease: false
66
56
  version_requirements: !ruby/object:Gem::Requirement
67
57
  none: false
68
58
  requirements:
69
59
  - - ! '>='
70
60
  - !ruby/object:Gem::Version
71
61
  version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rack-test
72
64
  requirement: !ruby/object:Gem::Requirement
73
65
  none: false
74
66
  requirements:
75
67
  - - ! '>='
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
- - !ruby/object:Gem::Dependency
79
- prerelease: false
80
70
  type: :development
81
- name: rspec
71
+ prerelease: false
82
72
  version_requirements: !ruby/object:Gem::Requirement
83
73
  none: false
84
74
  requirements:
85
75
  - - ! '>='
86
76
  - !ruby/object:Gem::Version
87
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rspec
88
80
  requirement: !ruby/object:Gem::Requirement
89
81
  none: false
90
82
  requirements:
91
83
  - - ! '>='
92
84
  - !ruby/object:Gem::Version
93
85
  version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
94
  description:
95
95
  email: dimitrij@blacksquaremedia.com
96
96
  executables: []
97
97
  extensions: []
98
98
  extra_rdoc_files: []
99
99
  files:
100
+ - .gitignore
100
101
  - Gemfile
101
102
  - Gemfile.lock
102
103
  - README.rdoc
103
104
  - Rakefile
104
105
  - lib/rack/heroku.rb
105
- - lib/rack/heroku/info.rb
106
106
  - lib/rack/heroku/profiler.rb
107
107
  - lib/rack/heroku/railtie.rb
108
108
  - lib/rack_heroku.rb
109
109
  - rack_heroku.gemspec
110
- - spec/rack/heroku/info_spec.rb
111
110
  - spec/rack/heroku/profiler_spec.rb
112
111
  - spec/spec_helper.rb
113
112
  homepage: https://github.com/bsm/rack_heroku
@@ -136,7 +135,6 @@ signing_key:
136
135
  specification_version: 3
137
136
  summary: Rack middleware for Heroku
138
137
  test_files:
139
- - spec/rack/heroku/info_spec.rb
140
138
  - spec/rack/heroku/profiler_spec.rb
141
139
  - spec/spec_helper.rb
142
140
  has_rdoc:
@@ -1,19 +0,0 @@
1
- # Responds with 204 on :path
2
- class Rack::Heroku::Info
3
- HEADERS = { "Content-Type" => "text/plain" }.freeze
4
-
5
- def initialize(app, path = "/_heroku/info")
6
- @app = app
7
- @path = path
8
- end
9
-
10
- def call(env)
11
- case env["PATH_INFO"]
12
- when @path
13
- [200, HEADERS, [""]] # TODO: Return something interesting
14
- else
15
- @app.call(env)
16
- end
17
- end
18
-
19
- end
@@ -1,19 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Rack::Heroku::Info do
4
-
5
- it 'should ignore non-matching paths' do
6
- get "/"
7
- last_response.body.should == "OK"
8
-
9
- get "/other"
10
- last_response.body.should == "OK"
11
- end
12
-
13
- it 'should return info' do
14
- get "/_heroku/info"
15
- last_response.status.should == 200
16
- last_response.body.should == ""
17
- end
18
-
19
- end