Skip to content

Commit

Permalink
Add xpath gem as submodule and run from submodule
Browse files Browse the repository at this point in the history
This way it's far easier to develop against the
most recent version of the gem.
  • Loading branch information
jnicklas committed Jan 9, 2011
1 parent 6a1a109 commit 9b7e6c7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "xpath"]
path = xpath
url = git://github.com/jnicklas/xpath.git
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -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'
10 changes: 7 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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)
2 changes: 1 addition & 1 deletion capybara.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
1 change: 1 addition & 0 deletions xpath
Submodule xpath added at 94c46f

0 comments on commit 9b7e6c7

Please sign in to comment.