abstract_feature_branch 0.7.0 → 0.7.1
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 -3
- data/VERSION +1 -1
- data/abstract_feature_branch.gemspec +1 -1
- data/lib/abstract_feature_branch.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39c4f8aecce089f175cc513abd3aafad9496eed3
|
4
|
+
data.tar.gz: eee7c48b9f9a6e8f10e834f472cc46257399a155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55903d3949b2f5c619d8d11ef45f829df1e1f9fdfcde2f714db9fe807eef138a9d9f758e345f9a8cd5941d2be6901a6cea57ed4b3aa1d712c14d61a7a2d7ea0d
|
7
|
+
data.tar.gz: 5a85cb2406e37bb19f9adb933d6180123abfef0c48f2f0ca2ca7f2a9cbce36de2e0584d8123f883b841b44632111e3f3a1dbf35857704a2e1d6c5f95536df6bb
|
data/README.md
CHANGED
@@ -35,15 +35,15 @@ Setup
|
|
35
35
|
### Rails Application
|
36
36
|
|
37
37
|
1. Configure Rubygem
|
38
|
-
- Rails (~> 4.0.0 or ~> 3.0): Add the following to Gemfile <pre>gem 'abstract_feature_branch', '0.7.
|
39
|
-
- Rails (~> 2.0): Add the following to config/environment.rb <pre>config.gem 'abstract_feature_branch', :version => '0.7.
|
38
|
+
- Rails (~> 4.0.0 or ~> 3.0): Add the following to Gemfile <pre>gem 'abstract_feature_branch', '0.7.1'</pre>
|
39
|
+
- Rails (~> 2.0): Add the following to config/environment.rb <pre>config.gem 'abstract_feature_branch', :version => '0.7.1'</pre>
|
40
40
|
2. Generate <code>config/initializers/abstract_feature_branch.rb</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>
|
41
41
|
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**)
|
42
42
|
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)
|
43
43
|
|
44
44
|
### Ruby Application (general use)
|
45
45
|
|
46
|
-
1. <pre>gem install abstract_feature_branch -v 0.7.
|
46
|
+
1. <pre>gem install abstract_feature_branch -v 0.7.1</pre>
|
47
47
|
2. Add code <code>require 'abstract_feature_branch'</code>
|
48
48
|
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**.
|
49
49
|
4. (Optional) Create <code>config/features.local.yml</code> under <code>AbstractFeatureBranch.application_root</code> (more details under **instructions**)
|
@@ -283,6 +283,9 @@ the former if overlap in features occurs:
|
|
283
283
|
Release Notes
|
284
284
|
-------------
|
285
285
|
|
286
|
+
Version 0.7.1:
|
287
|
+
- Fixed undefined method issue with using <code>AbstractFeatureBranch.load_application_features</code> to improve first use performance
|
288
|
+
|
286
289
|
Version 0.7.0:
|
287
290
|
- Added support for general Ruby use (without Rails) by externalizing AbstractFeatureBranch.application_root and AbstractFeatureBranch.application_environment. Added initializer to optionally configure them. Supported case-insensitive feature names.
|
288
291
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
@@ -66,6 +66,7 @@ module AbstractFeatureBranch
|
|
66
66
|
@environment_features[environment] ||= load_environment_features(environment)
|
67
67
|
end
|
68
68
|
def self.load_environment_features(environment)
|
69
|
+
@environment_features ||= {}
|
69
70
|
features[environment] ||= {}
|
70
71
|
local_features[environment] ||= {}
|
71
72
|
@environment_features[environment] = features[environment].merge(local_features[environment]).merge(environment_variable_overrides)
|