pronto 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pronto.yml +20 -0
- data/.github/workflows/specs.yml +41 -0
- data/CHANGELOG.md +29 -1
- data/README.md +24 -7
- data/lib/pronto/cli.rb +6 -2
- data/lib/pronto/config.rb +41 -4
- data/lib/pronto/config_file.rb +4 -1
- data/lib/pronto/formatter/git_formatter.rb +1 -1
- data/lib/pronto/git/repository.rb +12 -0
- data/lib/pronto/gitlab.rb +3 -1
- data/lib/pronto/runners.rb +23 -6
- data/lib/pronto/version.rb +1 -1
- data/lib/pronto.rb +6 -2
- data/pronto.gemspec +7 -6
- metadata +84 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 544591a739632f48bdbe56cc7a006b02a8ce13a22c9fbc679d35a4d5e67a0b00
|
4
|
+
data.tar.gz: 1fee173f0ab873998cc2920a576687a842485509bbef0bd4fc23c03703372d20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b172a79ba57c6319761945212c7d8991adfafb4fdb6a3a91d9dea587a2099859bc5b052e0c54f694a5760b5f98d1a32e146d5811cbaf45d85afbf3c1204526a3
|
7
|
+
data.tar.gz: ea63d5bb296cebc7628af1d1d20a93877cd40ac297954bbe898b7e7b8137482e2c516755c4ea63ef8ca2ee8c60331a39d3c9be6edc4aeab609a816c8ff9bc720
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Pronto
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches: [master]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
pronto:
|
9
|
+
runs-on: ubuntu-20.04
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v3
|
12
|
+
with:
|
13
|
+
fetch-depth: 0
|
14
|
+
- name: Set up Ruby
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.5
|
18
|
+
bundler-cache: true
|
19
|
+
- name: Run Pronto
|
20
|
+
run: bundle exec pronto run --exit-code -c origin/${{ github.base_ref }}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
name: Specs
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [master]
|
6
|
+
pull_request:
|
7
|
+
branches: [master]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-20.04
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version:
|
15
|
+
- "2.3"
|
16
|
+
- "2.4"
|
17
|
+
- "2.5"
|
18
|
+
- "2.6"
|
19
|
+
- "2.7"
|
20
|
+
- "3.0"
|
21
|
+
- "3.1"
|
22
|
+
- "3.2"
|
23
|
+
exclude:
|
24
|
+
- ruby-version: "2.3" # Rugged uses the wrong openssl version on CI and segfaults (similar to https://github.com/libgit2/rugged/issues/718)
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@v3
|
27
|
+
- name: Use specific gitlab gem version (if required)
|
28
|
+
if: matrix.ruby-version == '2.4'
|
29
|
+
run: echo "gem 'gitlab', '< 4.14.1'" >> Gemfile.local
|
30
|
+
- name: Set up Ruby
|
31
|
+
uses: ruby/setup-ruby@v1
|
32
|
+
with:
|
33
|
+
ruby-version: ${{ matrix.ruby-version }}
|
34
|
+
bundler-cache: true
|
35
|
+
- name: Test & publish code coverage
|
36
|
+
uses: paambaati/codeclimate-action@7bcf9e73c0ee77d178e72c0ec69f1a99c1afc1f3 # v2.7.5
|
37
|
+
env:
|
38
|
+
CC_TEST_REPORTER_ID: 3d676246ffa66d3fdef6253a9870431b1a2da04e9ecb25486c08a38823c37b6a
|
39
|
+
COVERAGE: true
|
40
|
+
with:
|
41
|
+
coverageCommand: bundle exec rspec
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,34 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## 0.11.1
|
4
|
+
|
5
|
+
### New features
|
6
|
+
|
7
|
+
* [#371](https://github.com/prontolabs/pronto/pull/371) allow to filter runners via config
|
8
|
+
* [#402](https://github.com/prontolabs/pronto/pull/402) add --workdir option
|
9
|
+
* [#410](https://github.com/prontolabs/pronto/pull/410) allow the default commit run against to be configured
|
10
|
+
* [#435](https://github.com/prontolabs/pronto/pull/435) allow override of config file path via PRONTO_CONFIG_FILE
|
11
|
+
|
12
|
+
### Bugs fixed
|
13
|
+
|
14
|
+
* [#422](https://github.com/prontolabs/pronto/pull/422) fix Gitlab#slug_regex when URL has different host
|
15
|
+
* [#423](https://github.com/prontolabs/pronto/pull/423) show existing message count when reporting posted messages
|
16
|
+
|
17
|
+
### Changes
|
18
|
+
|
19
|
+
* [#397](https://github.com/prontolabs/pronto/pull/397) migrate CI to GitHub Actions
|
20
|
+
* [#398](https://github.com/prontolabs/pronto/pull/398) fix duplicated runs on GitHub Actions
|
21
|
+
* [#403](https://github.com/prontolabs/pronto/pull/403) run pronto on GitHub Actions without any reporting
|
22
|
+
* [#408](https://github.com/prontolabs/pronto/pull/408) require rexml ~> 3.2.5 due to CVE-2021-28965
|
23
|
+
* [#409](https://github.com/prontolabs/pronto/pull/409) add article about GitHub Actions to README.md
|
24
|
+
* [#414](https://github.com/prontolabs/pronto/pull/414) fix typo in README.md
|
25
|
+
* [#415](https://github.com/prontolabs/pronto/pull/415) remove deprecated pronto-bundler_audit from README.md
|
26
|
+
* [#417](https://github.com/prontolabs/pronto/pull/417) relax rugged dependency to allow releases up to 1.2.0
|
27
|
+
* [#424](https://github.com/prontolabs/pronto/pull/424) add Ruby 3.1 to the test matrix
|
28
|
+
* [#431](https://github.com/prontolabs/pronto/pull/431) relax rugged dependency to allow releases up to 2.0
|
29
|
+
* [#436](https://github.com/prontolabs/pronto/pull/436) update dead links in README.md
|
30
|
+
* [#438](https://github.com/prontolabs/pronto/pull/438) add Ruby 3.2 to the test matrix
|
31
|
+
* [#439](https://github.com/prontolabs/pronto/pull/439) relax dependencies to allow currently released major versions
|
4
32
|
|
5
33
|
## 0.11.0
|
6
34
|
|
data/README.md
CHANGED
@@ -125,7 +125,7 @@ in order to avoid the rate limit of the providers.
|
|
125
125
|
X = N / {PRONTO_WARNINGS_PER_REVIEW || warnings_per_review || 30})
|
126
126
|
```
|
127
127
|
|
128
|
-
Note: In case no environment variable or config setting is specified in `.pronto.yml`,
|
128
|
+
Note: In case no environment variable or config setting is specified in `.pronto.yml`,
|
129
129
|
a default value of `30` will be used.
|
130
130
|
|
131
131
|
```sh
|
@@ -164,7 +164,7 @@ Pronto.run('origin/master', '.', formatters)
|
|
164
164
|
|
165
165
|
#### GitHub Actions Integration
|
166
166
|
|
167
|
-
You can also run Pronto as a GitHub action.
|
167
|
+
You can also run Pronto as a GitHub action.
|
168
168
|
|
169
169
|
Here's an example `.github/workflows/pronto.yml` workflow file using the `github_status` and `github_pr` formatters and running on each GitHub PR, with `pronto-rubocop` as the runner:
|
170
170
|
|
@@ -222,7 +222,7 @@ Merge request integration:
|
|
222
222
|
$ PRONTO_GITLAB_API_PRIVATE_TOKEN=token PRONTO_PULL_REQUEST_ID=id pronto run -f gitlab_mr -c origin/master
|
223
223
|
```
|
224
224
|
|
225
|
-
On GitLabCI make
|
225
|
+
On GitLabCI, make sure to run Pronto in a [merge request pipeline](https://docs.gitlab.com/ce/ci/merge_request_pipelines/):
|
226
226
|
|
227
227
|
```yml
|
228
228
|
lint:
|
@@ -261,7 +261,14 @@ $ PRONTO_BITBUCKET_USERNAME=user PRONTO_BITBUCKET_PASSWORD=pass pronto run -f bi
|
|
261
261
|
## Configuration
|
262
262
|
|
263
263
|
The behavior of Pronto can be controlled via the `.pronto.yml` configuration
|
264
|
-
file. It
|
264
|
+
file. It can either be placed in the working directory (*) or specified using
|
265
|
+
the environment variable `PRONTO_CONFIG_FILE`.
|
266
|
+
|
267
|
+
(*) The working directory is where you run the command from, which is typically
|
268
|
+
your project directory.
|
269
|
+
|
270
|
+
If this file cannot be found, then the default configuration in
|
271
|
+
[Pronto::ConfigFile::EMPTY](lib/pronto/config_file.rb) applies.
|
265
272
|
|
266
273
|
The file has the following format:
|
267
274
|
|
@@ -290,6 +297,8 @@ bitbucket:
|
|
290
297
|
max_warnings: 150
|
291
298
|
warnings_per_review: 30
|
292
299
|
verbose: false
|
300
|
+
runners: [rubocop, eslint] # only listed runners will be executed
|
301
|
+
skip_runners: [reek] # all, except listed runners will be executed
|
293
302
|
```
|
294
303
|
|
295
304
|
All properties that can be specified via `.pronto.yml`, can also be specified
|
@@ -297,6 +306,14 @@ via environment variables. Their names will be the upcased path to the property.
|
|
297
306
|
For example: `PRONTO_GITHUB_SLUG` or `PRONTO_GITLAB_API_PRIVATE_TOKEN`. Environment variables
|
298
307
|
will always take precedence over values in configuration file.
|
299
308
|
|
309
|
+
| Property | Description |
|
310
|
+
|-----------------------|--------------------------------------------------------------------------------------|
|
311
|
+
| `max_warnings` | Limits the amount of warnings. Returns all warnings if option is skipped. |
|
312
|
+
| `runners` | Runs only listed runners. Runs everything if option is skipped. |
|
313
|
+
| `skip_runners` | All, except listed runners will be executed. Runs everything if option is skipped. |
|
314
|
+
| `verbose` | Outputs more information when set to `true`. |
|
315
|
+
| `warnings_per_review` | Limits the amount of warnings per review. Returns all warnings if option is skipped. |
|
316
|
+
|
300
317
|
### Message format
|
301
318
|
|
302
319
|
Pronto allows you to configure the format of the messages that are produced. You
|
@@ -342,7 +359,6 @@ Currently available:
|
|
342
359
|
* [pronto-bigfiles](https://github.com/apiology/pronto-bigfiles)
|
343
360
|
* [pronto-blacklist](https://github.com/pbstriker38/pronto-blacklist)
|
344
361
|
* [pronto-brakeman](https://github.com/prontolabs/pronto-brakeman)
|
345
|
-
* [pronto-bundler_audit](https://github.com/pdobb/pronto-bundler_audit)
|
346
362
|
* [pronto-checkstyle](https://github.com/seikichi/pronto-checkstyle)
|
347
363
|
* [pronto-coffeelint](https://github.com/siebertm/pronto-coffeelint)
|
348
364
|
* [pronto-clang_format](https://github.com/micjabbour/pronto-clang_format)
|
@@ -410,12 +426,13 @@ Articles to help you to get started:
|
|
410
426
|
* [How to end fruitless dev discussions about your project’s code style?](https://medium.com/appaloosa-store-engineering/how-to-end-fruitless-dev-discussions-about-your-project-s-code-style-245070bff6d4)
|
411
427
|
* [Free automated code reviews using Pronto](https://hovancik.net/blog/2016/04/11/free-automated-code-reviews-using-pronto/)
|
412
428
|
* [Automated Elixir code review with Github, Credo and Travis CI](https://medium.com/fazibear/automated-elixir-code-review-with-github-credo-and-travis-ci-986cd56b8f02)
|
413
|
-
* [Running Rubocop before git commit](https://christoph.luppri.ch/articles/
|
429
|
+
* [Running Rubocop before git commit](https://web.archive.org/web/20181225040512/https://christoph.luppri.ch/articles/code-quality/running-rubocop-before-git-commit/)
|
414
430
|
* [Pronto, Codeship and GitHub for automatic code review](http://abinoam.tl1n.com/pronto-codeship-and-github-for-automatic-code-review/)
|
415
|
-
* [How to automatically review your PRs for style violations with Pronto and RuboCop](https://christoph.luppri.ch/
|
431
|
+
* [How to automatically review your PRs for style violations with Pronto and RuboCop](https://christoph.luppri.ch/how-to-automatically-review-your-prs-for-style-violations-with-pronto-and-rubocop)
|
416
432
|
* [Create your own Pronto Runner](https://kevinjalbert.com/create-your-own-pronto-runner/)
|
417
433
|
* [Make Code Reviews A Little Bit Better With Automation](https://medium.com/jimmy-farrell/make-codes-reviews-a-little-bit-better-with-automation-35640df08a62)
|
418
434
|
* [Stop shipping untested Ruby code with undercover](https://medium.com/futuredev/stop-shipping-untested-ruby-code-with-undercover-1edc963be4a6)
|
435
|
+
* [Automatic code review with Pronto and GitHub Actions](https://everydayrails.com/2021/05/29/pronto-github-actions-code-quality.html)
|
419
436
|
|
420
437
|
Make a Pull Request to add something you wrote or found useful.
|
421
438
|
|
data/lib/pronto/cli.rb
CHANGED
@@ -20,7 +20,6 @@ module Pronto
|
|
20
20
|
|
21
21
|
method_option :commit,
|
22
22
|
type: :string,
|
23
|
-
default: 'master',
|
24
23
|
aliases: '-c',
|
25
24
|
desc: 'Commit for the diff'
|
26
25
|
|
@@ -33,6 +32,11 @@ module Pronto
|
|
33
32
|
type: :boolean,
|
34
33
|
desc: 'Analyze changes in git staging area'
|
35
34
|
|
35
|
+
method_option :workdir,
|
36
|
+
type: :boolean,
|
37
|
+
aliases: ['-w'],
|
38
|
+
desc: 'Analyze both staged and unstaged changes'
|
39
|
+
|
36
40
|
method_option :runner,
|
37
41
|
type: :array,
|
38
42
|
default: [],
|
@@ -55,7 +59,7 @@ module Pronto
|
|
55
59
|
|
56
60
|
formatters = ::Pronto::Formatter.get(options[:formatters])
|
57
61
|
|
58
|
-
commit_options = %i[staged unstaged index]
|
62
|
+
commit_options = %i[workdir staged unstaged index]
|
59
63
|
commit = commit_options.find { |o| options[o] } || options[:commit]
|
60
64
|
|
61
65
|
repo_workdir = ::Rugged::Repository.discover(path).workdir
|
data/lib/pronto/config.rb
CHANGED
@@ -11,6 +11,13 @@ module Pronto
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
+
def default_commit
|
15
|
+
default_commit =
|
16
|
+
ENV['PRONTO_DEFAULT_COMMIT'] ||
|
17
|
+
@config_hash.fetch('default_commit', 'master')
|
18
|
+
default_commit
|
19
|
+
end
|
20
|
+
|
14
21
|
def consolidate_comments?
|
15
22
|
consolidated =
|
16
23
|
ENV['PRONTO_CONSOLIDATE_COMMENTS'] ||
|
@@ -52,11 +59,11 @@ module Pronto
|
|
52
59
|
end
|
53
60
|
|
54
61
|
def warnings_per_review
|
55
|
-
|
62
|
+
fetch_integer('warnings_per_review')
|
56
63
|
end
|
57
64
|
|
58
65
|
def max_warnings
|
59
|
-
|
66
|
+
fetch_integer('max_warnings')
|
60
67
|
end
|
61
68
|
|
62
69
|
def message_format(formatter)
|
@@ -64,15 +71,45 @@ module Pronto
|
|
64
71
|
if formatter_config && formatter_config.key?('format')
|
65
72
|
formatter_config['format']
|
66
73
|
else
|
67
|
-
|
74
|
+
fetch_value('format')
|
68
75
|
end
|
69
76
|
end
|
70
77
|
|
78
|
+
def skip_runners
|
79
|
+
fetch_list('skip_runners')
|
80
|
+
end
|
81
|
+
|
82
|
+
def runners
|
83
|
+
fetch_list('runners')
|
84
|
+
end
|
85
|
+
|
71
86
|
def logger
|
72
87
|
@logger ||= begin
|
73
|
-
verbose =
|
88
|
+
verbose = fetch_value('verbose')
|
74
89
|
verbose ? Logger.new($stdout) : Logger.silent
|
75
90
|
end
|
76
91
|
end
|
92
|
+
|
93
|
+
private
|
94
|
+
|
95
|
+
def fetch_integer(key)
|
96
|
+
full_key = env_key(key)
|
97
|
+
|
98
|
+
(ENV[full_key] && Integer(ENV[full_key])) || @config_hash[key]
|
99
|
+
end
|
100
|
+
|
101
|
+
def fetch_value(key)
|
102
|
+
ENV[env_key(key)] || @config_hash[key]
|
103
|
+
end
|
104
|
+
|
105
|
+
def env_key(key)
|
106
|
+
"PRONTO_#{key.upcase}"
|
107
|
+
end
|
108
|
+
|
109
|
+
def fetch_list(key)
|
110
|
+
Array(fetch_value(key)).flat_map do |runners|
|
111
|
+
runners.split(',')
|
112
|
+
end
|
113
|
+
end
|
77
114
|
end
|
78
115
|
end
|
data/lib/pronto/config_file.rb
CHANGED
@@ -31,6 +31,7 @@ module Pronto
|
|
31
31
|
'text' => {
|
32
32
|
'format' => '%{color_location} %{color_level}: %{msg}'
|
33
33
|
},
|
34
|
+
'default_commit' => 'master',
|
34
35
|
'runners' => [],
|
35
36
|
'formatters' => [],
|
36
37
|
'max_warnings' => nil,
|
@@ -39,7 +40,9 @@ module Pronto
|
|
39
40
|
'format' => DEFAULT_MESSAGE_FORMAT
|
40
41
|
}.freeze
|
41
42
|
|
42
|
-
|
43
|
+
attr_reader :path
|
44
|
+
|
45
|
+
def initialize(path = ENV.fetch('PRONTO_CONFIG_FILE', '.pronto.yml'))
|
43
46
|
@path = path
|
44
47
|
end
|
45
48
|
|
@@ -10,7 +10,7 @@ module Pronto
|
|
10
10
|
|
11
11
|
approve_pull_request(comments.count, additions.count, client) if defined?(self.approve_pull_request)
|
12
12
|
|
13
|
-
"#{additions.count} Pronto messages posted to #{pretty_name}"
|
13
|
+
"#{additions.count} Pronto messages posted to #{pretty_name} (#{existing.count} existing)"
|
14
14
|
end
|
15
15
|
|
16
16
|
def client_module
|
@@ -13,6 +13,18 @@ module Pronto
|
|
13
13
|
[head_commit_sha, @repo.index.diff(options)]
|
14
14
|
when :staged
|
15
15
|
[head_commit_sha, head.diff(@repo.index, options)]
|
16
|
+
when :workdir
|
17
|
+
[
|
18
|
+
head_commit_sha,
|
19
|
+
@repo.diff_workdir(
|
20
|
+
head,
|
21
|
+
{
|
22
|
+
include_untracked: true,
|
23
|
+
include_untracked_content: true,
|
24
|
+
recurse_untracked_dirs: true
|
25
|
+
}.merge(options || {})
|
26
|
+
)
|
27
|
+
]
|
16
28
|
else
|
17
29
|
merge_base = merge_base(commit)
|
18
30
|
patches = @repo.diff(merge_base, head, options)
|
data/lib/pronto/gitlab.rb
CHANGED
data/lib/pronto/runners.rb
CHANGED
@@ -6,25 +6,42 @@ module Pronto
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def run(patches)
|
9
|
-
patches = reject_excluded(
|
9
|
+
patches = reject_excluded(config.excluded_files('all'), patches)
|
10
10
|
return [] if patches.none?
|
11
11
|
|
12
12
|
result = []
|
13
|
-
|
13
|
+
active_runners.each do |runner|
|
14
14
|
next if exceeds_max?(result)
|
15
|
-
|
15
|
+
config.logger.log("Running #{runner}")
|
16
16
|
runner_patches = reject_excluded(
|
17
|
-
|
17
|
+
config.excluded_files(runner.title), patches
|
18
18
|
)
|
19
19
|
next if runner_patches.none?
|
20
20
|
result += runner.new(runner_patches, patches.commit).run.flatten.compact
|
21
21
|
end
|
22
|
-
result = result.take(
|
22
|
+
result = result.take(config.max_warnings) if config.max_warnings
|
23
23
|
result
|
24
24
|
end
|
25
25
|
|
26
26
|
private
|
27
27
|
|
28
|
+
attr_reader :config, :runners
|
29
|
+
|
30
|
+
def active_runners
|
31
|
+
runners.select { |runner| active_runner?(runner) }
|
32
|
+
end
|
33
|
+
|
34
|
+
def active_runner?(runner)
|
35
|
+
return true if config.runners.empty? && config.skip_runners.empty?
|
36
|
+
|
37
|
+
if config.runners.empty?
|
38
|
+
!config.skip_runners.include?(runner.title)
|
39
|
+
else
|
40
|
+
active_runner_names = config.runners - config.skip_runners
|
41
|
+
active_runner_names.include?(runner.title)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
28
45
|
def reject_excluded(excluded_files, patches)
|
29
46
|
return patches unless excluded_files.any?
|
30
47
|
|
@@ -34,7 +51,7 @@ module Pronto
|
|
34
51
|
end
|
35
52
|
|
36
53
|
def exceeds_max?(warnings)
|
37
|
-
|
54
|
+
config.max_warnings && warnings.count >= config.max_warnings
|
38
55
|
end
|
39
56
|
end
|
40
57
|
end
|
data/lib/pronto/version.rb
CHANGED
data/lib/pronto.rb
CHANGED
@@ -55,9 +55,9 @@ require 'pronto/formatter/null_formatter'
|
|
55
55
|
require 'pronto/formatter/formatter'
|
56
56
|
|
57
57
|
module Pronto
|
58
|
-
def self.run(commit =
|
58
|
+
def self.run(commit = nil, repo_path = '.',
|
59
59
|
formatters = [Formatter::TextFormatter.new], file = nil)
|
60
|
-
commit ||=
|
60
|
+
commit ||= default_commit
|
61
61
|
|
62
62
|
repo = Git::Repository.new(repo_path)
|
63
63
|
options = { paths: [file] } if file
|
@@ -72,4 +72,8 @@ module Pronto
|
|
72
72
|
|
73
73
|
result
|
74
74
|
end
|
75
|
+
|
76
|
+
def self.default_commit
|
77
|
+
Config.new.default_commit
|
78
|
+
end
|
75
79
|
end
|
data/pronto.gemspec
CHANGED
@@ -40,12 +40,12 @@ Gem::Specification.new do |s|
|
|
40
40
|
s.require_paths = ['lib']
|
41
41
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
42
42
|
|
43
|
-
s.add_runtime_dependency('gitlab', '
|
44
|
-
s.add_runtime_dependency('httparty', '>= 0.13.7')
|
45
|
-
s.add_runtime_dependency('octokit', '
|
43
|
+
s.add_runtime_dependency('gitlab', '>= 4.4.0', '< 5.0')
|
44
|
+
s.add_runtime_dependency('httparty', '>= 0.13.7', '< 1.0')
|
45
|
+
s.add_runtime_dependency('octokit', '>= 4.7.0', '< 7.0')
|
46
46
|
s.add_runtime_dependency('rainbow', '>= 2.2', '< 4.0')
|
47
|
-
s.add_runtime_dependency('rexml', '
|
48
|
-
s.add_runtime_dependency('rugged', '>= 0.23.0', '<
|
47
|
+
s.add_runtime_dependency('rexml', '>= 3.2.5', '< 4.0')
|
48
|
+
s.add_runtime_dependency('rugged', '>= 0.23.0', '< 2.0')
|
49
49
|
s.add_runtime_dependency('thor', '>= 0.20.3', '< 2.0')
|
50
50
|
s.add_development_dependency('bundler', '>= 1.15')
|
51
51
|
s.add_development_dependency('pronto-rubocop', '~> 0.10.0')
|
@@ -54,5 +54,6 @@ Gem::Specification.new do |s|
|
|
54
54
|
s.add_development_dependency('rspec-its', '~> 1.2')
|
55
55
|
s.add_development_dependency('rspec-expectations', '~> 3.4')
|
56
56
|
s.add_development_dependency('rubocop', '~> 0.58')
|
57
|
-
s.add_development_dependency('simplecov', '~> 0.
|
57
|
+
s.add_development_dependency('simplecov', '~> 0.17', '!= 0.18.0', '!= 0.18.1', '!= 0.18.2', '!= 0.18.3', '!= 0.18.4',
|
58
|
+
'!= 0.18.5', '!= 0.19.0', '!= 0.19.1') # see https://docs.codeclimate.com/docs/configuring-test-coverage
|
58
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab
|
@@ -17,9 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.4.0
|
20
|
-
- - "
|
20
|
+
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '5.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 4.4.0
|
30
|
-
- - "
|
30
|
+
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '5.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: httparty
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,6 +37,9 @@ dependencies:
|
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: 0.13.7
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.0'
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -44,6 +47,9 @@ dependencies:
|
|
44
47
|
- - ">="
|
45
48
|
- !ruby/object:Gem::Version
|
46
49
|
version: 0.13.7
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.0'
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: octokit
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,9 +57,9 @@ dependencies:
|
|
51
57
|
- - ">="
|
52
58
|
- !ruby/object:Gem::Version
|
53
59
|
version: 4.7.0
|
54
|
-
- - "
|
60
|
+
- - "<"
|
55
61
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
62
|
+
version: '7.0'
|
57
63
|
type: :runtime
|
58
64
|
prerelease: false
|
59
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -61,9 +67,9 @@ dependencies:
|
|
61
67
|
- - ">="
|
62
68
|
- !ruby/object:Gem::Version
|
63
69
|
version: 4.7.0
|
64
|
-
- - "
|
70
|
+
- - "<"
|
65
71
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
72
|
+
version: '7.0'
|
67
73
|
- !ruby/object:Gem::Dependency
|
68
74
|
name: rainbow
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,16 +94,22 @@ dependencies:
|
|
88
94
|
name: rexml
|
89
95
|
requirement: !ruby/object:Gem::Requirement
|
90
96
|
requirements:
|
91
|
-
- - "
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 3.2.5
|
100
|
+
- - "<"
|
92
101
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
102
|
+
version: '4.0'
|
94
103
|
type: :runtime
|
95
104
|
prerelease: false
|
96
105
|
version_requirements: !ruby/object:Gem::Requirement
|
97
106
|
requirements:
|
98
|
-
- - "
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 3.2.5
|
110
|
+
- - "<"
|
99
111
|
- !ruby/object:Gem::Version
|
100
|
-
version: '
|
112
|
+
version: '4.0'
|
101
113
|
- !ruby/object:Gem::Dependency
|
102
114
|
name: rugged
|
103
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,7 +119,7 @@ dependencies:
|
|
107
119
|
version: 0.23.0
|
108
120
|
- - "<"
|
109
121
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
122
|
+
version: '2.0'
|
111
123
|
type: :runtime
|
112
124
|
prerelease: false
|
113
125
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -117,7 +129,7 @@ dependencies:
|
|
117
129
|
version: 0.23.0
|
118
130
|
- - "<"
|
119
131
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
132
|
+
version: '2.0'
|
121
133
|
- !ruby/object:Gem::Dependency
|
122
134
|
name: thor
|
123
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -242,14 +254,62 @@ dependencies:
|
|
242
254
|
requirements:
|
243
255
|
- - "~>"
|
244
256
|
- !ruby/object:Gem::Version
|
245
|
-
version: '0.
|
257
|
+
version: '0.17'
|
258
|
+
- - "!="
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
version: 0.18.0
|
261
|
+
- - "!="
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: 0.18.1
|
264
|
+
- - "!="
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: 0.18.2
|
267
|
+
- - "!="
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: 0.18.3
|
270
|
+
- - "!="
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: 0.18.4
|
273
|
+
- - "!="
|
274
|
+
- !ruby/object:Gem::Version
|
275
|
+
version: 0.18.5
|
276
|
+
- - "!="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 0.19.0
|
279
|
+
- - "!="
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
version: 0.19.1
|
246
282
|
type: :development
|
247
283
|
prerelease: false
|
248
284
|
version_requirements: !ruby/object:Gem::Requirement
|
249
285
|
requirements:
|
250
286
|
- - "~>"
|
251
287
|
- !ruby/object:Gem::Version
|
252
|
-
version: '0.
|
288
|
+
version: '0.17'
|
289
|
+
- - "!="
|
290
|
+
- !ruby/object:Gem::Version
|
291
|
+
version: 0.18.0
|
292
|
+
- - "!="
|
293
|
+
- !ruby/object:Gem::Version
|
294
|
+
version: 0.18.1
|
295
|
+
- - "!="
|
296
|
+
- !ruby/object:Gem::Version
|
297
|
+
version: 0.18.2
|
298
|
+
- - "!="
|
299
|
+
- !ruby/object:Gem::Version
|
300
|
+
version: 0.18.3
|
301
|
+
- - "!="
|
302
|
+
- !ruby/object:Gem::Version
|
303
|
+
version: 0.18.4
|
304
|
+
- - "!="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: 0.18.5
|
307
|
+
- - "!="
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: 0.19.0
|
310
|
+
- - "!="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: 0.19.1
|
253
313
|
description: |2
|
254
314
|
Pronto runs analysis quickly by checking only the relevant changes. Created
|
255
315
|
to be used on pull requests, but suited for other scenarios as well. Perfect
|
@@ -264,6 +324,8 @@ extra_rdoc_files:
|
|
264
324
|
- README.md
|
265
325
|
files:
|
266
326
|
- ".github/CODEOWNERS"
|
327
|
+
- ".github/workflows/pronto.yml"
|
328
|
+
- ".github/workflows/specs.yml"
|
267
329
|
- CHANGELOG.md
|
268
330
|
- CONTRIBUTING.md
|
269
331
|
- LICENSE
|
@@ -324,7 +386,7 @@ homepage: https://github.com/prontolabs/pronto
|
|
324
386
|
licenses:
|
325
387
|
- MIT
|
326
388
|
metadata: {}
|
327
|
-
post_install_message:
|
389
|
+
post_install_message:
|
328
390
|
rdoc_options: []
|
329
391
|
require_paths:
|
330
392
|
- lib
|
@@ -339,8 +401,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
339
401
|
- !ruby/object:Gem::Version
|
340
402
|
version: '0'
|
341
403
|
requirements: []
|
342
|
-
rubygems_version: 3.0.
|
343
|
-
signing_key:
|
404
|
+
rubygems_version: 3.0.9
|
405
|
+
signing_key:
|
344
406
|
specification_version: 4
|
345
407
|
summary: Pronto runs analysis by checking only the introduced changes
|
346
408
|
test_files: []
|