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 +4 -4
- data/README.md +20 -11
- data/lib/cryptowatch/version.rb +1 -1
- metadata +1 -3
- data/cryptowatch-log.log +0 -19
- data/lib/cryptowatch/version.rb~ +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1252f3455536207b87fb4ae5f02893e00f37ad3a
|
4
|
+
data.tar.gz: ad929535f4b914dc6dabe8ec268f17bdd6d3ed5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
##
|
18
|
-
Let's construct or first request with the gem:
|
17
|
+
## An example
|
19
18
|
```ruby
|
20
|
-
|
19
|
+
require 'cryptowatch'
|
20
|
+
|
21
|
+
class MyApplication
|
22
|
+
include Cryptowatch
|
23
|
+
|
24
|
+
wrapper = Wrapper.new;
|
21
25
|
|
22
|
-
|
23
|
-
|
26
|
+
wrapper.get(Assets::index)
|
27
|
+
wrapper.get(Assets::asset(:btc))
|
24
28
|
|
25
|
-
|
26
|
-
|
29
|
+
wrapper.get(Exchanges::index)
|
30
|
+
wrapper.get(Exchanges::exchange(:kraken))
|
27
31
|
|
28
|
-
|
29
|
-
|
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
|
-
|
32
|
-
|
39
|
+
wrapper.get(Pairs::index)
|
40
|
+
wrapper.get(Pairs::pair(:btcusd))
|
41
|
+
end
|
33
42
|
|
34
43
|
#In writing...
|
35
44
|
```
|
data/lib/cryptowatch/version.rb
CHANGED
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
|
data/cryptowatch-log.log
DELETED
@@ -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
|
data/lib/cryptowatch/version.rb~
DELETED
@@ -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
|