Skip to content

Commit 237117c

Browse files
committed
style: Apply RuboCop fixes
1 parent 27a2bf4 commit 237117c

File tree

19 files changed

+540
-273
lines changed

19 files changed

+540
-273
lines changed
Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
AllCops:
2-
TargetRubyVersion: 3.1
2+
NewCops: enable
3+
SuggestExtensions: false
4+
Exclude:
5+
- 'lib/spanner_pb.rb'
6+
- 'vendor/**/*'
37

4-
Style/StringLiterals:
5-
EnforcedStyle: double_quotes
8+
plugins:
9+
- rubocop-rspec
610

7-
Style/StringLiteralsInInterpolation:
8-
EnforcedStyle: double_quotes
11+
Layout/LineLength:
12+
Max: 150
13+
14+
Style/Documentation:
15+
Enabled: false
16+
17+
RSpec/ExampleLength:
18+
Enabled: false
19+
RSpec/MultipleExpectations:
20+
Enabled: false
21+
22+
# Add this block to disable the 'let' rule
23+
RSpec/InstanceVariable:
24+
Enabled: false
25+
RSpec/BeforeAfterAll:
26+
Enabled: false
27+
RSpec/DescribeClass:
28+
Exclude:
29+
- 'spec/integration/**/*'
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
# frozen_string_literal: true
22

3-
source "https://rubygems.org"
3+
source 'https://rubygems.org'
44

55
# Specify your gem's dependencies in spannerlib-ruby.gemspec
66
gemspec
77

8-
gem "irb"
9-
gem "rake", "~> 13.0"
10-
11-
gem "rspec", "~> 3.0"
12-
13-
gem "rubocop", "~> 1.21"
8+
gem 'irb'
9+
gem 'rake', '~> 13.0'
1410

1511
gem 'ffi'
12+
gem 'googleapis-common-protos', '~> 1.0'
1613
gem 'google-protobuf', '~> 3.19'
1714
gem 'grpc', '~> 1.60'
18-
gem 'googleapis-common-protos', '~> 1.0'
1915

