maintenance_mode 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: 2896353d3d28297a736ece0c8db187ea37fd1902
4
- data.tar.gz: 6186d898dc13994dfdf53e2253a53327847d6b57
3
+ metadata.gz: b2cca08b48be4097ada632ac661180edc79cd64f
4
+ data.tar.gz: 6b025b13fdb30838929e7c2696f237d0f2f2b085
5
5
  SHA512:
6
- metadata.gz: 2fe2567bda7e6d787e7143841c9cefd451ae04eebae92d48bbc3333f84bfc8c83f459bb695cfaad5c767d697bdc52452288e6c9df23552c2fed120f79cb19c81
7
- data.tar.gz: de1b522889974b205e9fb66048101a45052d7a7b6a37257d431a9713524894ccd5f60aefb86b86e0c0d0de1cfc3b015af31f766ac3b41005ec8c8528e9ff27b3
6
+ metadata.gz: bbbe37a3660df19d604319eb21d893ef1bd04c012eae42df6fca8c75365e0980174433e8970d07d8220d3058784252ad53c008cb72dd08cf256bb9ae37b7c02c
7
+ data.tar.gz: efb243a0d6c5015e2a3a0b97c81b8c442979a89bdf48447bcd91945009d48990913f4e09c0210c0d80ad198179b4b77549f0a6c4a1083161ad76b3b477d6a4a0
data/README.md CHANGED
@@ -4,6 +4,8 @@ This provides a simple interface to a "maintenance mode" toggle with optional
4
4
  maintenance message. It's not specific to maintenance mode, really, and could be
5
5
  used whenever a similar switch is needed.
6
6
 
7
+ [![Build Status](https://travis-ci.org/GoodGuide/maintenance_mode.svg?branch=master)](https://travis-ci.org/GoodGuide/maintenance_mode)
8
+
7
9
  ## Usage
8
10
 
9
11
  ```ruby
@@ -17,6 +19,10 @@ MaintenanceMode.disable
17
19
  MaintenanceMode.enabled? # => false
18
20
  ```
19
21
 
22
+ There is no magic here; if you want to apply this to your web app, just build a
23
+ response handler with the result of `MaintenanceMode.as_json` or something to
24
+ that effect.
25
+
20
26
  There are also rake tasks to toggle MaintenanceMode:
21
27
 
22
28
  ```shell
data/Rakefile CHANGED
@@ -7,3 +7,6 @@ Rake::TestTask.new(:test) do |t|
7
7
  end
8
8
 
9
9
  task default: :test
10
+
11
+ # rubygems releases are done by Travis
12
+ Rake::Task['release:rubygem_push'].clear
@@ -1,3 +1,3 @@
1
1
  class MaintenanceMode
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -4,20 +4,23 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'maintenance_mode/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "maintenance_mode"
7
+ spec.name = 'maintenance_mode'
8
8
  spec.version = MaintenanceMode::VERSION
9
9
  spec.authors = ["Ryan Taylor Long"]
10
10
  spec.email = ["ryan.long@goodguide.com"]
11
11
  spec.summary = "This provides a simple interface to a 'maintenance mode' toggle with optional maintenance message."
12
- spec.homepage = "http://github.com/goodguide/maintenance_mode"
13
- spec.license = "MIT"
12
+ spec.homepage = 'http://github.com/goodguide/maintenance_mode'
13
+ spec.license = 'MIT'
14
14
 
15
- spec.files = `git ls-files -z`.split("\x0")
16
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
- spec.require_paths = ["lib"]
15
+ spec.required_ruby_version = '>= 2.1.0'
19
16
 
20
- spec.add_development_dependency "bundler", "~> 1.7"
21
- spec.add_development_dependency "rake", "~> 10.0"
22
- spec.add_development_dependency "minitest"
17
+ all_files = `git ls-files -z`.split("\x0")
18
+ spec.files = all_files - all_files.grep(%r{^.travis.yml})
19
+ spec.executables = all_files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = all_files.grep(%r{^(test|spec|features)/})
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.9'
24
+ spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'minitest', '~> 5.6.1'
23
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintenance_mode
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
  - Ryan Taylor Long
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '1.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.7'
26
+ version: '1.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 5.6.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 5.6.1
55
55
  description:
56
56
  email:
57
57
  - ryan.long@goodguide.com
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 2.1.0
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ">="
@@ -117,4 +117,3 @@ test_files:
117
117
  - test/rake_task_test_env/current_state.rb
118
118
  - test/rake_task_test_env/maintenance_mode_config.rb
119
119
  - test/test_helper.rb
120
- has_rdoc: