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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73e3ea8bac7b5d86a2361282c395524039ad9ac5
4
- data.tar.gz: 2160f9152209cf5e3a51e9a5f470031fa3561469
3
+ metadata.gz: 39c4f8aecce089f175cc513abd3aafad9496eed3
4
+ data.tar.gz: eee7c48b9f9a6e8f10e834f472cc46257399a155
5
5
  SHA512:
6
- metadata.gz: f6de2cebd3d561fb4e42daff405bf075e9b46f01da13f65bb56bdf55e7c3adb71a4e6e3df11b1db6248aace07f78b4aa1ad88d6427ce5aaecccd2ee2f76f2e07
7
- data.tar.gz: 2514d572fdff4b7ed0db2995948f67021fcc1ba86309a9e4f16d346c94a451fa382c250ebd7e2abf9ec1898223db5515ac7473c1d73c7afaaf05bb6437fb6324
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.0'</pre>
39
- - Rails (~> 2.0): Add the following to config/environment.rb <pre>config.gem 'abstract_feature_branch', :version => '0.7.0'</pre>
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.0</pre>
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.0
1
+ 0.7.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "abstract_feature_branch"
8
- s.version = "0.7.0"
8
+ s.version = "0.7.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"]
@@ -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)
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: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Annas "Andy" Maleh