Sha256: 294de4ada1d018a998f17cefd3088e59e2a515e9d3bd01f9fc65bcf26cc39fc4

Contents?: true

Size: 240 Bytes

Versions: 15

Compression:

Stored size: 240 Bytes

Contents

require 'yaml'

class TraceTree
  GemPaths = {}

  ::YAML.load(`gem env`)["RubyGems Environment"].
    select{|h| h.has_key?("GEM PATHS")}[0].
    values[0].
    each_with_index do |path, i|
      GemPaths["GemPath#{i}"] = path
    end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
trace_tree-0.2.12 lib/trace_tree/gem_paths.rb
trace_tree-0.2.11 lib/trace_tree/gem_paths.rb
trace_tree-0.2.10 lib/trace_tree/gem_paths.rb
trace_tree-0.2.9 lib/trace_tree/gem_paths.rb
trace_tree-0.2.8 lib/trace_tree/gem_paths.rb
trace_tree-0.2.7 lib/trace_tree/gem_paths.rb
trace_tree-0.2.3 lib/trace_tree/gem_paths.rb
trace_tree-0.2.2 lib/trace_tree/gem_paths.rb
trace_tree-0.2.1 lib/trace_tree/gem_paths.rb
trace_tree-0.1.5 lib/trace_tree/gem_paths.rb
trace_tree-0.1.4 lib/trace_tree/gem_paths.rb
trace_tree-0.1.3 lib/trace_tree/gem_paths.rb
trace_tree-0.1.2 lib/trace_tree/gem_paths.rb
trace_tree-0.1.1 lib/trace_tree/gem_paths.rb
trace_tree-0.1.0 lib/trace_tree/gem_paths.rb