Skip to content

Commit 7dd82de

Browse files
committed
Remove a lot of unecessary dependencies
1 parent c5f3420 commit 7dd82de

File tree

8 files changed

+7
-62
lines changed

8 files changed

+7
-62
lines changed

Gemfile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gemspec
88
group :development, :test do
99
# Ruby's bikeshed-proof linter and formatter.
1010
# See: [https://rubygems.org/gems/standard]
11-
gem "standard", "~> 1.3"
11+
gem "standard", "~> 1.4"
1212

1313
# Debugging tool for Ruby.
1414
# See: [https://rubygems.org/gems/debug]
@@ -17,14 +17,6 @@ group :development, :test do
1717
# A Ruby gem to test Ruby code.
1818
# See: [https://github.com/rspec]
1919
gem "rspec", "~> 3.4"
20-
21-
# Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, and
22-
# accurate tests [https://rubygems.org/gems/vcr]
23-
gem "vcr", "~> 6.2"
24-
25-
# Library for stubbing and setting expectations on HTTP requests in Ruby.
26-
# See: [https://rubygems.org/gems/webmock]
27-
gem "webmock", "~> 3.23"
2820
end
2921

3022
group :test do

Gemfile.lock

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,23 @@
11
PATH
22
remote: .
33
specs:
4-
steam_api (0.8.0)
5-
activesupport
4+
steam_api (0.9.0)
65
dry-configurable (~> 1.1.0)
76
dry-struct (~> 1.6)
87
typhoeus (~> 1.4)
98

109
GEM
1110
remote: https://rubygems.org/
1211
specs:
13-
activesupport (8.0.2)
14-
base64
15-
benchmark (>= 0.3)
16-
bigdecimal
17-
concurrent-ruby (~> 1.0, >= 1.3.1)
18-
connection_pool (>= 2.2.5)
19-
drb
20-
i18n (>= 1.6, < 2)
21-
logger (>= 1.4.2)
22-
minitest (>= 5.1)
23-
securerandom (>= 0.3)
24-
tzinfo (~> 2.0, >= 2.0.5)
25-
uri (>= 0.13.1)
26-
addressable (2.8.7)
27-
public_suffix (>= 2.0.2, < 7.0)
2812
ast (2.4.3)
29-
base64 (0.2.0)
30-
benchmark (0.4.0)
3113
bigdecimal (3.1.9)
3214
concurrent-ruby (1.3.5)
33-
connection_pool (2.5.0)
34-
crack (1.0.0)
35-
bigdecimal
36-
rexml
3715
date (3.4.1)
3816
debug (1.10.0)
3917
irb (~> 1.10)
4018
reline (>= 0.3.8)
4119
diff-lcs (1.6.1)
4220
docile (1.4.1)
43-
drb (2.2.1)
4421
dry-configurable (1.1.0)
4522
dry-core (~> 1.0, < 2)
4623
zeitwerk (~> 2.6)
@@ -69,9 +46,6 @@ GEM
6946
ethon (0.16.0)
7047
ffi (>= 1.15.0)
7148
ffi (1.17.1-x86_64-linux-gnu)
72-
hashdiff (1.1.2)
73-
i18n (1.14.7)
74-
concurrent-ruby (~> 1.0)
7549
ice_nine (0.11.2)
7650
io-console (0.8.0)
7751
irb (1.15.2)
@@ -82,7 +56,6 @@ GEM
8256
language_server-protocol (3.17.0.4)
8357
lint_roller (1.1.0)
8458
logger (1.7.0)
85-
minitest (5.25.5)
8659
parallel (1.26.3)
8760
parser (3.3.8.0)
8861
ast (~> 2.4.1)
@@ -94,15 +67,13 @@ GEM
9467
psych (5.2.3)
9568
date
9669
stringio
97-
public_suffix (6.0.1)
9870
racc (1.8.1)
9971
rainbow (3.1.1)
10072
rdoc (6.13.1)
10173
psych (>= 4.0.0)
10274
regexp_parser (2.10.0)
10375
reline (0.6.1)
10476
io-console (~> 0.5)
105-
rexml (3.4.1)
10677
rspec (3.13.0)
10778
rspec-core (~> 3.13.0)
10879
rspec-expectations (~> 3.13.0)
@@ -135,7 +106,6 @@ GEM
135106
rubocop (>= 1.75.0, < 2.0)
136107
rubocop-ast (>= 1.38.0, < 2.0)
137108
ruby-progressbar (1.13.0)
138-
securerandom (0.4.1)
139109
simplecov (0.22.0)
140110
docile (~> 1.1)
141111
simplecov-html (~> 0.11)
@@ -157,18 +127,9 @@ GEM
157127
stringio (3.1.6)
158128
typhoeus (1.4.1)
159129
ethon (>= 0.9.0)
160-
tzinfo (2.0.6)
161-
concurrent-ruby (~> 1.0)
162130
unicode-display_width (3.1.4)
163131
unicode-emoji (~> 4.0, >= 4.0.4)
164132
unicode-emoji (4.0.4)
165-
uri (1.0.3)
166-
vcr (6.3.1)
167-
base64
168-
webmock (3.25.1)
169-
addressable (>= 2.8.0)
170-
crack (>= 0.3.2)
171-
hashdiff (>= 0.4.0, < 2.0.0)
172133
zeitwerk (2.7.2)
173134

174135
PLATFORMS
@@ -178,10 +139,8 @@ DEPENDENCIES
178139
debug (~> 1.9)
179140
rspec (~> 3.4)
180141
simplecov (~> 0.22)
181-
standard (~> 1.3)
142+
standard (~> 1.4)
182143
steam_api!
183-
vcr (~> 6.2)
184-
webmock (~> 3.23)
185144

186145
BUNDLED WITH
187146
2.5.15

lib/steam_api.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "active_support/all"
4-
53
require "dry-configurable"
64
require "dry-struct"
75
require "singleton"

lib/steam_api/errors/api_error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize(response)
2020
attr_accessor :http_status_code, :response
2121

2222
def build_description_message
23-
<<~MESSAGE.squish
23+
<<~MESSAGE.split.join(" ")
2424
A request failed with the following status code: #{http_status_code}
2525
and body: #{response.body}
2626
MESSAGE

lib/steam_api/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def status_code
3535
# returns an empty hash
3636
# @return [Hash]
3737
def to_h
38-
::JSON.parse(raw_response.body.to_s).deep_symbolize_keys
38+
::JSON.parse(raw_response.body.to_s, symbolize_names: true)
3939
rescue JSON::ParserError
4040
{}
4141
end

lib/steam_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module SteamApi
4-
VERSION = "0.8.0"
4+
VERSION = "0.9.0"
55
end

spec/steam_api/errors/api_error_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
describe "#initialize" do
1616
let(:expected_message) do
17-
<<-MESSAGE.squish
17+
<<-MESSAGE.split.join(" ")
1818
A request failed with the following status code: 100
1919
and body: {"message":"error"}
2020
MESSAGE

steam_api.gemspec

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ Gem::Specification.new do |spec|
2626
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
2727
spec.require_paths = ["lib"]
2828

29-
# A toolkit of support libraries and Ruby core
30-
# extensions extracted from the Rails framework.
31-
# See: [https://rubygems.org/gems/activesupport]
32-
spec.add_dependency "activesupport"
3329
# A mixin to add configuration functionality to your classes.
3430
# See: [https://rubygems.org/gems/dry-configurable]
3531
spec.add_dependency "dry-configurable", "~> 1.1.0"

0 commit comments

Comments
 (0)