Skip to content

Commit 6eeeb6b

Browse files
committed
dev: update dependencies
Move dev dependencies to Gemfile.
1 parent 026b236 commit 6eeeb6b

File tree

6 files changed

+62
-61
lines changed

6 files changed

+62
-61
lines changed

.rubocop

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--safe

.rubocop.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# REQUIRES RUBOCOP 1.8.X
1+
plugins:
2+
- rubocop-rspec
3+
- rubocop-rake
24

35
AllCops:
46
Exclude:
@@ -13,6 +15,7 @@ AllCops:
1315
DisplayCopNames: true
1416
StyleGuideCopsOnly: false
1517
TargetRubyVersion: 3.0
18+
NewCops: enable
1619

1720
## Layout Cops - https://docs.rubocop.org/rubocop/cops_layout.html
1821

@@ -344,9 +347,6 @@ Style/TrailingCommaInArrayLiteral:
344347
Style/TrailingCommaInHashLiteral:
345348
EnforcedStyleForMultiline: comma
346349

347-
require:
348-
- rubocop-rspec
349-
350350
RSpec/AnyInstance:
351351
Enabled: false
352352

Gemfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ source "https://rubygems.org"
33
# Specify your gem's dependencies in xrechnung.gemspec
44
gemspec
55

6-
gem "rake", "~> 13.0"
7-
gem "rspec", "~> 3.0"
8-
gem "rubocop-rspec", "~> 2.1"
6+
gem "rake"
7+
gem "rspec"
8+
gem "rubocop-rspec"
9+
gem "rubocop-rake"
10+
gem "httparty"
11+
gem "rubyzip"

Gemfile.lock

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,80 +9,81 @@ PATH
99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
ast (2.4.2)
12+
ast (2.4.3)
1313
base64 (0.3.0)
14-
bigdecimal (3.2.2)
14+
bigdecimal (4.0.1)
1515
builder (3.3.0)
16-
csv (3.3.0)
17-
diff-lcs (1.5.1)
18-
httparty (0.22.0)
16+
csv (3.3.5)
17+
diff-lcs (1.6.2)
18+
httparty (0.24.2)
1919
csv
2020
mini_mime (>= 1.0.0)
2121
multi_xml (>= 0.5.2)
22-
json (2.9.0)
23-
language_server-protocol (3.17.0.3)
22+
json (2.18.0)
23+
language_server-protocol (3.17.0.5)
24+
lint_roller (1.1.0)
2425
mini_mime (1.1.5)
25-
multi_xml (0.6.0)
26-
parallel (1.26.3)
27-
parser (3.3.6.0)
26+
multi_xml (0.8.1)
27+
bigdecimal (>= 3.1, < 5)
28+
parallel (1.27.0)
29+
parser (3.3.10.1)
2830
ast (~> 2.4.1)
2931
racc
32+
prism (1.9.0)
3033
racc (1.8.1)
3134
rainbow (3.1.1)
32-
rake (13.2.1)
33-
regexp_parser (2.9.3)
34-
rspec (3.13.0)
35+
rake (13.3.1)
36+
regexp_parser (2.11.3)
37+
rspec (3.13.2)
3538
rspec-core (~> 3.13.0)
3639
rspec-expectations (~> 3.13.0)
3740
rspec-mocks (~> 3.13.0)
38-
rspec-core (3.13.2)
41+
rspec-core (3.13.6)
3942
rspec-support (~> 3.13.0)
40-
rspec-expectations (3.13.3)
43+
rspec-expectations (3.13.5)
4144
diff-lcs (>= 1.2.0, < 2.0)
4245
rspec-support (~> 3.13.0)
43-
rspec-mocks (3.13.2)
46+
rspec-mocks (3.13.7)
4447
diff-lcs (>= 1.2.0, < 2.0)
4548
rspec-support (~> 3.13.0)
46-
rspec-support (3.13.2)
47-
rubocop (1.69.1)
49+
rspec-support (3.13.7)
50+
rubocop (1.84.0)
4851
json (~> 2.3)
49-
language_server-protocol (>= 3.17.0)
52+
language_server-protocol (~> 3.17.0.2)
53+
lint_roller (~> 1.1.0)
5054
parallel (~> 1.10)
5155
parser (>= 3.3.0.2)
5256
rainbow (>= 2.2.2, < 4.0)
5357
regexp_parser (>= 2.9.3, < 3.0)
54-
rubocop-ast (>= 1.36.2, < 2.0)
58+
rubocop-ast (>= 1.49.0, < 2.0)
5559
ruby-progressbar (~> 1.7)
5660
unicode-display_width (>= 2.4.0, < 4.0)
57-
rubocop-ast (1.36.2)
58-
parser (>= 3.3.1.0)
59-
rubocop-capybara (2.21.0)
60-
rubocop (~> 1.41)
61-
rubocop-factory_bot (2.26.1)
62-
rubocop (~> 1.61)
63-
rubocop-rspec (2.31.0)
64-
rubocop (~> 1.40)
65-
rubocop-capybara (~> 2.17)
66-
rubocop-factory_bot (~> 2.22)
67-
rubocop-rspec_rails (~> 2.28)
68-
rubocop-rspec_rails (2.29.1)
69-
rubocop (~> 1.61)
61+
rubocop-ast (1.49.0)
62+
parser (>= 3.3.7.2)
63+
prism (~> 1.7)
64+
rubocop-rake (0.7.1)
65+
lint_roller (~> 1.1)
66+
rubocop (>= 1.72.1)
67+
rubocop-rspec (3.9.0)
68+
lint_roller (~> 1.1)
69+
rubocop (~> 1.81)
7070
ruby-progressbar (1.13.0)
71-
rubyzip (2.3.2)
72-
unicode-display_width (3.1.2)
73-
unicode-emoji (~> 4.0, >= 4.0.4)
74-
unicode-emoji (4.0.4)
71+
rubyzip (3.2.2)
72+
unicode-display_width (3.2.0)
73+
unicode-emoji (~> 4.1)
74+
unicode-emoji (4.2.0)
7575

