semantic_puppet 1.1.0 → 1.1.1

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: eea2dc5798bc6407fce6be5c6b5eccac1c6ed181c95e8ee3bcf28f35b42d99a9
4
- data.tar.gz: 7c28901b6e803c210a14164945fb81a2525f66d536dcffc472c7392b00217bd6
3
+ metadata.gz: 7eca696bafc0fd31fcab209996686beb644ab5822f0dd1097738b756efa757cb
4
+ data.tar.gz: 53602f9333cf344a567fcd371e97e1160327991164a5f2bca4927c1cbf372b74
5
5
  SHA512:
6
- metadata.gz: 93345ca72b239f08ce44b76fa2019831681f5e23c83bb5287191d2e754fc8dd451a76559803200970b778be8b03a91e5ca73c6114d651392036372e3c7c65a1a
7
- data.tar.gz: 1b0c0670a773a76bc13c1cae7ab782f8b71ac984d480e8e22c45588d1eb40f507e8d91d898d80ddd7e78d4422f5a671b4c2555a7b4f93543eed6e2f8340a271c
6
+ metadata.gz: 31e8634019028c678bfb59b7f8ec71fa8d839af8bb9475add780fd330e943246edc4a1cb803dc5e6a270ca4c48229d9fcbaf917d1bc00c9fd5a70b8896e9c91b
7
+ data.tar.gz: 27f26157df4621ad97687fdcfd6b8f0f69dd4e8c70fbb8f36dd35ec1e129998ce97f374342336607dd12b76833e17393762694ad3b224cad16315b651eee16b0
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ # raise PRs for gem updates
4
+ - package-ecosystem: bundler
5
+ directory: "/"
6
+ schedule:
7
+ interval: daily
8
+ time: "13:00"
9
+ open-pull-requests-limit: 10
10
+
11
+ # Maintain dependencies for GitHub Actions
12
+ - package-ecosystem: github-actions
13
+ directory: "/"
14
+ schedule:
15
+ interval: daily
16
+ time: "13:00"
17
+ open-pull-requests-limit: 10
@@ -11,14 +11,14 @@ jobs:
11
11
  name: Mend Monitor
12
12
  steps:
13
13
  - name: Checkout current PR
14
- uses: actions/checkout@v3
14
+ uses: actions/checkout@v4
15
15
  - name: Setup Ruby
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
18
18
  ruby-version: 2.7
19
19
  - name: Create lock
20
20
  run: bundle lock
21
- - uses: actions/setup-java@v3
21
+ - uses: actions/setup-java@v4
22
22
  with:
23
23
  distribution: 'temurin'
24
24
  java-version: '17'
@@ -13,10 +13,11 @@ jobs:
13
13
  strategy:
14
14
  matrix:
15
15
  cfg:
16
- - {os: ubuntu-20.04, ruby: '2.7'}
17
- - {os: ubuntu-20.04, ruby: '3.0'}
18
- - {os: ubuntu-20.04, ruby: '3.2'}
19
- - {os: ubuntu-20.04, ruby: 'jruby-9.4.2'}
16
+ - {os: ubuntu-22.04, ruby: '2.7'}
17
+ - {os: ubuntu-22.04, ruby: '3.0'}
18
+ - {os: ubuntu-22.04, ruby: '3.2'}
19
+ - {os: ubuntu-22.04, ruby: '3.3'}
20
+ - {os: ubuntu-22.04, ruby: 'jruby-9.4.2'}
20
21
  - {os: windows-2019, ruby: '2.7'}
21
22
  - {os: windows-2019, ruby: '3.0'}
22
23
  - {os: windows-2019, ruby: '3.2'}
@@ -24,17 +25,13 @@ jobs:
24
25
  runs-on: ${{ matrix.cfg.os }}
25
26
  steps:
26
27
  - name: Checkout current PR
27
- uses: actions/checkout@v3
28
+ uses: actions/checkout@v4
28
29
 
29
30
  - name: Install ruby version ${{ matrix.cfg.ruby }}
30
31
  uses: ruby/setup-ruby@v1
31
32
  with:
