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 +4 -4
- data/Gemfile +4 -0
- data/Gemfile.lock +38 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +2 -0
- data/lib/fabric.rb +1 -3
- data/lib/fabric/channel.rb +1 -1
- data/lib/fabric/client.rb +1 -1
- data/lib/fabric/configuration.rb +0 -0
- data/lib/fabric/constants.rb +0 -0
- data/lib/fabric/crypto_suite.rb +0 -0
- data/lib/fabric/enumerator_queue.rb +0 -0
- data/lib/fabric/{logger.rb → fabric_logger.rb} +4 -2
- data/lib/fabric/identity.rb +0 -0
- data/lib/fabric/orderer.rb +0 -0
- data/lib/fabric/peer.rb +0 -0
- data/lib/fabric/queue.rb +0 -0
- data/lib/fabric/version.rb +0 -0
- data/lib/fabric_ca.rb +0 -0
- data/lib/fabric_ca/attribute.rb +0 -0
- data/lib/fabric_ca/client.rb +0 -0
- data/lib/fabric_ca/configuration.rb +0 -0
- data/lib/fabric_ca/connection.rb +0 -0
- data/lib/fabric_ca/error.rb +0 -0
- data/lib/fabric_ca/faraday_middleware/basic_auth.rb +0 -0
- data/lib/fabric_ca/faraday_middleware/raise_http_exception.rb +0 -0
- data/lib/fabric_ca/faraday_middleware/token_auth.rb +0 -0
- data/lib/fabric_ca/request.rb +0 -0
- data/lib/fabric_ca/response.rb +0 -0
- data/lib/fabric_ca/version.rb +0 -0
- data/lib/hyperledger-fabric-sdk.rb +8 -0
- metadata +51 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e31d83126f446cce1abbc7eb0c32012b21d19191eae04258fb2459d7fc58348b
|
4
|
+
data.tar.gz: 31accaab02d6f790cb03e608f13b67bb6f87b93a3ab1614b43052bd9c3dbb8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12229bdfa187eff68f7396ea3dad73b7d2eb9016a1ebadcd62412f0848ae49810e9826d6873497bb4b02931803568e41f611802a1771aac28f0327a3198eb7a4
|
7
|
+
data.tar.gz: 991bd9d73597272dc555fbc524c3c077e78e7f751035418f4e0753199c1b149172baac5720d59a8d6e6fe73687534627bc691ef9ab091ebba85703550f3f777b
|
data/Gemfile
ADDED
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
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/
|
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'
|
data/lib/fabric/channel.rb
CHANGED
@@ -7,7 +7,7 @@ module Fabric
|
|
7
7
|
options = Fabric.options.merge opts
|
8
8
|
|
9
9
|
@channel_id = options[:channel_id]
|
10
|
-
@logger =
|
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 =
|
12
|
+
@logger = FabricLogger.new options[:logger], options[:logger_filters]
|
13
13
|
@identity = options[:identity]
|
14
14
|
@crypto_suite = options[:crypto_suite]
|
15
15
|
end
|
data/lib/fabric/configuration.rb
CHANGED
File without changes
|
data/lib/fabric/constants.rb
CHANGED
File without changes
|
data/lib/fabric/crypto_suite.rb
CHANGED
File without changes
|
File without changes
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module Fabric
|
2
|
-
class
|
3
|
-
LOGGER_TAG = 'HYPERLEDGER FABRIC'.
|
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
|
data/lib/fabric/identity.rb
CHANGED
File without changes
|
data/lib/fabric/orderer.rb
CHANGED
File without changes
|
data/lib/fabric/peer.rb
CHANGED
File without changes
|
data/lib/fabric/queue.rb
CHANGED
File without changes
|
data/lib/fabric/version.rb
CHANGED
File without changes
|
data/lib/fabric_ca.rb
CHANGED
File without changes
|
data/lib/fabric_ca/attribute.rb
CHANGED
File without changes
|
data/lib/fabric_ca/client.rb
CHANGED
File without changes
|
File without changes
|
data/lib/fabric_ca/connection.rb
CHANGED
File without changes
|
data/lib/fabric_ca/error.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/fabric_ca/request.rb
CHANGED
File without changes
|
data/lib/fabric_ca/response.rb
CHANGED
File without changes
|
data/lib/fabric_ca/version.rb
CHANGED
File without changes
|
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.
|
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:
|
15
|
+
name: rainbow
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
17
|
requirements:
|
19
18
|
- - "~>"
|
20
19
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0
|
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
|
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
|