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 +4 -4
- data/README.md +6 -0
- data/Rakefile +3 -0
- data/lib/maintenance_mode/version.rb +1 -1
- data/maintenance_mode.gemspec +13 -10
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2cca08b48be4097ada632ac661180edc79cd64f
|
4
|
+
data.tar.gz: 6b025b13fdb30838929e7c2696f237d0f2f2b085
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/maintenance_mode.gemspec
CHANGED
@@ -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 =
|
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 =
|
13
|
-
spec.license =
|
12
|
+
spec.homepage = 'http://github.com/goodguide/maintenance_mode'
|
13
|
+
spec.license = 'MIT'
|
14
14
|
|
15
|
-
spec.
|
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
|
-
|
21
|
-
spec.
|
22
|
-
spec.
|
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.
|
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.
|
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.
|
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:
|
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:
|
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:
|
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:
|