Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from simplybusiness/allow_iterating_over_features
Browse files Browse the repository at this point in the history
Add support for :each to FeaturesByName instances
  • Loading branch information
Joshua Fleck committed Apr 22, 2015
2 parents 9f92c29 + 46c87d6 commit 4c26e99
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
flip_fab (0.0.1)
flip_fab (1.0.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion example/rails_app/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ../../
specs:
flip_fab (0.0.1)
flip_fab (1.0.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion lib/flip_fab/features_by_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ def with_context context
FeaturesByName.new Hash[@features_by_name.map{|name, feature| [name, (feature.with_context context)]}]
end

def_delegators :@features_by_name, :[]=, :clear, :count
def_delegators :@features_by_name, :[]=, :clear, :count, :each
end
end
2 changes: 1 addition & 1 deletion lib/flip_fab/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module FlipFab
VERSION = '0.0.1'
VERSION = '1.0.0'
end

0 comments on commit 4c26e99

Please sign in to comment.