alive_state 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/alive_state/configure.rb +2 -2
- data/lib/alive_state/default.rb +5 -0
- data/lib/alive_state/rails.rb +1 -1
- data/lib/alive_state/version.rb +1 -1
- data/spec/lib/version_spec.rb +3 -3
- 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: 315276182764fa14be49d6bb006e8e7eec762e9a
|
4
|
+
data.tar.gz: c1d3296d45289c2f547278c7009dfb2855d31d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa584452877146615c541b9e2f7c2914b5bbbcc3d2b2605963a18289cb25e3199e86f1b5aab7d4359f8da0b9a093682943bd1e190fc92e5fdeaf8ee696cdef85
|
7
|
+
data.tar.gz: 5ffc001cbc2d0f69c82188b0e1c6c372b2f2a37e6da4eb5aa7bcbb2cafa309a8b7cbc2162d8de49a8b1a875625df299d98a972dc13897795052d55f527235874
|
data/.travis.yml
CHANGED
@@ -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
|
data/lib/alive_state/default.rb
CHANGED
@@ -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
|
data/lib/alive_state/rails.rb
CHANGED
@@ -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
|
data/lib/alive_state/version.rb
CHANGED
data/spec/lib/version_spec.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe AliveState do
|
4
|
-
describe "
|
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.
|
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
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|