-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bundler2 fixtures for LatestVersionFinder spec
- Loading branch information
Showing
14 changed files
with
153 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
bundler/spec/fixtures/projects/bundler2/bad_branch_business/Gemfile
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,6 @@ | ||
# frozen_string_literal: true | ||
source "https://rubygems.org" | ||
|
||
gem "business", git: "https://github.com/gocardless/business", branch: "bad" | ||
gem "statesman", "~> 1.2.0" | ||
gem "prius", "~> 1.0.0" |
Empty file.
8 changes: 8 additions & 0 deletions
8
...ler/spec/fixtures/projects/bundler2/bundler_specified_in_source_bundler_specified/Gemfile
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,8 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" do | ||
gem "bundler", "~> 1.15.0" | ||
|
||
gem "business", "~> 1.4.0" | ||
gem "statesman", "~> 1.2.0" | ||
end |
16 changes: 16 additions & 0 deletions
16
...pec/fixtures/projects/bundler2/bundler_specified_in_source_bundler_specified/Gemfile.lock
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,16 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
business (1.4.0) | ||
statesman (1.2.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
bundler (~> 1.15.0) | ||
business (~> 1.4.0) | ||
statesman (~> 1.2.0) | ||
|
||
BUNDLED WITH | ||
2.2.0 |
6 changes: 6 additions & 0 deletions
6
bundler/spec/fixtures/projects/bundler2/gemfile_example/Gemfile
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,6 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "business", "~> 1.4.0" | ||
gem "statesman", "~> 1.2.0" |
15 changes: 15 additions & 0 deletions
15
bundler/spec/fixtures/projects/bundler2/gemfile_example/Gemfile.lock
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,15 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
business (1.4.0) | ||
statesman (1.2.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
business (~> 1.4.0) | ||
statesman (~> 1.2.0) | ||
|
||
BUNDLED WITH | ||
2.2.0 |
33 changes: 33 additions & 0 deletions
33
bundler/spec/fixtures/projects/bundler2/gemfile_example/example.gemspec
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,33 @@ | ||
# frozen_string_literal: true | ||
Gem::Specification.new do |spec| | ||
spec.name = "example" | ||
spec.version = "0.9.3" | ||
spec.summary = "Automated dependency management" | ||
spec.description = "Core logic for updating a GitHub repos dependencies" | ||
spec.date = "2019-08-01" | ||
|
||
spec.author = "Dependabot" | ||
spec.email = "support@dependabot.com" | ||
spec.homepage = "https://github.com/hmarr/example" | ||
spec.license = "MIT" | ||
|
||
spec.require_path = Dir["lib"] | ||
spec.files = Dir["CHANGELOG.md", "LICENSE.txt", "README.md", | ||
"lib/**/*", "helpers/**/*"] | ||
|
||
spec.required_ruby_version = ">= 2.4.0" | ||
spec.required_rubygems_version = ">= 2.6.11" | ||
|
||
spec.add_runtime_dependency "bundler", ">= 1.12.0" | ||
spec.add_dependency "excon", ["~> 0.55"] | ||
spec.add_dependency("gemnasium-parser", "~> 0.1") | ||
spec.add_dependency 'gems', '~> 1.0' | ||
spec.add_dependency "octokit", "~> 4.6" | ||
spec.add_dependency "gitlab", "~> 4.1" | ||
|
||
spec.add_development_dependency "webmock", "~> 2.3.1" | ||
spec.add_development_dependency "rspec", "~> 3.5.0" | ||
spec.add_development_dependency "rspec-its", "~> 1.2.0" | ||
spec.add_development_dependency "rubocop", "~> 0.48.0" | ||
spec.add_development_dependency "rake" | ||
end |
7 changes: 7 additions & 0 deletions
7
...ler/spec/fixtures/projects/bundler2/imports_gemspec_no_default_source_no_lockfile/Gemfile
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,7 @@ | ||
# frozen_string_literal: true | ||
source "https://rubygems.org" do | ||
gem "business", "~> 1.4.0" | ||
gem "statesman", "~> 1.2.0" | ||
end | ||
|
||
gemspec |
21 changes: 21 additions & 0 deletions
21
.../fixtures/projects/bundler2/imports_gemspec_no_default_source_no_lockfile/example.gemspec
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,21 @@ | ||
# frozen_string_literal: true | ||
Gem::Specification.new do |spec| | ||
spec.name = "example" | ||
spec.version = "0.9.3" | ||
spec.summary = "Automated dependency management" | ||
spec.description = "Core logic for updating a GitHub repos dependencies" | ||
|
||
spec.author = "Dependabot" | ||
spec.email = "support@dependabot.com" | ||
spec.homepage = "https://github.com/hmarr/example" | ||
spec.license = "MIT" | ||
|
||
spec.require_path = "lib" | ||
spec.files = Dir["CHANGELOG.md", "LICENSE.txt", "README.md", | ||
"lib/**/*", "helpers/**/*"] | ||
|
||
spec.required_ruby_version = ">= 2.4.0" | ||
spec.required_rubygems_version = ">= 2.6.11" | ||
|
||
spec.add_dependency 'business', '~> 1.0' | ||
end |
4 changes: 4 additions & 0 deletions
4
bundler/spec/fixtures/projects/bundler2/prerelease_specified/Gemfile
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,4 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "business", "~> 1.4.0.rc1" | ||
gem "statesman", "~> 1.2.0" |
15 changes: 15 additions & 0 deletions
15
bundler/spec/fixtures/projects/bundler2/prerelease_specified/Gemfile.lock
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,15 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
business (1.4.0) | ||
statesman (1.2.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
business (~> 1.4.0) | ||
statesman (~> 1.2.0) | ||
|
||
BUNDLED WITH | ||
2.2.0 |
1 change: 1 addition & 0 deletions
1
bundler/spec/fixtures/projects/bundler2/ruby_version_file/.ruby-version
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 @@ | ||
2.2.0 |
6 changes: 6 additions & 0 deletions
6
bundler/spec/fixtures/projects/bundler2/ruby_version_file/Gemfile
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,6 @@ | ||
source "https://rubygems.org" | ||
|
||
ruby File.open('.ruby-version', 'rb') { |f| f.read.chomp } | ||
|
||
gem "business", "~> 1.4.0" | ||
gem "statesman", "~> 1.2.0" |
15 changes: 15 additions & 0 deletions
15
bundler/spec/fixtures/projects/bundler2/ruby_version_file/Gemfile.lock
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,15 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
business (1.4.0) | ||
statesman (1.2.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
business (~> 1.4.0) | ||
statesman (~> 1.2.0) | ||
|
||
BUNDLED WITH | ||
2.2.0 |