pronto 0.11.4 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 236602e28fd304c6c2da56ba1def17ceec103b047afafe18dc393dc798f80383
4
- data.tar.gz: 1994554e2d757d7d143fd3865ef02953a1e559ce2cd4f8283e0f06ea5d7fef5d
3
+ metadata.gz: c3bbbe22cb922619189ce37661c76be91e362d75bbbffb913cb494d6c3140903
4
+ data.tar.gz: 49fc04be6c7af5d7912b32304204b441c434101f91da691019d288330dc2be14
5
5
  SHA512:
6
- metadata.gz: ba48ee4249ddb5815f3b3ab6d9a05425139700ecf579b5be259048efab45eac358323795845722c770ee2a2cb65909263899f3997ab6646d2b981fdc07fd78c3
7
- data.tar.gz: 357ace903aba554b35c3a678e6c068995e2250f50b7d888f9a4e7dfbd2f26f00794c78f2db9edf713d2b4b122c25dfc889e97ecbb15081a7da27cf96fc099258
6
+ metadata.gz: 02dd78392d6285a7eb16789d1e6ec0e1724a6646ea11ea8514f4fade5720ad041f45db1ab7a79eb298a98ada17ce25b9d8e2b620a01ad4523872ffa346936cba
7
+ data.tar.gz: 335eea939fc59917c3abc7a8aa76aee864a8869e5da3cf28035bf8226ce0b67e1e02f1b8ae4e0323fdd3915877985c8276899ce69a52d84ced7c92cf06c0c858
@@ -8,7 +8,7 @@ jobs:
8
8
  pronto:
9
9
  runs-on: ubuntu-24.04
10
10
  steps:
11
- - uses: actions/checkout@v4
11
+ - uses: actions/checkout@v6
12
12
  with:
13
13
  fetch-depth: 0
14
14
  - name: Set up Ruby
@@ -18,15 +18,15 @@ jobs:
18
18
  id-token: write
19
19
 
20
20
  steps:
21
- - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
21
+ - uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
22
22
  with:
23
23
  egress-policy: audit
24
24
 
25
- - uses: actions/checkout@cbb722410c2e876e24abbe8de2cc27693e501dcb # v4.2.2
25
+ - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26
26
 
27
27
  - uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4 # v1.207.0
28
28
  with:
29
29
  bundler-cache: true
30
30
  ruby-version: '3.4'
31
31
 
32
- - uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
32
+ - uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b # v1.1.2
@@ -15,7 +15,7 @@ jobs:
15
15
  exclude:
16
16
  - ruby: "2.3" # Rugged uses the wrong openssl version on CI and segfaults (similar to https://github.com/libgit2/rugged/issues/718)
17
17
  steps:
18
- - uses: actions/checkout@v4
18
+ - uses: actions/checkout@v6
19
19
  - name: Use specific gitlab gem version (if required)
20
20
  if: matrix.ruby == '2.4'
21
21
  run: echo "gem 'gitlab', '< 4.14.1'" >> Gemfile.local
@@ -24,10 +24,5 @@ jobs:
24
24
  with:
25
25
  ruby-version: ${{ matrix.ruby }}
26
26
  bundler-cache: true
