coingecko 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0409aa1d9675f49b4c52ed80abd5c14590a945c6e0110c9c0bc292fd25db29bc'
4
- data.tar.gz: f28cc622c5fba816540f29a8e824ee64f08455de808ffa8ec93d5b2f14c92589
3
+ metadata.gz: 5b2b6a7fa8f8e6a34ce9744a9a907527e7095535344c6d6aeeceb214960ed3fe
4
+ data.tar.gz: e5c630b312a1ff17c7a023966e74d4ea02de870713c7cb681b8c58f97ee832b9
5
5
  SHA512:
6
- metadata.gz: 7dfff11af8eead37a2d76976a534c3dcf890309fab4feb9825c1ea91b4c059583b1cfa609d54ebd6a7b0a426ba0f4bdfd6412ef8329f45c60800aadd0336dd6c
7
- data.tar.gz: 763cfe61c0d2d21bb6f2805810e0e231f64ac2d29127a159c15d389ec0d810164691c76568155c8f9108849c6de3dfddb0ea69dbd6287dc833691b5006856f46
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
- ## Development Usage
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
 
@@ -0,0 +1,2 @@
1
+ #this file is for gem publishing which calls the main environment.
2
+ require_relative "environment"
@@ -1,3 +1,3 @@
1
1
  module Coingecko
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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