32
33
  ruby-version: ${{ matrix.cfg.ruby }}
33
-
34
- - name: Update rubygems and install gems
35
- run: |
36
- gem update --system --silent --no-document
37
- bundle config set without packaging
38
- bundle install --jobs 4 --retry 3
39
-
40
- - run: bundle exec rake spec
34
+ bundler-cache: true
35
+ - run: bundle exec rake spec
36
+ - name: Verify gem builds
37
+ run: gem build --verbose *.gemspec
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## 1.1.1 - 2025-01-07
6
+
7
+ - Fix method name typo ([joshcooper](https://github.com/joshcooper))
8
+
5
9
  ## 1.1.0 - 2023-04-10
6
10
  - Fix unsatisfiable if resolve() fails ([ekohl](https://github.com/ekohl))
7
11
  - Move from travis/appveyor to GitHub actions ([AriaXLi](https://github.com/AriaXLi))
@@ -1,3 +1,3 @@
1
1
  module SemanticPuppet
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -398,8 +398,8 @@ module SemanticPuppet
398
398
 
399
399
  # Merge two ranges so that the result matches the intersection of all matching versions.
400
400
  #
401
- # @param range [AbastractRange] the range to intersect with
402
- # @return [AbastractRange,nil] the intersection between the ranges
401
+ # @param range [AbstractRange] the range to intersect with
402
+ # @return [AbstractRange,nil] the intersection between the ranges
403
403
  #
404
404
  # @api private
405
405
  def intersection(range)
@@ -474,7 +474,7 @@ module SemanticPuppet
474
474
  excl_end = other.exclude_end?
475
475
  else
476
476
  max = self.end
477
- excl_end = exclude_end && other.exclude_end?
477
+ excl_end = exclude_end? && other.exclude_end?
478
478
  end
479
479
 
480
480
  MinMaxRange.create(excl_begin ? GtRange.new(min) : GtEqRange.new(min), excl_end ? LtRange.new(max) : LtEqRange.new(max))
@@ -499,7 +499,7 @@ module SemanticPuppet
499
499
  # Checks if this matcher accepts a prerelease with the same major, minor, patch triple as the given version. Only matchers
500
500
  # where this has been explicitly stated will respond `true` to this method
501
501
  #
502
- # @return [Boolean] `true` if this matcher accepts a prerelase with the tuple from the given version
502
+ # @return [Boolean] `true` if this matcher accepts a prerelease with the tuple from the given version
503
503
  def test_prerelease?(_)
504
504
  false
505
505
  end
@@ -22,7 +22,6 @@ spec = Gem::Specification.new do |s|
22
22
  # Dependencies
23
23
  s.required_ruby_version = '>= 2.7.0'
24
24
 
25
- s.add_development_dependency "json", "~> 1.8.3" if RUBY_VERSION < '2.0'
26
25
  s.add_development_dependency "rake"
27
26
  s.add_development_dependency "rspec"
28
27
 
@@ -270,6 +270,16 @@ describe SemanticPuppet::VersionRange do
270
270
  expect(range.exclude_end?).to be_nil
271
271
  end
272
272
  end
273
+
274
+ context 'prerelease' do
275
+ test_expressions(
276
+ [ '>=5.0.1-rc0' || '>=0.5.0' ] => {
277
+ :to_str => '>=5.0.1-rc0',
278
+ :includes => ['5.0.1-rc0', '5.0.1'], # should include 1.0.0
279
+ :excludes => ['1.0.0', '5.0.0-rc0', '5.0.2-rc0']
280
+ }
281
+ )
282
+ end
273
283
  end
274
284
 
275
285
  context 'invalid expressions' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic_puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2025-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -102,6 +102,7 @@ executables: []
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
+ - ".github/dependabot.yml"
105
106
  - ".github/workflows/mend.yaml"
106
107
  - ".github/workflows/rspec_tests.yaml"
107
108
  - ".gitignore"
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  requirements: []
155
- rubygems_version: 3.0.9
156
+ rubygems_version: 3.4.22
156
157
  signing_key:
157
158
  specification_version: 4
158
159
  summary: Useful tools for working with Semantic Versions.