fcoin_ruby_client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/issue_template.md +12 -0
- data/.github/pull_request_template.md +12 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.rubocop.yml +12 -0
- data/.rubocop_todo.yml +431 -0
- data/.travis.yml +26 -0
- data/CHANGELOG.md +2 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +176 -0
- data/LICENSE.txt +21 -0
- data/README.md +204 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/fcoin +95 -0
- data/bin/setup +8 -0
- data/examples/cli/realtime_api.md +78 -0
- data/examples/cli/rest_api.md +149 -0
- data/examples/cli/setting.md +39 -0
- data/examples/realtime_api.rb +43 -0
- data/examples/rest_api.rb +47 -0
- data/fcoin_ruby_client.gemspec +39 -0
- data/lib/fcoin/api.rb +47 -0
- data/lib/fcoin/authorization.rb +83 -0
- data/lib/fcoin/cli/endpoint/accounts_task.rb +33 -0
- data/lib/fcoin/cli/endpoint/market_task.rb +98 -0
- data/lib/fcoin/cli/endpoint/orders_task.rb +196 -0
- data/lib/fcoin/cli/endpoint/public_task.rb +59 -0
- data/lib/fcoin/cli/realtime/endpoint_task.rb +107 -0
- data/lib/fcoin/cli.rb +77 -0
- data/lib/fcoin/client.rb +7 -0
- data/lib/fcoin/config/custom_settings.yml +171 -0
- data/lib/fcoin/config/settings.yml +10 -0
- data/lib/fcoin/configuration.rb +95 -0
- data/lib/fcoin/connection.rb +33 -0
- data/lib/fcoin/endpoint/accounts.rb +23 -0
- data/lib/fcoin/endpoint/market.rb +91 -0
- data/lib/fcoin/endpoint/orders.rb +171 -0
- data/lib/fcoin/endpoint/public.rb +51 -0
- data/lib/fcoin/endpoint/utility.rb +14 -0
- data/lib/fcoin/endpoint.rb +13 -0
- data/lib/fcoin/error.rb +4 -0
- data/lib/fcoin/faraday/fcoin_formatter.rb +17 -0
- data/lib/fcoin/formatter/base_formatter.rb +8 -0
- data/lib/fcoin/formatter/depth_formatter.rb +33 -0
- data/lib/fcoin/formatter/ticker_formatter.rb +34 -0
- data/lib/fcoin/formatter.rb +38 -0
- data/lib/fcoin/generators/locale.rb +18 -0
- data/lib/fcoin/generators/templates/locale/locales/en.yml +176 -0
- data/lib/fcoin/generators/templates/locale/locales/ja.yml +176 -0
- data/lib/fcoin/generators/templates/locale/locales/zh_CN.yml +176 -0
- data/lib/fcoin/generators/templates/validation/my_settings.yml +171 -0
- data/lib/fcoin/generators/validation.rb +18 -0
- data/lib/fcoin/realtime/api.rb +38 -0
- data/lib/fcoin/realtime/client.rb +9 -0
- data/lib/fcoin/realtime/endpoint.rb +160 -0
- data/lib/fcoin/realtime/formatter/base_formatter.rb +10 -0
- data/lib/fcoin/realtime/formatter/depth_formatter.rb +37 -0
- data/lib/fcoin/realtime/formatter/ticker_formatter.rb +36 -0
- data/lib/fcoin/realtime/formatter.rb +40 -0
- data/lib/fcoin/realtime/wss.rb +113 -0
- data/lib/fcoin/request.rb +73 -0
- data/lib/fcoin/validator/market_validator.rb +60 -0
- data/lib/fcoin/validator/orders/base_validator.rb +96 -0
- data/lib/fcoin/validator/orders/create_order_limit_validator.rb +54 -0
- data/lib/fcoin/validator/orders/create_order_market_validator.rb +95 -0
- data/lib/fcoin/validator/orders/order_list_validator.rb +33 -0
- data/lib/fcoin/validator/orders_validator.rb +69 -0
- data/lib/fcoin/validator/validator_utility.rb +24 -0
- data/lib/fcoin/validator.rb +58 -0
- data/lib/fcoin/version.rb +3 -0
- data/lib/fcoin.rb +11 -0
- metadata +353 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a4d0f483bcb65116c422ae6489361db119457af3
|
4
|
+
data.tar.gz: 6761824963b5cc543ad3dd4723bd21bbb98b25c3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 34f4925fa20beb9b24fab41d2512cbfb4d498966286624fba65d0b32a4d87236597c88e83c059cfe68eb40d6a5bf93f843fc33801463350df07b1e69fb9abd9c
|
7
|
+
data.tar.gz: b0753db7887e83c6d50fffd02b8842f5ea49d281ecb3dd771ce6ee5670d109ff616a5cb925e1fd6ce5cf304c6786041ef794560842f06b8375e2c86c3bf6946a
|
@@ -0,0 +1,12 @@
|
|
1
|
+
### Summary
|
2
|
+
|
3
|
+
### Other Information
|
4
|
+
|
5
|
+
If there's anything else that's important and relevant to your pull
|
6
|
+
request, mention that information here. This could include
|
7
|
+
benchmarks, or other information.
|
8
|
+
|
9
|
+
If you are updating any of the CHANGELOG files or are asked to update the
|
10
|
+
CHANGELOG files by reviewers, please add the CHANGELOG entry at the top of the file.
|
11
|
+
|
12
|
+
Thanks for contributing to fcoin_ruby_client!
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,431 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-08-04 14:56:14 +0900 using RuboCop version 0.53.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 6
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
12
|
+
# Include: **/*.gemspec
|
13
|
+
Gemspec/OrderedDependencies:
|
14
|
+
Exclude:
|
15
|
+
- 'fcoin_ruby_client.gemspec'
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
# Cop supports --auto-correct.
|
19
|
+
Layout/EmptyLineAfterMagicComment:
|
20
|
+
Exclude:
|
21
|
+
- 'lib/fcoin/configuration.rb'
|
22
|
+
|
23
|
+
# Offense count: 6
|
24
|
+
# Cop supports --auto-correct.
|
25
|
+
Layout/EmptyLines:
|
26
|
+
Exclude:
|
27
|
+
- 'examples/realtime_api.rb'
|
28
|
+
- 'examples/rest_api.rb'
|
29
|
+
- 'spec/fcoin/endpoint/orders_spec.rb'
|
30
|
+
|
31
|
+
# Offense count: 1
|
32
|
+
# Cop supports --auto-correct.
|
33
|
+
Layout/EmptyLinesAroundAccessModifier:
|
34
|
+
Exclude:
|
35
|
+
- 'lib/fcoin/realtime/wss.rb'
|
36
|
+
|
37
|
+
# Offense count: 6
|
38
|
+
# Cop supports --auto-correct.
|
39
|
+
# Configuration parameters: EnforcedStyle.
|
40
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
41
|
+
Layout/EmptyLinesAroundClassBody:
|
42
|
+
Exclude:
|
43
|
+
- 'lib/fcoin/formatter/depth_formatter.rb'
|
44
|
+
- 'lib/fcoin/formatter/ticker_formatter.rb'
|
45
|
+
- 'lib/fcoin/realtime/formatter/depth_formatter.rb'
|
46
|
+
- 'lib/fcoin/realtime/formatter/ticker_formatter.rb'
|
47
|
+
- 'lib/fcoin/validator/orders/base_validator.rb'
|
48
|
+
- 'lib/fcoin/validator/orders_validator.rb'
|
49
|
+
|
50
|
+
# Offense count: 1
|
51
|
+
# Cop supports --auto-correct.
|
52
|
+
# Configuration parameters: EnforcedStyle.
|
53
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
54
|
+
Layout/EmptyLinesAroundModuleBody:
|
55
|
+
Exclude:
|
56
|
+
- 'lib/fcoin/configuration.rb'
|
57
|
+
|
58
|
+
# Offense count: 10
|
59
|
+
# Cop supports --auto-correct.
|
60
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
61
|
+
Layout/ExtraSpacing:
|
62
|
+
Exclude:
|
63
|
+
- 'db/migrate/*.rb'
|
64
|
+
- 'fcoin_ruby_client.gemspec'
|
65
|
+
- 'lib/fcoin/realtime/wss.rb'
|
66
|
+
- 'spec/fcoin/endpoint/accounts_spec.rb'
|
67
|
+
- 'spec/fcoin/endpoint/market_spec.rb'
|
68
|
+
- 'spec/fcoin/endpoint/orders_spec.rb'
|
69
|
+
|
70
|
+
# Offense count: 22
|
71
|
+
# Cop supports --auto-correct.
|
72
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
73
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
74
|
+
Layout/IndentHash:
|
75
|
+
Exclude:
|
76
|
+
- 'lib/fcoin/authorization.rb'
|
77
|
+
- 'lib/fcoin/formatter/ticker_formatter.rb'
|
78
|
+
- 'lib/fcoin/realtime/formatter/ticker_formatter.rb'
|
79
|
+
- 'spec/fcoin/validator/orders/create_order_limit_validator_spec.rb'
|
80
|
+
- 'spec/fcoin/validator/orders/create_order_market_validator_spec.rb'
|
81
|
+
- 'spec/fcoin/validator/orders/order_list_validator_spec.rb'
|
82
|
+
- 'spec/fcoin/validator/orders_spec.rb'
|
83
|
+
|
84
|
+
# Offense count: 22
|
85
|
+
# Cop supports --auto-correct.
|
86
|
+
# Configuration parameters: Width, IgnoredPatterns.
|
87
|
+
Layout/IndentationWidth:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
# Offense count: 17
|
91
|
+
# Cop supports --auto-correct.
|
92
|
+
Layout/MultilineBlockLayout:
|
93
|
+
Exclude:
|
94
|
+
- 'spec/fcoin/validator/orders/create_order_limit_validator_spec.rb'
|
95
|
+
- 'spec/fcoin/validator/orders/create_order_market_validator_spec.rb'
|
96
|
+
- 'spec/fcoin/validator/orders/order_list_validator_spec.rb'
|
97
|
+
- 'spec/fcoin/validator/orders_spec.rb'
|
98
|
+
|
99
|
+
# Offense count: 5
|
100
|
+
# Cop supports --auto-correct.
|
101
|
+
Layout/SpaceAfterComma:
|
102
|
+
Exclude:
|
103
|
+
- 'bin/fcoin'
|
104
|
+
- 'examples/rest_api.rb'
|
105
|
+
- 'lib/fcoin/configuration.rb'
|
106
|
+
- 'lib/fcoin/validator/orders/base_validator.rb'
|
107
|
+
- 'spec/fcoin/configuration_spec.rb'
|
108
|
+
|
109
|
+
# Offense count: 12
|
110
|
+
# Cop supports --auto-correct.
|
111
|
+
# Configuration parameters: .
|
112
|
+
# SupportedStyles: space, no_space
|
113
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
114
|
+
EnforcedStyle: no_space
|
115
|
+
|
116
|
+
# Offense count: 1080
|
117
|
+
# Cop supports --auto-correct.
|
118
|
+
# Configuration parameters: AllowForAlignment.
|
119
|
+
Layout/SpaceAroundOperators:
|
120
|
+
Exclude:
|
121
|
+
- 'fcoin_ruby_client.gemspec'
|
122
|
+
- 'lib/fcoin/authorization.rb'
|
123
|
+
- 'lib/fcoin/realtime/wss.rb'
|
124
|
+
- 'spec/fcoin/endpoint/accounts_spec.rb'
|
125
|
+
- 'spec/fcoin/endpoint/public_spec.rb'
|
126
|
+
- 'spec/fcoin/validator/market_spec.rb'
|
127
|
+
|
128
|
+
# Offense count: 1
|
129
|
+
# Cop supports --auto-correct.
|
130
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
131
|
+
# SupportedStyles: space, no_space
|
132
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
133
|
+
Layout/SpaceBeforeBlockBraces:
|
134
|
+
Exclude:
|
135
|
+
- 'spec/fcoin/endpoint/market_spec.rb'
|
136
|
+
|
137
|
+
# Offense count: 2
|
138
|
+
# Cop supports --auto-correct.
|
139
|
+
Layout/SpaceBeforeComma:
|
140
|
+
Exclude:
|
141
|
+
- 'examples/rest_api.rb'
|
142
|
+
- 'spec/fcoin/endpoint/orders_spec.rb'
|
143
|
+
|
144
|
+
# Offense count: 2
|
145
|
+
# Cop supports --auto-correct.
|
146
|
+
# Configuration parameters: AllowForAlignment.
|
147
|
+
Layout/SpaceBeforeFirstArg:
|
148
|
+
Exclude:
|
149
|
+
- 'spec/fcoin/endpoint/accounts_spec.rb'
|
150
|
+
- 'spec/fcoin/endpoint/orders_spec.rb'
|
151
|
+
|
152
|
+
# Offense count: 10
|
153
|
+
# Cop supports --auto-correct.
|
154
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
155
|
+
# SupportedStyles: space, no_space
|
156
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
157
|
+
Layout/SpaceInsideBlockBraces:
|
158
|
+
Exclude:
|
159
|
+
- 'bin/fcoin'
|
160
|
+
- 'fcoin_ruby_client.gemspec'
|
161
|
+
- 'lib/fcoin/validator/market_validator.rb'
|
162
|
+
- 'lib/fcoin/validator/orders/base_validator.rb'
|
163
|
+
- 'lib/fcoin/validator/orders/create_order_limit_validator.rb'
|
164
|
+
- 'lib/fcoin/validator/orders/create_order_market_validator.rb'
|
165
|
+
- 'lib/fcoin/validator/orders/order_list_validator.rb'
|
166
|
+
- 'lib/fcoin/validator/orders_validator.rb'
|
167
|
+
- 'spec/fcoin/validator/market_spec.rb'
|
168
|
+
- 'spec/spec_helper.rb'
|
169
|
+
|
170
|
+
# Offense count: 440
|
171
|
+
# Cop supports --auto-correct.
|
172
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
173
|
+
# SupportedStyles: space, no_space, compact
|
174
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
175
|
+
Layout/SpaceInsideHashLiteralBraces:
|
176
|
+
Exclude:
|
177
|
+
- 'spec/fcoin/endpoint/accounts_spec.rb'
|
178
|
+
- 'spec/fcoin/endpoint/public_spec.rb'
|
179
|
+
- 'spec/fcoin/validator/market_spec.rb'
|
180
|
+
- 'spec/fcoin/validator/orders/create_order_market_validator_spec.rb'
|
181
|
+
|
182
|
+
# Offense count: 4
|
183
|
+
# Cop supports --auto-correct.
|
184
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
185
|
+
Exclude:
|
186
|
+
- 'lib/fcoin/configuration.rb'
|
187
|
+
- 'spec/fcoin/configuration_spec.rb'
|
188
|
+
|
189
|
+
# Offense count: 4
|
190
|
+
# Cop supports --auto-correct.
|
191
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
192
|
+
# SupportedStyles: space, no_space
|
193
|
+
# SupportedStylesForEmptyBrackets: space, no_space
|
194
|
+
Layout/SpaceInsideReferenceBrackets:
|
195
|
+
Exclude:
|
196
|
+
- 'lib/fcoin/authorization.rb'
|
197
|
+
- 'lib/fcoin/endpoint/utility.rb'
|
198
|
+
|
199
|
+
# Offense count: 9
|
200
|
+
# Cop supports --auto-correct.
|
201
|
+
# Configuration parameters: EnforcedStyle.
|
202
|
+
# SupportedStyles: final_newline, final_blank_line
|
203
|
+
Layout/TrailingBlankLines:
|
204
|
+
Exclude:
|
205
|
+
- 'lib/fcoin/endpoint/orders.rb'
|
206
|
+
- 'lib/fcoin/endpoint/public.rb'
|
207
|
+
- 'lib/fcoin/realtime/client.rb'
|
208
|
+
- 'lib/fcoin/realtime/wss.rb'
|
209
|
+
- 'spec/fcoin/endpoint/accounts_spec.rb'
|
210
|
+
- 'spec/fcoin/endpoint/orders_spec.rb'
|
211
|
+
- 'spec/fcoin/endpoint/public_spec.rb'
|
212
|
+
- 'spec/fcoin/validator/market_spec.rb'
|
213
|
+
- 'spec/fcoin/validator/orders_spec.rb'
|
214
|
+
|
215
|
+
# Offense count: 12
|
216
|
+
# Cop supports --auto-correct.
|
217
|
+
Layout/TrailingWhitespace:
|
218
|
+
Exclude:
|
219
|
+
- 'lib/fcoin/configuration.rb'
|
220
|
+
- 'lib/fcoin/formatter/ticker_formatter.rb'
|
221
|
+
- 'lib/fcoin/realtime/formatter/ticker_formatter.rb'
|
222
|
+
- 'lib/fcoin/request.rb'
|
223
|
+
- 'spec/fcoin/endpoint/accounts_spec.rb'
|
224
|
+
- 'spec/fcoin/endpoint/market_spec.rb'
|
225
|
+
- 'spec/fcoin/endpoint/orders_spec.rb'
|
226
|
+
- 'spec/fcoin/validator/orders/create_order_market_validator_spec.rb'
|
227
|
+
- 'spec/fcoin/validator/orders/order_list_validator_spec.rb'
|
228
|
+
- 'spec/fcoin/validator/orders_spec.rb'
|
229
|
+
|
230
|
+
# Offense count: 2
|
231
|
+
Lint/AmbiguousOperator:
|
232
|
+
Exclude:
|
233
|
+
- 'lib/fcoin/api.rb'
|
234
|
+
- 'lib/fcoin/configuration.rb'
|
235
|
+
|
236
|
+
# Offense count: 3
|
237
|
+
# Cop supports --auto-correct.
|
238
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
239
|
+
Lint/UnusedBlockArgument:
|
240
|
+
Exclude:
|
241
|
+
- 'lib/fcoin/realtime/wss.rb'
|
242
|
+
|
243
|
+
# Offense count: 5
|
244
|
+
Metrics/AbcSize:
|
245
|
+
Max: 34
|
246
|
+
|
247
|
+
# Offense count: 152
|
248
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
249
|
+
# URISchemes: http, https
|
250
|
+
Metrics/LineLength:
|
251
|
+
Max: 17880
|
252
|
+
|
253
|
+
# Offense count: 2
|
254
|
+
# Configuration parameters: CountComments.
|
255
|
+
Metrics/MethodLength:
|
256
|
+
Max: 24
|
257
|
+
|
258
|
+
# Offense count: 1
|
259
|
+
# Configuration parameters: CountKeywordArgs.
|
260
|
+
Metrics/ParameterLists:
|
261
|
+
Max: 6
|
262
|
+
|
263
|
+
# Offense count: 1
|
264
|
+
Metrics/PerceivedComplexity:
|
265
|
+
Max: 10
|
266
|
+
|
267
|
+
# Offense count: 2
|
268
|
+
# Cop supports --auto-correct.
|
269
|
+
Performance/StringReplacement:
|
270
|
+
Exclude:
|
271
|
+
- 'bin/fcoin'
|
272
|
+
- 'lib/fcoin/validator/orders/base_validator.rb'
|
273
|
+
|
274
|
+
# Offense count: 4
|
275
|
+
# Cop supports --auto-correct.
|
276
|
+
# Configuration parameters: EnforcedStyle.
|
277
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
278
|
+
Style/Alias:
|
279
|
+
Exclude:
|
280
|
+
- 'lib/fcoin/authorization.rb'
|
281
|
+
- 'lib/fcoin/endpoint/orders.rb'
|
282
|
+
- 'lib/fcoin/endpoint/utility.rb'
|
283
|
+
|
284
|
+
# Offense count: 2
|
285
|
+
# Cop supports --auto-correct.
|
286
|
+
# Configuration parameters: EnforcedStyle, AllowInnerBackticks.
|
287
|
+
# SupportedStyles: backticks, percent_x, mixed
|
288
|
+
Style/CommandLiteral:
|
289
|
+
Exclude:
|
290
|
+
- 'lib/fcoin/configuration.rb'
|
291
|
+
- 'spec/fcoin/configuration_spec.rb'
|
292
|
+
|
293
|
+
# Offense count: 9
|
294
|
+
# Cop supports --auto-correct.
|
295
|
+
Style/EmptyLineAfterGuardClause:
|
296
|
+
Exclude:
|
297
|
+
- 'lib/fcoin/realtime/wss.rb'
|
298
|
+
- 'lib/fcoin/validator/market_validator.rb'
|
299
|
+
- 'lib/fcoin/validator/orders/create_order_limit_validator.rb'
|
300
|
+
- 'lib/fcoin/validator/orders/create_order_market_validator.rb'
|
301
|
+
- 'lib/fcoin/validator/orders/order_list_validator.rb'
|
302
|
+
- 'lib/fcoin/validator/orders_validator.rb'
|
303
|
+
|
304
|
+
# Offense count: 5
|
305
|
+
# Cop supports --auto-correct.
|
306
|
+
Style/ExpandPathArguments:
|
307
|
+
Exclude:
|
308
|
+
- 'examples/realtime_api.rb'
|
309
|
+
- 'examples/rest_api.rb'
|
310
|
+
- 'fcoin_ruby_client.gemspec'
|
311
|
+
- 'lib/fcoin/configuration.rb'
|
312
|
+
|
313
|
+
# Offense count: 7
|
314
|
+
# Configuration parameters: MinBodyLength.
|
315
|
+
Style/GuardClause:
|
316
|
+
Exclude:
|
317
|
+
- 'lib/fcoin/endpoint/market.rb'
|
318
|
+
- 'lib/fcoin/endpoint/orders.rb'
|
319
|
+
- 'lib/fcoin/realtime/endpoint.rb'
|
320
|
+
|
321
|
+
# Offense count: 43
|
322
|
+
# Cop supports --auto-correct.
|
323
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
324
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
325
|
+
Style/HashSyntax:
|
326
|
+
Exclude:
|
327
|
+
- '**/*.rake'
|
328
|
+
- 'Rakefile'
|
329
|
+
- 'lib/fcoin/connection.rb'
|
330
|
+
- 'spec/fcoin/api_spec.rb'
|
331
|
+
- 'spec/fcoin/configuration_spec.rb'
|
332
|
+
- 'spec/fcoin/validator/market_spec.rb'
|
333
|
+
- 'spec/fcoin/validator/orders/create_order_limit_validator_spec.rb'
|
334
|
+
- 'spec/fcoin/validator/orders/create_order_market_validator_spec.rb'
|
335
|
+
- 'spec/fcoin/validator/orders/order_list_validator_spec.rb'
|
336
|
+
- 'spec/fcoin/validator/orders_spec.rb'
|
337
|
+
|
338
|
+
# Offense count: 2
|
339
|
+
# Cop supports --auto-correct.
|
340
|
+
Style/MutableConstant:
|
341
|
+
Exclude:
|
342
|
+
- 'lib/fcoin/configuration.rb'
|
343
|
+
- 'lib/fcoin/version.rb'
|
344
|
+
|
345
|
+
# Offense count: 16
|
346
|
+
# Cop supports --auto-correct.
|
347
|
+
# Configuration parameters: Strict.
|
348
|
+
Style/NumericLiterals:
|
349
|
+
MinDigits: 14
|
350
|
+
|
351
|
+
# Offense count: 6
|
352
|
+
# Cop supports --auto-correct.
|
353
|
+
# Configuration parameters: PreferredDelimiters.
|
354
|
+
Style/PercentLiteralDelimiters:
|
355
|
+
Exclude:
|
356
|
+
- 'bin/fcoin'
|
357
|
+
- 'fcoin_ruby_client.gemspec'
|
358
|
+
- 'lib/fcoin/configuration.rb'
|
359
|
+
- 'spec/fcoin/configuration_spec.rb'
|
360
|
+
- 'spec/support/vcr.rb'
|
361
|
+
|
362
|
+
# Offense count: 1
|
363
|
+
# Cop supports --auto-correct.
|
364
|
+
Style/Proc:
|
365
|
+
Exclude:
|
366
|
+
- 'bin/fcoin'
|
367
|
+
|
368
|
+
# Offense count: 7
|
369
|
+
# Cop supports --auto-correct.
|
370
|
+
# Configuration parameters: .
|
371
|
+
# SupportedStyles: compact, exploded
|
372
|
+
Style/RaiseArgs:
|
373
|
+
EnforcedStyle: compact
|
374
|
+
|
375
|
+
# Offense count: 1
|
376
|
+
# Cop supports --auto-correct.
|
377
|
+
Style/RedundantFreeze:
|
378
|
+
Exclude:
|
379
|
+
- 'lib/fcoin/configuration.rb'
|
380
|
+
|
381
|
+
# Offense count: 1
|
382
|
+
# Cop supports --auto-correct.
|
383
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
384
|
+
Style/RedundantReturn:
|
385
|
+
Exclude:
|
386
|
+
- 'lib/fcoin/request.rb'
|
387
|
+
|
388
|
+
# Offense count: 719
|
389
|
+
# Cop supports --auto-correct.
|
390
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
391
|
+
# SupportedStyles: single_quotes, double_quotes
|
392
|
+
Style/StringLiterals:
|
393
|
+
Enabled: false
|
394
|
+
|
395
|
+
# Offense count: 1
|
396
|
+
# Cop supports --auto-correct.
|
397
|
+
# Configuration parameters: EnforcedStyle.
|
398
|
+
# SupportedStyles: single_quotes, double_quotes
|
399
|
+
Style/StringLiteralsInInterpolation:
|
400
|
+
Exclude:
|
401
|
+
- 'lib/fcoin/validator/validator_utility.rb'
|
402
|
+
|
403
|
+
# Offense count: 2
|
404
|
+
# Cop supports --auto-correct.
|
405
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
406
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
407
|
+
Style/TrailingCommaInArrayLiteral:
|
408
|
+
Exclude:
|
409
|
+
- 'lib/fcoin/configuration.rb'
|
410
|
+
|
411
|
+
# Offense count: 9
|
412
|
+
# Cop supports --auto-correct.
|
413
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
414
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
415
|
+
Style/TrailingCommaInHashLiteral:
|
416
|
+
Exclude:
|
417
|
+
- 'lib/fcoin/authorization.rb'
|
418
|
+
- 'lib/fcoin/connection.rb'
|
419
|
+
- 'lib/fcoin/formatter/depth_formatter.rb'
|
420
|
+
- 'lib/fcoin/formatter/ticker_formatter.rb'
|
421
|
+
- 'lib/fcoin/realtime/formatter/depth_formatter.rb'
|
422
|
+
- 'lib/fcoin/realtime/formatter/ticker_formatter.rb'
|
423
|
+
- 'lib/fcoin/request.rb'
|
424
|
+
- 'spec/fcoin/api_spec.rb'
|
425
|
+
- 'spec/fcoin/configuration_spec.rb'
|
426
|
+
|
427
|
+
# Offense count: 2
|
428
|
+
# Cop supports --auto-correct.
|
429
|
+
Style/UnneededPercentQ:
|
430
|
+
Exclude:
|
431
|
+
- 'fcoin_ruby_client.gemspec'
|
data/.travis.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
sudo: false
|
2
|
+
|
3
|
+
language: ruby
|
4
|
+
|
5
|
+
rvm:
|
6
|
+
- 2.4.1
|
7
|
+
|
8
|
+
before_install: gem install bundler -v 1.16.0.pre.3
|
9
|
+
|
10
|
+
before_script:
|
11
|
+
- mkdir log
|
12
|
+
|
13
|
+
gemfile:
|
14
|
+
- Gemfile
|
15
|
+
bundler_args: "--without development --deployment"
|
16
|
+
|
17
|
+
cache:
|
18
|
+
bundler: true
|
19
|
+
|
20
|
+
install:
|
21
|
+
- bundle install
|
22
|
+
|
23
|
+
script:
|
24
|
+
- bundle exec rubocop --fail-level=W
|
25
|
+
- bundle exec rspec spec
|
26
|
+
- bundle exec rspec spec --tag fcoin_auth
|
data/CHANGELOG.md
ADDED