forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/.bundle/ | ||
/.env | ||
/tmp | ||
/dependabot-*.gem | ||
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 @@ | ||
inherit_from: ../config/rubocop-default.yml |
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" | ||
|
||
gem "dependabot-core", path: "../" | ||
|
||
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,17 @@ | ||
## `dependabot-gradle` | ||
|
||
Gradle support for [`dependabot-core`][core-repo]. | ||
|
||
### Running locally | ||
|
||
1. Install Ruby dependencies | ||
``` | ||
$ bundle install | ||
``` | ||
|
||
2. Run tests | ||
``` | ||
$ bundle exec rspec spec | ||
``` | ||
|
||
[core-repo]: https://github.com/dependabot/dependabot-core |
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,29 @@ | ||
# frozen_string_literal: true | ||
|
||
require "find" | ||
|
||
Gem::Specification.new do |spec| | ||
core_gemspec = Bundler.load_gemspec_uncached("../dependabot-core.gemspec") | ||
|
||
spec.name = "dependabot-gradle" | ||
spec.summary = "Gradle support for dependabot-core" | ||
spec.version = core_gemspec.version | ||
spec.description = core_gemspec.description | ||
|
||
spec.author = core_gemspec.author | ||
spec.email = core_gemspec.email | ||
spec.homepage = core_gemspec.homepage | ||
spec.license = core_gemspec.license | ||
|
||
spec.require_path = "lib" | ||
spec.files = Dir["lib/**/*"] | ||
|
||
spec.required_ruby_version = core_gemspec.required_ruby_version | ||
spec.required_rubygems_version = core_gemspec.required_ruby_version | ||
|
||
spec.add_dependency "dependabot-core", Dependabot::VERSION | ||
|
||
core_gemspec.development_dependencies.each do |dep| | ||
spec.add_development_dependency dep.name, dep.requirement.to_s | ||
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,11 @@ | ||
# frozen_string_literal: true | ||
|
||
def common_dir | ||
@common_dir ||= Gem::Specification.find_by_name("dependabot-core").gem_dir | ||
end | ||
|
||
def require_common_spec(path) | ||
require "#{common_dir}/spec/dependabot/#{path}" | ||
end | ||
|
||
require "#{common_dir}/spec/spec_helper.rb" |