coingecko 0.1.2 → 0.1.3
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/README.md +21 -1
- data/lib/coingecko.rb +2 -0
- data/lib/coingecko/cli/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b2b6a7fa8f8e6a34ce9744a9a907527e7095535344c6d6aeeceb214960ed3fe
|
4
|
+
data.tar.gz: e5c630b312a1ff17c7a023966e74d4ea02de870713c7cb681b8c58f97ee832b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1303471a5da3056fd45f897ed5aeb3654242ae32b9ac04802a267c81d8eecf2905be5d3ade877edc974ff253c009ca1580176ce750e3224a22669fdd8107226f
|
7
|
+
data.tar.gz: 48eb2b5a7c11b5c87d40d5678866c9a77f427b3349acc8e6d1ccd589b344b1ac6e4940ee213e16cca54324d276ff56d789762703ad0640e8bba2baa324a6fc67
|
data/README.md
CHANGED
@@ -20,7 +20,27 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
$ gem install coingecko
|
22
22
|
|
23
|
-
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
|
28
|
+
#Returns object with all Global Data from coingecko
|
29
|
+
Coingecko::Global.new_from_global
|
30
|
+
|
31
|
+
#Returns object with ALL available coins with id, symbol, name
|
32
|
+
Coingecko::Global.get_all_coins_list
|
33
|
+
|
34
|
+
#Returns top 100 coins objects only with id, symbol, name, market_cap_rank, last_updated. Default currency is "usd"
|
35
|
+
Coingecko::Coin.new_from_top_100
|
36
|
+
|
37
|
+
#Returns a particular coin object with ALL avaiable data from Coingecko. It needs an id as an argument. Example:
|
38
|
+
Coingecko::Coin.get_coin("bitcoin")
|
39
|
+
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
## Development
|
24
44
|
|
25
45
|
A CLI console is provided to lookup coins or list top 100 coins. It also provides a print feature of basic coin attributes. However, all coin attributes can be read as it pulls directly from Coingecko API. To launch the console just launch it from bin folder E.g.
|
26
46
|
|
data/lib/coingecko.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coingecko
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "'Felipe Bohorquez'"
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- bin/console
|
128
128
|
- bin/setup
|
129
129
|
- coingecko.gemspec
|
130
|
+
- lib/coingecko.rb
|
130
131
|
- lib/coingecko/api.rb
|
131
132
|
- lib/coingecko/cli.rb
|
132
133
|
- lib/coingecko/cli/version.rb
|