invoca-utils 0.6.0 → 0.6.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 +4 -4
- data/.github/workflows/pipeline.yml +5 -33
- data/Appraisals +1 -1
- data/CHANGELOG.md +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +9 -4
- data/catalog-info.yaml +2 -0
- data/gemfiles/activesupport_7_0.gemfile +4 -0
- data/gemfiles/activesupport_7_1.gemfile +4 -0
- data/gemfiles/{activesupport_6_0.gemfile → activesupport_7_2.gemfile} +5 -1
- data/gemfiles/{activesupport_6_1.gemfile → activesupport_8_0.gemfile} +5 -1
- data/invoca-utils.gemspec +1 -0
- data/lib/invoca/utils/diff.rb +4 -0
- data/lib/invoca/utils/version.rb +1 -1
- data/lib/invoca/utils.rb +1 -3
- data/spec/unit/utils_spec.rb +7 -2
- metadata +18 -5
- data/gemfiles/activesupport_7.gemfile +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 443126af15b2537b1e27e80293dc05c81304f30ddd26a1af189dc132a46d033e
|
4
|
+
data.tar.gz: a0846a8f5c9d0b80b5204b08bdead40bb2730f2aa0addb926306cd9da51e50cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a178753bf9f95c9ba7b5ce2620b987dfd36aa618d7f0ec7660245d242d056a9512b3e7b51b19e45fb790c4159ecfafc910e7b00e6dbe792f005611557d39e555
|
7
|
+
data.tar.gz: 84e20b7543da792234fe69b90046023d05e3fb24ca109717997b644a6075a05aada044b4f321347d6aa08ec0cd20b911bbb5e3eac5aabb2df90022f8fac95007
|
@@ -1,36 +1,8 @@
|
|
1
|
-
---
|
2
1
|
name: Pipeline
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
schedule:
|
5
|
+
- cron: '0 1 * * 1' # Every Monday at 1AM UTC
|
6
6
|
jobs:
|
7
7
|
tests:
|
8
|
-
|
9
|
-
|
10
|
-
strategy:
|
11
|
-
fail-fast: false
|
12
|
-
matrix:
|
13
|
-
ruby: [3.1, 3.2, 3.3]
|
14
|
-
gemfile:
|
15
|
-
- Gemfile
|
16
|
-
- gemfiles/activesupport_6_0.gemfile
|
17
|
-
- gemfiles/activesupport_6_1.gemfile
|
18
|
-
- gemfiles/activesupport_7_0.gemfile
|
19
|
-
- gemfiles/activesupport_7_1.gemfile
|
20
|
-
|
21
|
-
env:
|
22
|
-
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
23
|
-
|
24
|
-
name: Unit Tests (${{ matrix.ruby }} - ${{ matrix.gemfile }})
|
25
|
-
|
26
|
-
steps:
|
27
|
-
- name: Check out
|
28
|
-
uses: actions/checkout@v2
|
29
|
-
- name: Set up Ruby ${{ matrix.ruby }}
|
30
|
-
uses: ruby/setup-ruby@v1
|
31
|
-
with:
|
32
|
-
ruby-version: ${{ matrix.ruby }}
|
33
|
-
bundler: 2.2.29
|
34
|
-
bundler-cache: true
|
35
|
-
- name: Run Tests
|
36
|
-
run: bundle exec rspec
|
8
|
+
uses: Invoca/ruby-test-matrix-workflow/.github/workflows/ruby-test-matrix.yml@main
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,13 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
**Note:** This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [0.6.1] - 2025-03-27
|
8
|
+
### Fixed
|
9
|
+
- Fixed a global namespace collision with diff-lcs over the `Diff` constant
|
10
|
+
|
11
|
+
### Added
|
12
|
+
- Loading `invoca/utils/diff` now gives access to both `invoca-utils` and `diff-lcs` diff helpers
|
13
|
+
|
7
14
|
## [0.6.0] - 2024-07-10
|
8
15
|
### Added
|
9
16
|
- Require Ruby > 3.1
|
data/Gemfile
CHANGED
@@ -14,3 +14,10 @@ gem "rspec_junit_formatter", "~> 0.4"
|
|
14
14
|
# minitest, which is a transitive dependency of activesupport,
|
15
15
|
# version should support ruby 2.5 which is the minimum github pipeline targets
|
16
16
|
gem "minitest", "~> 5.10.0"
|
17
|
+
|
18
|
+
|
19
|
+
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
|
20
|
+
|
21
|
+
gem "base64", ">= 0.2.0"
|
22
|
+
gem "bigdecimal", ">= 3.1"
|
23
|
+
gem "mutex_m", ">= 0.2.0"
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
invoca-utils (0.6.
|
4
|
+
invoca-utils (0.6.1)
|
5
5
|
activesupport (>= 6.0)
|
6
|
+
diff-lcs (>= 1.6.1)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
@@ -27,7 +28,7 @@ GEM
|
|
27
28
|
bigdecimal (3.1.8)
|
28
29
|
concurrent-ruby (1.3.3)
|
29
30
|
connection_pool (2.4.1)
|
30
|
-
diff-lcs (1.
|
31
|
+
diff-lcs (1.6.1)
|
31
32
|
drb (2.2.1)
|
32
33
|
i18n (1.14.5)
|
33
34
|
concurrent-ruby (~> 1.0)
|
@@ -40,7 +41,7 @@ GEM
|
|
40
41
|
rspec-mocks (~> 3.13.0)
|
41
42
|
rspec-core (3.13.0)
|
42
43
|
rspec-support (~> 3.13.0)
|
43
|
-
rspec-expectations (3.13.
|
44
|
+
rspec-expectations (3.13.3)
|
44
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
46
|
rspec-support (~> 3.13.0)
|
46
47
|
rspec-mocks (3.13.1)
|
@@ -61,11 +62,15 @@ PLATFORMS
|
|
61
62
|
DEPENDENCIES
|
62
63
|
appraisal (~> 2.4)
|
63
64
|
appraisal-matrix
|
65
|
+
base64 (>= 0.2.0)
|
66
|
+
bigdecimal (>= 3.1)
|
67
|
+
concurrent-ruby (~> 1.3, < 1.3.5)
|
64
68
|
invoca-utils!
|
65
69
|
minitest (~> 5.10.0)
|
70
|
+
mutex_m (>= 0.2.0)
|
66
71
|
rake (~> 13.0)
|
67
72
|
rspec (~> 3.0)
|
68
73
|
rspec_junit_formatter (~> 0.4)
|
69
74
|
|
70
75
|
BUNDLED WITH
|
71
|
-
2.
|
76
|
+
2.6.3
|
data/catalog-info.yaml
CHANGED
@@ -8,6 +8,10 @@ gem "rake", "~> 13.0"
|
|
8
8
|
gem "rspec", "~> 3.0"
|
9
9
|
gem "rspec_junit_formatter", "~> 0.4"
|
10
10
|
gem "minitest", "~> 5.10.0"
|
11
|
+
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
|
12
|
+
gem "base64", ">= 0.2.0"
|
13
|
+
gem "bigdecimal", ">= 3.1"
|
14
|
+
gem "mutex_m", ">= 0.2.0"
|
11
15
|
gem "activesupport", "~> 7.0.0"
|
12
16
|
|
13
17
|
gemspec path: "../"
|
@@ -8,6 +8,10 @@ gem "rake", "~> 13.0"
|
|
8
8
|
gem "rspec", "~> 3.0"
|
9
9
|
gem "rspec_junit_formatter", "~> 0.4"
|
10
10
|
gem "minitest", "~> 5.10.0"
|
11
|
+
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
|
12
|
+
gem "base64", ">= 0.2.0"
|
13
|
+
gem "bigdecimal", ">= 3.1"
|
14
|
+
gem "mutex_m", ">= 0.2.0"
|
11
15
|
gem "activesupport", "~> 7.1.0"
|
12
16
|
|
13
17
|
gemspec path: "../"
|
@@ -8,6 +8,10 @@ gem "rake", "~> 13.0"
|
|
8
8
|
gem "rspec", "~> 3.0"
|
9
9
|
gem "rspec_junit_formatter", "~> 0.4"
|
10
10
|
gem "minitest", "~> 5.10.0"
|
11
|
-
gem "
|
11
|
+
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
|
12
|
+
gem "base64", ">= 0.2.0"
|
13
|
+
gem "bigdecimal", ">= 3.1"
|
14
|
+
gem "mutex_m", ">= 0.2.0"
|
15
|
+
gem "activesupport", "~> 7.2.0"
|
12
16
|
|
13
17
|
gemspec path: "../"
|
@@ -8,6 +8,10 @@ gem "rake", "~> 13.0"
|
|
8
8
|
gem "rspec", "~> 3.0"
|
9
9
|
gem "rspec_junit_formatter", "~> 0.4"
|
10
10
|
gem "minitest", "~> 5.10.0"
|
11
|
-
gem "
|
11
|
+
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
|
12
|
+
gem "base64", ">= 0.2.0"
|
13
|
+
gem "bigdecimal", ">= 3.1"
|
14
|
+
gem "mutex_m", ">= 0.2.0"
|
15
|
+
gem "activesupport", "~> 8.0.0"
|
12
16
|
|
13
17
|
gemspec path: "../"
|
data/invoca-utils.gemspec
CHANGED
data/lib/invoca/utils/diff.rb
CHANGED
data/lib/invoca/utils/version.rb
CHANGED
data/lib/invoca/utils.rb
CHANGED
@@ -20,9 +20,7 @@ require "invoca/utils/exceptions"
|
|
20
20
|
require "invoca/utils/guaranteed_utf8_string"
|
21
21
|
require "invoca/utils/version"
|
22
22
|
|
23
|
-
|
24
|
-
Diff = Invoca::Utils::Diff
|
25
|
-
end
|
23
|
+
Diff = Invoca::Utils::Diff
|
26
24
|
|
27
25
|
unless defined?(Diffable)
|
28
26
|
Diffable = Invoca::Utils::Diffable
|
data/spec/unit/utils_spec.rb
CHANGED
@@ -30,8 +30,13 @@ describe Invoca::Utils do
|
|
30
30
|
load 'invoca/utils.rb'
|
31
31
|
end
|
32
32
|
|
33
|
-
it "
|
34
|
-
expect(
|
33
|
+
it "define Diff as Invoca::Utils::Diff" do
|
34
|
+
expect(Invoca::Utils::Diff).to eq(::Diff)
|
35
|
+
end
|
36
|
+
|
37
|
+
it "still allows access to diff-lcs methods" do
|
38
|
+
expect(defined?(Diff::LCS)).to eq("constant")
|
39
|
+
expect(Diff::LCS).to respond_to(:diff)
|
35
40
|
end
|
36
41
|
end
|
37
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invoca-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca development
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '6.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: diff-lcs
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.6.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.6.1
|
27
41
|
description: A public collection of helpers used in multiple projects
|
28
42
|
email:
|
29
43
|
- development@invoca.com
|
@@ -46,11 +60,10 @@ files:
|
|
46
60
|
- README.md
|
47
61
|
- Rakefile
|
48
62
|
- catalog-info.yaml
|
49
|
-
- gemfiles/activesupport_6_0.gemfile
|
50
|
-
- gemfiles/activesupport_6_1.gemfile
|
51
|
-
- gemfiles/activesupport_7.gemfile
|
52
63
|
- gemfiles/activesupport_7_0.gemfile
|
53
64
|
- gemfiles/activesupport_7_1.gemfile
|
65
|
+
- gemfiles/activesupport_7_2.gemfile
|
66
|
+
- gemfiles/activesupport_8_0.gemfile
|
54
67
|
- invoca-utils.gemspec
|
55
68
|
- lib/invoca/utils.rb
|
56
69
|
- lib/invoca/utils/array.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "appraisal", "~> 2.4"
|
6
|
-
gem "rake", "~> 13.0"
|
7
|
-
gem "rspec", "~> 3.0"
|
8
|
-
gem "rspec_junit_formatter", "~> 0.4"
|
9
|
-
gem "minitest", "~> 5.10.0"
|
10
|
-
gem "activesupport", "~> 7.0"
|
11
|
-
|
12
|
-
gemspec path: "../"
|