hyperledger-fabric-sdk 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: c27f02a03e57e76c4d4210290424dc0d2c7bb01f1a679a771cdc73941d450836
4
- data.tar.gz: b91a28a297299f06225c64cccff748a546792bb001b3a539eeb310cded3ae72c
3
+ metadata.gz: e31d83126f446cce1abbc7eb0c32012b21d19191eae04258fb2459d7fc58348b
4
+ data.tar.gz: 31accaab02d6f790cb03e608f13b67bb6f87b93a3ab1614b43052bd9c3dbb8a1
5
5
  SHA512:
6
- metadata.gz: fb577d5e203add8d674437e49250186868893ba2f83695ff933cbadc4cd80a006f34d48bf265d538055a1f41752cf444cfcfbfed936c8559f98c74bfde337b36
7
- data.tar.gz: 2e73381207e28bed67615aa786688ac8aa1488e8fd27d6932aedbde74b90cdca60e692271e14447c6d1851e2e94ac4db80d7a1a852a786a87b088e9c49c5227d
6
+ metadata.gz: 12229bdfa187eff68f7396ea3dad73b7d2eb9016a1ebadcd62412f0848ae49810e9826d6873497bb4b02931803568e41f611802a1771aac28f0327a3198eb7a4
7
+ data.tar.gz: 991bd9d73597272dc555fbc524c3c077e78e7f751035418f4e0753199c1b149172baac5720d59a8d6e6fe73687534627bc691ef9ab091ebba85703550f3f777b
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in hyperledger-fabric-sdk.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,38 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ hyperledger-fabric-sdk (0.1.3)
5
+ digest-sha3 (~> 1.1)
6
+ faraday (~> 0.17)
7
+ faraday_middleware (~> 0.13)
8
+ grpc (~> 1.25)
9
+ rainbow (~> 3.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ digest-sha3 (1.1.0)
15
+ faraday (0.17.0)
16
+ multipart-post (>= 1.2, < 3)
17
+ faraday_middleware (0.13.1)
18
+ faraday (>= 0.7.4, < 1.0)
19
+ google-protobuf (3.10.1-universal-darwin)
20
+ googleapis-common-protos-types (1.0.4)
21
+ google-protobuf (~> 3.0)
22
+ grpc (1.25.0-universal-darwin)
23
+ google-protobuf (~> 3.8)
24
+ googleapis-common-protos-types (~> 1.0)
25
+ multipart-post (2.1.1)
26
+ rainbow (3.0.0)
27
+ rake (10.5.0)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ bundler (~> 2.0)
34
+ hyperledger-fabric-sdk!
35
+ rake (~> 10.0)
36
+
37
+ BUNDLED WITH
38
+ 2.0.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Bryan Padron
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/lib/fabric.rb CHANGED
@@ -2,8 +2,6 @@ lib_dir = File.join(__dir__, 'fabric/protos')
2
2
 
3
3
  $LOAD_PATH.push(lib_dir) unless $LOAD_PATH.include?(lib_dir)
4
4
 
5
- require 'colorize'
6
-
7
5
  require 'common/common_pb'
8
6
  require 'common/configtx_pb'
9
7
  require 'peer/events_services_pb'
@@ -22,7 +20,7 @@ require_relative 'fabric/identity'
22
20
  require_relative 'fabric/proposal'
23
21
  require_relative 'fabric/transaction'
24
22
  require_relative 'fabric/error'
25
- require_relative 'fabric/logger'
23
+ require_relative 'fabric/fabric_logger'
26
24
  require_relative 'fabric/chaincode_response'
27
25
  require_relative 'fabric/channel'
28
26
  require_relative 'fabric/transaction_info'
@@ -7,7 +7,7 @@ module Fabric
7
7
  options = Fabric.options.merge opts
8
8
 
9
9
  @channel_id = options[:channel_id]
10
- @logger = Logger.new options[:logger], options[:logger_filters]
10
+ @logger = FabricLogger.new options[:logger], options[:logger_filters]
11
11
  @identity = options[:identity]
12
12
  @crypto_suite = options[:crypto_suite]
13
13
  end
data/lib/fabric/client.rb CHANGED
@@ -9,7 +9,7 @@ module Fabric
9
9
  def initialize(opts = {})
10
10
  options = Fabric.options.merge opts
11
11
 
12
- @logger = Logger.new options[:logger], options[:logger_filters]
12
+ @logger = FabricLogger.new options[:logger], options[:logger_filters]
13
13
  @identity = options[:identity]
14
14
  @crypto_suite = options[:crypto_suite]
15
15
  end
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,8 @@
1
1
  module Fabric
2
- class Logger
3
- LOGGER_TAG = 'HYPERLEDGER FABRIC'.colorize(:green).freeze
2
+ class FabricLogger
3
+ LOGGER_TAG = 'HYPERLEDGER FABRIC'.freeze
4
+ # Rainbow().green
5
+ # .colorize(:green)
4
6
  FILTERED_MASK = '[FILTERED]'.freeze
5
7
 
6
8
  attr_reader :logger, :filters
File without changes
File without changes
data/lib/fabric/peer.rb CHANGED
File without changes
data/lib/fabric/queue.rb CHANGED
File without changes
File without changes
data/lib/fabric_ca.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,2 +1,10 @@
1
+ # require 'rubygems'
2
+ # require 'rainbow'
3
+ # require 'faraday_middleware'
4
+ # require 'faraday'
5
+ # require 'grpc'
6
+ # require 'digest-sha3'
7
+ # require 'logger'
8
+
1
9
  require_relative 'fabric'
2
10
  require_relative 'fabric_ca'
metadata CHANGED
@@ -1,31 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperledger-fabric-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandr Kirshin(kirshin)
8
8
  - "(qiusugang)"
9
- - Bryan Padron(djlazz3)
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
12
  date: 2019-11-12 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- name: colorize
15
+ name: rainbow
17
16
  requirement: !ruby/object:Gem::Requirement
18
17
  requirements:
19
18
  - - "~>"
20
19
  - !ruby/object:Gem::Version
21
- version: '0.8'
20
+ version: '3.0'
22
21
  type: :runtime
23
22
  prerelease: false
24
23
  version_requirements: !ruby/object:Gem::Requirement
25
24
  requirements:
26
25
  - - "~>"
27
26
  - !ruby/object:Gem::Version
28
- version: '0.8'
27
+ version: '3.0'
29
28
  - !ruby/object:Gem::Dependency
30
29
  name: faraday_middleware
31
30
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +67,20 @@ dependencies:
68
67
  - - "~>"
69
68
  - !ruby/object:Gem::Version
70
69
  version: '1.25'
70
+ - !ruby/object:Gem::Dependency
71
+ name: google-protobuf
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.10'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '3.10'
71
84
  - !ruby/object:Gem::Dependency
72
85
  name: digest-sha3
73
86
  requirement: !ruby/object:Gem::Requirement
@@ -82,12 +95,44 @@ dependencies:
82
95
  - - "~>"
83
96
  - !ruby/object:Gem::Version
84
97
  version: '1.1'
98
+ - !ruby/object:Gem::Dependency
99
+ name: bundler
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '2.0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '2.0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rake
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '10.0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '10.0'
85
126
  description: ''
86
127
  email:
87
128
  executables: []
88
129
  extensions: []
89
130
  extra_rdoc_files: []
90
131
  files:
132
+ - Gemfile
133
+ - Gemfile.lock
134
+ - LICENSE.txt
135
+ - Rakefile
91
136
  - lib/fabric.rb
92
137
  - lib/fabric/block_decoder.rb
93
138
  - lib/fabric/chaincode_response.rb
@@ -99,9 +144,9 @@ files:
99
144
  - lib/fabric/enumerator_queue.rb
100
145
  - lib/fabric/error.rb
101
146
  - lib/fabric/event_hub.rb
147
+ - lib/fabric/fabric_logger.rb
102
148
  - lib/fabric/helper.rb
103
149
  - lib/fabric/identity.rb
104
- - lib/fabric/logger.rb
105
150
  - lib/fabric/orderer.rb
106
151
  - lib/fabric/peer.rb
107
152
  - lib/fabric/proposal.rb