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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c4c3ce7e8a1dbe52aa8ab6c6614d9bc2b6ba8ac2e3f04adf233454cb535128b
4
- data.tar.gz: b604d11003c903c70b0e63646c87547a426d5af1dec8fdfabff802e4c4ceb8f7
3
+ metadata.gz: 443126af15b2537b1e27e80293dc05c81304f30ddd26a1af189dc132a46d033e
4
+ data.tar.gz: a0846a8f5c9d0b80b5204b08bdead40bb2730f2aa0addb926306cd9da51e50cf
5
5
  SHA512:
6
- metadata.gz: 655134641dc1abd112340418b18c7a1910adf662230f9bfff997de68c03ca70835186beae2ec243a1061d3ce8bec4302dc942f402b798af13034a389c0170223
7
- data.tar.gz: e621f9c450234d24d5725f5186e159cfa6e6ea620c45ccd255202f8de00e2cccfc7baf10bbcc90b223c31fdc2c91e1ddac591808bf5f0939b5c1c75a4b020e91
6
+ metadata.gz: a178753bf9f95c9ba7b5ce2620b987dfd36aa618d7f0ec7660245d242d056a9512b3e7b51b19e45fb790c4159ecfafc910e7b00e6dbe792f005611557d39e555
7
+ data.tar.gz: 84e20b7543da792234fe69b90046023d05e3fb24ca109717997b644a6075a05aada044b4f321347d6aa08ec0cd20b911bbb5e3eac5aabb2df90022f8fac95007
@@ -1,36 +1,8 @@
1
- ---
2
1
  name: Pipeline
3
-
4
- on: [push]
5
-
2
+ on:
3
+ push:
4
+ schedule:
5
+ - cron: '0 1 * * 1' # Every Monday at 1AM UTC
6
6
  jobs:
7
7
  tests:
8
- runs-on: ubuntu-latest
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
@@ -2,4 +2,4 @@
2
2
 
3
3
  require 'appraisal/matrix'
4
4
 
5
- appraisal_matrix(activesupport: "6.0")
5
+ appraisal_matrix(activesupport: "7.0")
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.0)
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.5.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.1)
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.2.29
76
+ 2.6.3
data/catalog-info.yaml CHANGED
@@ -19,6 +19,8 @@ metadata:
19
19
  tags:
20
20
  - ruby
21
21
  - gem
22
+ - public
23
+ - rails-dependent
22
24
  annotations:
23
25
  buildkite.com/project-slug: Invoca/invoca-utils
24
26
  github.com/project-slug: Invoca/invoca-utils
@@ -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 "activesupport", "~> 6.0.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"
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 "activesupport", "~> 6.1.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"
15
+ gem "activesupport", "~> 8.0.0"
12
16
 
13
17
  gemspec path: "../"
data/invoca-utils.gemspec CHANGED
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.required_ruby_version = ">= 3.1"
30
30
 
31
31
  spec.add_dependency "activesupport", ">= 6.0"
32
+ spec.add_dependency "diff-lcs", ">= 1.6.1"
32
33
 
33
34
  # Specify this gem's development and test dependencies in Gemfile
34
35
  end
@@ -2,10 +2,14 @@
2
2
 
3
3
  # adapted from http://users.cybercity.dk/~dsl8950/ruby/diff-0.3.tar.gz
4
4
 
5
+ require "diff/lcs"
6
+
5
7
  module Invoca
6
8
  module Utils
7
9
  class Diff
8
10
 
11
+ LCS = ::Diff::LCS
12
+
9
13
  VERSION = 0.3
10
14
 
11
15
  def self.lcs(a, b)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Invoca
4
4
  module Utils
5
- VERSION = "0.6.0"
5
+ VERSION = "0.6.1"
6
6
  end
7
7
  end
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
- unless defined?(Diff)
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
@@ -30,8 +30,13 @@ describe Invoca::Utils do
30
30
  load 'invoca/utils.rb'
31
31
  end
32
32
 
33
- it "not define Diff as Invoca::Utils::Diff" do
34
- expect(@class).to eq(::Diff)
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.0
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: 2024-07-10 00:00:00.000000000 Z
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: "../"