Closed jeremyf closed 10 years ago
This is manifesting in Travis CI: https://travis-ci.org/jeremyf/orcid/builds/24462163
With the following .travis.yml
configuration:
language: ruby
rvm:
- "2.0.0"
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
script: 'rake spec:travis'
bundler_args: --without headless debug
before_install:
- gem install bundler
It appears that the presence of bin/rails
in the Engine is causing issues with EngineCart and RVM.
Though it appears that RVM may not have a hand in this.
Gemspec created via rails plugin new
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
s.test_files = Dir["test/**/*"]
Relevant gemspec files created via bundle gem new
spec.files = `git ls-files -z`.split("\x0")
spec.executables = s.files.grep(/^bin\//) { |f| File.basename(f) }
spec.test_files = s.files.grep(/^(test|spec|features)\//)
spec.require_paths = ['lib']
Rails plugins deliberately ignore the bin
directory, whereas bundler does not.
When running
rake engine_cart:generate
with a published gem in pre status (i.e. VERSION="0.0.1.pre"), thebundle install
of task :generate, within_test_app (https://github.com/cbeer/engine_cart/blob/master/lib/engine_cart/tasks/engine_cart.rake#L73) obliterates the bin/rails in the rvm gemset. Changing the following file's reference of'railties'
to'mygemname'
(i.e.~/.rvm/gems/ruby-2.0.0-p353/bin/rails
lines 22 and 23). With an exception ofCould not find 'harbinger' (= 4.0.3) among 645 total gem(s) (Gem::LoadError)
(notice the reference to Rails 4.0.3 gem version).