Sha256: f08a74b07ea65aa72cd9c5f01a993519a6891aa5cea86a16f060d0311920960a
Contents?: true
Size: 538 Bytes
Versions: 6
Compression:
Stored size: 538 Bytes
Contents
module Rails4Upgrade class GemDependency < Struct.new(:name, :requirement) RAILS_GEMS = Set.new( %w(actionmailer actionpack activemodel activerecord activesupport railties rails) ).freeze def initialize(name, requirement) requirement = requirement.is_a?(::Gem::Requirement) ? requirement : ::Gem::Requirement.new(requirement) super end def rails? RAILS_GEMS.include?(name) end def satisfied_by_rails4? requirement.satisfied_by?(::Gem::Version.new("4.0.0")) end end end
Version data entries
6 entries across 6 versions & 1 rubygems