# frozen_string_literal: true ## # Used Internally. Wraps a Dependency object to also track which spec # contained the Dependency. class Gem::Resolver::DependencyRequest ## # The wrapped Gem::Dependency attr_reader :dependency ## # The request for this dependency. attr_reader :requester ## # Creates a new DependencyRequest for +dependency+ from +requester+. # +requester may be nil if the request came from a user. def initialize dependency, requester @dependency = dependency @requester = requester end def == other # :nodoc: case other when Gem::Dependency @dependency == other when Gem::Resolver::DependencyRequest @dependency == other.dependency && @requester == other.requester else false end end ## # Is this dependency a development dependency? def development? @dependency.type == :development end ## # Does this dependency request match +spec+? # # NOTE: #match? only matches prerelease versions when #dependency is a # prerelease dependency. def match? spec, allow_prerelease = false @dependency.match? spec, nil, allow_prerelease end ## # Does this dependency request match +spec+? # # NOTE: #matches_spec? matches prerelease versions. See also #match? def matches_spec?(spec) @dependency.matches_spec? spec end ## # The name of the gem this dependency request is requesting. def name @dependency.name end def type @dependency.type end ## # Indicate that the request is for a gem explicitly requested by the user def explicit? @requester.nil? end ## # Indicate that the request is for a gem requested as a dependency of # another gem def implicit? !explicit? end ## # Return a String indicating who caused this request to be added (only # valid for implicit requests) def request_context @requester ? @requester.request : "(unknown)" end def pretty_print q # :nodoc: q.group 2, '[Dependency request ', ']' do q.breakable q.text @dependency.to_s q.breakable q.text ' requested by ' q.pp @requester end end ## # The version requirement for this dependency request def requirement @dependency.requirement end def to_s # :nodoc: @dependency.to_s end end 3f7d49cfa13871c38d10c1967282ca6b'>commitdiff
path: root/enc/iso_8859_15.c
AgeCommit message (Expand)Author
2016-12-10Merge Onigmo 6.0.0naruse
2016-07-24* regenc.h/c, include/ruby/oniguruma.h, enc/ascii.c, big5.c, cp949.c,duerst
2016-07-11* enc/iso_8859_4.c, enc/iso_8859_10.c, enc/iso_8859_14.c,duerst
2016-07-10* test/ruby/enc/test_case_comprehensive.rb: Changed testing logic in toduerst
2016-07-06* enc/iso_8859_1.c, enc/iso_8859_15.c, enc/iso_8859_16.c:duerst
2016-07-06* remove trailing spaces.svn
2016-07-06* enc/iso_8859_15.c, test/ruby/enc/test_case_comprehensive.rb:duerst
2016-06-11iso_8859.h: SHARP_snobu
2016-06-07* regenc.h/c: Rename onigenc_not_support_case_map toduerst
2016-05-22 * include/ruby/oniguruma.h: Extend OnigEncodingTypeDefine to define aduerst
2014-09-15* reg*.c: Merge Onigmo 5.15.0 38a870960aa7370051a3544naruse
2012-02-17* Merge Onigmo-5.13.1. [ruby-dev:45057] [Feature #5820]naruse
2008-07-01forgot to commitshyouhei
2008-01-15* enc/*: add ARG_UNUSED.naruse
2008-01-13* enc/make_encdb.h: sort encoding names by original name.naruse
2008-01-03* enc/euc_jp.c: remove eucjp_ prefix. breakpoint can be specified asakr
2008-01-03* include/ruby/oniguruma.h: Oniguruma 1.9.1 merged.matz
2007-12-21* common.mk (enc.mk): depends on $(RBCONFIG) instead of rbconfig.rb.nobu
2007-12-20* common.mk (enc.mk): depends on rbconfig.rb.nobu
2007-12-20* enc/iso_8859_{1..16}.c: renamed.nobu