Skip to content

Commit

Permalink
Remove Helpers.match_version?
Browse files Browse the repository at this point in the history
As of [#267], we no longer check the versions of our dependencies,
therefor `Helpers.match_version?` is unused and no longer necessary.

[#267]: #267
  • Loading branch information
seanpdoyle committed Nov 14, 2015
1 parent 571a71e commit 1a1cf4b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions lib/ember-cli/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ module EmberCli
module Helpers
extend self

def match_version?(version, requirements)
version = Gem::Version.new(version)

Array.wrap(requirements).any? do |requirement|
requirement = Gem::Requirement.new(requirement)
requirement.satisfied_by?(version)
end
end

def which(cmd)
exts = ENV.fetch("PATHEXT", ?;).split(?;, -1).uniq

Expand Down Expand Up @@ -41,8 +32,11 @@ def default_environment
end

def rails_config_for(key)
config = Rails.configuration
config.respond_to?(key) ? config.public_send(key) : yield
if Rails.configuration.respond_to?(key)
Rails.configuration.public_send(key)
else
yield
end
end
end
end

0 comments on commit 1a1cf4b

Please sign in to comment.