Sha256: 3bb8f0d30078142ad98c4a7c41b94952197b33791605517de0ed195358ca5028

Contents?: true

Size: 797 Bytes

Versions: 29

Compression:

Stored size: 797 Bytes

Contents

Capricorn.runtime_gem('thor', Capricorn::THOR_VERSION)

class Thor
  class << self
    attr_accessor :real_namespace # :nodoc:
  end
  def self.namespace=(value)
    Thor.real_namespace = value
  end
  def self.namespace
    Thor.real_namespace
  end
  self.namespace = nil
end

module Thor::Util # :nodoc:
  class << self
    alias_method :old_constant_to_thor_path, :constant_to_thor_path
    alias_method :old_constant_from_thor_path, :constant_from_thor_path
  end
  
  def self.constant_to_thor_path(*args) # :nodoc:
    path = old_constant_to_thor_path(*args)
    path.sub!(/^#{Thor.namespace}:/, '') if Thor.namespace
    path
  end
  
  def self.constant_from_thor_path(path) # :nodoc:
    path = "#{Thor.namespace}:"+path if Thor.namespace
    old_constant_from_thor_path(path)
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
simonmenke-capricorn-0.2.03 lib/capricorn/extentions/thor_extentions.rb
simonmenke-capricorn-0.2.07 lib/capricorn/extentions/thor_extentions.rb
simonmenke-capricorn-0.2.25 lib/capricorn/extentions/thor_extentions.rb
simonmenke-capricorn-0.2.26 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.25 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.24 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.23 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.22 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.21 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.20 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.19 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.18 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.17 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.16 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.15 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.14 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.13 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.12 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.11 lib/capricorn/extentions/thor_extentions.rb
capricorn-0.2.10 lib/capricorn/extentions/thor_extentions.rb