7676
PLATFORMS
7777
ruby
7878

7979
DEPENDENCIES
80-
httparty (~> 0.22)
81-
rake (~> 13.0)
82-
rspec (~> 3.0)
83-
rubocop-rspec (~> 2.1)
84-
rubyzip (~> 2.0)
80+
httparty
81+
rake
82+
rspec
83+
rubocop-rake
84+
rubocop-rspec
85+
rubyzip
8586
xrechnung!
8687

8788
BUNDLED WITH
88-
2.7.0
89+
4.0.5

Rakefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require "pathname"
22
require "bundler/gem_tasks"
33
require "rspec/core/rake_task"
4+
require "httparty"
5+
require "zip"
46

57
RSpec::Core::RakeTask.new(:spec)
68

@@ -23,19 +25,15 @@ namespace :validator do
2325
zipfile = base.join(File.basename(v[:release_url]))
2426

2527
file zipfile do
26-
require "httparty"
27-
2828
base.mkpath unless base.exist?
2929

3030
res = HTTParty.get(v[:release_url], follow_redirects: true)
31-
File.open(zipfile, "wb") { |f| f.write res.body }
31+
File.binwrite(zipfile, res.body)
3232
end
3333

3434
file v[:filename] => zipfile do
35-
require "zip"
36-
3735
Zip::File.foreach(zipfile) do |entry|
38-
entry.extract base.join(entry.name)
36+
entry.extract destination_directory: base
3937
end
4038
end
4139
end

xrechnung.gemspec

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Gem::Specification.new do |spec|
1111
spec.license = "MIT"
1212
spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
1313

14-
spec.metadata["homepage_uri"] = spec.homepage
15-
spec.metadata["source_code_uri"] = "https://github.com/digineo/xrechnung"
14+
spec.metadata["homepage_uri"] = spec.homepage
15+
spec.metadata["source_code_uri"] = "https://github.com/digineo/xrechnung"
16+
spec.metadata["rubygems_mfa_required"] = "true"
1617

1718
# Specify which files should be added to the gem when it is released.
1819
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -25,7 +26,4 @@ Gem::Specification.new do |spec|
2526
spec.add_dependency "base64"
2627
spec.add_dependency "bigdecimal"
2728
spec.add_dependency "builder", "~> 3.2"
28-
29-
spec.add_development_dependency "httparty", "~> 0.22"
30-
spec.add_development_dependency "rubyzip", "~> 2.0"
3129
end

0 commit comments

Comments
 (0)