ok_health_check 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/routes.rb +3 -0
- data/lib/ok_health_check.rb +2 -5
- data/lib/ok_health_check/engine.rb +15 -0
- data/lib/ok_health_check/healthcheck_controller.rb +5 -0
- data/lib/ok_health_check/version.rb +1 -1
- data/ok_health_check.gemspec +2 -0
- data/spec/ok_health_check_spec.rb +8 -0
- metadata +34 -4
- data/lib/ok_health_check/controllers/healthcheck_controller.rb +0 -5
- data/spec/ok_health_check.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4283845c0e2d54c05552e657280cb679ef785317
|
4
|
+
data.tar.gz: b1d26d858b481ee63389b11b026eac6c1d401abb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64402b4317ed20e6283a44368355e73e9e666f9aab599c219a42cccdf3fc892e4f91a9e13c46b17d7e9aa2aaa5c048d6135e50b9847e67596a7eb66e4737c400
|
7
|
+
data.tar.gz: 88996e8b424daf33d11a21816d254979f2c9ea8a3511ac38bff73948344fe2ba4673898a7e09762840d1a9479828e1d99fa53ebb733b456cb3861448e6f5ad27
|
data/config/routes.rb
ADDED
data/lib/ok_health_check.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module OkHealthCheck
|
4
|
+
class Engine < ::Rails::Engine
|
5
|
+
isolate_namespace OkHealthCheck
|
6
|
+
|
7
|
+
config.after_initialize do |app|
|
8
|
+
if OkHealthCheck.modunt_at
|
9
|
+
app.routes.prepend do
|
10
|
+
get 'healthcheck', to: 'healthcheck#show'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/ok_health_check.gemspec
CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
+
spec.add_development_dependency "activesupport"
|
22
|
+
spec.add_development_dependency "rails"
|
21
23
|
spec.add_development_dependency "bundler", "~> 1.7"
|
22
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
25
|
spec.add_development_dependency 'rspec'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ok_health_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Picciuto
|
@@ -10,6 +10,34 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2015-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: bundler
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,11 +92,13 @@ files:
|
|
64
92
|
- LICENSE.txt
|
65
93
|
- README.md
|
66
94
|
- Rakefile
|
95
|
+
- config/routes.rb
|
67
96
|
- lib/ok_health_check.rb
|
68
|
-
- lib/ok_health_check/
|
97
|
+
- lib/ok_health_check/engine.rb
|
98
|
+
- lib/ok_health_check/healthcheck_controller.rb
|
69
99
|
- lib/ok_health_check/version.rb
|
70
100
|
- ok_health_check.gemspec
|
71
|
-
- spec/
|
101
|
+
- spec/ok_health_check_spec.rb
|
72
102
|
- spec/spec_helper.rb
|
73
103
|
- tasks/rspec.rake
|
74
104
|
homepage: ''
|
@@ -96,6 +126,6 @@ signing_key:
|
|
96
126
|
specification_version: 4
|
97
127
|
summary: Site health check
|
98
128
|
test_files:
|
99
|
-
- spec/
|
129
|
+
- spec/ok_health_check_spec.rb
|
100
130
|
- spec/spec_helper.rb
|
101
131
|
has_rdoc:
|
data/spec/ok_health_check.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Dogeify do
|
4
|
-
subject { Dogeify.new }
|
5
|
-
|
6
|
-
describe '#process' do
|
7
|
-
let(:input) { 'My grandmom gave me a sweater for Christmas.' }
|
8
|
-
let(:output) { subject.process(input) }
|
9
|
-
|
10
|
-
it 'converts to lowercase' do
|
11
|
-
expect(output.downcase).to eq output
|
12
|
-
end
|
13
|
-
|
14
|
-
it 'combines nouns with doge adjectives' do
|
15
|
-
expect(output).to match /so grandmom./i
|
16
|
-
expect(output).to match /such sweater./i
|
17
|
-
expect(output).to match /very christmas./i
|
18
|
-
end
|
19
|
-
|
20
|
-
it 'always appends "wow."' do
|
21
|
-
expect(output).to end_with 'wow.'
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|