Add xpath gem as submodule and run from submodule

This way it's far easier to develop against the
most recent version of the gem.
This commit is contained in:
Jonas Nicklas 2011-01-09 13:43:36 +01:00
parent 6a1a109e7f
commit 9b7e6c72e3
5 changed files with 15 additions and 5 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "xpath"]
path = xpath
url = git://github.com/jnicklas/xpath.git

View File

@ -1,5 +1,7 @@
source :rubygems
gem 'bundler', '~> 1.0'
gem 'xpath', :path => '../xpath' if ENV['XPATH_LOCAL']
gemspec
@dependencies.delete_if {|d| d.name == "xpath" }
gem 'xpath', :path => 'xpath'

View File

@ -11,6 +11,12 @@ PATH
selenium-webdriver (>= 0.0.27)
xpath (~> 0.1.2)
PATH
remote: xpath
specs:
xpath (0.1.2)
nokogiri (~> 1.3)
GEM
remote: http://rubygems.org/
specs:
@ -58,8 +64,6 @@ GEM
sinatra (1.0)
rack (>= 1.0)
weakling (0.0.4-java)
xpath (0.1.2)
nokogiri (~> 1.3)
yard (0.6.1)
PLATFORMS
@ -80,5 +84,5 @@ DEPENDENCIES
rspec (>= 2.0.0)
selenium-webdriver (>= 0.0.27)
sinatra (>= 0.9.4)
xpath (~> 0.1.2)
xpath!
yard (>= 0.5.8)

View File

@ -29,7 +29,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency("selenium-webdriver", [">= 0.0.27"])
s.add_runtime_dependency("rack", [">= 1.0.0"])
s.add_runtime_dependency("rack-test", [">= 0.5.4"])
s.add_runtime_dependency("xpath", ["~> 0.1.2"]) unless ENV['XPATH_LOCAL']
s.add_runtime_dependency("xpath", ["~> 0.1.2"])
s.add_development_dependency("sinatra", [">= 0.9.4"])
s.add_development_dependency("rspec", [">= 2.0.0"])

1
xpath Submodule

@ -0,0 +1 @@
Subproject commit 94c46fb3a2b3f7761e4f7c379a469986cb1a6bc9