simple_toggle 1.0.1 → 1.0.2
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 -6
- data/lib/generators/templates/migrations/create_simple_toggles.rb +1 -1
- data/lib/simple_toggle/version.rb +1 -1
- data/simple_toggle.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f76487f261fb67eeddd262b27b04e5597f7008
|
4
|
+
data.tar.gz: 57389c4ae6e41d977c88d0279f2c5f1388ce12ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d7051867b0471a28ee30157c3f907e58629dc45b65c1a7625829aaf0dac64b2adc1320078f748fe579677f3a25b2949a6703ce1909252df3dc53f0032c366f6
|
7
|
+
data.tar.gz: 0479f06b0375ac5f2b78958c72e4175cb1e9d0f35e50cab912998f63d6d123a2758eb574425a10231440a53c56ae3ab86d4d481388991975ca695313cd366eb0
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ TODO: Write a gem description
|
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem '
|
9
|
+
gem 'simple_toggle'
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
@@ -14,28 +14,28 @@ And then execute:
|
|
14
14
|
|
15
15
|
Or install it yourself as:
|
16
16
|
|
17
|
-
$ gem install
|
17
|
+
$ gem install simple_toggle
|
18
18
|
|
19
19
|
## Migration
|
20
20
|
|
21
|
-
$ rails generate
|
21
|
+
$ rails generate simple_toggle:install
|
22
22
|
$ rake db:migrate
|
23
23
|
|
24
24
|
## Usage
|
25
25
|
|
26
26
|
### Executing code based on feature
|
27
27
|
|
28
|
-
|
28
|
+
SimpleToggle::Toggle.when_active(:featurename) do
|
29
29
|
# feature code here
|
30
30
|
end
|
31
31
|
|
32
32
|
### Testing if a feature is active
|
33
33
|
|
34
|
-
|
34
|
+
SimpleToggle::Toggle.active?(:featurename)
|
35
35
|
|
36
36
|
### Ensuring a feature is active
|
37
37
|
|
38
|
-
|
38
|
+
SimpleToggle::Toggle.require(:featurename)
|
39
39
|
|
40
40
|
## Contributing
|
41
41
|
|
data/simple_toggle.gemspec
CHANGED
@@ -21,6 +21,6 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.add_development_dependency 'rspec', '~> 3.1', '>= 3.1.0'
|
22
22
|
gem.add_development_dependency 'sqlite3', '~> 1.0'
|
23
23
|
|
24
|
-
gem.add_runtime_dependency 'activerecord', '~> 4.
|
24
|
+
gem.add_runtime_dependency 'activerecord', '~> 4.0'
|
25
25
|
gem.add_runtime_dependency 'rails', '~> 4.0'
|
26
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_toggle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trevor Oke
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '4.
|
53
|
+
version: '4.0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '4.
|
60
|
+
version: '4.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rails
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|