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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2707d8b463f15b34f23e22385a0238ebb0591e43
4
- data.tar.gz: c2aa1c4fbb582d72537645c724723206eef1f56a
3
+ metadata.gz: c600b8270bb278d6db17fa0c91c053e3adf01ea2
4
+ data.tar.gz: 18a858c93b19f457c584d6f30fdf08e00ce7ad83
5
5
  SHA512:
6
- metadata.gz: 78d40aa09f538ab2e6c33c693b0fdd4df2966e4599a8233b8c0dede8c61251a74a4d97b0afe4134ccffe0917260d9988dbbae932767f35a2722a9f0a9b352b22
7
- data.tar.gz: 1ef18c0b526c604a534e0e2508399abb15886d39394d0218565ab3628e83bce7c90476f983f6a6b0733470c626270aacfbbf423b6e40d08d43192d5426ab39e0
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
- "created_at": "2014-03-21T12:34:56.789",
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
@@ -21,7 +21,7 @@ module AliveState
21
21
  params = { 'Content-Type' => 'text/plain; charset=utf-8' }
22
22
  raw = {
23
23
  state: :green,
24
- created_at: Time.now,
24
+ observed_at: Time.now,
25
25
  application: {}
26
26
  }
27
27
 
@@ -1,9 +1,7 @@
1
1
  module AliveState
2
2
  class Railtie < Rails::Railtie
3
3
  initializer "alive_state.configure_rails_initialization" do
4
- if use_alive_state?
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
@@ -1,3 +1,3 @@
1
1
  module AliveState
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
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.0
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-08-30 00:00:00.000000000 Z
11
+ date: 2014-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler