abstract_feature_branch 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/VERSION +1 -1
- data/abstract_feature_branch.gemspec +4 -4
- data/ruby187.Gemfile +1 -0
- data/spec/ext/feature_branch__feature_branch_per_user_spec.rb +10 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60dae0db7cb3e49d719eb59a65c186f9884a69e9
|
4
|
+
data.tar.gz: 017e10b3fa79ec92f3b8644896f6a1726b9e2284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 885a2e9d627e97709b811f2d01f4ec46f31728cda35bff3b2e65be40e2eb3306a1e83a067c0282017059021b0e569d3df43d7e08eb45b4feef7b71bd72bf1b68
|
7
|
+
data.tar.gz: e23f2de2aa5481f26b2dfca13e7140eefb2e183337899b3aa3e2e6d5e192cd3e0e1d849aafbdea95832e6d4ea83a006a5ddaa03b7c884f0dcb120670a68c1359
|
data/README.md
CHANGED
@@ -37,15 +37,15 @@ Setup
|
|
37
37
|
### Rails Application Use
|
38
38
|
|
39
39
|
1. Configure Rubygem
|
40
|
-
- Rails (~> 4.0.0 or ~> 3.0): Add the following to Gemfile <pre>gem 'abstract_feature_branch', '1.
|
41
|
-
- Rails (~> 2.0): Add the following to config/environment.rb <pre>config.gem 'abstract_feature_branch', :version => '1.
|
40
|
+
- Rails (~> 4.0.0 or ~> 3.0): Add the following to Gemfile <pre>gem 'abstract_feature_branch', '1.1.1'</pre>
|
41
|
+
- Rails (~> 2.0): Add the following to config/environment.rb <pre>config.gem 'abstract_feature_branch', :version => '1.1.1'</pre>
|
42
42
|
2. Generate <code>config/initializers/abstract_feature_branch.rb</code>, <code>lib/tasks/abstract_feature_branch.rake</code>, <code>config/features.yml</code> and <code>config/features.local.yml</code> in your Rails app directory by running <pre>rails g abstract_feature_branch:install</pre>
|
43
43
|
3. (Optional) Generate <code>config/features/[context_path].yml</code> in your Rails app directory by running <pre>rails g abstract_feature_branch:context context_path</pre> (more details under [**instructions**](#instructions))
|
44
44
|
4. (Optional and rarely needed) Customize configuration in <code>config/initializers/abstract_feature_branch.rb</code> (can be useful for changing location of feature files in Rails application or troubleshooting a specific Rails environment feature configuration)
|
45
45
|
|
46
46
|
### Ruby Application General Use
|
47
47
|
|
48
|
-
1. <pre>gem install abstract_feature_branch -v 1.
|
48
|
+
1. <pre>gem install abstract_feature_branch -v 1.1.1</pre>
|
49
49
|
2. Add code <code>require 'abstract_feature_branch'</code>
|
50
50
|
3. Create <code>config/features.yml</code> under <code>AbstractFeatureBranch.application_root</code> and fill it with content similar to that of the sample <code>config/features.yml</code> mentioned under [**instructions**](#instructions).
|
51
51
|
4. (Optional) Create <code>config/features.local.yml</code> under <code>AbstractFeatureBranch.application_root</code> (more details under [**instructions**](#instructions))
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "abstract_feature_branch"
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Annas \"Andy\" Maleh"]
|
@@ -74,16 +74,16 @@ Gem::Specification.new do |s|
|
|
74
74
|
|
75
75
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
76
76
|
s.add_runtime_dependency(%q<deep_merge>, ["= 1.0.0"])
|
77
|
-
s.add_runtime_dependency(%q<redis>, ["
|
77
|
+
s.add_runtime_dependency(%q<redis>, ["~> 3.0.0"])
|
78
78
|
s.add_development_dependency(%q<jeweler>, ["= 1.8.8"])
|
79
79
|
else
|
80
80
|
s.add_dependency(%q<deep_merge>, ["= 1.0.0"])
|
81
|
-
s.add_dependency(%q<redis>, ["
|
81
|
+
s.add_dependency(%q<redis>, ["~> 3.0.0"])
|
82
82
|
s.add_dependency(%q<jeweler>, ["= 1.8.8"])
|
83
83
|
end
|
84
84
|
else
|
85
85
|
s.add_dependency(%q<deep_merge>, ["= 1.0.0"])
|
86
|
-
s.add_dependency(%q<redis>, ["
|
86
|
+
s.add_dependency(%q<redis>, ["~> 3.0.0"])
|
87
87
|
s.add_dependency(%q<jeweler>, ["= 1.8.8"])
|
88
88
|
end
|
89
89
|
end
|
data/ruby187.Gemfile
CHANGED
@@ -7,7 +7,11 @@ describe 'feature_branch object extensions' do
|
|
7
7
|
AbstractFeatureBranch.logger.warn 'Environment variable ABSTRACT_FEATURE_BRANCH_FEATURE1 already set, potentially conflicting with another test' if ENV.keys.include?('ABSTRACT_FEATURE_BRANCH_FEATURE1')
|
8
8
|
AbstractFeatureBranch.logger.warn 'Environment variable Abstract_Feature_Branch_Feature2 already set, potentially conflicting with another test' if ENV.keys.include?('Abstract_Feature_Branch_Feature2')
|
9
9
|
AbstractFeatureBranch.logger.warn 'Environment variable abstract_feature_branch_feature3 already set, potentially conflicting with another test' if ENV.keys.include?('abstract_feature_branch_feature3')
|
10
|
-
|
10
|
+
begin
|
11
|
+
AbstractFeatureBranch.user_features_storage.flushall
|
12
|
+
rescue => e
|
13
|
+
#noop
|
14
|
+
end
|
11
15
|
end
|
12
16
|
after do
|
13
17
|
ENV.delete('ABSTRACT_FEATURE_BRANCH_FEATURE1')
|
@@ -16,7 +20,11 @@ describe 'feature_branch object extensions' do
|
|
16
20
|
AbstractFeatureBranch.application_root = @app_root_backup
|
17
21
|
AbstractFeatureBranch.application_environment = @app_env_backup
|
18
22
|
AbstractFeatureBranch.unload_application_features
|
19
|
-
|
23
|
+
begin
|
24
|
+
AbstractFeatureBranch.user_features_storage.flushall
|
25
|
+
rescue => e
|
26
|
+
#noop
|
27
|
+
end
|
20
28
|
end
|
21
29
|
describe '#feature_branch' do
|
22
30
|
context 'per user' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstract_feature_branch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Annas "Andy" Maleh
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.0.
|
33
|
+
version: 3.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.0.
|
40
|
+
version: 3.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jeweler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|