magic-admin 0.1.3 → 0.1.4

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: b2721444247603f2b017dbb7fe6bbd9c69bf43c2599b7387a507517ea2ff2a1e
4
- data.tar.gz: 60f188da5c724bd944cf67b137ebb2ff207b383eb4283001b81b079fa2416063
3
+ metadata.gz: d48630f04f73c9319c8848eedb1aa966daea86ef81c0480dbc38f499b74b66b2
4
+ data.tar.gz: 0b10a4f8720361eb141d22a8526b3e9e34b4c06b9ca2e5f59b1f8126e8c7d554
5
5
  SHA512:
6
- metadata.gz: c7559b2eb31df236c76955de14797d72b31180a92d94e29c7a6c2af116274376427f1bca086ef1785b8c8eb1180d47506234cee0e2a7eec13293fc9e77c7a4df
7
- data.tar.gz: 1b46344396e84cbdc37a2d3a976ee7e6131bc4e2a96513b272f5034f7879001fb9bf303a6368d37cfaf1d66d86d638e9e9bc04966c7e0f9450f78bc7baf115e1
6
+ metadata.gz: adead0a0d3339935f58961751dfd9a03f9c30d6601ec969f345e0b8b8f68c8dfbb5d15bb8e1fb04d2c50ca041cda42c9c3771867f0ab8f16a2b3b666c538b711
7
+ data.tar.gz: e4cc97b49807a942971578ac50e0599e3be39353621266774042140cfd11a7a3d3ea8ae3f5fcab3621738ce4d9ecd6d8e93c0259973e90b8c4c4f79b1804d931
data/CHANGELOG.md CHANGED
@@ -16,6 +16,12 @@
16
16
 
17
17
  - <PR-#ISSUE> ...
18
18
 
19
+ ## `0.1.4` - 04/05/2022
20
+
21
+ #### Changed
22
+
23
+ - <PR-#16> https://github.com/magiclabs/magic-admin-ruby/issues/15
24
+
19
25
  ## `0.1.3` - 03/29/2022
20
26
 
21
27
  #### Changed
@@ -20,7 +20,7 @@ module MagicAdmin
20
20
  def validate(did_token)
21
21
  time = Time.now.to_i
22
22
  proof, claim = decode(did_token)
23
- rec_address = rec_pub_address(claim, proof)
23
+ rec_address = rec_pub_address(claim, proof).to_s
24
24
 
25
25
  validate_public_address!(rec_address, did_token)
26
26
  validate_claim_fields!(claim)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MagicAdmin
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -7,7 +7,7 @@ describe MagicAdmin::Resource::Token do
7
7
  describe "public methods" do
8
8
  it "#validate" do
9
9
  claim = { "ext" => 1000, "nbf" => "nbf" }
10
- rec_address = double("rec_address")
10
+ rec_address = double("rec_address").to_s
11
11
  proof = double("proof")
12
12
  time_now = 1_202_020
13
13
  allow(Time).to receive(:now).and_return(time_now)
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.3
4
+ version: 0.1.4
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: 2022-04-01 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eth