Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to deal with more cases of gems with native components.
This commit adds a rudimentary check for 'unbuilt' gems, so that we can abort the application load if there are any gems that have native components that have not yet been built. The rake task gems:build has now only builds 'unbuilt' gems as a result. The rake task gems:build:force has been added to deal with cases of incomplete builds, or any case where you need to force the build of all of your gems. Changes the gems:build task to get its gem list by parsing directory entries in vendor/gems, which sidesteps the chicken/egg issues involved with having a gem unpacked into vendor/gems without before its native bits are compiled. [#2266 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
- Loading branch information
Showing
9 changed files
with
159 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
railties/test/vendor/gems/dummy-gem-i-1.0.0/.specification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- !ruby/object:Gem::Specification | ||
name: dummy-gem-i | ||
version: !ruby/object:Gem::Version | ||
version: 1.3.0 | ||
platform: ruby | ||
authors: | ||
- "Nobody" | ||
date: 2008-10-03 00:00:00 -04:00 | ||
dependencies: | ||
- !ruby/object:Gem::Dependency | ||
name: dummy-gem-i | ||
type: :runtime | ||
version_requirement: | ||
version_requirements: !ruby/object:Gem::Requirement | ||
requirements: | ||
- - ">=" | ||
- !ruby/object:Gem::Version | ||
version: 1.0.0 | ||
version: | ||
extensions: | ||
- ext/dummy-gem-i/extconf.rb | ||
files: | ||
- lib | ||
- lib/dummy-gem-i.rb | ||
require_paths: | ||
- lib | ||
required_ruby_version: !ruby/object:Gem::Requirement | ||
requirements: | ||
- - ">=" | ||
- !ruby/object:Gem::Version | ||
version: "0" | ||
version: | ||
required_rubygems_version: !ruby/object:Gem::Requirement | ||
requirements: | ||
- - ">=" | ||
- !ruby/object:Gem::Version | ||
version: "0" | ||
version: | ||
requirements: [] | ||
specification_version: 2 | ||
summary: Dummy Gem G |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DUMMY_GEM_I_VERSION="1.0.0" |
41 changes: 41 additions & 0 deletions
41
railties/test/vendor/gems/dummy-gem-j-1.0.0/.specification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- !ruby/object:Gem::Specification | ||
name: dummy-gem-j | ||
version: !ruby/object:Gem::Version | ||
version: 1.3.0 | ||
platform: ruby | ||
authors: | ||
- "Nobody" | ||
date: 2008-10-03 00:00:00 -04:00 | ||
dependencies: | ||
- !ruby/object:Gem::Dependency | ||
name: dummy-gem-j | ||
type: :runtime | ||
version_requirement: | ||
version_requirements: !ruby/object:Gem::Requirement | ||
requirements: | ||
- - ">=" | ||
- !ruby/object:Gem::Version | ||
version: 1.0.0 | ||
version: | ||
extensions: | ||
- ext/dummy-gem-j/extconf.rb | ||
files: | ||
- lib | ||
- lib/dummy-gem-j.rb | ||
require_paths: | ||
- lib | ||
required_ruby_version: !ruby/object:Gem::Requirement | ||
requirements: | ||
- - ">=" | ||
- !ruby/object:Gem::Version | ||
version: "0" | ||
version: | ||
required_rubygems_version: !ruby/object:Gem::Requirement | ||
requirements: | ||
- - ">=" | ||
- !ruby/object:Gem::Version | ||
version: "0" | ||
version: | ||
requirements: [] | ||
specification_version: 2 | ||
summary: Dummy Gem G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DUMMY_GEM_J_VERSION="1.0.0" |