otp-jwt 0.2.5 → 0.2.6

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: e7d17e5145dd260643ff8c5af4e8bdd866282b126d9873d0eb7db432fa289e97
4
- data.tar.gz: bdedfcdb0ad970bc380f18aa4e518030b15b08f439d0854043ac45d22ba55c81
3
+ metadata.gz: bf8f83dacec78e2f6b12891bea71b4a45672ac967fa84fea749eb1acfe47c42c
4
+ data.tar.gz: b8c3fb4e6b0f9824a42661ea2b650135bcb2281c2c5951a24ee0d8abe527ca01
5
5
  SHA512:
6
- metadata.gz: b287bc6b7d738be7ef9028d224a77794a27e1da869115de54b693ee9b6c7f5ce094672bf021e4b79956171bae351fd36c39b2506ce4d0c58f5081a43679294d5
7
- data.tar.gz: bdae8f51b91ef4e488d867b9281a604437524dcf0c40486901402393341ca563ba465c3cc2eb554f76ebda928124a2ae382302acd418852311368c98f39c08a5
6
+ metadata.gz: 7b2806094446c6c929b5cc0023630fe3291f8736a845a92a55ce157bdcb21cabe18fba13aa80483c8408990213fc0a5ac363f23bd7f306b3eebfdc9fbc4e2b64
7
+ data.tar.gz: 0cdbaa9318e9e52095b57ca486f4b75210644e956d17bcc64267e23c739e7b0ed839f2863f480275e081a162b594e164ed8ebd60521e2271329f76f72bf498c6
@@ -19,8 +19,9 @@ module OTP
19
19
 
20
20
  # Arel casts the values to the primary key type,
21
21
  # which means that an UUID becomes an integer by default...
22
- if self.connection.respond_to?(:type_cast_from_column)
23
- casted_val = self.connection.type_cast_from_column(pk_col, val)
22
+ if self.connection.respond_to?(:lookup_cast_type_from_column)
23
+ pk_type = self.connection.lookup_cast_type_from_column(pk_col)
24
+ casted_val = pk_type.serialize(val)
24
25
  else
25
26
  casted_val = self.connection.type_cast(val, pk_col)
26
27
  end
@@ -1,5 +1,5 @@
1
1
  module OTP
2
2
  module JWT
3
- VERSION = '0.2.5'
3
+ VERSION = '0.2.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: otp-jwt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas Suscov
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '4'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '4'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec-rails
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '0.81'
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '0.81'
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -182,16 +182,16 @@ dependencies:
182
182
  name: sqlite3
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: 1.3.6
187
+ version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: 1.3.6
194
+ version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: tzinfo-data
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  - !ruby/object:Gem::Version
266
266
  version: '0'
267
267
  requirements: []
268
- rubygems_version: 3.0.3
268
+ rubygems_version: 3.2.3
269
269
  signing_key:
270
270
  specification_version: 4
271
271
  summary: Passwordless HTTP APIs