20-
gem 'google-cloud-spanner'
16+
gem 'google-cloud-spanner'
17+
18+
group :development, :test do
19+
gem 'rspec', '~> 3.0'
20+
gem 'rubocop', require: false
21+
gem 'rubocop-rspec', require: false
22+
end
Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
PATH
2+
remote: .
3+
specs:
4+
spannerlib-ruby (0.1.0)
5+
google-cloud-spanner (~> 2.25)
6+
google-cloud-spanner-v1 (~> 1.7)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
addressable (2.8.7)
12+
public_suffix (>= 2.0.2, < 7.0)
13+
ast (2.4.3)
14+
base64 (0.3.0)
15+
bigdecimal (3.2.3)
16+
concurrent-ruby (1.3.5)
17+
date (3.4.1)
18+
diff-lcs (1.6.2)
19+
erb (5.0.2)
20+
faraday (2.14.0)
21+
faraday-net_http (>= 2.0, < 3.5)
22+
json
23+
logger
24+
faraday-net_http (3.4.1)
25+
net-http (>= 0.5.0)
26+
faraday-retry (2.3.2)
27+
faraday (~> 2.0)
28+
ffi (1.17.2)
29+
ffi (1.17.2-aarch64-linux-gnu)
30+
ffi (1.17.2-aarch64-linux-musl)
31+
ffi (1.17.2-arm-linux-gnu)
32+
ffi (1.17.2-arm-linux-musl)
33+
ffi (1.17.2-arm64-darwin)
34+
ffi (1.17.2-x86-linux-gnu)
35+
ffi (1.17.2-x86-linux-musl)
36+
ffi (1.17.2-x86_64-darwin)
37+
ffi (1.17.2-x86_64-linux-gnu)
38+
ffi (1.17.2-x86_64-linux-musl)
39+
gapic-common (1.1.0)
40+
faraday (>= 1.9, < 3.a)
41+
faraday-retry (>= 1.0, < 3.a)
42+
google-cloud-env (~> 2.2)
43+
google-logging-utils (~> 0.1)
44+
google-protobuf (>= 3.25, < 5.a)
45+
googleapis-common-protos (~> 1.6)
46+
googleapis-common-protos-types (~> 1.15)
47+
googleauth (~> 1.12)
48+
grpc (~> 1.66)
49+
google-cloud-core (1.8.0)
50+
google-cloud-env (>= 1.0, < 3.a)
51+
google-cloud-errors (~> 1.0)
52+
google-cloud-env (2.3.1)
53+
base64 (~> 0.2)
54+
faraday (>= 1.0, < 3.a)
55+
google-cloud-errors (1.5.0)
56+
google-cloud-spanner (2.27.0)
57+
bigdecimal (~> 3.0)
58+
concurrent-ruby (~> 1.0)
59+
google-cloud-core (~> 1.7)
60+
google-cloud-spanner-admin-database-v1 (~> 1.4)
61+
google-cloud-spanner-admin-instance-v1 (~> 1.6)
62+
google-cloud-spanner-v1 (~> 1.6)
63+
google-cloud-spanner-admin-database-v1 (1.6.1)
64+
gapic-common (>= 0.25.0, < 2.a)
65+
google-cloud-errors (~> 1.0)
66+
grpc-google-iam-v1 (~> 1.1)
67+
google-cloud-spanner-admin-instance-v1 (1.6.0)
68+
gapic-common (>= 0.25.0, < 2.a)
69+
google-cloud-errors (~> 1.0)
70+
grpc-google-iam-v1 (~> 1.1)
71+
google-cloud-spanner-v1 (1.10.1)
72+
gapic-common (~> 1.1)
73+
google-cloud-errors (~> 1.0)
74+
google-logging-utils (0.2.0)
75+
google-protobuf (3.25.8)
76+
google-protobuf (3.25.8-aarch64-linux)
77+
google-protobuf (3.25.8-arm64-darwin)
78+
google-protobuf (3.25.8-x86-linux)
79+
google-protobuf (3.25.8-x86_64-darwin)
80+
google-protobuf (3.25.8-x86_64-linux)
81+
googleapis-common-protos (1.8.0)
82+
google-protobuf (>= 3.18, < 5.a)
83+
googleapis-common-protos-types (~> 1.20)
84+
grpc (~> 1.41)
85+
googleapis-common-protos-types (1.20.0)
86+
google-protobuf (>= 3.18, < 5.a)
87+
googleauth (1.15.0)
88+
faraday (>= 1.0, < 3.a)
89+
google-cloud-env (~> 2.2)
90+
google-logging-utils (~> 0.1)
91+
jwt (>= 1.4, < 4.0)
92+
multi_json (~> 1.11)
93+
os (>= 0.9, < 2.0)
94+
signet (>= 0.16, < 2.a)
95+
grpc (1.75.0)
96+
google-protobuf (>= 3.25, < 5.0)
97+
googleapis-common-protos-types (~> 1.0)
98+
grpc (1.75.0-aarch64-linux-gnu)
99+
google-protobuf (>= 3.25, < 5.0)
100+
googleapis-common-protos-types (~> 1.0)
101+
grpc (1.75.0-aarch64-linux-musl)
102+
google-protobuf (>= 3.25, < 5.0)
103+
googleapis-common-protos-types (~> 1.0)
104+
grpc (1.75.0-arm64-darwin)
105+
google-protobuf (>= 3.25, < 5.0)
106+
googleapis-common-protos-types (~> 1.0)
107+
grpc (1.75.0-x86-linux-gnu)
108+
google-protobuf (>= 3.25, < 5.0)
109+
googleapis-common-protos-types (~> 1.0)
110+
grpc (1.75.0-x86-linux-musl)
111+
google-protobuf (>= 3.25, < 5.0)
112+
googleapis-common-protos-types (~> 1.0)
113+
grpc (1.75.0-x86_64-darwin)
114+
google-protobuf (>= 3.25, < 5.0)
115+
googleapis-common-protos-types (~> 1.0)
116+
grpc (1.75.0-x86_64-linux-gnu)
117+
google-protobuf (>= 3.25, < 5.0)
118+
googleapis-common-protos-types (~> 1.0)
119+
grpc (1.75.0-x86_64-linux-musl)
120+
google-protobuf (>= 3.25, < 5.0)
121+
googleapis-common-protos-types (~> 1.0)
122+
grpc-google-iam-v1 (1.10.0)
123+
google-protobuf (>= 3.18, < 5.a)
124+
googleapis-common-protos (~> 1.4)
125+
grpc (~> 1.41)
126+
io-console (0.8.1)
127+
irb (1.15.2)
128+
pp (>= 0.6.0)
129+
rdoc (>= 4.0.0)
130+
reline (>= 0.4.2)
131+
json (2.15.0)
132+
jwt (3.1.2)
133+
base64
134+
language_server-protocol (3.17.0.5)
135+
lint_roller (1.1.0)
136+
logger (1.7.0)
137+
multi_json (1.17.0)
138+
net-http (0.6.0)
139+
uri
140+
os (1.1.4)
141+
parallel (1.27.0)
142+
parser (3.3.9.0)
143+
ast (~> 2.4.1)
144+
racc
145+
pp (0.6.2)
146+
prettyprint
147+
prettyprint (0.2.0)
148+
prism (1.5.1)
149+
psych (5.2.6)
150+
date
151+
stringio
152+
public_suffix (6.0.2)
153+
racc (1.8.1)
154+
rainbow (3.1.1)
155+
rake (13.3.0)
156+
rdoc (6.14.2)
157+
erb
158+
psych (>= 4.0.0)
159+
regexp_parser (2.11.3)
160+
reline (0.6.2)
161+
io-console (~> 0.5)
162+
rspec (3.13.1)
163+
rspec-core (~> 3.13.0)
164+
rspec-expectations (~> 3.13.0)
165+
rspec-mocks (~> 3.13.0)
166+
rspec-core (3.13.5)
167+
rspec-support (~> 3.13.0)
168+
rspec-expectations (3.13.5)
169+
diff-lcs (>= 1.2.0, < 2.0)
170+
rspec-support (~> 3.13.0)
171+
rspec-mocks (3.13.5)
172+
diff-lcs (>= 1.2.0, < 2.0)
173+
rspec-support (~> 3.13.0)
174+
rspec-support (3.13.6)
175+
rubocop (1.81.1)
176+
json (~> 2.3)
177+
language_server-protocol (~> 3.17.0.2)
178+
lint_roller (~> 1.1.0)
179+
parallel (~> 1.10)
180+
parser (>= 3.3.0.2)
181+
rainbow (>= 2.2.2, < 4.0)
182+
regexp_parser (>= 2.9.3, < 3.0)
183+
rubocop-ast (>= 1.47.1, < 2.0)
184+
ruby-progressbar (~> 1.7)
185+
unicode-display_width (>= 2.4.0, < 4.0)
186+
rubocop-ast (1.47.1)
187+
parser (>= 3.3.7.2)
188+
prism (~> 1.4)
189+
rubocop-rspec (3.7.0)
190+
lint_roller (~> 1.1)
191+
rubocop (~> 1.72, >= 1.72.1)
192+
ruby-progressbar (1.13.0)
193+
signet (0.21.0)
194+
addressable (~> 2.8)
195+
faraday (>= 0.17.5, < 3.a)
196+
jwt (>= 1.5, < 4.0)
197+
multi_json (~> 1.10)
198+
stringio (3.1.7)
199+
unicode-display_width (3.2.0)
200+
unicode-emoji (~> 4.1)
201+
unicode-emoji (4.1.0)
202+
uri (1.0.3)
203+
204+
PLATFORMS
205+
aarch64-linux
206+
aarch64-linux-gnu
207+
aarch64-linux-musl
208+
arm-linux-gnu
209+
arm-linux-musl
210+
arm64-darwin
211+
ruby
212+
x86-linux
213+
x86-linux-gnu
214+
x86-linux-musl
215+
x86_64-darwin
216+
x86_64-linux-gnu
217+
x86_64-linux-musl
218+
219+
DEPENDENCIES
220+
ffi
221+
google-cloud-spanner
222+
google-protobuf (~> 3.19)
223+
googleapis-common-protos (~> 1.0)
224+
grpc (~> 1.60)
225+
irb
226+
rake (~> 13.0)
227+
rspec (~> 3.0)
228+
rubocop
229+
rubocop-rspec
230+
spannerlib-ruby!
231+
232+
BUNDLED WITH
233+
2.6.9

spannerlib/wrappers/spannerlib-ruby/Rakefile

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

3-
require "bundler/gem_tasks"
4-
require "rspec/core/rake_task"
3+
require 'bundler/gem_tasks'
4+
require 'rspec/core/rake_task'
55

66
RSpec::Core::RakeTask.new(:spec)
77

8-
require "rubocop/rake_task"
8+
require 'rubocop/rake_task'
99

1010
RuboCop::RakeTask.new
1111

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4-
require "bundler/setup"
5-
require "spannerlib/ruby"
4+
require 'bundler/setup'
5+
require 'spannerlib/ruby'
66

77
# You can add fixtures and/or initialization code here to make experimenting
88
# with your gem easier. You can also use a different console, if you like.
99

10-
require "irb"
10+
require 'irb'
1111
IRB.start(__FILE__)

spannerlib/wrappers/spannerlib-ruby/lib/spanner_pb.rb

Lines changed: 17 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)