Skip to content

Instantly share code, notes, and snippets.

@mscottford
Created January 27, 2013 19:53
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 mscottford/4650109 to your computer and use it in GitHub Desktop.
Save mscottford/4650109 to your computer and use it in GitHub Desktop.
$ bundle gem bugtest
create bugtest/Gemfile
create bugtest/Rakefile
create bugtest/LICENSE.txt
create bugtest/README.md
create bugtest/.gitignore
create bugtest/bugtest.gemspec
create bugtest/lib/bugtest.rb
create bugtest/lib/bugtest/version.rb
Initializating git repo in /Users/mscottford/src/bundler/testcases/i1041/bugtest
$ cd bugtest
$ bundle --version
Bundler version 1.2.3
$ gem --version
1.8.23
$ cat bugtest.gemspec
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'bugtest/version'
Gem::Specification.new do |gem|
gem.name = "bugtest"
gem.version = Bugtest::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_runtime_dependency 'haml', '~> 3.1.7'
gem.add_development_dependency 'rspec-core', '~> 2.12.2'
end
$ cat Gemfile
source 'https://rubygems.org'
# Specify your gem's dependencies in bugtest.gemspec
gemspec
$ bundle
Fetching gem metadata from https://rubygems.org/.....
Using haml (3.1.7)
Using bugtest (0.0.1) from source at /Users/mscottford/src/bundler/testcases/i1041/bugtest
Using rspec-core (2.12.2)
Using bundler (1.2.3)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
$ cat Gemfile.lock
PATH
remote: .
specs:
bugtest (0.0.1)
haml (~> 3.1.7)
GEM
remote: https://rubygems.org/
specs:
haml (3.1.7)
rspec-core (2.12.2)
PLATFORMS
ruby
DEPENDENCIES
bugtest!
rspec-core (~> 2.12.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment