coinmarketcap_free 0.1.4 → 0.2.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 +4 -4
- data/.rubocop.yml +204 -0
- data/Gemfile +16 -16
- data/Gemfile.lock +30 -30
- data/LICENSE.txt +21 -21
- data/README.md +236 -227
- data/Rakefile +12 -12
- data/coinmarketcap_free.gemspec +37 -0
- data/lib/coinmarketcap_free/coin.rb +161 -64
- data/lib/coinmarketcap_free/coin_history.rb +108 -0
- data/lib/coinmarketcap_free/helper.rb +24 -6
- data/lib/coinmarketcap_free/icon.rb +28 -0
- data/lib/coinmarketcap_free/version.rb +5 -5
- data/lib/coinmarketcap_free.rb +10 -303
- metadata +8 -9
- data/.idea/.gitignore +0 -8
- data/.idea/coinmarketcap_free.iml +0 -27
- data/.idea/modules.xml +0 -8
- data/.idea/vcs.xml +0 -6
- data/lib/coinmarketcap_free/base.rb +0 -42
- data/lib/coinmarketcap_free/cryptocurrencies.rb +0 -192
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c559f0f1d6dea4119d9c1c6fd6fb9d44b03559c80c694c9c18e4a452a285ed5
|
4
|
+
data.tar.gz: c1927861d0070f84d8c4aabaf6045de7b2da4d0a1230349bf19e257995d51d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94665066f532975bcfd68ed72feb3b9905e9372d9b01562ea6d5a0929a3f8604358feb578f0ffcf42e86464e103877d5549e22d4fc1e7e31565df40be64d8c13
|
7
|
+
data.tar.gz: 4f43a77dd4718c0be2760aabda58338741ee29e38318a5f3eb3d0b0cc06009bf4ea852f34260c0eb4b2aa50fbefa6c1157d331ae4b019b4533281f61574ff93c
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,204 @@
|
|
1
|
+
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
2
|
+
# configuration file. It makes it possible to enable/disable
|
3
|
+
# certain cops (checks) and to alter their behavior if they accept
|
4
|
+
# any parameters. The file can be placed either in your home
|
5
|
+
# directory or in some project directory.
|
6
|
+
#
|
7
|
+
# RuboCop will start looking for the configuration file in the directory
|
8
|
+
# where the inspected file is and continue its way up to the root directory.
|
9
|
+
#
|
10
|
+
# See https://docs.rubocop.org/rubocop/configuration
|
11
|
+
|
12
|
+
AllCops:
|
13
|
+
NewCops: enable
|
14
|
+
|
15
|
+
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
16
|
+
Enabled: true
|
17
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
18
|
+
Enabled: true
|
19
|
+
Gemspec/RequireMFA: # new in 1.23
|
20
|
+
Enabled: true
|
21
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
22
|
+
Enabled: true
|
23
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
24
|
+
Enabled: true
|
25
|
+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
26
|
+
Enabled: true
|
27
|
+
Layout/SpaceBeforeBrackets: # new in 1.7
|
28
|
+
Enabled: true
|
29
|
+
Lint/AmbiguousAssignment: # new in 1.7
|
30
|
+
Enabled: true
|
31
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
32
|
+
Enabled: true
|
33
|
+
Lint/AmbiguousRange: # new in 1.19
|
34
|
+
Enabled: true
|
35
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
36
|
+
Enabled: true
|
37
|
+
Lint/DeprecatedConstants: # new in 1.8
|
38
|
+
Enabled: true
|
39
|
+
Lint/DuplicateBranch: # new in 1.3
|
40
|
+
Enabled: true
|
41
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
42
|
+
Enabled: true
|
43
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
44
|
+
Enabled: true
|
45
|
+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
46
|
+
Enabled: true
|
47
|
+
Lint/EmptyBlock: # new in 1.1
|
48
|
+
Enabled: true
|
49
|
+
Lint/EmptyClass: # new in 1.3
|
50
|
+
Enabled: true
|
51
|
+
Lint/EmptyInPattern: # new in 1.16
|
52
|
+
Enabled: true
|
53
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
54
|
+
Enabled: true
|
55
|
+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
56
|
+
Enabled: true
|
57
|
+
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
58
|
+
Enabled: true
|
59
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
60
|
+
Enabled: true
|
61
|
+
Lint/NumberedParameterAssignment: # new in 1.9
|
62
|
+
Enabled: true
|
63
|
+
Lint/OrAssignmentToConstant: # new in 1.9
|
64
|
+
Enabled: true
|
65
|
+
Lint/RedundantDirGlobSort: # new in 1.8
|
66
|
+
Enabled: true
|
67
|
+
Lint/RefinementImportMethods: # new in 1.27
|
68
|
+
Enabled: true
|
69
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
70
|
+
Enabled: true
|
71
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
72
|
+
Enabled: true
|
73
|
+
Lint/SymbolConversion: # new in 1.9
|
74
|
+
Enabled: true
|
75
|
+
Lint/ToEnumArguments: # new in 1.1
|
76
|
+
Enabled: true
|
77
|
+
Lint/TripleQuotes: # new in 1.9
|
78
|
+
Enabled: true
|
79
|
+
Lint/UnexpectedBlockArity: # new in 1.5
|
80
|
+
Enabled: true
|
81
|
+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
82
|
+
Enabled: true
|
83
|
+
Lint/UselessRescue: # new in 1.43
|
84
|
+
Enabled: true
|
85
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
86
|
+
Enabled: true
|
87
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
88
|
+
Enabled: true
|
89
|
+
Naming/BlockForwarding: # new in 1.24
|
90
|
+
Enabled: true
|
91
|
+
Security/CompoundHash: # new in 1.28
|
92
|
+
Enabled: true
|
93
|
+
Security/IoMethods: # new in 1.22
|
94
|
+
Enabled: true
|
95
|
+
Style/ArgumentsForwarding: # new in 1.1
|
96
|
+
Enabled: true
|
97
|
+
Style/ArrayIntersect: # new in 1.40
|
98
|
+
Enabled: true
|
99
|
+
Style/CollectionCompact: # new in 1.2
|
100
|
+
Enabled: true
|
101
|
+
Style/ComparableClamp: # new in 1.44
|
102
|
+
Enabled: true
|
103
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
104
|
+
Enabled: true
|
105
|
+
Style/DataInheritance: # new in 1.49
|
106
|
+
Enabled: true
|
107
|
+
Style/DirEmpty: # new in 1.48
|
108
|
+
Enabled: true
|
109
|
+
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
110
|
+
Enabled: true
|
111
|
+
Style/EmptyHeredoc: # new in 1.32
|
112
|
+
Enabled: true
|
113
|
+
Style/EndlessMethod: # new in 1.8
|
114
|
+
Enabled: true
|
115
|
+
Style/EnvHome: # new in 1.29
|
116
|
+
Enabled: true
|
117
|
+
Style/FetchEnvVar: # new in 1.28
|
118
|
+
Enabled: true
|
119
|
+
Style/FileEmpty: # new in 1.48
|
120
|
+
Enabled: true
|
121
|
+
Style/FileRead: # new in 1.24
|
122
|
+
Enabled: true
|
123
|
+
Style/FileWrite: # new in 1.24
|
124
|
+
Enabled: true
|
125
|
+
Style/HashConversion: # new in 1.10
|
126
|
+
Enabled: true
|
127
|
+
Style/HashExcept: # new in 1.7
|
128
|
+
Enabled: true
|
129
|
+
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
130
|
+
Enabled: true
|
131
|
+
Style/InPatternThen: # new in 1.16
|
132
|
+
Enabled: true
|
133
|
+
Style/MagicCommentFormat: # new in 1.35
|
134
|
+
Enabled: true
|
135
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
136
|
+
Enabled: true
|
137
|
+
Style/MapToHash: # new in 1.24
|
138
|
+
Enabled: true
|
139
|
+
Style/MapToSet: # new in 1.42
|
140
|
+
Enabled: true
|
141
|
+
Style/MinMaxComparison: # new in 1.42
|
142
|
+
Enabled: true
|
143
|
+
Style/MultilineInPatternThen: # new in 1.16
|
144
|
+
Enabled: true
|
145
|
+
Style/NegatedIfElseCondition: # new in 1.2
|
146
|
+
Enabled: true
|
147
|
+
Style/NestedFileDirname: # new in 1.26
|
148
|
+
Enabled: true
|
149
|
+
Style/NilLambda: # new in 1.3
|
150
|
+
Enabled: true
|
151
|
+
Style/NumberedParameters: # new in 1.22
|
152
|
+
Enabled: true
|
153
|
+
Style/NumberedParametersLimit: # new in 1.22
|
154
|
+
Enabled: true
|
155
|
+
Style/ObjectThen: # new in 1.28
|
156
|
+
Enabled: true
|
157
|
+
Style/OpenStructUse: # new in 1.23
|
158
|
+
Enabled: true
|
159
|
+
Style/OperatorMethodCall: # new in 1.37
|
160
|
+
Enabled: true
|
161
|
+
Style/QuotedSymbols: # new in 1.16
|
162
|
+
Enabled: true
|
163
|
+
Style/RedundantArgument: # new in 1.4
|
164
|
+
Enabled: true
|
165
|
+
Style/RedundantConstantBase: # new in 1.40
|
166
|
+
Enabled: true
|
167
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
168
|
+
Enabled: true
|
169
|
+
Style/RedundantEach: # new in 1.38
|
170
|
+
Enabled: true
|
171
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
172
|
+
Enabled: true
|
173
|
+
Style/RedundantInitialize: # new in 1.27
|
174
|
+
Enabled: true
|
175
|
+
Style/RedundantLineContinuation: # new in 1.49
|
176
|
+
Enabled: true
|
177
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
178
|
+
Enabled: true
|
179
|
+
Style/RedundantStringEscape: # new in 1.37
|
180
|
+
Enabled: true
|
181
|
+
Style/SelectByRegexp: # new in 1.22
|
182
|
+
Enabled: true
|
183
|
+
Style/StringChars: # new in 1.12
|
184
|
+
Enabled: true
|
185
|
+
Style/SwapValues: # new in 1.1
|
186
|
+
Enabled: true
|
187
|
+
|
188
|
+
Style/StringLiterals:
|
189
|
+
Enabled: false
|
190
|
+
|
191
|
+
Metrics/MethodLength:
|
192
|
+
Enabled: false
|
193
|
+
|
194
|
+
Metrics/CyclomaticComplexity:
|
195
|
+
Enabled: false
|
196
|
+
|
197
|
+
Metrics/PerceivedComplexity:
|
198
|
+
Enabled: false
|
199
|
+
|
200
|
+
Metrics/AbcSize:
|
201
|
+
Enabled: false
|
202
|
+
|
203
|
+
Layout/LineLength:
|
204
|
+
Enabled: false
|
data/Gemfile
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in coinmarketcap_free.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
gem '
|
9
|
-
gem
|
10
|
-
gem
|
11
|
-
gem
|
12
|
-
|
13
|
-
group :test do
|
14
|
-
gem
|
15
|
-
gem
|
16
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in coinmarketcap_free.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem 'json', '~> 2.6'
|
9
|
+
gem 'net-http', '~> 0.3.0'
|
10
|
+
gem 'openssl', '~> 3.0'
|
11
|
+
gem 'uri', '~> 0.12.1'
|
12
|
+
|
13
|
+
group :test do
|
14
|
+
gem 'minitest', '~> 5.0'
|
15
|
+
gem 'rake', '~> 13.0'
|
16
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,30 +1,30 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
coinmarketcap_free (0.
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
json (2.6.2)
|
10
|
-
minitest (5.16.3)
|
11
|
-
net-http (0.3.0)
|
12
|
-
uri
|
13
|
-
openssl (3.0.1)
|
14
|
-
rake (13.0.6)
|
15
|
-
uri (0.12.
|
16
|
-
|
17
|
-
PLATFORMS
|
18
|
-
x86_64-linux
|
19
|
-
|
20
|
-
DEPENDENCIES
|
21
|
-
coinmarketcap_free!
|
22
|
-
json (~> 2.6)
|
23
|
-
minitest (~> 5.0)
|
24
|
-
net-http (~> 0.3.0)
|
25
|
-
openssl (~> 3.0)
|
26
|
-
rake (~> 13.0)
|
27
|
-
uri (~> 0.12.
|
28
|
-
|
29
|
-
BUNDLED WITH
|
30
|
-
2.
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
coinmarketcap_free (0.2.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
json (2.6.2)
|
10
|
+
minitest (5.16.3)
|
11
|
+
net-http (0.3.0)
|
12
|
+
uri
|
13
|
+
openssl (3.0.1)
|
14
|
+
rake (13.0.6)
|
15
|
+
uri (0.12.1)
|
16
|
+
|
17
|
+
PLATFORMS
|
18
|
+
x86_64-linux
|
19
|
+
|
20
|
+
DEPENDENCIES
|
21
|
+
coinmarketcap_free!
|
22
|
+
json (~> 2.6)
|
23
|
+
minitest (~> 5.0)
|
24
|
+
net-http (~> 0.3.0)
|
25
|
+
openssl (~> 3.0)
|
26
|
+
rake (~> 13.0)
|
27
|
+
uri (~> 0.12.1)
|
28
|
+
|
29
|
+
BUNDLED WITH
|
30
|
+
2.4.10
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2022 cosmic-1
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 cosmic-1
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|