Skip to content

Instantly share code, notes, and snippets.

@agis
Created October 4, 2015 10:14
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 agis/2e753ebd4d89fc81d644 to your computer and use it in GitHub Desktop.
Save agis/2e753ebd4d89fc81d644 to your computer and use it in GitHub Desktop.
gemspecs in `bundle env`
Environment
Bundler 1.10.6
Rubygems 2.2.5
Ruby 2.1.7p400 (2015-08-18 revision 51632) [x86_64-darwin14.0]
GEM_HOME /Users/agis/.gem/ruby/2.1.7
GEM_PATH /Users/agis/.gem/ruby/2.1.7:/Users/agis/.rubies/ruby-2.1.7/lib/ruby/gems/2.1.0
Git 2.3.4
Bundler settings
gem.coc
Set for the current user (/Users/agis/.bundle/config): "true"
gem.mit
Set for the current user (/Users/agis/.bundle/config): "true"
gem.test
Set for the current user (/Users/agis/.bundle/config): "false"
Gemfile
source 'https://rubygems.org'
# Specify your gem's dependencies in my_gem.gemspec
gemspec
Gemfile.lock
PATH
remote: .
specs:
my_gem (0.1.0)
GEM
remote: https://rubygems.org/
specs:
rake (10.4.2)
PLATFORMS
ruby
DEPENDENCIES
bundler (~> 1.10)
my_gem!
rake (~> 10.0)
BUNDLED WITH
1.10.6
my_gem.gemspec:
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'my_gem/version'
Gem::Specification.new do |spec|
spec.name = "my_gem"
spec.version = MyGem::VERSION
spec.authors = ["Agis Anastasopoulos"]
spec.email = ["agis.anast@gmail.com"]
spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
spec.description = %q{TODO: Write a longer description or delete this line.}
spec.homepage = "TODO: Put your gem's website or public repo URL here."
spec.license = "MIT"
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
# delete this section to allow pushing this gem to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
else
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_development_dependency "bundler", "~> 1.10"
spec.add_development_dependency "rake", "~> 10.0"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment