coloredcoins 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coloredcoins/api.rb +7 -2
- data/lib/coloredcoins/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84d5926b64d7efae7c1c201a3c1dc9fba0d25445
|
4
|
+
data.tar.gz: 9706a6127d028e6f9a2dc8cf62eb388575518b2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e2eb620763e3286910ad88135f91e57ab3efc70c5cc7e60669bd6718bc9b95ad221bc7b3279c7bd0d8d1b4e65dac01c1d0e6fcdd344e41df10d7ad808acc649
|
7
|
+
data.tar.gz: 6f4de3d9b90dbc00c5006ea7f80b836042edd9467e273e562d971300e020b5e566a3bf5be149837147d9764e7909948e109fd9ba15ce5daf572b435ecf1f4ef2
|
data/lib/coloredcoins/api.rb
CHANGED
@@ -11,8 +11,13 @@ module Coloredcoins
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def url
|
14
|
-
|
15
|
-
"http://api.coloredcoins.org:80/#{api_version}"
|
14
|
+
@url ||= "http://testnet.api.coloredcoins.org:80/#{api_version}" if testnet?
|
15
|
+
@url ||= "http://api.coloredcoins.org:80/#{api_version}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def url=(other)
|
19
|
+
@url = other
|
20
|
+
@connection = Connection.new(other)
|
16
21
|
end
|
17
22
|
|
18
23
|
def testnet?
|
data/lib/coloredcoins/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coloredcoins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genaro Madrid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|