auth_jwt_go 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
  SHA256:
3
- metadata.gz: 2817def27d6ae0845784b3b57e063fc1c3b4a21030c56cde5d61789774b49265
4
- data.tar.gz: 425450dec9d47402c5d0bfedc574e718770919c9c476fd07157476658f9312ce
3
+ metadata.gz: 9e1ed6985e7c1a41051daa52b0d994a0c964cafea15ee3667053ff38282cb0a3
4
+ data.tar.gz: 14ed0fa84553b8070ef367bb7653247046a10797f89dcf756243c8aa88089d03
5
5
  SHA512:
6
- metadata.gz: 532b6f46e738b630062cd1ffeafd6c8a3b99c93c8c94ef6b0a1c8a74f71e609d43765655a5a699669560b24adb78935500da8e6421d2fdc08ebbf1f32976cac3
7
- data.tar.gz: 43f81e2560d4e3680a0d00546f20bbe2ef73eb328f2ab0268160ba061941c23e7b3a0625af1edcc2c9b211cfa902d5a4274aaf7ed6d3ab80d4014f48efe04362
6
+ metadata.gz: 6d6d86fc777464e163b78c4b7d292f7156d6bc25e6e00390be1cc3e496bdb6644b73c02cb3b45bc93e1a804cfea6881ee8d76f9bd5419c3bcbd122195efcbd36
7
+ data.tar.gz: 4b223b0dc62874184f1b6924af66288ea4c816026e23323f868cb09f0463b5f230c0bfbc8fb119ad81a1d0d727239628782c5f00e32e0263799f16cd40fb9f4b
Binary file
@@ -1,8 +1,9 @@
1
1
  module AuthJwtGo
2
2
  class AuthorizedUser
3
3
  def initialize(fields)
4
- fields.each do |key, value|
5
- self.define_singleton_method(key.to_s.underscore) { return value }
4
+ fields.each do |k, v|
5
+ instance_variable_set("@#{k.to_s.underscore}", v)
6
+ self.class.send(:attr_accessor, k.to_s.underscore)
6
7
  end
7
8
  end
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module AuthJwtGo
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: auth_jwt_go
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
  - jonathan rojas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2021-10-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: this authenticates your api with jwt include current_user helper
14
14
  email:
@@ -37,6 +37,7 @@ files:
37
37
  - auth_jwt_go-0.1.3.gem
38
38
  - auth_jwt_go-0.1.4.gem
39
39
  - auth_jwt_go-1.0.0.gem
40
+ - auth_jwt_go-1.0.1.gem
40
41
  - auth_jwt_go.gemspec
41
42
  - bin/console
42
43
  - bin/setup
@@ -65,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
66
  - !ruby/object:Gem::Version
66
67
  version: '0'
67
68
  requirements: []
68
- rubygems_version: 3.0.6
69
+ rubygems_version: 3.0.8
69
70
  signing_key:
70
71
  specification_version: 4
71
72
  summary: Auth API with Jwt include current_user helper