-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from railsbump/fixes/issue-108
Rescue exception when there is a gem (gemmy) that is vendored with a PATH
- Loading branch information
Showing
26 changed files
with
77,727 additions
and
2,728 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
class InaccessibleGemmy < ApplicationRecord | ||
belongs_to :lockfile | ||
|
||
FORBIDDEN_NAMES = %w( | ||
new | ||
edit | ||
rails | ||
) | ||
|
||
validates :name, presence: true, uniqueness: { allow_blank: true } | ||
validates :name, uniqueness: { scope: :lockfile_id } | ||
|
||
delegate :to_param, :to_s, to: :name | ||
|
||
def accessible_gem? | ||
false | ||
end | ||
|
||
def inaccessible_gem? | ||
!accessible_gem? | ||
end | ||
|
||
def compats | ||
RailsRelease.all.map do |rails_release| | ||
InconclusiveCompat.build(rails_release: rails_release, status: 'inconclusive') | ||
end.to_a | ||
end | ||
|
||
def compats_for_rails_release(rails_release) | ||
InconclusiveCompat.build(rails_release: rails_release, status: 'inconclusive') | ||
end | ||
end |
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,17 @@ | ||
class InconclusiveCompat < Compat | ||
def compatible | ||
[] | ||
end | ||
|
||
def inconclusive | ||
[self] | ||
end | ||
|
||
def pending | ||
[] | ||
end | ||
|
||
def none? | ||
true | ||
end | ||
end |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class CreateInaccessibleGemmies < ActiveRecord::Migration[7.1] | ||
def change | ||
create_table :inaccessible_gemmies do |t| | ||
t.text :name | ||
t.belongs_to :lockfile, null: false, foreign_key: true | ||
t.timestamps | ||
end | ||
|
||
add_index :inaccessible_gemmies, [:lockfile_id, :name], unique: true | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 25 additions & 25 deletions
50
...iesController/create/when_the_gemmy_params_are_valid/creates_a_record_in_the_database.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.