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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 869a6ade85707be2b0d5fbb1b052e49719a5aadb
4
- data.tar.gz: 05fd00d8dc8461fdf3aced5a720a07fde5d0da96
3
+ metadata.gz: d4f76487f261fb67eeddd262b27b04e5597f7008
4
+ data.tar.gz: 57389c4ae6e41d977c88d0279f2c5f1388ce12ec
5
5
  SHA512:
6
- metadata.gz: c094e6a24649714407402f8c68c3cd4e1f850d783296db4115f161dd672c15fa4c977b3b7dfe5d15add057ce7c91983aea48218fd2f104eca919fd97e0597725
7
- data.tar.gz: a6407a408e287e8c8879d6b15cce78683caef239fc884e3bd46ada32f2e8711ef492cff767b9b01c292061344171d9a9940d6436dc04f3e2839b1c5a45ceaf67
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 'feature_flag'
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 feature_flag
17
+ $ gem install simple_toggle
18
18
 
19
19
  ## Migration
20
20
 
21
- $ rails generate feature_flag:install
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
- FeatureFlag::Toggle.when_active(:featurename) do
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
- FeatureFlag::Toggle.active?(:featurename)
34
+ SimpleToggle::Toggle.active?(:featurename)
35
35
 
36
36
  ### Ensuring a feature is active
37
37
 
38
- FeatureFlag::Toggle.require(:featurename)
38
+ SimpleToggle::Toggle.require(:featurename)
39
39
 
40
40
  ## Contributing
41
41
 
@@ -1,4 +1,4 @@
1
- class CreateSimpleToggleToggles < ActiveRecord::Migration
1
+ class CreateSimpleToggles < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :simple_toggle_toggles do |t|
4
4
  t.string :name
@@ -1,3 +1,3 @@
1
1
  module SimpleToggle
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -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.2'
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.1
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.2'
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.2'
60
+ version: '4.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rails
63
63
  requirement: !ruby/object:Gem::Requirement