Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tombruijn
Last active April 19, 2021 12:01
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 tombruijn/65dbd51b82253b8abbcb28da2a603305 to your computer and use it in GitHub Desktop.
Save tombruijn/65dbd51b82253b8abbcb28da2a603305 to your computer and use it in GitHub Desktop.

Environment

$ ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin20]

$ gem --version
3.2.16

$ bundle version
# Bundler version 2.2.16 (2021-04-09 commit 3d7bfaff25)

Behavior

$ bundle install
hello

[!] There was an error parsing `Gemfile`: There are no gemspecs at /Users/tombruijn/Desktop/my-gem. Bundler cannot continue.

 #  from /Users/tombruijn/Desktop/my-gem/Gemfile:3
 #  -------------------------------------------
 #
 >  gemspec
 #  -------------------------------------------
source "https://rubygems.org"
gemspec
Gem::Specification.new do |gem|
gem.authors = ["Tom de Bruijn"]
gem.email = ["tom@tomdebruijn.com"]
gem.description = "Test description"
gem.summary = "Test summary"
gem.homepage = "https://gist.github.com/tombruijn/example"
gem.license = "MIT"
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.name = "my-gem"
gem.require_paths = %w[lib ext]
gem.version = "1.0.0"
end
puts "hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment