ok_health_check 0.0.1 → 0.0.2

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: edac304bd407597458f751a5e448500b4066b957
4
- data.tar.gz: 4a9e5df1f6b5685cd4114e3f2aa24cf32e46158c
3
+ metadata.gz: edbf9baac35a07bbd6dc566cc41652c799776974
4
+ data.tar.gz: df5411385291d477aad6871e3f56d32197f66647
5
5
  SHA512:
6
- metadata.gz: 45ce303a5e3d6402e94238dedcaf729bcf3426244d3f9b2c88bcf78833c50f420f97969b236e5331fa4c60a9e6e247bff99b0e11c8818e6ce1c56de4d6f64ec8
7
- data.tar.gz: 1efea0a5f1f71747989d970c37711286f8b4713d1811c375b704784d9a0798fe7a7cbd846da45a504cbd6ae18b888167793a3b59be3d6c9e7fabfa9941ca705e
6
+ metadata.gz: ad539fe9a38c3291a7519b991eb5e44be4a16bb5646cc93961d1c308e633ac0ad1dffd2fc91dc4be55cb59c45e036a5c567742175bfc6502fcf8982823f9224c
7
+ data.tar.gz: 134d760e675029eddccaeb7ddae468f78b2a43a31ac69731a38e50c2f0dfdab82248d5e50b9c23612a483c730d3ed6860360fdb6ff57127e43bceeb014c180b5
data/Rakefile CHANGED
@@ -1,2 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
+ Dir.glob('tasks/**/*.rake').each(&method(:import))
4
+
5
+
@@ -0,0 +1,5 @@
1
+ class HealthcheckController < ActionController::Base
2
+ def show
3
+ render plain: "OK"
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module OkHealthCheck
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,7 +1,9 @@
1
1
  require "ok_health_check/version"
2
2
 
3
3
  module OkHealthCheck
4
- def self.ok
5
- 'OK'
4
+ class HealthcheckController < ActionController::Base
5
+ def show
6
+ render plain: "OK"
7
+ end
6
8
  end
7
9
  end
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency 'rspec'
23
24
  end
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
1
+ require 'ok_health_check'
data/tasks/rspec.rake ADDED
@@ -0,0 +1,3 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ RSpec::Core::RakeTask.new(:spec)
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Picciuto
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  description: A simple gem to check the health of a site
42
56
  email:
43
57
  - nick@spartansystems.co
@@ -51,8 +65,12 @@ files:
51
65
  - README.md
52
66
  - Rakefile
53
67
  - lib/ok_health_check.rb
68
+ - lib/ok_health_check/controllers/healthcheck_controller.rb
54
69
  - lib/ok_health_check/version.rb
55
70
  - ok_health_check.gemspec
71
+ - spec/ok_health_check.rb
72
+ - spec/spec_helper.rb
73
+ - tasks/rspec.rake
56
74
  homepage: ''
57
75
  licenses:
58
76
  - MIT
@@ -77,5 +95,7 @@ rubygems_version: 2.4.2
77
95
  signing_key:
78
96
  specification_version: 4
79
97
  summary: Site health check
80
- test_files: []
98
+ test_files:
99
+ - spec/ok_health_check.rb
100
+ - spec/spec_helper.rb
81
101
  has_rdoc: