silkey-sdk 0.0.2 → 0.0.3

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
  SHA256:
3
- metadata.gz: e6905b7c46f40f54b67f37962aee0984faa1bc00d33220540f4909a00c937189
4
- data.tar.gz: a143d094709149a251762ed15b6f815cb45695d62da680480283996ec8c51f5d
3
+ metadata.gz: e8f37e3a731e1250525daa64cbba2676f05ca174068385681db03a87f9431b93
4
+ data.tar.gz: 8b5c2cab19cc338acf549f3d560873752b330682c6c5baee34f694ae31e70410
5
5
  SHA512:
6
- metadata.gz: b5452fc0da4eb1c489dc27e39539181f994203ccb1e90099abb668d50284c753093863bfc8e19bb2132c12a2e04daa1b61b5c53953beb40924aa10696d8c5816
7
- data.tar.gz: bb5305fcb440828ffcd8547af8d10776579d933a10056f98504d7ba69bf7ae3ddb3a3752c5727436ec0308f3a0d1aa10477f506be2f3b7971e8eb5552fc6cda0
6
+ metadata.gz: 6e5d6c28c863609c85e0dc5cdf990a2ad833678d1e0eea24d735185b2d7d7385ffb4d8f3aa481325c0427a127b7b55468264071fae85c9541917bd02b261ca03
7
+ data.tar.gz: d141c1b91aeb5fda18ed215af19d06346b47af34ced8369f822a45ca8df7a2f6cbf2c683fef7b8f25afdb6c71adfe5251520a7068ab9213068dfdac51695463a
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /tmp/
8
8
  .idea/
9
9
  pkg/
10
+ doc/
10
11
 
11
12
  *.gem
12
13
  # rspec failure tracking
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- silkey-sdk (0.0.2)
4
+ silkey-sdk (0.0.3)
5
5
  activesupport (~> 6.0)
6
6
  eth (~> 0.4.12)
7
7
  ethereum.rb (~> 2.5)
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
- # Silkey-SDK for Ruby
1
+ ![Silkey Logo](https://raw.githubusercontent.com/Silkey-Team/brand/master/silkey-word-black.png)
2
2
 
3
- [logo]
3
+ # Silkey SDK for Ruby
4
4
 
5
- [slogan]
5
+ [![GitHub version](https://badge.fury.io/gh/Silkey-Team%2Fsilkey-sdk.svg)](https://badge.fury.io/gh/Silkey-Team%2Fsilkey-sdk)
6
+ [![Gem Version](https://badge.fury.io/rb/silkey-sdk.svg)](https://badge.fury.io/rb/silkey-sdk)
6
7
 
7
8
  ## Integration
8
9
 
@@ -10,8 +11,11 @@
10
11
 
11
12
  ```rb
12
13
  Silkey::Configuration.setup do |config|
13
- config.client_url = 'http://localhost:8545' # for local development
14
- config.client_url = 'https://rinkeby.infura.io/v3/:id' # for real
14
+ # for local development, use local provider url eg 'http://localhost:8545'
15
+ # for testing, we recommend using infura.io:
16
+ # - for sandbox: https://rinkeby.infura.io/v3/:id
17
+ # - for production: https://mainnet.infura.io/v3/:id
18
+ config.client_url = 'http://localhost:8545'
15
19
  config.registry_contract_address = '--silky-registry-contract-address--'
16
20
  config.enable_logs = false
17
21
  end
@@ -33,6 +37,7 @@ end
33
37
  | refId | no | string | It will be return with user token, you may use it to identify request
34
38
  | scope | no | string | Scope of data to return in a token payload: `id` (default) returns only user address, `email` returns address + email
35
39
 
40
+
36
41
  ```rb
37
42
  params = { :redirectUrl => 'https://your-website', :refId => '12ab' }
38
43
  sso_params = Silkey::SDK.generate_sso_request_params(private_key, params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Silkey
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
@@ -18,14 +18,14 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  # spec.files = ["lib/sdk.rb"]
20
20
 
21
- # spec.metadata = {
22
- # "bug_tracker_uri" => "https://github.com/Silkey-Team/ruby-sdk/issues",
23
- # "changelog_uri" => "https://github.com/Silkey-Team/ruby-sdk/issues/CHANGELOG.md",
24
- # "documentation_uri" => "https://www.example.info/gems/bestgemever/0.0.1",
25
- # "homepage_uri" => "https://silkey.io",
26
- # "source_code_uri" => "https://github.com/Silkey-Team/ruby-sdk",
27
- # "wiki_uri" => "https://example.com/user/bestgemever/wiki"
28
- # }
21
+ spec.metadata = {
22
+ "bug_tracker_uri" => "https://github.com/Silkey-Team/ruby-sdk/issues",
23
+ "changelog_uri" => "https://github.com/Silkey-Team/ruby-sdk/blob/master/CHANGELOG.md",
24
+ "documentation_uri" => "https://www.rubydoc.info/gems/silkey-sdk/" + Silkey::VERSION,
25
+ "homepage_uri" => "https://silkey.io",
26
+ "source_code_uri" => "https://github.com/Silkey-Team/ruby-sdk",
27
+ # "wiki_uri" => "https://example.com/user/bestgemever/wiki"
28
+ }
29
29
 
30
30
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
31
31
  # to allow pushing to a single host or delete this section to allow pushing to any host.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: silkey-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - silkey.io
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-24 00:00:00.000000000 Z
11
+ date: 2020-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -264,7 +264,12 @@ files:
264
264
  homepage: https://github.com/Silkey-Team/ruby-sdk
265
265
  licenses:
266
266
  - MIT
267
- metadata: {}
267
+ metadata:
268
+ bug_tracker_uri: https://github.com/Silkey-Team/ruby-sdk/issues
269
+ changelog_uri: https://github.com/Silkey-Team/ruby-sdk/blob/master/CHANGELOG.md
270
+ documentation_uri: https://www.rubydoc.info/gems/silkey-sdk/0.0.3
271
+ homepage_uri: https://silkey.io
272
+ source_code_uri: https://github.com/Silkey-Team/ruby-sdk
268
273
  post_install_message:
269
274
  rdoc_options: []
270
275
  require_paths: