semantic_puppet 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +17 -0
- data/.github/workflows/mend.yaml +2 -2
- data/.github/workflows/rspec_tests.yaml +10 -13
- data/CHANGELOG.md +4 -0
- data/lib/semantic_puppet/gem_version.rb +1 -1
- data/lib/semantic_puppet/version_range.rb +4 -4
- data/semantic_puppet.gemspec +0 -1
- data/spec/unit/semantic_puppet/version_range_spec.rb +10 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eca696bafc0fd31fcab209996686beb644ab5822f0dd1097738b756efa757cb
|
4
|
+
data.tar.gz: 53602f9333cf344a567fcd371e97e1160327991164a5f2bca4927c1cbf372b74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/.github/workflows/mend.yaml
CHANGED
@@ -11,14 +11,14 @@ jobs:
|
|
11
11
|
name: Mend Monitor
|
12
12
|
steps:
|
13
13
|
- name: Checkout current PR
|
14
|
-
uses: actions/checkout@
|
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@
|
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-
|
17
|
-
- {os: ubuntu-
|
18
|
-
- {os: ubuntu-
|
19
|
-
- {os: ubuntu-
|
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@
|
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
|
-
-
|
35
|
-
|
36
|
-
|
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))
|
@@ -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 [
|
402
|
-
# @return [
|
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
|
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
|
data/semantic_puppet.gemspec
CHANGED
@@ -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.
|
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:
|
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.
|
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.
|