abstract_feature_branch 1.1.0 → 1.1.1

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: 10b3189e83e418a64b851efe68587d4277cc370d
4
- data.tar.gz: 4089ac0e1c27b0ae0df91e17fa20312ec65b941b
3
+ metadata.gz: 60dae0db7cb3e49d719eb59a65c186f9884a69e9
4
+ data.tar.gz: 017e10b3fa79ec92f3b8644896f6a1726b9e2284
5
5
  SHA512:
6
- metadata.gz: f1238ecd211de61432380e60b0f85fbcd8a50c03cb9f54588ec0257ca0d6f9a8227087442f1749bfe3027de9108fe38c73eb857c4d681dc564b74492c03838eb
7
- data.tar.gz: 6569fd5e1a1b298e8a9c7791bd0f0fdbdde1b5c7076d47373a4cd27e49ec994c2c25bd1a61b69387ccb00f7ce94de7f97883e7cbc8199a91f888f3ebddd9fab4
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.0.0'</pre>
41
- - Rails (~> 2.0): Add the following to config/environment.rb <pre>config.gem 'abstract_feature_branch', :version => '1.0.0'</pre>
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.0.0</pre>
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.0
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.0"
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>, ["= 3.0.6"])
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>, ["= 3.0.6"])
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>, ["= 3.0.6"])
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
@@ -1,6 +1,7 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gem 'deep_merge', '1.0.0', :require => false #avoid loading into memory to use deep_merge only if Rails is unavailable
4
+ gem 'redis', '~> 3.0.0', :require => false
4
5
 
5
6
  group :development do
6
7
  gem 'jeweler', '1.8.8'
@@ -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
- AbstractFeatureBranch.user_features_storage.flushall
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
- AbstractFeatureBranch.user_features_storage.flushall
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.0
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.6
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.6
40
+ version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jeweler
43
43
  requirement: !ruby/object:Gem::Requirement