aws-healthcheck 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3afba75c1acc9e0cf3c176c330ccd16415d6f36c
4
- data.tar.gz: 33ea90c377df17cd83b26c90916b678c24822e93
3
+ metadata.gz: c95bab5bf908a38d7c15e7f30d21de8e55291169
4
+ data.tar.gz: a46419f3625d8e302a78740f3db70ab8b454b4dd
5
5
  SHA512:
6
- metadata.gz: 6d0a130ea924092cfc2182a5722a933db100ee1cf0afbdd2e16fd57546707ce6ab8c6b31fa90f3fc90126ebf36f676086e367b086b95aa5a33281a284ba92b2c
7
- data.tar.gz: 2105a2930e2823aaac8b74fce1b67b10c5f35c608ea5f2b63b5c4bb58d609412c4ccf64ccc52cd4376fdce463bea3e2267a442eda04375d748bec06863025201
6
+ metadata.gz: a590b3b379424b6071aa0c6316a20ca92e6f8a46d90b30090d67aa5c3b4cffa380b1b79ad7671c775047631b2dcd396462b786338419ceed9d4467d0e3b053a7
7
+ data.tar.gz: c468ad849126ba548ff27346ea8d691c15b5e5839ebb9b73c614254783da468073d1c414d1883510fc88a946ba19f47fd2f5caca876589b38ba4edaa49ba238a
@@ -1,4 +1,5 @@
1
- require "healthcheck/engine"
1
+ require 'healthcheck/middleware'
2
+ require 'healthcheck/railtie'
2
3
 
3
4
  module Healthcheck
4
5
  end
@@ -0,0 +1,14 @@
1
+ module Healthcheck
2
+ class Middleware
3
+
4
+ def initialize(app)
5
+ @app = app
6
+ end
7
+
8
+ def call(env)
9
+ return [200, {}, []] if env['PATH_INFO'] == '/healthcheck'
10
+ @app.call(env)
11
+ end
12
+
13
+ end
14
+ end
@@ -0,0 +1,7 @@
1
+ require 'rails'
2
+
3
+ module Healthcheck
4
+ class Railtie < ::Rails::Railtie
5
+ config.app_middleware.use Healthcheck::Middleware
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Healthcheck
2
- VERSION = "1.0.0"
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-healthcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Mounts a Rack app at /healthcheck that returns a 200 for AWS load balancers
@@ -47,9 +47,9 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - MIT-LICENSE
49
49
  - Rakefile
50
- - config/routes.rb
51
50
  - lib/aws-healthcheck.rb
52
- - lib/healthcheck/engine.rb
51
+ - lib/healthcheck/middleware.rb
52
+ - lib/healthcheck/railtie.rb
53
53
  - lib/healthcheck/version.rb
54
54
  - test/dummy/README.rdoc
55
55
  - test/dummy/Rakefile
@@ -79,8 +79,6 @@ files:
79
79
  - test/dummy/config/locales/en.yml
80
80
  - test/dummy/config/routes.rb
81
81
  - test/dummy/config/secrets.yml
82
- - test/dummy/db/test.sqlite3
83
- - test/dummy/log/test.log
84
82
  - test/dummy/public/404.html
85
83
  - test/dummy/public/422.html
86
84
  - test/dummy/public/500.html
@@ -97,12 +95,12 @@ require_paths:
97
95
  - lib
98
96
  required_ruby_version: !ruby/object:Gem::Requirement
99
97
  requirements:
100
- - - '>='
98
+ - - ">="
101
99
  - !ruby/object:Gem::Version
102
100
  version: '0'
103
101
  required_rubygems_version: !ruby/object:Gem::Requirement
104
102
  requirements:
105
- - - '>='
103
+ - - ">="
106
104
  - !ruby/object:Gem::Version
107
105
  version: '0'
108
106
  requirements: []
@@ -138,8 +136,6 @@ test_files:
138
136
  - test/dummy/config/routes.rb
139
137
  - test/dummy/config/secrets.yml
140
138
  - test/dummy/config.ru
141
- - test/dummy/db/test.sqlite3
142
- - test/dummy/log/test.log
143
139
  - test/dummy/public/404.html
144
140
  - test/dummy/public/422.html
145
141
  - test/dummy/public/500.html
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
- mount -> (env) { ['200', {}, []] }, at: '/healthcheck'
3
- end
@@ -1,4 +0,0 @@
1
- module Healthcheck
2
- class Engine < ::Rails::Engine
3
- end
4
- end
File without changes
@@ -1,12 +0,0 @@
1
-  (0.1ms) begin transaction
2
- ----------------------------------
3
- NavigationTest: test_returns_a_200
4
- ----------------------------------
5
- Started GET "/healthcheck" for 127.0.0.1 at 2014-06-23 12:25:15 -0500
6
-  (0.1ms) rollback transaction
7
-  (0.1ms) begin transaction
8
- ----------------------------------
9
- NavigationTest: test_returns_a_200
10
- ----------------------------------
11
- Started GET "/healthcheck" for 127.0.0.1 at 2014-06-23 12:25:28 -0500
12
-  (0.1ms) rollback transaction