Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:4652956
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
$ bundle --version
Bundler version 1.2.3
 
$ ls
bar foo
 
$ cat bar/Gemfile
source 'https://rubygems.org'
 
# Specify your gem's dependencies in bar.gemspec
gemspec
 
$ cat bar/bar.gemspec
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'bar/version'
 
Gem::Specification.new do |gem|
gem.name = "bar"
gem.version = Bar::VERSION
gem.authors = ["M. Scott Ford"]
gem.email = ["scott@mscottford.com"]
gem.description = %q{TODO: Write a gem description}
gem.summary = %q{TODO: Write a gem summary}
gem.homepage = ""
 
gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
 
gem.add_dependency 'httparty'
gem.add_development_dependency 'hoe'
end
 
$ cat foo/Gemfile
source 'https://rubygems.org'
 
# Specify your gem's dependencies in foo.gemspec
gemspec
 
gem 'bar', :path => '../bar'
 
$ cat foo/foo.gemspec
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'foo/version'
 
Gem::Specification.new do |gem|
gem.name = "foo"
gem.version = Foo::VERSION
gem.authors = ["M. Scott Ford"]
gem.email = ["scott@mscottford.com"]
gem.description = %q{TODO: Write a gem description}
gem.summary = %q{TODO: Write a gem summary}
gem.homepage = ""
 
gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
 
gem.add_dependency 'bar'
gem.add_development_dependency 'rspec'
end
 
$ cd foo && bundle install && cd ..
Using multi_json (1.5.0)
Using multi_xml (0.5.2)
Using httparty (0.10.2)
Using bar (0.0.1) from source at ../bar
Using diff-lcs (1.1.3)
Using foo (0.0.1) from source at .
Using rspec-core (2.12.2)
Using rspec-expectations (2.12.1)
Using rspec-mocks (2.12.2)
Using rspec (2.12.0)
Using bundler (1.2.3)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
 
$ cat foo/Gemfile.lock
PATH
remote: ../bar
specs:
bar (0.0.1)
httparty
 
PATH
remote: .
specs:
foo (0.0.1)
bar
 
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.1.3)
httparty (0.10.2)
multi_json (~> 1.0)
multi_xml (>= 0.5.2)
multi_json (1.5.0)
multi_xml (0.5.2)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.2)
 
PLATFORMS
ruby
 
DEPENDENCIES
bar!
foo!
rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.