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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5af937202113aa24173fde927a2695a87cec5a2
4
- data.tar.gz: 39ba00e11865ea11a2cece9588a2b3c13425c5b2
3
+ metadata.gz: c24b7f66acf9092e6389c604814551d3a1fef069
4
+ data.tar.gz: d17af8305935c7b4a79ec1ebbe07f961bd270c0a
5
5
  SHA512:
6
- metadata.gz: e45100ee3ca7cbb65a72cbf4dcec32b155821a923a8ce91c1e6f284412f9dd8c82bf06d4593615776755a867a842e74919bde758e881fd49d9dd905eb11574bf
7
- data.tar.gz: a03d40326111b14fe5420bc1aa9a81b9d9a88ea3adba41971333cbfdfae043e211818c860f74ad99bc96668efc83946575501256e6ee744dc6192719f1bd21e1
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.1', require: 'chain'
12
+ gem 'chain-sdk', '~> 1.0.2', require: 'chain'
13
13
  ```
14
14
 
15
15
  ### In your code
@@ -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(type:, id:)
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
@@ -1,3 +1,3 @@
1
1
  module Chain
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
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.1
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-01-24 00:00:00.000000000 Z
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.2
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