Skip to content

Instantly share code, notes, and snippets.

@Who828
Created January 15, 2014 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Who828/8431402 to your computer and use it in GitHub Desktop.
Save Who828/8431402 to your computer and use it in GitHub Desktop.
Smits-MacBook-Pro:11 Who$ bash script
+ mkdir -p /tmp/repro-2122
+ cd /tmp/repro-2122
+ bundle gem json1
create json1/Gemfile
create json1/Rakefile
create json1/LICENSE.txt
create json1/README.md
create json1/.gitignore
create json1/json1.gemspec
create json1/lib/json1.rb
create json1/lib/json1/version.rb
Initializing git repo in /private/tmp/repro-2122/json1
+ cd json1
+ cat
+ gem build json1.gemspec
WARNING: licenses is empty, but is recommended. Use a license abbreviation from:
http://opensource.org/licenses/alphabetical
WARNING: no homepage specified
WARNING: open-ended dependency on json (>= 1.7.3) is not recommended
if json is semantically versioned, use:
add_runtime_dependency 'json', '~> 1.7', '>= 1.7.3'
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: json1
Version: 0.0.1
File: json1-0.0.1.gem
+ cd ..
+ bundle gem json2
create json2/Gemfile
create json2/Rakefile
create json2/LICENSE.txt
create json2/README.md
create json2/.gitignore
create json2/json2.gemspec
create json2/lib/json2.rb
create json2/lib/json2/version.rb
Initializing git repo in /private/tmp/repro-2122/json2
+ cd json2
+ cat
+ gem build json2.gemspec
WARNING: licenses is empty, but is recommended. Use a license abbreviation from:
http://opensource.org/licenses/alphabetical
WARNING: no homepage specified
WARNING: See http://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: json2
Version: 0.0.1
File: json2-0.0.1.gem
+ cd ..
+ mkdir test-project
+ cd test-project
+ gem unpack ../json1/json1-0.0.1.gem
Unpacked gem: '/private/tmp/repro-2122/test-project/json1-0.0.1'
+ gem unpack ../json2/json2-0.0.1.gem
Unpacked gem: '/private/tmp/repro-2122/test-project/json2-0.0.1'
+ cat
+ bundle install
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Installing json 1.7.4
Using json1 0.0.1 from source at json1-0.0.1/
Using json2 0.0.1 from source at json2-0.0.1/
Using bundler 1.6.0.pre.1
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment