cryptowatch 0.0.3 → 0.0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c584e212429216987f762fdb43539a5dd5676f1a
4
- data.tar.gz: 5b7d597ca70bbf0b2cbe48f53cb85b305556cbeb
3
+ metadata.gz: 1252f3455536207b87fb4ae5f02893e00f37ad3a
4
+ data.tar.gz: ad929535f4b914dc6dabe8ec268f17bdd6d3ed5c
5
5
  SHA512:
6
- metadata.gz: d6307d5d2ce10d03ce75fb265fe7aca63ebcdae7534f70f007144f38bb91653bcb6c3e9b1a987a065d6526a3fea7e3a10823152f42d6aa4b4dffd81b495bb011
7
- data.tar.gz: da8f05a36ec56099b87a3832182067d71082f9693400bd1025bbfe83c8d2697e162a6dea972ba7d656b219dbbf4dace3b08e8ffe35a8a57fe6a22ca2b2146ffc
6
+ metadata.gz: 1497b142d3d56ed45834d84b883ce1f36040a007c25428952747b2fdbf95e6b3f135c82396a278d655e7018c12791c268c5632a8190ad291d48693453f9a9335
7
+ data.tar.gz: 8dca49899df82f8014cf116ebc79c507e0b425533504ec4354f887054c526939df954ab61299baaab37a5b12bd48f87da9d09ead4c1d79351e3766cda562ed39
data/README.md CHANGED
@@ -14,22 +14,31 @@ Require the gem into your project with:
14
14
  ```
15
15
  require 'cryptowatch'
16
16
  ```
17
- ## Requests list
18
- Let's construct or first request with the gem:
17
+ ## An example
19
18
  ```ruby
20
- cw = Cryptowatch::Wrapper.new({:timeout => 10}) #By default timeout = 5.
19
+ require 'cryptowatch'
20
+
21
+ class MyApplication
22
+ include Cryptowatch
23
+
24
+ wrapper = Wrapper.new;
21
25
 
22
- cw.assets #Returns all assets (in no particular order).
23
- cw.assets(:btc) #Lists all markets which have this asset as a base or quote.
26
+ wrapper.get(Assets::index)
27
+ wrapper.get(Assets::asset(:btc))
24
28
 
25
- cw.pairs #Returns all pairs (in no particular order).
26
- cw.pairs(:btcusd) #Returns a single pair. Lists all markets for this pair.
29
+ wrapper.get(Exchanges::index)
30
+ wrapper.get(Exchanges::exchange(:kraken))
27
31
 
28
- cw.exchanges #Returns a list of all supported exchanges.
29
- cw.exchanges(:kraken) #Returns a single exchange, with associated routes.
32
+ wrapper.get(Markets::index)
33
+ wrapper.get(Markets::price(:kraken, :btcusd))
34
+ wrapper.get(Markets::summary(:gdax, :btceur))
35
+ wrapper.get(Markets::trades(:poloniex, :ethbtc))
36
+ wrapper.get(Markets::orderbook(:kraken, :xrpbtc))
37
+ wrapper.get(Markets::ohlc(:kraken, :xrpbtc))
30
38
 
31
- cw.markets #Returns a list of all supported markets.
32
- cw.markets(:kraken, :btcusd) #Returns a single market, with associated routes.
39
+ wrapper.get(Pairs::index)
40
+ wrapper.get(Pairs::pair(:btcusd))
41
+ end
33
42
 
34
43
  #In writing...
35
44
  ```
@@ -7,7 +7,7 @@
7
7
 
8
8
  module Cryptowatch
9
9
  module Api
10
- VERSION = [0, 0, 3]
10
+ VERSION = [0, 0, 3, 1]
11
11
  VERSION_FORMAT = VERSION.join('.')
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptowatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esteban Gonzalez
@@ -32,7 +32,6 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - Gemfile
34
34
  - README.md
35
- - cryptowatch-log.log
36
35
  - cryptowatch.gemspec
37
36
  - lib/cryptowatch.rb
38
37
  - lib/cryptowatch/adapter/rest_client_adapter.rb
@@ -44,7 +43,6 @@ files:
44
43
  - lib/cryptowatch/messages.rb
45
44
  - lib/cryptowatch/utils.rb
46
45
  - lib/cryptowatch/version.rb
47
- - lib/cryptowatch/version.rb~
48
46
  - lib/cryptowatch/wrapper.rb
49
47
  - unit_tests/.DS_Store
50
48
  - unit_tests/test_requests.rb
@@ -1,19 +0,0 @@
1
-
2
- # Logfile created on 2017-11-05 17:56:05 +0100 by logger.rb/56438
3
- E, [2017-11-05T17:59:18.694354 #4796] ERROR -- : Unknow route input.
4
- E, [2017-11-05T18:01:34.433434 #4842] ERROR -- : Unknow route input.
5
- E, [2017-11-05T18:01:34.487209 #4842] ERROR -- : (true): Failed to open TCP connection to true:80 (getaddrinfo: nodename nor servname provided, or not known)
6
- I, [2017-11-05T18:05:50.551578 #4945] INFO -- : GET => https://api.cryptowat.ch/markets
7
- E, [2017-11-05T18:05:50.551680 #4945] ERROR -- : Unknow route input.
8
- E, [2017-11-05T18:05:50.553169 #4945] ERROR -- : (true): Failed to open TCP connection to true:80 (getaddrinfo: nodename nor servname provided, or not known)
9
- I, [2017-11-05T18:06:08.205394 #4960] INFO -- : GET => https://api.cryptowat.ch/markets
10
- E, [2017-11-05T18:06:08.205524 #4960] ERROR -- : Unknow route input.
11
- E, [2017-11-05T18:06:08.207055 #4960] ERROR -- : (true): Failed to open TCP connection to true:80 (getaddrinfo: nodename nor servname provided, or not known)
12
- I, [2017-11-05T18:16:07.842420 #5061] INFO -- : GET => https://api.cryptowat.ch/markets
13
- I, [2017-11-05T18:16:07.843477 #5061] INFO -- : GET => https://api.cryptowat.ch/markets
14
- E, [2017-11-05T18:16:07.843559 #5061] ERROR -- : Unknow route input.
15
- E, [2017-11-05T18:16:07.845376 #5061] ERROR -- : (true): Failed to open TCP connection to true:80 (getaddrinfo: nodename nor servname provided, or not known)
16
- I, [2017-11-05T18:25:57.970403 #5207] INFO -- : GET => https://api.cryptowat.ch/markets
17
- I, [2017-11-05T18:26:17.992876 #5217] INFO -- : GET => https://api.cryptowat.ch/markets
18
- I, [2017-11-05T18:27:08.789213 #5266] INFO -- : GET => https://api.cryptowat.ch/markets
19
- I, [2017-11-05T18:27:33.859657 #5288] INFO -- : GET => https://api.cryptowat.ch/markets
@@ -1,13 +0,0 @@
1
- # @Author: Esteban GONZALEZ <Esteban
2
- # @Date: Tuesday, October 17th 2017, 9:38:57 pm
3
- # @Email: gonzal_e@etna-alternance.net
4
- # @Project: RubyCryptowatch
5
- # @Last modified by: esteban
6
- # @Last modified time: Sunday, November 5th 2017, 7:39:23 pm
7
-
8
- module Cryptowatch
9
- module Api
10
- VERSION = [0, 0, 2]
11
- VERSION_FORMAT = VERSION.join('.')
12
- end
13
- end