-
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 FileUpdater spec
- Loading branch information
Showing
47 changed files
with
542 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
bundler/spec/fixtures/projects/bundler2/cant_unlock_subdep/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 "ibandit", "~> 0.6.0" | ||
gem "i18n", git: "https://github.com/svenfuchs/i18n" |
21 changes: 21 additions & 0 deletions
21
bundler/spec/fixtures/projects/bundler2/cant_unlock_subdep/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,21 @@ | ||
GIT | ||
remote: https://github.com/svenfuchs/i18n | ||
revision: d049c7115f59689efb123d61430c078c6feb7537 | ||
specs: | ||
i18n (0.7.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
ibandit (0.6.6) | ||
i18n (~> 0.7.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
i18n! | ||
ibandit (~> 0.6.0) | ||
|
||
BUNDLED WITH | ||
2.2.0 |
11 changes: 11 additions & 0 deletions
11
bundler/spec/fixtures/projects/bundler2/conditional/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,11 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "business", "~> 1.4.0" | ||
|
||
if ENV["STATESMAN_NEXT"] == "1" | ||
gem "statesman", "~> 7.2.0" | ||
else | ||
gem "statesman", "~> 1.2.0" # rubocop:disable Bundler/DuplicatedGem | ||
end |
15 changes: 15 additions & 0 deletions
15
bundler/spec/fixtures/projects/bundler2/conditional/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 |
Binary file added
BIN
+11.5 KB
bundler/spec/fixtures/projects/bundler2/conditional/vendor/cache/business-1.4.0.gem
Binary file not shown.
Binary file added
BIN
+30 KB
bundler/spec/fixtures/projects/bundler2/conditional/vendor/cache/statesman-1.2.1.gem
Binary file not shown.
Binary file added
BIN
+40 KB
bundler/spec/fixtures/projects/bundler2/conditional/vendor/cache/statesman-7.2.0.gem
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
bundler/spec/fixtures/projects/bundler2/explicit_ruby_in_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,5 @@ | ||
ruby "2.2.0" | ||
source "https://rubygems.org" | ||
|
||
gem "business", "~> 1.4.0" | ||
gem "statesman", "~> 1.2.0" |
18 changes: 18 additions & 0 deletions
18
bundler/spec/fixtures/projects/bundler2/explicit_ruby_in_lockfile/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,18 @@ | ||
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) | ||
|
||
RUBY VERSION | ||
ruby 2.2.0p0 | ||
|
||
BUNDLED WITH | ||
2.2.0 |
15 changes: 15 additions & 0 deletions
15
bundler/spec/fixtures/projects/bundler2/gemspec_no_gemfile/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/gemspec_no_gemfile/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 |
6 changes: 6 additions & 0 deletions
6
bundler/spec/fixtures/projects/bundler2/gemspec_not_imported/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/gemspec_not_imported/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 |
44 changes: 44 additions & 0 deletions
44
bundler/spec/fixtures/projects/bundler2/gemspec_not_imported/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,44 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'example/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "example" | ||
spec.version = Example::VERSION | ||
spec.summary = "Automated dependency management #{Example::VERSION}" | ||
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/**/*"] | ||
Find.find("lib", "helpers") do |path| | ||
if ignores.any? { |i| File.fnmatch(i, "/" + path, File::FNM_DOTMATCH) } | ||
Find.prune | ||
else | ||
spec.files << path unless File.directory?(path) | ||
end | ||
end | ||
|
||
spec.required_ruby_version = ">= 2.4.0" | ||
spec.required_rubygems_version = ">= 2.6.11" | ||
|
||
spec.add_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 |
5 changes: 5 additions & 0 deletions
5
bundler/spec/fixtures/projects/bundler2/git_source_internal/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,5 @@ | ||
# frozen_string_literal: true | ||
source "https://rubygems.org" | ||
|
||
gem "parallel", git: "git@github.com:grosser/parallel", ref: "v1.12.0" | ||
gem "statesman", "~> 1.2.0" |
21 changes: 21 additions & 0 deletions
21
bundler/spec/fixtures/projects/bundler2/git_source_internal/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,21 @@ | ||
GIT | ||
remote: git@github.com:grosser/parallel | ||
revision: 5fa4406bcf0b3109f645550ca799fc7570501870 | ||
ref: v1.12.0 | ||
specs: | ||
parallel (1.12.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
statesman (1.2.5) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
parallel! | ||
statesman (~> 1.2.0) | ||
|
||
BUNDLED WITH | ||
2.2.0 |
10 changes: 10 additions & 0 deletions
10
bundler/spec/fixtures/projects/bundler2/git_source_outdated/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,10 @@ | ||
# frozen_string_literal: true | ||
source "https://rubygems.org" | ||
|
||
gem "business", "~> 1.6.0", | ||
git: "git@github.com:gocardless/business", | ||
ref: "a1b78a9" | ||
gem "statesman", "~> 1.2.0" | ||
gem "prius", git: "https://github.com/gocardless/prius" | ||
gem "que", git: "git@github.com:chanks/que", tag: "v0.11.6" | ||
gem "uk_phone_numbers", git: "http://github.com/gocardless/uk_phone_numbers" |
43 changes: 43 additions & 0 deletions
43
bundler/spec/fixtures/projects/bundler2/git_source_outdated/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,43 @@ | ||
GIT | ||
remote: http://github.com/gocardless/uk_phone_numbers | ||
revision: 1530024bd6a68d36ac18e04836ce110e0d433c36 | ||
specs: | ||
uk_phone_numbers (0.1.1) | ||
|
||
GIT | ||
remote: git@github.com:gocardless/business | ||
revision: a1b78a929dac93a52f08db4f2847d76d6cfe39bd | ||
ref: a1b78a9 | ||
specs: | ||
business (1.6.0) | ||
|
||
GIT | ||
remote: https://github.com/gocardless/prius | ||
revision: cff701b3bfb182afc99a85657d7c9f3d6c1ccce2 | ||
specs: | ||
prius (1.0.0) | ||
|
||
GIT | ||
remote: git@github.com:chanks/que | ||
revision: 997d1a6ee76a1f254fd72ce16acbc8d347fcaee3 | ||
tag: v0.11.6 | ||
specs: | ||
que (0.11.6) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
statesman (1.2.5) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
business (~> 1.6.0)! | ||
prius! | ||
que! | ||
statesman (~> 1.2.0) | ||
uk_phone_numbers! | ||
|
||
BUNDLED WITH | ||
2.2.0 |
10 changes: 10 additions & 0 deletions
10
bundler/spec/fixtures/projects/bundler2/git_source_reordered/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,10 @@ | ||
# frozen_string_literal: true | ||
source "https://rubygems.org" | ||
|
||
gem "business", "~> 1.6.0", | ||
git: "git@github.com:gocardless/business", | ||
ref: "a1b78a9" | ||
gem "statesman", "~> 1.2.0" | ||
gem "prius", git: "https://github.com/gocardless/prius" | ||
gem "que", git: "git@github.com:chanks/que", tag: "v0.11.6" | ||
gem "uk_phone_numbers", git: "http://github.com/gocardless/uk_phone_numbers" |
43 changes: 43 additions & 0 deletions
43
bundler/spec/fixtures/projects/bundler2/git_source_reordered/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,43 @@ | ||
GIT | ||
remote: http://github.com/gocardless/uk_phone_numbers | ||
revision: 1530024bd6a68d36ac18e04836ce110e0d433c36 | ||
specs: | ||
uk_phone_numbers (0.1.1) | ||
|
||
GIT | ||
remote: git@github.com:gocardless/business | ||
revision: a1b78a929dac93a52f08db4f2847d76d6cfe39bd | ||
ref: a1b78a9 | ||
specs: | ||
business (1.6.0) | ||
|
||
GIT | ||
remote: https://github.com/gocardless/prius | ||
revision: cff701b3bfb182afc99a85657d7c9f3d6c1ccce2 | ||
specs: | ||
prius (1.0.0) | ||
|
||
GIT | ||
remote: git@github.com:chanks/que | ||
revision: 997d1a6ee76a1f254fd72ce16acbc8d347fcaee3 | ||
tag: v0.11.6 | ||
specs: | ||
que (0.11.6) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
statesman (1.2.5) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
business (~> 1.6.0)! | ||
prius! | ||
que! | ||
statesman (~> 1.2.0) | ||
uk_phone_numbers! | ||
|
||
BUNDLED WITH | ||
2.2.0 |
2 changes: 1 addition & 1 deletion
2
bundler/spec/fixtures/projects/bundler2/github_source/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
7 changes: 7 additions & 0 deletions
7
bundler/spec/fixtures/projects/bundler2/imports_gemspec_no_overlap/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" | ||
|
||
gemspec | ||
|
||
gem "business", "~> 1.4.0" | ||
gem "statesman", "~> 1.2.0" |
22 changes: 22 additions & 0 deletions
22
bundler/spec/fixtures/projects/bundler2/imports_gemspec_no_overlap/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,22 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
example (0.9.3) | ||
business (~> 1.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
business (1.4.0) | ||
statesman (1.2.5) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
business (~> 1.4.0) | ||
example! | ||
statesman (~> 1.2.0) | ||
|
||
BUNDLED WITH | ||
2.2.0 |
21 changes: 21 additions & 0 deletions
21
bundler/spec/fixtures/projects/bundler2/imports_gemspec_no_overlap/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 'json', '~> 1.0' | ||
end |
Oops, something went wrong.