doorkeeper-sequel 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/config/locales/en.yml +1 -0
- data/doorkeeper-sequel.gemspec +1 -1
- data/lib/doorkeeper-sequel/gem_version.rb +1 -1
- data/lib/doorkeeper-sequel/validators/redirect_uri_validator.rb +6 -0
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d6c99e5e0bb961999356b6b73e3411d52dbee96709a315da3b683b55742387e
|
4
|
+
data.tar.gz: 739f73a125ad1b350f789b506c6a3f81921c2cc7ac7fe0113329fde485b03287
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a88d703fed108474ab3f2c7e795e9c764f6cceb284de7b734ef3641a8c06069b92b75983099e0740767d1b9621d2ed2e270c83eb2b99bf317b2ac93aecfdac86
|
7
|
+
data.tar.gz: f52182d4a06dde4072f1b18dd18c8ff0bacba344c90c4e0c382ac440f0aec044a5a438b1511e8bc4d06869444d38e260ef3bc674dc60c957484d4db9bbe00d52
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ Reverse Chronological Order:
|
|
6
6
|
|
7
7
|
https://github.com/nbulaj/doorkeeper-sequel/compare/2.0.0...master
|
8
8
|
|
9
|
+
## `2.4.0` (2021-03-11)
|
10
|
+
|
11
|
+
* Support for Doorkeeper 5.5
|
12
|
+
|
9
13
|
## `2.0.0` (2018-10-04)
|
10
14
|
|
11
15
|
https://github.com/nbulaj/doorkeeper-sequel/compare/1.5.0...2.0.0
|
data/Gemfile
CHANGED
data/config/locales/en.yml
CHANGED
@@ -19,6 +19,7 @@ en:
|
|
19
19
|
blank: "can't be blank"
|
20
20
|
fragment_present: 'cannot contain a fragment.'
|
21
21
|
invalid_uri: 'must be a valid URI.'
|
22
|
+
unspecified_host: 'must be a valid URI.'
|
22
23
|
relative_uri: 'must be an absolute URI.'
|
23
24
|
secured_uri: 'must be an HTTPS/SSL URI.'
|
24
25
|
forbidden_uri: 'is forbidden by the server.'
|
data/doorkeeper-sequel.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.required_ruby_version = ">= 2.0.0"
|
24
24
|
|
25
25
|
gem.add_runtime_dependency "bcrypt", "~> 3.1"
|
26
|
-
gem.add_runtime_dependency "doorkeeper", ">= 5.0.0", "< 5.
|
26
|
+
gem.add_runtime_dependency "doorkeeper", ">= 5.0.0", "< 5.6"
|
27
27
|
gem.add_runtime_dependency "sequel", ">= 4.0.0", "< 6"
|
28
28
|
gem.add_runtime_dependency "sequel_polymorphic", "~> 0.2", "< 1.0"
|
29
29
|
gem.add_runtime_dependency "thor", ">= 0.18", "< 6"
|
@@ -48,6 +48,7 @@ module DoorkeeperSequel
|
|
48
48
|
secured_uri: invalid_ssl_uri?(uri),
|
49
49
|
forbidden_uri: forbidden_uri?(uri),
|
50
50
|
unspecified_scheme: unspecified_scheme?(uri),
|
51
|
+
unspecified_host: unspecified_host?(uri),
|
51
52
|
relative_uri: relative_uri?(uri),
|
52
53
|
}.each do |error, condition|
|
53
54
|
add_error(attribute, error) if condition
|
@@ -59,6 +60,11 @@ module DoorkeeperSequel
|
|
59
60
|
|
60
61
|
%w[localhost].include?(uri.try(:scheme))
|
61
62
|
end
|
63
|
+
|
64
|
+
|
65
|
+
def unspecified_host?(uri)
|
66
|
+
uri.is_a?(URI::HTTP) && uri.host.nil?
|
67
|
+
end
|
62
68
|
|
63
69
|
def relative_uri?(uri)
|
64
70
|
uri.scheme.nil? && uri.host.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper-sequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Bulai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 5.0.0
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '5.
|
36
|
+
version: '5.6'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 5.0.0
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '5.
|
46
|
+
version: '5.6'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sequel
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,22 +108,22 @@ dependencies:
|
|
108
108
|
name: capybara
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - ">="
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
version: 2.14.0
|
114
111
|
- - "~>"
|
115
112
|
- !ruby/object:Gem::Version
|
116
113
|
version: '2.14'
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 2.14.0
|
117
117
|
type: :development
|
118
118
|
prerelease: false
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - ">="
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: 2.14.0
|
124
121
|
- - "~>"
|
125
122
|
- !ruby/object:Gem::Version
|
126
123
|
version: '2.14'
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 2.14.0
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: coveralls
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,22 +142,22 @@ dependencies:
|
|
142
142
|
name: database_cleaner
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- - ">="
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
version: 1.5.0
|
148
145
|
- - "~>"
|
149
146
|
- !ruby/object:Gem::Version
|
150
147
|
version: '1.5'
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: 1.5.0
|
151
151
|
type: :development
|
152
152
|
prerelease: false
|
153
153
|
version_requirements: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
|
-
- - ">="
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: 1.5.0
|
158
155
|
- - "~>"
|
159
156
|
- !ruby/object:Gem::Version
|
160
157
|
version: '1.5'
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 1.5.0
|
161
161
|
- !ruby/object:Gem::Dependency
|
162
162
|
name: factory_bot
|
163
163
|
requirement: !ruby/object:Gem::Requirement
|
@@ -448,7 +448,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
448
448
|
- !ruby/object:Gem::Version
|
449
449
|
version: '0'
|
450
450
|
requirements: []
|
451
|
-
rubygems_version: 3.
|
451
|
+
rubygems_version: 3.1.2
|
452
452
|
signing_key:
|
453
453
|
specification_version: 4
|
454
454
|
summary: Doorkeeper Sequel ORM
|