alive_state 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/alive_state/middleware.rb +1 -1
- data/lib/alive_state/rails.rb +1 -7
- data/lib/alive_state/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c600b8270bb278d6db17fa0c91c053e3adf01ea2
|
4
|
+
data.tar.gz: 18a858c93b19f457c584d6f30fdf08e00ce7ad83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 558c2170eae8241f0ec2679eb9640c73dfca91808fc94570d8cfaab58c9c29220a0dadf55dc2b050404ec7cefe0aa8fd9ea4678ebd11ccb138ac9c95f1e7b0f7
|
7
|
+
data.tar.gz: 644c482422670d1d57259ba3cb3afcbf6623dfe87b986fbacf2f0fa1251853bcf26acca3899a3b1797194c93d570d4dc2f96ae74b963cc36d7a03279e6581081
|
data/README.md
CHANGED
@@ -31,13 +31,15 @@ Response in the format of json:
|
|
31
31
|
```
|
32
32
|
{
|
33
33
|
"state": "green",
|
34
|
-
"
|
34
|
+
"observed_at": "2014-03-21T12:34:56.789",
|
35
35
|
"application": {
|
36
36
|
"active_record": true
|
37
37
|
}
|
38
38
|
}
|
39
39
|
```
|
40
40
|
|
41
|
+
[Browse the documentation.](http://ogom.github.io/alive_state/docs)
|
42
|
+
|
41
43
|
## License
|
42
44
|
|
43
45
|
* MIT
|
data/lib/alive_state/rails.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
module AliveState
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer "alive_state.configure_rails_initialization" do
|
4
|
-
|
5
|
-
insert_middleware
|
6
|
-
end
|
4
|
+
insert_middleware
|
7
5
|
end
|
8
6
|
|
9
7
|
def insert_middleware
|
@@ -14,10 +12,6 @@ module AliveState
|
|
14
12
|
end
|
15
13
|
end
|
16
14
|
|
17
|
-
def use_alive_state?
|
18
|
-
!Rails.env.production? and app.config.consider_all_requests_local
|
19
|
-
end
|
20
|
-
|
21
15
|
def app
|
22
16
|
Rails.application
|
23
17
|
end
|
data/lib/alive_state/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alive_state
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|