-
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.
Use project fixtures for FilePreparer
- Loading branch information
Showing
4 changed files
with
74 additions
and
36 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
6 changes: 6 additions & 0 deletions
6
bundler/spec/fixtures/projects/bundler1/gemfile_gemspec_with_require/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/bundler1/gemfile_gemspec_with_require/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 | ||
1.10.6 |
44 changes: 44 additions & 0 deletions
44
bundler/spec/fixtures/projects/bundler1/gemfile_gemspec_with_require/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 = "[email protected]" | ||
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 |