magic-admin 0.1.0 → 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: 623f1dec3237ad8a1e3e380c057426b518e477295b5bad40ec4736fee99e0ddb
4
- data.tar.gz: ebc06d06cdf25d95bed3fede31f18c8b7b8e21246b5104ed137ec208af7b30fa
3
+ metadata.gz: b2721444247603f2b017dbb7fe6bbd9c69bf43c2599b7387a507517ea2ff2a1e
4
+ data.tar.gz: 60f188da5c724bd944cf67b137ebb2ff207b383eb4283001b81b079fa2416063
5
5
  SHA512:
6
- metadata.gz: a5a645a3964a5e3d34671993ddc49a75d7c76311457a2f86a612ac2a8b040faceebac65f42d4c1f28bf455a76cfa703a0f0c7211a8805e8abead99eb53c1a280
7
- data.tar.gz: a8da9649524f9cb17d209b0e13c3c60d0b3fc14b5e541c90efb948cb3d5d6c18f3c2a97f34629e12988bb406168264f3aa5721835e7f57149b49e550dc9e0c19
6
+ metadata.gz: c7559b2eb31df236c76955de14797d72b31180a92d94e29c7a6c2af116274376427f1bca086ef1785b8c8eb1180d47506234cee0e2a7eec13293fc9e77c7a4df
7
+ data.tar.gz: 1b46344396e84cbdc37a2d3a976ee7e6131bc4e2a96513b272f5034f7879001fb9bf303a6368d37cfaf1d66d86d638e9e9bc04966c7e0f9450f78bc7baf115e1
data/CHANGELOG.md CHANGED
@@ -15,3 +15,17 @@
15
15
  #### Changed
16
16
 
17
17
  - <PR-#ISSUE> ...
18
+
19
+ ## `0.1.3` - 03/29/2022
20
+
21
+ #### Changed
22
+
23
+ - <PR-#12> https://github.com/magiclabs/magic-admin-ruby/issues/7
24
+ - <PR-#12> https://github.com/magiclabs/magic-admin-ruby/issues/8
25
+ - <PR-#12> https://github.com/magiclabs/magic-admin-ruby/issues/11
26
+
27
+ ## `0.1.2` - 10/30/2020
28
+
29
+ #### Changed
30
+
31
+ - <PR-#5>: https://github.com/magiclabs/magic-admin-ruby/issues/5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Magic Admin Ruby SDK
2
2
 
3
- The Magic Admin Ruby SDK provides convenient ways for developers to interact with Magic API endpoints and an array of utilities to handle [DID Token](https://docs.magic.link/tutorials/decentralized-id).
3
+ The Magic Admin Ruby SDK provides convenient ways for developers to interact with Magic API endpoints and an array of utilities to handle [DID Token](https://magic.link/docs/introduction/decentralized-id).
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -10,7 +10,7 @@ The Magic Admin Ruby SDK provides convenient ways for developers to interact wit
10
10
  * [License](#license)
11
11
 
12
12
  ## Documentation
13
- See the [Magic doc](https://docs.magic.link/admin-sdk/ruby)!
13
+ See the [Magic doc](https://magic.link/docs/api-reference/server-side-sdks/ruby)!
14
14
 
15
15
  ## Installation
16
16
  Add this line to your application's Gemfile:
@@ -37,7 +37,11 @@ module MagicAdmin
37
37
  # Returns:
38
38
  # installation machine user_name
39
39
  def self.user_name
40
- Etc.getpwnam(Etc.getlogin).gecos.split(/,/).first
40
+ login = Etc.getlogin
41
+
42
+ return "None" if login.nil?
43
+
44
+ Etc.getpwnam(login).gecos.split(/,/).first
41
45
  end
42
46
 
43
47
  # Description:
@@ -97,11 +97,11 @@ module MagicAdmin
97
97
  end
98
98
 
99
99
  def personal_recover(claim, proof)
100
- Eth::Key.personal_recover(JSON.dump(claim), proof)
100
+ Eth::Signature.personal_recover(JSON.dump(claim), proof)
101
101
  end
102
102
 
103
103
  def rec_pub_address(claim, proof)
104
- Eth::Utils.public_key_to_address personal_recover(claim, proof)
104
+ Eth::Util.public_key_to_address personal_recover(claim, proof)
105
105
  end
106
106
 
107
107
  def claim_fields
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MagicAdmin
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.3"
5
5
  end
data/magic-admin.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.summary = "Ruby bindings for the Magic Admin API"
12
12
 
13
13
  s.description = "The Magic Admin Ruby provides convenient ways " \
14
- "for developers to interact with Magic API endpoints" \
14
+ "for developers to interact with Magic API endpoints " \
15
15
  "and an array of utilities to handle DID Token."
16
16
  s.author = "Magic Labs Inc."
17
17
  s.email = "support@magic.link"
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.metadata = {
22
22
  }
23
23
 
24
- s.add_dependency "eth", "~> 0.4"
24
+ s.add_dependency "eth", "~> 0.5"
25
25
  s.add_development_dependency "byebug", "~> 11.0"
26
26
  s.add_development_dependency "rspec", "~> 3.9"
27
27
  s.add_development_dependency "rubocop", "~> 0.80"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magic Labs Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-14 00:00:00.000000000 Z
11
+ date: 2022-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eth
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.4'
26
+ version: '0.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.19'
97
97
  description: The Magic Admin Ruby provides convenient ways for developers to interact
98
- with Magic API endpointsand an array of utilities to handle DID Token.
98
+ with Magic API endpoints and an array of utilities to handle DID Token.
99
99
  email: support@magic.link
100
100
  executables:
101
101
  - magic-console
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.1.2
156
+ rubygems_version: 3.2.15
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Ruby bindings for the Magic Admin API