c3d 0.4.16 → 0.4.17

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: e9a7132429d860918cd1aa55dcbdc1b3b4a8cf29
4
- data.tar.gz: f04253793e3aed645c3c202de88380d7487d347a
3
+ metadata.gz: b963cb876d124baf5649e221683f27aec7b77fd5
4
+ data.tar.gz: 6d33e756f9e4da0fe688dc01e9388dbd7e27200f
5
5
  SHA512:
6
- metadata.gz: d61263352be40861208a329fc7b8cd00aa6201f0efe39d1c66d05c26e32d113f46032872a30bc9389292fb89e5fdea57f08a63f006faaa861f2f2908c5651b11
7
- data.tar.gz: 6d69dee6fb35e78b9e1d4e7b578aa2cfb30ca7224ecb6e9ab7e91fc110295186b1eb46981ab85811aa0ecc6e8a0bb9666b2e473f310daddcee2cd0710f071341
6
+ metadata.gz: cd6a293e7c4978f84d84cb79059bc150bf840a4259a9a1feba727483248de726dcfdc6f76ac28ef2b6de8f4861c9955cd76c3cf03c1e6392460dace8b419dc2a
7
+ data.tar.gz: 16fb6417e38c3bc25e5727050e6a0f9948200c1b1ea35fd3debcdefa23d6ff1d852e8519b778bdc4a1bef9209217f1f4f513c96ef9568eb17a342ebd1d55ff77
@@ -4,7 +4,7 @@ module C3D
4
4
  class Assemble
5
5
  attr_reader :content
6
6
 
7
- def initialize contract
7
+ def initialize contract, blob_free=false
8
8
  @content = []
9
9
  assemble_and_perform_queries contract
10
10
  end
@@ -36,9 +36,10 @@ module C3D
36
36
  if can_we_get_the_k? contract
37
37
  group = {}
38
38
  group[:prev] = send_query contract, '0x19'
39
- until group[:prev] == '0x30'
39
+ until group[:prev] == '0x30' || group[:prev] == nil || group[:prev] == '0x'
40
40
  group = get_the_group contract, group[:prev]
41
41
  get_the_blob group[:blob], group[:this] if group[:blob]
42
+ @content << { contract => "content cannot be shown." } if @blob_free
42
43
  end
43
44
  end
44
45
  end
data/lib/c3d/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION ||= "0.4.16"
1
+ VERSION ||= "0.4.17"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c3d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.16
4
+ version: 0.4.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Casey Kuhlman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-22 00:00:00.000000000 Z
11
+ date: 2014-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty