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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edbf9baac35a07bbd6dc566cc41652c799776974
4
- data.tar.gz: df5411385291d477aad6871e3f56d32197f66647
3
+ metadata.gz: 4283845c0e2d54c05552e657280cb679ef785317
4
+ data.tar.gz: b1d26d858b481ee63389b11b026eac6c1d401abb
5
5
  SHA512:
6
- metadata.gz: ad539fe9a38c3291a7519b991eb5e44be4a16bb5646cc93961d1c308e633ac0ad1dffd2fc91dc4be55cb59c45e036a5c567742175bfc6502fcf8982823f9224c
7
- data.tar.gz: 134d760e675029eddccaeb7ddae468f78b2a43a31ac69731a38e50c2f0dfdab82248d5e50b9c23612a483c730d3ed6860360fdb6ff57127e43bceeb014c180b5
6
+ metadata.gz: 64402b4317ed20e6283a44368355e73e9e666f9aab599c219a42cccdf3fc892e4f91a9e13c46b17d7e9aa2aaa5c048d6135e50b9847e67596a7eb66e4737c400
7
+ data.tar.gz: 88996e8b424daf33d11a21816d254979f2c9ea8a3511ac38bff73948344fe2ba4673898a7e09762840d1a9479828e1d99fa53ebb733b456cb3861448e6f5ad27
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ OkHealthCheck::Engine.routes.draw do
2
+ get 'healthcheck', to: 'healthcheck#show'
3
+ end
@@ -1,9 +1,6 @@
1
1
  require "ok_health_check/version"
2
+ require "ok_health_check/engine"
2
3
 
3
4
  module OkHealthCheck
4
- class HealthcheckController < ActionController::Base
5
- def show
6
- render plain: "OK"
7
- end
8
- end
5
+ require 'ok_health_check/healthcheck_controller'
9
6
  end
@@ -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
@@ -0,0 +1,5 @@
1
+ class HealthcheckController
2
+ def show
3
+ render plain: "OK"
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module OkHealthCheck
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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'
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe HealthcheckController do
4
+ it "check path displays ok" do
5
+ get :show
6
+ expect(response).to be_success
7
+ end
8
+ end
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.2
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/controllers/healthcheck_controller.rb
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/ok_health_check.rb
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/ok_health_check.rb
129
+ - spec/ok_health_check_spec.rb
100
130
  - spec/spec_helper.rb
101
131
  has_rdoc:
@@ -1,5 +0,0 @@
1
- class HealthcheckController < ActionController::Base
2
- def show
3
- render plain: "OK"
4
- end
5
- end
@@ -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