diff --git a/Gemfile.lock b/Gemfile.lock index e6bfbcc..b01384b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,40 +1,41 @@ PATH remote: . specs: - jim (0.0.1) + jim (0.0.2) rails (~> 4) redcarpet GEM remote: https://rubygems.org/ specs: - actionmailer (4.0.3) - actionpack (= 4.0.3) - mail (~> 2.5.4) - actionpack (4.0.3) - activesupport (= 4.0.3) - builder (~> 3.1.0) - erubis (~> 2.7.0) + actionmailer (4.1.16) + actionpack (= 4.1.16) + actionview (= 4.1.16) + mail (~> 2.5, >= 2.5.4) + actionpack (4.1.16) + actionview (= 4.1.16) + activesupport (= 4.1.16) rack (~> 1.5.2) rack-test (~> 0.6.2) - activemodel (4.0.3) - activesupport (= 4.0.3) - builder (~> 3.1.0) - activerecord (4.0.3) - activemodel (= 4.0.3) - activerecord-deprecated_finders (~> 1.0.2) - activesupport (= 4.0.3) - arel (~> 4.0.0) - activerecord-deprecated_finders (1.0.3) - activesupport (4.0.3) - i18n (~> 0.6, >= 0.6.4) - minitest (~> 4.2) - multi_json (~> 1.3) + actionview (4.1.16) + activesupport (= 4.1.16) + builder (~> 3.1) + erubis (~> 2.7.0) + activemodel (4.1.16) + activesupport (= 4.1.16) + builder (~> 3.1) + activerecord (4.1.16) + activemodel (= 4.1.16) + activesupport (= 4.1.16) + arel (~> 5.0.0) + activesupport (4.1.16) + i18n (~> 0.6, >= 0.6.9) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) thread_safe (~> 0.1) - tzinfo (~> 0.3.37) - arel (4.0.2) - atomic (1.1.15) - builder (3.1.4) + tzinfo (~> 1.1) + arel (5.0.1.20140414130214) + builder (3.2.3) capybara (2.2.1) mime-types (>= 1.16) nokogiri (>= 1.3.3) @@ -42,21 +43,21 @@ GEM rack-test (>= 0.5.4) xpath (~> 2.0) coderay (1.1.0) - diff-lcs (1.2.5) + concurrent-ruby (1.1.5) + diff-lcs (1.3) erubis (2.7.0) - hike (1.2.3) - i18n (0.6.9) - mail (2.5.4) - mime-types (~> 1.16) - treetop (~> 1.4.8) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + json (1.8.6) + mail (2.7.1) + mini_mime (>= 0.1.1) method_source (0.8.2) mime-types (1.25.1) + mini_mime (1.0.1) mini_portile (0.5.2) - minitest (4.7.5) - multi_json (1.9.0) + minitest (5.11.3) nokogiri (1.6.1) mini_portile (~> 0.5.0) - polyglot (0.3.4) pry (0.9.12.6) coderay (~> 1.0) method_source (~> 0.8) @@ -64,51 +65,50 @@ GEM rack (1.5.2) rack-test (0.6.2) rack (>= 1.0) - rails (4.0.3) - actionmailer (= 4.0.3) - actionpack (= 4.0.3) - activerecord (= 4.0.3) - activesupport (= 4.0.3) + rails (4.1.16) + actionmailer (= 4.1.16) + actionpack (= 4.1.16) + actionview (= 4.1.16) + activemodel (= 4.1.16) + activerecord (= 4.1.16) + activesupport (= 4.1.16) bundler (>= 1.3.0, < 2.0) - railties (= 4.0.3) - sprockets-rails (~> 2.0.0) - railties (4.0.3) - actionpack (= 4.0.3) - activesupport (= 4.0.3) + railties (= 4.1.16) + sprockets-rails (~> 2.0) + railties (4.1.16) + actionpack (= 4.1.16) + activesupport (= 4.1.16) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) - rake (10.1.1) - redcarpet (3.1.1) - rspec-core (2.14.7) - rspec-expectations (2.14.5) + rake (12.3.2) + redcarpet (3.4.0) + rspec-collection_matchers (1.1.3) + rspec-expectations (>= 2.99.0.beta1) + rspec-core (2.99.2) + rspec-expectations (2.99.2) diff-lcs (>= 1.1.3, < 2.0) - rspec-mocks (2.14.6) - rspec-rails (2.14.1) + rspec-mocks (2.99.4) + rspec-rails (2.99.0) actionpack (>= 3.0) activemodel (>= 3.0) activesupport (>= 3.0) railties (>= 3.0) - rspec-core (~> 2.14.0) - rspec-expectations (~> 2.14.0) - rspec-mocks (~> 2.14.0) + rspec-collection_matchers + rspec-core (~> 2.99.0) + rspec-expectations (~> 2.99.0) + rspec-mocks (~> 2.99.0) slop (3.4.7) - sprockets (2.12.1) - hike (~> 1.2) - multi_json (~> 1.0) - rack (~> 1.0) - tilt (~> 1.1, != 1.3.0) - sprockets-rails (2.0.1) + sprockets (3.7.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (2.3.3) actionpack (>= 3.0) activesupport (>= 3.0) - sprockets (~> 2.8) - thor (0.18.1) - thread_safe (0.2.0) - atomic (>= 1.1.7, < 2) - tilt (1.4.1) - treetop (1.4.15) - polyglot - polyglot (>= 0.3.1) - tzinfo (0.3.39) + sprockets (>= 2.8, < 4.0) + thor (0.20.3) + thread_safe (0.3.6) + tzinfo (1.2.5) + thread_safe (~> 0.1) xpath (2.0.0) nokogiri (~> 1.3) @@ -119,4 +119,7 @@ DEPENDENCIES capybara jim! pry - rspec-rails + rspec-rails (= 2.99.0) + +BUNDLED WITH + 1.16.5 diff --git a/jim.gemspec b/jim.gemspec index 5bea577..9400080 100644 --- a/jim.gemspec +++ b/jim.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.add_dependency "rails", "~> 4" s.add_dependency "redcarpet" - s.add_development_dependency "rspec-rails" + s.add_development_dependency "rspec-rails", "2.99.0" s.add_development_dependency "capybara" s.add_development_dependency "pry" end diff --git a/lib/jim/feature_manager.rb b/lib/jim/feature_manager.rb index a4b40a3..bd2e320 100644 --- a/lib/jim/feature_manager.rb +++ b/lib/jim/feature_manager.rb @@ -1,3 +1,5 @@ +require 'yaml' + class Jim::FeatureManager def self.instance @instance ||= new(YAML.load_file(Rails.root.join("config", "features.yml")))