Skip to content

Commit e238457

Browse files
authored
Merge pull request #934 from mnin/main
Fix compatibility with bundler 4.x
2 parents 410cb75 + 53debd5 commit e238457

File tree

10 files changed

+129
-36
lines changed

10 files changed

+129
-36
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
needs: core
3232
strategy:
3333
matrix:
34-
bundler: ["2.1", "2.2", "2.3", "2.4"]
34+
bundler: ["2.4", "2.5", "2.6", "4.0"]
3535
steps:
3636
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3737
- name: Set up Ruby
@@ -138,7 +138,7 @@ jobs:
138138
runs-on: ubuntu-latest
139139
strategy:
140140
matrix:
141-
ruby: ["3.1", "3.2", "3.3", "3.4"]
141+
ruby: ["3.2", "3.3", "3.4", "4.0"]
142142
steps:
143143
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
144144
- name: Set up Ruby

.licensed.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ reviewed:
1515
- csv
1616
- logger
1717
- net-http
18+
- ostruct
1819
- racc
1920
- uri
2021

.licenses/bundler/nokogiri.dep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: nokogiri
3-
version: 1.18.10
3+
version: 1.19.0
44
type: bundler
55
summary: Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
66
homepage: https://nokogiri.org

.licenses/bundler/ostruct.dep.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
name: ostruct
3+
version: 0.6.3
4+
type: bundler
5+
summary: Class to build custom data structures, similar to a Hash.
6+
homepage: https://github.com/ruby/ostruct
7+
license: other
8+
licenses:
9+
- sources: COPYING
10+
text: |
11+
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
12+
You can redistribute it and/or modify it under either the terms of the
13+
2-clause BSDL (see the file BSDL), or the conditions below:
14+
15+
1. You may make and give away verbatim copies of the source form of the
16+
software without restriction, provided that you duplicate all of the
17+
original copyright notices and associated disclaimers.
18+
19+
2. You may modify your copy of the software in any way, provided that
20+
you do at least ONE of the following:
21+
22+
a. place your modifications in the Public Domain or otherwise
23+
make them Freely Available, such as by posting said
24+
modifications to Usenet or an equivalent medium, or by allowing
25+
the author to include your modifications in the software.
26+
27+
b. use the modified software only within your corporation or
28+
organization.
29+
30+
c. give non-standard binaries non-standard names, with
31+
instructions on where to get the original software distribution.
32+
33+
d. make other distribution arrangements with the author.
34+
35+
3. You may distribute the software in object code or binary form,
36+
provided that you do at least ONE of the following:
37+
38+
a. distribute the binaries and library files of the software,
39+
together with instructions (in the manual page or equivalent)
40+
on where to get the original distribution.
41+
42+
b. accompany the distribution with the machine-readable source of
43+
the software.
44+
45+
c. give non-standard binaries non-standard names, with
46+
instructions on where to get the original software distribution.
47+
48+
d. make other distribution arrangements with the author.
49+
50+
4. You may modify and include the part of the software into any other
51+
software (possibly commercial). But some files in the distribution
52+
are not written by the author, so that they are not under these terms.
53+
54+
For the list of those files and their copying conditions, see the
55+
file LEGAL.
56+
57+
5. The scripts and library files supplied as input to or produced as
58+
output from the software do not automatically fall under the
59+
copyright of the software, but belong to whomever generated them,
60+
and may be sold commercially, and may be aggregated with this
61+
software.
62+
63+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
64+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
65+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
66+
PURPOSE.
67+
- sources: README.md
68+
text: The gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).
69+
notices: []

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.7
1+
4.0.1

Gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PATH
55
csv (~> 3.3)
66
json (~> 2.6)
77
licensee (~> 9.16)
8+
ostruct (~> 0.6.3)
89
parallel (~> 1.22)
910
pathname-common_prefix (~> 0.0.1)
1011
reverse_markdown (>= 2.1, < 4.0)
@@ -65,12 +66,13 @@ GEM
6566
ruby2_keywords (>= 0.0.5)
6667
net-http (0.9.1)
6768
uri (>= 0.11.1)
68-
nokogiri (1.18.10)
69+
nokogiri (1.19.0)
6970
mini_portile2 (~> 2.8.2)
7071
racc (~> 1.4)
7172
octokit (9.2.0)
7273
faraday (>= 1, < 3)
7374
sawyer (~> 0.9)
75+
ostruct (0.6.3)
7476
parallel (1.27.0)
7577
parser (3.3.10.1)
7678
ast (~> 2.4.1)

docs/migrations/v3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- uses: actions/checkout@v1
4646

4747
# install ruby
48-
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc
48+
- uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf
4949
with:
5050
ruby-version: "3.0"
5151

@@ -71,7 +71,7 @@ jobs:
7171
- uses: actions/checkout@v1
7272

7373
# install ruby and bundler
74-
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc
74+
- uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf
7575
with:
7676
ruby-version: "3.0"
7777

@@ -95,7 +95,7 @@ jobs:
9595
- uses: actions/checkout@v1
9696

9797
# install ruby and bundler
98-
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc
98+
- uses: ruby/setup-ruby@80740b3b13bf9857e28854481ca95a84e78a2bdf
9999
with:
100100
ruby-version: "3.0"
101101

lib/licensed/sources/bundler/missing_specification.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def __materialize__(*args, **kwargs)
5959

6060
module Bundler
6161
class LazySpecification
62-
prepend ::Licensed::Bundler::LazySpecification
62+
if Gem::Version.new(::Bundler::VERSION) < Gem::Version.new("4.0.0")
63+
prepend ::Licensed::Bundler::LazySpecification
64+
end
6365
end
6466
end