27
- - name: Test & publish code coverage
28
- uses: paambaati/codeclimate-action@f429536ee076d758a24705203199548125a28ca7 # v9.0.0
29
- env:
30
- CC_TEST_REPORTER_ID: 3d676246ffa66d3fdef6253a9870431b1a2da04e9ecb25486c08a38823c37b6a
31
- COVERAGE: true
32
- with:
33
- coverageCommand: bundle exec rspec
27
+ - name: Test
28
+ run: bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.11.5
6
+
7
+ ### Changes
8
+
9
+ * [#481](https://github.com/prontolabs/pronto/pull/481) add "ostruct" as dependency for Ruby 4.0 compatibility
10
+ * [#493](https://github.com/prontolabs/pronto/pull/493) docs: document setting an alternate default branch
11
+
5
12
  ## 0.11.4
6
13
 
7
14
  ### Changes
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/pronto.svg)](http://badge.fury.io/rb/pronto)
4
4
  [![Build Status](https://github.com/prontolabs/pronto/actions/workflows/specs.yml/badge.svg)](https://github.com/prontolabs/pronto/actions/workflows/specs.yml)
5
- [![Code Climate](https://codeclimate.com/github/prontolabs/pronto.svg)](https://codeclimate.com/github/prontolabs/pronto)
6
5
 
7
6
  **Pronto** runs analysis quickly by checking only the relevant changes. Created to
8
7
  be used on [GitHub pull requests](#github-integration), but also works [locally](#local-changes) and integrates with [GitLab](#gitlab-integration) and [Bitbucket](#bitbucket-integration).
@@ -11,7 +10,7 @@ to your [styleguide](https://github.com/prontolabs/pronto-rubocop), [are DRY](ht
11
10
 
12
11
  ![Pronto demo](pronto.gif "")
13
12
 
14
- _This README might be ahead of the latest release. Find the README for v0.11.4 [here](https://github.com/prontolabs/pronto/blob/v0.11.4/README.md)._
13
+ _This README might be ahead of the latest release. Find the README for v0.11.5 [here](https://github.com/prontolabs/pronto/blob/v0.11.5/README.md)._
15
14
 
16
15
  * [Installation](#installation)
17
16
  * [Usage](#usage)
@@ -53,6 +52,9 @@ gem 'pronto-flay', require: false
53
52
 
54
53
  Pronto runs the checks on a diff between the current HEAD and the provided commit-ish (default is master).
55
54
 
55
+ > [!NOTE]
56
+ > If the default branch is NOT `master`, invoke `pronto run -c=<branch>` OR set the `default_commit` config value.
57
+
56
58
  ### Local Changes
57
59
 
58
60
  Navigate to the repository you want to run Pronto on, and:
@@ -287,6 +289,7 @@ all:
287
289
  eslint:
288
290
  exclude:
289
291
  - 'app/assets/**/*'
292
+ default_commit: 'main' # set this if your repo differs from master
290
293
  github:
291
294
  slug: prontolabs/pronto
292
295
  access_token: B26354
@@ -320,6 +323,7 @@ will always take precedence over values in configuration file.
320
323
  | `skip_runners` | All, except listed runners will be executed. Runs everything if option is skipped. |
321
324
  | `verbose` | Outputs more information when set to `true`. |
322
325
  | `warnings_per_review` | Limits the amount of warnings per review. Returns all warnings if option is skipped. |
326
+ | `default_commit` | Commit-ish `pronto run` will execute runners against. |
323
327
 
324
328
  ### Message format
325
329
 
@@ -1,6 +1,6 @@
1
1
  module Pronto
2
2
  module Version
3
- STRING = '0.11.4'.freeze
3
+ STRING = '0.11.5'.freeze
4
4
 
5
5
  MSG = '%s (running on %s %s %s)'.freeze
6
6
 
data/pronto.gemspec CHANGED
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
42
42
  s.add_runtime_dependency('gitlab', '>= 4.4.0', '< 5.0')
43
43
  s.add_runtime_dependency('httparty', '>= 0.13.7', '< 1.0')
44
44
  s.add_runtime_dependency('octokit', '>= 4.7.0', '< 11.0')
45
+ s.add_runtime_dependency('ostruct')
45
46
  s.add_runtime_dependency('rainbow', '>= 2.2', '< 4.0')
46
47
  s.add_runtime_dependency('rexml', '>= 3.2.5', '< 4.0')
47
48
  s.add_runtime_dependency('rugged', '>= 0.23.0', '< 2.0')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 0.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-02 00:00:00.000000000 Z
10
+ date: 2025-12-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gitlab
@@ -69,6 +69,20 @@ dependencies:
69
69
  - - "<"
70
70
  - !ruby/object:Gem::Version
71
71
  version: '11.0'
72
+ - !ruby/object:Gem::Dependency
73
+ name: ostruct
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
72
86
  - !ruby/object:Gem::Dependency
73
87
  name: rainbow
74
88
  requirement: !ruby/object:Gem::Requirement