alive_state 0.2.0 → 0.3.0

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: d11d0ad5dd316412ed5566289b896c60d9a53c14
4
- data.tar.gz: da3e0fb58eb06b9b66220fdf5f1d77aaa801c9f0
3
+ metadata.gz: 315276182764fa14be49d6bb006e8e7eec762e9a
4
+ data.tar.gz: c1d3296d45289c2f547278c7009dfb2855d31d95
5
5
  SHA512:
6
- metadata.gz: b94ffd06266d5d732a8c679b71d6eb7998644e72c60d6796aa8d68cc70cd637d521ad5c0c23efae24be5e04c819ee5c407a6fc55deecb0ba58a23f3b2fdb6866
7
- data.tar.gz: 3296bfc90f27cb61c5133a232d4b91fdfb98caada6c4be1168fbebec286661e566dd17399734c93c37ca9f49d03cc57e63f69d994b8c0f0127dc003a1a355923
6
+ metadata.gz: fa584452877146615c541b9e2f7c2914b5bbbcc3d2b2605963a18289cb25e3199e86f1b5aab7d4359f8da0b9a093682943bd1e190fc92e5fdeaf8ee696cdef85
7
+ data.tar.gz: 5ffc001cbc2d0f69c82188b0e1c6c372b2f2a37e6da4eb5aa7bcbb2cafa309a8b7cbc2162d8de49a8b1a875625df299d98a972dc13897795052d55f527235874
data/.travis.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
3
+ - 2.1.0
@@ -1,7 +1,7 @@
1
1
  module AliveState
2
2
  module Configure
3
3
  class << self
4
- attr_accessor :path, :format
4
+ attr_accessor :path, :format, :front
5
5
 
6
6
  def setup
7
7
  keys.each do |key|
@@ -10,7 +10,7 @@ module AliveState
10
10
  end
11
11
 
12
12
  def keys
13
- @keys ||= %i[path format]
13
+ @keys ||= %i[path format front]
14
14
  end
15
15
  end
16
16
  end
@@ -2,6 +2,7 @@ module AliveState
2
2
  module Default
3
3
  PATH = 'status'.freeze
4
4
  FORMAT = 'json'.freeze
5
+ FRONT = true.freeze
5
6
 
6
7
  class << self
7
8
  def options
@@ -15,6 +16,10 @@ module AliveState
15
16
  def format
16
17
  FORMAT
17
18
  end
19
+
20
+ def front
21
+ FRONT
22
+ end
18
23
  end
19
24
  end
20
25
  end
@@ -5,7 +5,7 @@ module AliveState
5
5
  end
6
6
 
7
7
  def insert_middleware
8
- if defined? ActionDispatch::DebugExceptions
8
+ if AliveState.config.front and defined? ActionDispatch::DebugExceptions
9
9
  app.middleware.insert_after ActionDispatch::DebugExceptions, AliveState::Middleware
10
10
  else
11
11
  app.middleware.use AliveState::Middleware
@@ -1,3 +1,3 @@
1
1
  module AliveState
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
@@ -1,8 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AliveState do
4
- describe "VERSION" do
5
- it "AliveState::VERSION" do
3
+ describe "AliveState::VERSION" do
4
+ describe "reference" do
5
+ it "returns #{AliveState::VERSION} version" do
6
6
  expect(AliveState::VERSION).to eq(AliveState::VERSION)
7
7
  end
8
8
  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.2.0
4
+ version: 0.3.0
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-04 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler