chain-sdk 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/chain/access_token.rb +8 -5
- data/lib/chain/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c24b7f66acf9092e6389c604814551d3a1fef069
|
4
|
+
data.tar.gz: d17af8305935c7b4a79ec1ebbe07f961bd270c0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9267a227eb6c3071cb93d374e425193943da55fb535be417f815f33da20e32e7daa225b94be3d1521dfa4f0e6cb6817b7cdcfd86deb7e17365d193d349e5d446
|
7
|
+
data.tar.gz: a22e4749657d66b89f1ad7e983e16a89b54c225ba53b2bd04c5e820febafa57181b54b9c1996a2089c1e5c1ff907a31dc713a2410a19353b2d8c1797595aa759
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ The Ruby SDK is available [via Rubygems](https://rubygems.org/gems/chain-sdk). M
|
|
9
9
|
For most applications, you can simply add the following to your `Gemfile`:
|
10
10
|
|
11
11
|
```
|
12
|
-
gem 'chain-sdk', '~> 1.0.
|
12
|
+
gem 'chain-sdk', '~> 1.0.2', require: 'chain'
|
13
13
|
```
|
14
14
|
|
15
15
|
### In your code
|
data/lib/chain/access_token.rb
CHANGED
@@ -27,12 +27,15 @@ module Chain
|
|
27
27
|
|
28
28
|
class ClientModule < Chain::ClientModule
|
29
29
|
|
30
|
+
# Create client/network access token.
|
31
|
+
# @param [Hash] opts
|
32
|
+
# @option params [String] :type Type specifiying the type of access token to be created.
|
33
|
+
# You must specify either 'client' or 'network'.
|
34
|
+
# @option params [String] :id ID specifying the ID of newly created access token.
|
35
|
+
# You must specify a unique ID for access token.
|
30
36
|
# @return [AccessToken]
|
31
|
-
def create(
|
32
|
-
AccessToken.new(client.conn.request(
|
33
|
-
'create-access-token',
|
34
|
-
{type: type, id: id}
|
35
|
-
))
|
37
|
+
def create(opts = {})
|
38
|
+
AccessToken.new(client.conn.request('create-access-token', opts))
|
36
39
|
end
|
37
40
|
|
38
41
|
# @param [Hash] opts
|
data/lib/chain/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chain-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chain Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.5.
|
116
|
+
rubygems_version: 2.5.1
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: The Official Ruby SDK for Chain Core
|