licensed.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
3232
spec.add_dependency "parallel", "~> 1.22"
3333
spec.add_dependency "reverse_markdown", ">= 2.1", "< 4.0"
3434
spec.add_dependency "json", "~> 2.6"
35+
spec.add_dependency "ostruct", "~> 0.6.3"
3536

3637
spec.add_development_dependency "rake", "~> 13.0"
3738
spec.add_development_dependency "minitest", "~> 5.17"

test/fixtures/cocoapods/Gemfile.lock

Lines changed: 45 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.6)
5-
rexml
6-
activesupport (7.0.4.3)
7-
concurrent-ruby (~> 1.0, >= 1.0.2)
4+
CFPropertyList (3.0.8)
5+
activesupport (7.2.3)
6+
base64
7+
benchmark (>= 0.3)
8+
bigdecimal
9+
concurrent-ruby (~> 1.0, >= 1.3.1)
10+
connection_pool (>= 2.2.5)
11+
drb
812
i18n (>= 1.6, < 2)
13+
logger (>= 1.4.2)
914
minitest (>= 5.1)
10-
tzinfo (~> 2.0)
11-
addressable (2.8.1)
12-
public_suffix (>= 2.0.2, < 6.0)
15+
securerandom (>= 0.3)
16+
tzinfo (~> 2.0, >= 2.0.5)
17+
addressable (2.8.8)
18+
public_suffix (>= 2.0.2, < 8.0)
1319
algoliasearch (1.27.5)
1420
httpclient (~> 2.8, >= 2.8.3)
1521
json (>= 1.5.1)
1622
atomos (0.1.3)
23+
base64 (0.3.0)
24+
benchmark (0.5.0)
25+
bigdecimal (4.0.1)
1726
claide (1.1.0)
18-
cocoapods (1.12.0)
27+
cocoapods (1.16.2)
1928
addressable (~> 2.8)
2029
claide (>= 1.0.2, < 2.0)
21-
cocoapods-core (= 1.12.0)
30+
cocoapods-core (= 1.16.2)
2231
cocoapods-deintegrate (>= 1.0.3, < 2.0)
23-
cocoapods-downloader (>= 1.6.0, < 2.0)
32+
cocoapods-downloader (>= 2.1, < 3.0)
2433
cocoapods-plugins (>= 1.0.0, < 2.0)
2534
cocoapods-search (>= 1.0.0, < 2.0)
2635
cocoapods-trunk (>= 1.6.0, < 2.0)
@@ -32,8 +41,8 @@ GEM
3241
molinillo (~> 0.8.0)
3342
nap (~> 1.0)
3443
ruby-macho (>= 2.3.0, < 3.0)
35-
xcodeproj (>= 1.21.0, < 2.0)
36-
cocoapods-core (1.12.0)
44+
xcodeproj (>= 1.27.0, < 2.0)
45+
cocoapods-core (1.16.2)
3746
activesupport (>= 5.0, < 8)
3847
addressable (~> 2.8)
3948
algoliasearch (~> 1.0)
@@ -45,7 +54,7 @@ GEM
4554
typhoeus (~> 1.0)
4655
cocoapods-deintegrate (1.0.5)
4756
cocoapods-dependencies-list (1.0.0)
48-
cocoapods-downloader (1.6.3)
57+
cocoapods-downloader (2.1)
4958
cocoapods-plugins (1.0.0)
5059
nap
5160
cocoapods-search (1.0.1)
@@ -54,40 +63,49 @@ GEM
5463
netrc (~> 0.11)
5564
cocoapods-try (1.2.0)
5665
colored2 (3.1.2)
57-
concurrent-ruby (1.2.2)
66+
concurrent-ruby (1.3.6)
67+
connection_pool (3.0.2)
68+
drb (2.2.3)
5869
escape (0.0.4)
59-
ethon (0.16.0)
70+
ethon (0.18.0)
6071
ffi (>= 1.15.0)
61-
ffi (1.15.5)
72+
logger
73+
ffi (1.17.3-x86_64-linux-gnu)
6274
fourflusher (2.3.1)
6375
fuzzy_match (2.0.4)
6476
gh_inspector (1.1.3)
65-
httpclient (2.8.3)
66-
i18n (1.12.0)
77+
httpclient (2.9.0)
78+
mutex_m
79+
i18n (1.14.8)
6780
concurrent-ruby (~> 1.0)
68-
json (2.6.3)
69-
minitest (5.18.0)
81+
json (2.18.0)
82+
logger (1.7.0)
83+
minitest (6.0.1)
84+
prism (~> 1.5)
7085
molinillo (0.8.0)
71-
nanaimo (0.3.0)
86+
mutex_m (0.3.0)
87+
nanaimo (0.4.0)
7288
nap (1.1.0)
7389
netrc (0.11.0)
90+
prism (1.8.0)
7491
public_suffix (4.0.7)
75-
rexml (3.2.5)
92+
rexml (3.4.4)
7693
ruby-macho (2.5.1)
77-
typhoeus (1.4.0)
94+
securerandom (0.4.1)
95+
typhoeus (1.4.1)
7896
ethon (>= 0.9.0)
7997
tzinfo (2.0.6)
8098
concurrent-ruby (~> 1.0)
81-
xcodeproj (1.22.0)
99+
xcodeproj (1.27.0)
82100
CFPropertyList (>= 2.3.3, < 4.0)
83101
atomos (~> 0.1.3)
84102
claide (>= 1.0.2, < 2.0)
85103
colored2 (~> 3.1)
86-
nanaimo (~> 0.3.0)
87-
rexml (~> 3.2.4)
104+
nanaimo (~> 0.4.0)
105+
rexml (>= 3.3.6, < 4.0)
88106

89107
PLATFORMS
90-
ruby
108+
x86_64-linux
91109

92110
DEPENDENCIES
93111
cocoapods

0 commit comments

Comments
 (0)