mypath 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +40 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +44 -0
- data/VERSION +1 -0
- data/bin/mypath +11 -0
- data/lib/mypath/handler/cwd.rb +19 -0
- data/lib/mypath/handler/gem.rb +18 -0
- data/lib/mypath/handler.rb +30 -0
- data/lib/mypath.rb +15 -0
- data/mypath.gemspec +86 -0
- data/spec/dummy_gem_home/gems/dummy_gem-0.0.0/dummy_gem.rb +0 -0
- data/spec/dummy_local_dir/lib/dummy_lib.rb +0 -0
- data/spec/handler/cwd_spec.rb +48 -0
- data/spec/handler/gem_spec.rb +31 -0
- data/spec/handler_spec.rb +18 -0
- data/spec/mypath_spec.rb +5 -0
- data/spec/spec_helper.rb +12 -0
- metadata +184 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec"
|
10
|
+
gem "yard", "~> 0.6.0"
|
11
|
+
gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.5.2"
|
13
|
+
gem 'ruby-debug'
|
14
|
+
gem "rcov", ">= 0"
|
15
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
columnize (0.3.3)
|
5
|
+
diff-lcs (1.1.2)
|
6
|
+
git (1.2.5)
|
7
|
+
jeweler (1.5.2)
|
8
|
+
bundler (~> 1.0.0)
|
9
|
+
git (>= 1.2.5)
|
10
|
+
rake
|
11
|
+
linecache (0.46)
|
12
|
+
rbx-require-relative (> 0.0.4)
|
13
|
+
rake (0.9.2)
|
14
|
+
rbx-require-relative (0.0.5)
|
15
|
+
rcov (0.9.9)
|
16
|
+
rspec (2.3.0)
|
17
|
+
rspec-core (~> 2.3.0)
|
18
|
+
rspec-expectations (~> 2.3.0)
|
19
|
+
rspec-mocks (~> 2.3.0)
|
20
|
+
rspec-core (2.3.1)
|
21
|
+
rspec-expectations (2.3.0)
|
22
|
+
diff-lcs (~> 1.1.2)
|
23
|
+
rspec-mocks (2.3.0)
|
24
|
+
ruby-debug (0.10.4)
|
25
|
+
columnize (>= 0.1)
|
26
|
+
ruby-debug-base (~> 0.10.4.0)
|
27
|
+
ruby-debug-base (0.10.4)
|
28
|
+
linecache (>= 0.3)
|
29
|
+
yard (0.6.8)
|
30
|
+
|
31
|
+
PLATFORMS
|
32
|
+
ruby
|
33
|
+
|
34
|
+
DEPENDENCIES
|
35
|
+
bundler (~> 1.0.0)
|
36
|
+
jeweler (~> 1.5.2)
|
37
|
+
rcov
|
38
|
+
rspec
|
39
|
+
ruby-debug
|
40
|
+
yard (~> 0.6.0)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Daniel Higginbotham
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= mypath
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to mypath
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
9
|
+
* Fork the project
|
10
|
+
* Start a feature/bugfix branch
|
11
|
+
* Commit and push until you are happy with your contribution
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2011 Daniel Higginbotham. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
Jeweler::Tasks.new do |gem|
|
14
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
+
gem.name = "mypath"
|
16
|
+
gem.homepage = "http://github.com/flyingmachine/mypath"
|
17
|
+
gem.license = "MIT"
|
18
|
+
gem.summary = %Q{finds a local path corresponding to a given path}
|
19
|
+
gem.description = %Q{finds a local path corresponding to a given path}
|
20
|
+
gem.email = "daniel@flyingmachinestudios.com"
|
21
|
+
gem.authors = ["Daniel Higginbotham"]
|
22
|
+
gem.executables << "mypath"
|
23
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
24
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
25
|
+
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
26
|
+
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
27
|
+
end
|
28
|
+
Jeweler::RubygemsDotOrgTasks.new
|
29
|
+
|
30
|
+
require 'rspec/core'
|
31
|
+
require 'rspec/core/rake_task'
|
32
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
33
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
34
|
+
end
|
35
|
+
|
36
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
37
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
38
|
+
spec.rcov = true
|
39
|
+
end
|
40
|
+
|
41
|
+
task :default => :spec
|
42
|
+
|
43
|
+
require 'yard'
|
44
|
+
YARD::Rake::YardocTask.new
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
data/bin/mypath
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rubygems'
|
3
|
+
require 'mypath'
|
4
|
+
|
5
|
+
stdin = STDIN.read unless STDIN.tty?
|
6
|
+
paths = stdin || ARGV[0]
|
7
|
+
|
8
|
+
paths = paths.split("\n")
|
9
|
+
|
10
|
+
output = paths.collect{ |p| MyPath.local_path_for(p) }.select{ |p| !(p.nil? || p.empty?)}.uniq.join("\n")
|
11
|
+
puts output if output
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module MyPath
|
2
|
+
class Handler
|
3
|
+
class CWD < Handler
|
4
|
+
def self.can_handle?(path)
|
5
|
+
parts = path.split("/")
|
6
|
+
!Dir[*parts].empty?
|
7
|
+
end
|
8
|
+
|
9
|
+
def local_path
|
10
|
+
parts = path.split("/")
|
11
|
+
rejoined = []
|
12
|
+
parts.each_with_index do |part, index|
|
13
|
+
rejoined << parts[index..-1].join("/")
|
14
|
+
end
|
15
|
+
local = Dir[*rejoined].first
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module MyPath
|
2
|
+
class Handler
|
3
|
+
class Gem < Handler
|
4
|
+
def self.can_handle?(path)
|
5
|
+
clean_path(path) =~ /\/gems\//
|
6
|
+
end
|
7
|
+
|
8
|
+
def local_path
|
9
|
+
gem_path = /.*?\/gems\/.*?([^\/]+?-\d\..*)/.match(self.path)[1]
|
10
|
+
if ENV['GEM_HOME']
|
11
|
+
File.join(ENV['GEM_HOME'], 'gems', gem_path)
|
12
|
+
else
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module MyPath
|
2
|
+
class Handler
|
3
|
+
|
4
|
+
class << self
|
5
|
+
attr_accessor :list
|
6
|
+
|
7
|
+
def inherited(klass)
|
8
|
+
self.list |= [klass]
|
9
|
+
end
|
10
|
+
|
11
|
+
def clean_path(path)
|
12
|
+
path.gsub(/:.*/, "")
|
13
|
+
end
|
14
|
+
|
15
|
+
def for(path)
|
16
|
+
handler = self.list.detect{|h| h.can_handle?(path)}
|
17
|
+
if handler
|
18
|
+
handler.new(path)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
self.list = []
|
23
|
+
|
24
|
+
attr_accessor :path
|
25
|
+
|
26
|
+
def initialize(path)
|
27
|
+
self.path = self.class.clean_path(path)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/mypath.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
module MyPath
|
2
|
+
require 'mypath/handler'
|
3
|
+
require 'mypath/handler/gem'
|
4
|
+
require 'mypath/handler/cwd'
|
5
|
+
|
6
|
+
class << self
|
7
|
+
# Insstead of just finding one based on can_handle, it should call each in turn until it gets a path
|
8
|
+
def local_path_for(path)
|
9
|
+
handler = Handler.for(path)
|
10
|
+
if handler
|
11
|
+
handler.local_path
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/mypath.gemspec
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{mypath}
|
8
|
+
s.version = "0.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Daniel Higginbotham"]
|
12
|
+
s.date = %q{2011-07-14}
|
13
|
+
s.description = %q{finds a local path corresponding to a given path}
|
14
|
+
s.email = %q{daniel@flyingmachinestudios.com}
|
15
|
+
s.executables = ["mypath", "mypath"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE.txt",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
".rspec",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"bin/mypath",
|
30
|
+
"lib/mypath.rb",
|
31
|
+
"lib/mypath/handler.rb",
|
32
|
+
"lib/mypath/handler/cwd.rb",
|
33
|
+
"lib/mypath/handler/gem.rb",
|
34
|
+
"mypath.gemspec",
|
35
|
+
"spec/dummy_gem_home/gems/dummy_gem-0.0.0/dummy_gem.rb",
|
36
|
+
"spec/dummy_local_dir/lib/dummy_lib.rb",
|
37
|
+
"spec/handler/cwd_spec.rb",
|
38
|
+
"spec/handler/gem_spec.rb",
|
39
|
+
"spec/handler_spec.rb",
|
40
|
+
"spec/mypath_spec.rb",
|
41
|
+
"spec/spec_helper.rb"
|
42
|
+
]
|
43
|
+
s.homepage = %q{http://github.com/flyingmachine/mypath}
|
44
|
+
s.licenses = ["MIT"]
|
45
|
+
s.require_paths = ["lib"]
|
46
|
+
s.rubygems_version = %q{1.3.7}
|
47
|
+
s.summary = %q{finds a local path corresponding to a given path}
|
48
|
+
s.test_files = [
|
49
|
+
"spec/dummy_gem_home/gems/dummy_gem-0.0.0/dummy_gem.rb",
|
50
|
+
"spec/dummy_local_dir/lib/dummy_lib.rb",
|
51
|
+
"spec/handler/cwd_spec.rb",
|
52
|
+
"spec/handler/gem_spec.rb",
|
53
|
+
"spec/handler_spec.rb",
|
54
|
+
"spec/mypath_spec.rb",
|
55
|
+
"spec/spec_helper.rb"
|
56
|
+
]
|
57
|
+
|
58
|
+
if s.respond_to? :specification_version then
|
59
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
60
|
+
s.specification_version = 3
|
61
|
+
|
62
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
63
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
64
|
+
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
65
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
66
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
67
|
+
s.add_development_dependency(%q<ruby-debug>, [">= 0"])
|
68
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
69
|
+
else
|
70
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
71
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
72
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
73
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
74
|
+
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
75
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
76
|
+
end
|
77
|
+
else
|
78
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
79
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
80
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
81
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
82
|
+
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
83
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
File without changes
|
File without changes
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe MyPath::Handler::CWD do
|
4
|
+
describe ".can_handle?" do
|
5
|
+
before {
|
6
|
+
@original_dir = Dir.pwd
|
7
|
+
Dir.chdir File.join(File.dirname(__FILE__), "..")
|
8
|
+
}
|
9
|
+
|
10
|
+
after {
|
11
|
+
Dir.chdir @original_dir
|
12
|
+
}
|
13
|
+
|
14
|
+
it "handles paths that contain a file or directory contained in the current working directory" do
|
15
|
+
|
16
|
+
Dir.pwd.should include("spec")
|
17
|
+
MyPath::Handler::CWD.can_handle?("/some/path/with/handler/in/it").should be_true
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "#local_path" do
|
22
|
+
let(:dummy_local_dir) { File.join(File.dirname(__FILE__), "..", "dummy_local_dir") }
|
23
|
+
|
24
|
+
before {
|
25
|
+
@original_dir = Dir.pwd
|
26
|
+
Dir.chdir dummy_local_dir
|
27
|
+
}
|
28
|
+
|
29
|
+
after {
|
30
|
+
Dir.chdir @original_dir
|
31
|
+
}
|
32
|
+
|
33
|
+
it "returns the corresponding local path" do
|
34
|
+
handler = MyPath::Handler::CWD.new("/some/other/path/lib/dummy_lib.rb")
|
35
|
+
|
36
|
+
handler.local_path.should == "lib/dummy_lib.rb"
|
37
|
+
File.expand_path(handler.local_path).should == File.expand_path(File.join(dummy_local_dir, "lib/dummy_lib.rb"))
|
38
|
+
end
|
39
|
+
|
40
|
+
it "returns the corresponding local path for a path exactly corresponding to a relative local path" do
|
41
|
+
handler = MyPath::Handler::CWD.new("lib")
|
42
|
+
handler.local_path.should == "lib"
|
43
|
+
|
44
|
+
handler = MyPath::Handler::CWD.new("lib/dummy_lib.rb")
|
45
|
+
handler.local_path.should == "lib/dummy_lib.rb"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe MyPath::Handler::Gem do
|
4
|
+
let(:remote_dummy_gem_path) { "/srv/ruby/gems/1.8/dummy_gem-0.0.0/dummy_gem.rb" }
|
5
|
+
let(:handler) { MyPath::Handler::Gem.new(remote_dummy_gem_path) }
|
6
|
+
|
7
|
+
let(:gem_home) { File.expand_path(File.join(File.dirname(__FILE__), "../dummy_gem_home")) }
|
8
|
+
let(:local_dummy_gem_path) { File.join(gem_home, 'gems/dummy_gem-0.0.0/dummy_gem.rb') }
|
9
|
+
|
10
|
+
|
11
|
+
describe ".can_handle?" do
|
12
|
+
it "handles paths that contain /gems/" do
|
13
|
+
MyPath::Handler::Gem.can_handle?(remote_dummy_gem_path).should be_true
|
14
|
+
end
|
15
|
+
|
16
|
+
it "does not handle papths that do not contain /gems/" do
|
17
|
+
MyPath::Handler::Gem.can_handle?("/usr/sbin/test").should be_false
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "#local_path" do
|
22
|
+
it "returns a path relative to your local GEM_HOME environment variable" do
|
23
|
+
old_gem_home = ENV['GEM_HOME']
|
24
|
+
ENV['GEM_HOME'] = gem_home
|
25
|
+
|
26
|
+
handler.local_path.should == local_dummy_gem_path
|
27
|
+
|
28
|
+
ENV['GEM_HOME'] = old_gem_home
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe MyPath::Handler do
|
4
|
+
it "has a list of all handlers" do
|
5
|
+
MyPath::Handler.list.should include(MyPath::Handler::Gem)
|
6
|
+
MyPath::Handler.list.should include(MyPath::Handler::CWD)
|
7
|
+
end
|
8
|
+
|
9
|
+
it "adds a handler class to its array of handler when the class inherits from Handler" do
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
describe ".clean_path" do
|
14
|
+
it "removes ':' and everything following" do
|
15
|
+
MyPath::Handler.clean_path("/test/file:32:in 'test'").should == "/test/file"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/spec/mypath_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'mypath'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mypath
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 0.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Daniel Higginbotham
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-07-14 00:00:00 -04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
prerelease: false
|
23
|
+
type: :development
|
24
|
+
name: rspec
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
prerelease: false
|
37
|
+
type: :development
|
38
|
+
name: yard
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 7
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 6
|
48
|
+
- 0
|
49
|
+
version: 0.6.0
|
50
|
+
requirement: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
prerelease: false
|
53
|
+
type: :development
|
54
|
+
name: bundler
|
55
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 23
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 0
|
64
|
+
- 0
|
65
|
+
version: 1.0.0
|
66
|
+
requirement: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
prerelease: false
|
69
|
+
type: :development
|
70
|
+
name: jeweler
|
71
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 7
|
77
|
+
segments:
|
78
|
+
- 1
|
79
|
+
- 5
|
80
|
+
- 2
|
81
|
+
version: 1.5.2
|
82
|
+
requirement: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
prerelease: false
|
85
|
+
type: :development
|
86
|
+
name: ruby-debug
|
87
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
hash: 3
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
version: "0"
|
96
|
+
requirement: *id005
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
prerelease: false
|
99
|
+
type: :development
|
100
|
+
name: rcov
|
101
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
version: "0"
|
110
|
+
requirement: *id006
|
111
|
+
description: finds a local path corresponding to a given path
|
112
|
+
email: daniel@flyingmachinestudios.com
|
113
|
+
executables:
|
114
|
+
- mypath
|
115
|
+
- mypath
|
116
|
+
extensions: []
|
117
|
+
|
118
|
+
extra_rdoc_files:
|
119
|
+
- LICENSE.txt
|
120
|
+
- README.rdoc
|
121
|
+
files:
|
122
|
+
- .document
|
123
|
+
- .rspec
|
124
|
+
- Gemfile
|
125
|
+
- Gemfile.lock
|
126
|
+
- LICENSE.txt
|
127
|
+
- README.rdoc
|
128
|
+
- Rakefile
|
129
|
+
- VERSION
|
130
|
+
- bin/mypath
|
131
|
+
- lib/mypath.rb
|
132
|
+
- lib/mypath/handler.rb
|
133
|
+
- lib/mypath/handler/cwd.rb
|
134
|
+
- lib/mypath/handler/gem.rb
|
135
|
+
- mypath.gemspec
|
136
|
+
- spec/dummy_gem_home/gems/dummy_gem-0.0.0/dummy_gem.rb
|
137
|
+
- spec/dummy_local_dir/lib/dummy_lib.rb
|
138
|
+
- spec/handler/cwd_spec.rb
|
139
|
+
- spec/handler/gem_spec.rb
|
140
|
+
- spec/handler_spec.rb
|
141
|
+
- spec/mypath_spec.rb
|
142
|
+
- spec/spec_helper.rb
|
143
|
+
has_rdoc: true
|
144
|
+
homepage: http://github.com/flyingmachine/mypath
|
145
|
+
licenses:
|
146
|
+
- MIT
|
147
|
+
post_install_message:
|
148
|
+
rdoc_options: []
|
149
|
+
|
150
|
+
require_paths:
|
151
|
+
- lib
|
152
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
hash: 3
|
158
|
+
segments:
|
159
|
+
- 0
|
160
|
+
version: "0"
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
hash: 3
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
version: "0"
|
170
|
+
requirements: []
|
171
|
+
|
172
|
+
rubyforge_project:
|
173
|
+
rubygems_version: 1.3.7
|
174
|
+
signing_key:
|
175
|
+
specification_version: 3
|
176
|
+
summary: finds a local path corresponding to a given path
|
177
|
+
test_files:
|
178
|
+
- spec/dummy_gem_home/gems/dummy_gem-0.0.0/dummy_gem.rb
|
179
|
+
- spec/dummy_local_dir/lib/dummy_lib.rb
|
180
|
+
- spec/handler/cwd_spec.rb
|
181
|
+
- spec/handler/gem_spec.rb
|
182
|
+
- spec/handler_spec.rb
|
183
|
+
- spec/mypath_spec.rb
|
184
|
+
- spec/spec_helper.rb
|