Skip to content

Commit 0aaa4a1

Browse files
author
Sergii Solonyna
committed
Update .gitignore to clarify Gemfile.lock usage, modify .rubocop.yml to exclude MultipleMemoizedHelpers from specific specs, and format request hash in tarot_spec.rb for improved readability.
1 parent 57c1802 commit 0aaa4a1

4 files changed

Lines changed: 117 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ build-iPhoneSimulator/
4545

4646
# for a library or gem, you might want to ignore these files since the code is
4747
# intended to run in multiple environments; otherwise, check them in:
48-
Gemfile.lock
48+
# Gemfile.lock is committed for reproducible CI builds
4949
.ruby-version
5050
.ruby-gemset
5151

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ RSpec/MessageSpies:
6565
RSpec/StubbedMock:
6666
Enabled: false
6767

68+
RSpec/MultipleMemoizedHelpers:
69+
Exclude:
70+
- 'spec/support/**/*'
71+
6872
RSpec/DescribeClass:
6973
Exclude:
7074
- 'spec/integration/**/*'

Gemfile.lock

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
PATH
2+
remote: .
3+
specs:
4+
astroapi (1.0.0)
5+
faraday (~> 2.0)
6+
faraday-retry (~> 2.0)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
addressable (2.8.8)
12+
public_suffix (>= 2.0.2, < 8.0)
13+
ast (2.4.3)
14+
base64 (0.3.0)
15+
bigdecimal (4.0.1)
16+
coderay (1.1.3)
17+
crack (1.0.1)
18+
bigdecimal
19+
rexml
20+
diff-lcs (1.6.2)
21+
docile (1.4.1)
22+
faraday (2.8.1)
23+
base64
24+
faraday-net_http (>= 2.0, < 3.1)
25+
ruby2_keywords (>= 0.0.4)
26+
faraday-net_http (3.0.2)
27+
faraday-retry (2.4.0)
28+
faraday (~> 2.0)
29+
hashdiff (1.2.1)
30+
io-console (0.8.2)
31+
json (2.7.6)
32+
method_source (1.1.0)
33+
parallel (1.24.0)
34+
parser (3.3.10.1)
35+
ast (~> 2.4.1)
36+
racc
37+
pry (0.16.0)
38+
coderay (~> 1.1)
39+
method_source (~> 1.0)
40+
reline (>= 0.6.0)
41+
public_suffix (5.1.1)
42+
racc (1.8.1)
43+
rainbow (3.1.1)
44+
rake (13.3.1)
45+
regexp_parser (2.11.3)
46+
reline (0.6.3)
47+
io-console (~> 0.5)
48+
rexml (3.4.4)
49+
rspec (3.13.2)
50+
rspec-core (~> 3.13.0)
51+
rspec-expectations (~> 3.13.0)
52+
rspec-mocks (~> 3.13.0)
53+
rspec-core (3.13.6)
54+
rspec-support (~> 3.13.0)
55+
rspec-expectations (3.13.5)
56+
diff-lcs (>= 1.2.0, < 2.0)
57+
rspec-support (~> 3.13.0)
58+
rspec-mocks (3.13.7)
59+
diff-lcs (>= 1.2.0, < 2.0)
60+
rspec-support (~> 3.13.0)
61+
rspec-support (3.13.7)
62+
rubocop (1.50.2)
63+
json (~> 2.3)
64+
parallel (~> 1.10)
65+
parser (>= 3.2.0.0)
66+
rainbow (>= 2.2.2, < 4.0)
67+
regexp_parser (>= 1.8, < 3.0)
68+
rexml (>= 3.2.5, < 4.0)
69+
rubocop-ast (>= 1.28.0, < 2.0)
70+
ruby-progressbar (~> 1.7)
71+
unicode-display_width (>= 2.4.0, < 3.0)
72+
rubocop-ast (1.30.0)
73+
parser (>= 3.2.1.0)
74+
rubocop-capybara (2.18.0)
75+
rubocop (~> 1.41)
76+
rubocop-rspec (2.20.0)
77+
rubocop (~> 1.33)
78+
rubocop-capybara (~> 2.17)
79+
ruby-progressbar (1.13.0)
80+
ruby2_keywords (0.0.5)
81+
simplecov (0.22.0)
82+
docile (~> 1.1)
83+
simplecov-html (~> 0.11)
84+
simplecov_json_formatter (~> 0.1)
85+
simplecov-html (0.13.2)
86+
simplecov_json_formatter (0.1.4)
87+
unicode-display_width (2.6.0)
88+
webmock (3.26.1)
89+
addressable (>= 2.8.0)
90+
crack (>= 0.3.2)
91+
hashdiff (>= 0.4.0, < 2.0.0)
92+
yard (0.9.38)
93+
94+
PLATFORMS
95+
ruby
96+
97+
DEPENDENCIES
98+
astroapi!
99+
pry (~> 0.14)
100+
rake (~> 13.0)
101+
rspec (~> 3.12)
102+
rubocop (~> 1.50)
103+
rubocop-rspec (~> 2.20)
104+
simplecov (~> 0.22)
105+
webmock (~> 3.18)
106+
yard (~> 0.9)
107+
108+
BUNDLED WITH
109+
1.17.2

spec/integration/tarot_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@
121121
describe '#calculate_elemental_dignities' do
122122
it 'returns elemental dignities' do
123123
stub_unless_live(:post, '/api/v3/tarot/analysis/dignities', body: { data: { dignities: [] } })
124-
request = { cards: [{ id: 'major_00', position: 0 }, { id: 'major_01', position: 0 }, { id: 'major_02', position: 0 }] }
124+
request = {
125+
cards: [{ id: 'major_00', position: 0 }, { id: 'major_01', position: 0 }, { id: 'major_02', position: 0 }]
126+
}
125127
result = client.tarot.calculate_elemental_dignities(request)
126128
expect(result).to be_a(Hash)
127129
end

0 commit comments

Comments
 (0)