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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3f9f320d62b619f4380823e7ed1da7696728ec2
4
- data.tar.gz: bee587696feed4f1c7ae29e64690aee5656943ad
3
+ metadata.gz: 84d5926b64d7efae7c1c201a3c1dc9fba0d25445
4
+ data.tar.gz: 9706a6127d028e6f9a2dc8cf62eb388575518b2e
5
5
  SHA512:
6
- metadata.gz: 9842997cdaf54e317c136c3b32214703b5d6cfc13253e8f4ee457a0a49b92a61d5d880019a80fb5dc07b7654ffd0c4a502a0531fefb2842dbf6983646ec48500
7
- data.tar.gz: bb48333e53ffa66f0babc2e66730201b76ff9abf948ba6858c11da93edb3268361a560823e361d77e2b9efebca76063d9a058c408c8a812cd779cfe764417b25
6
+ metadata.gz: 1e2eb620763e3286910ad88135f91e57ab3efc70c5cc7e60669bd6718bc9b95ad221bc7b3279c7bd0d8d1b4e65dac01c1d0e6fcdd344e41df10d7ad808acc649
7
+ data.tar.gz: 6f4de3d9b90dbc00c5006ea7f80b836042edd9467e273e562d971300e020b5e566a3bf5be149837147d9764e7909948e109fd9ba15ce5daf572b435ecf1f4ef2
@@ -11,8 +11,13 @@ module Coloredcoins
11
11
  end
12
12
 
13
13
  def url
14
- return "http://testnet.api.coloredcoins.org:80/#{api_version}" if testnet?
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?
@@ -1,3 +1,3 @@
1
1
  module Coloredcoins
2
- VERSION = '0.0.5'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
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.5
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-03-17 00:00:00.000000000 Z
11
+ date: 2017-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client