padrino-core 0.14.1.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/padrino-core/application/routing.rb +2 -2
- data/lib/padrino-core/version.rb +1 -1
- data/test/test_routing.rb +9 -0
- metadata +25 -31
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MDE1ZGI1ZGZiODY3ZTBkZmRhZDJkNTllMzFiZDAyMzIxZjQyNDdhZQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 55469df6bfe7c7ffb26bb239433a9f76b3096a34
|
4
|
+
data.tar.gz: 9f5711bd6b352aa64fd1fd4e744f8028dfce6f98
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NDZmNzk0OWZmODUyOTAxOTljNTc4NDI5MmM0M2ZlZmRiYzY0NmEyNWIyNTcy
|
11
|
-
YzdlNDRhNDRjOTZiYmJkZjQ0MTVhOGM4NmJlMTg3Y2I3NzkyZjg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MGJiZGFjMjFlOTk0ZGQxMTEwYTJkNGM1YzcwY2M3ZGM3OWIzODVmZWU4NTg5
|
14
|
-
M2M5NzAzMmE5NDBiOWVlNDgyNTE0NDZkOGRkZjRhZTkzNTNlMzhmZTc0Nzk3
|
15
|
-
OGIyNzUxOTQwYTI3ZWQzM2EyMjdiZTUyMWFiZDgwNWQyOGRlMGM=
|
6
|
+
metadata.gz: 84f5833bf11cd189aaa0c08c921c21594acca9e7afed57e47fae5a551f4f263cfe445b44009bca6eb69b8f4e69878a9d286d30e0913eab627f2c8a8d5ff117a3
|
7
|
+
data.tar.gz: 15726f751b0d60914c96637b3493b78ace6c02b8e8e1a0d68b7dc0fe002b5a2d864dc2b0d36a541d2979c9c782111aedb854ba9235b6f75d2a39dc9317bccf83
|
@@ -500,7 +500,7 @@ module Padrino
|
|
500
500
|
route_options[:params] = @_params unless @_params.nil? || route_options.include?(:params)
|
501
501
|
|
502
502
|
# Add Sinatra condition to check rack-protection failure.
|
503
|
-
if protect_from_csrf && (report_csrf_failure || allow_disabled_csrf)
|
503
|
+
if respond_to?(:protect_from_csrf) && protect_from_csrf && (report_csrf_failure || allow_disabled_csrf)
|
504
504
|
unless route_options.has_key?(:csrf_protection)
|
505
505
|
route_options[:csrf_protection] = true
|
506
506
|
end
|
@@ -512,7 +512,7 @@ module Padrino
|
|
512
512
|
options = @_conditions.merge(options) if @_conditions
|
513
513
|
|
514
514
|
method_name = "#{verb} #{path}"
|
515
|
-
unbound_method = generate_method(method_name, &block)
|
515
|
+
unbound_method = generate_method(method_name.to_sym, &block)
|
516
516
|
|
517
517
|
block_arity = block.arity
|
518
518
|
block = if block_arity == 0
|
data/lib/padrino-core/version.rb
CHANGED
data/test/test_routing.rb
CHANGED
@@ -2424,4 +2424,13 @@ describe "Routing" do
|
|
2424
2424
|
get '/prohibit/123?id=456'
|
2425
2425
|
assert_equal '123', body
|
2426
2426
|
end
|
2427
|
+
|
2428
|
+
it "functions in a standalone app" do
|
2429
|
+
mock_app(Sinatra::Application) do
|
2430
|
+
register Padrino::Routing
|
2431
|
+
get(:index) { 'Standalone' }
|
2432
|
+
end
|
2433
|
+
get '/'
|
2434
|
+
assert_equal 200, status
|
2435
|
+
end
|
2427
2436
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2018-01-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: padrino-support
|
@@ -19,76 +19,70 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.14.
|
22
|
+
version: 0.14.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.14.
|
29
|
+
version: 0.14.2
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sinatra
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
37
|
-
MS40LjY=
|
36
|
+
version: 1.4.6
|
38
37
|
type: :runtime
|
39
38
|
prerelease: false
|
40
39
|
version_requirements: !ruby/object:Gem::Requirement
|
41
40
|
requirements:
|
42
|
-
- -
|
41
|
+
- - ">="
|
43
42
|
- !ruby/object:Gem::Version
|
44
|
-
version:
|
45
|
-
MS40LjY=
|
43
|
+
version: 1.4.6
|
46
44
|
- !ruby/object:Gem::Dependency
|
47
45
|
name: mustermann19
|
48
46
|
requirement: !ruby/object:Gem::Requirement
|
49
47
|
requirements:
|
50
|
-
- -
|
48
|
+
- - ">="
|
51
49
|
- !ruby/object:Gem::Version
|
52
50
|
version: '0'
|
53
51
|
type: :runtime
|
54
52
|
prerelease: false
|
55
53
|
version_requirements: !ruby/object:Gem::Requirement
|
56
54
|
requirements:
|
57
|
-
- -
|
55
|
+
- - ">="
|
58
56
|
- !ruby/object:Gem::Version
|
59
57
|
version: '0'
|
60
58
|
- !ruby/object:Gem::Dependency
|
61
59
|
name: thor
|
62
60
|
requirement: !ruby/object:Gem::Requirement
|
63
61
|
requirements:
|
64
|
-
- - ~>
|
62
|
+
- - "~>"
|
65
63
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
67
|
-
MC4xOA==
|
64
|
+
version: '0.18'
|
68
65
|
type: :runtime
|
69
66
|
prerelease: false
|
70
67
|
version_requirements: !ruby/object:Gem::Requirement
|
71
68
|
requirements:
|
72
|
-
- - ~>
|
69
|
+
- - "~>"
|
73
70
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
75
|
-
MC4xOA==
|
71
|
+
version: '0.18'
|
76
72
|
- !ruby/object:Gem::Dependency
|
77
73
|
name: rack-protection
|
78
74
|
requirement: !ruby/object:Gem::Requirement
|
79
75
|
requirements:
|
80
|
-
- -
|
76
|
+
- - ">="
|
81
77
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
83
|
-
MS41LjA=
|
78
|
+
version: 1.5.0
|
84
79
|
type: :runtime
|
85
80
|
prerelease: false
|
86
81
|
version_requirements: !ruby/object:Gem::Requirement
|
87
82
|
requirements:
|
88
|
-
- -
|
83
|
+
- - ">="
|
89
84
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
91
|
-
MS41LjA=
|
85
|
+
version: 1.5.0
|
92
86
|
description: The Padrino core gem required for use of this framework
|
93
87
|
email: padrinorb@gmail.com
|
94
88
|
executables:
|
@@ -97,9 +91,9 @@ extensions: []
|
|
97
91
|
extra_rdoc_files:
|
98
92
|
- README.rdoc
|
99
93
|
files:
|
100
|
-
- .document
|
101
|
-
- .gitignore
|
102
|
-
- .yardopts
|
94
|
+
- ".document"
|
95
|
+
- ".gitignore"
|
96
|
+
- ".yardopts"
|
103
97
|
- LICENSE.txt
|
104
98
|
- README.rdoc
|
105
99
|
- Rakefile
|
@@ -217,22 +211,22 @@ licenses:
|
|
217
211
|
metadata: {}
|
218
212
|
post_install_message:
|
219
213
|
rdoc_options:
|
220
|
-
- --charset=UTF-8
|
214
|
+
- "--charset=UTF-8"
|
221
215
|
require_paths:
|
222
216
|
- lib
|
223
217
|
required_ruby_version: !ruby/object:Gem::Requirement
|
224
218
|
requirements:
|
225
|
-
- -
|
219
|
+
- - ">="
|
226
220
|
- !ruby/object:Gem::Version
|
227
221
|
version: '0'
|
228
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
223
|
requirements:
|
230
|
-
- -
|
224
|
+
- - ">="
|
231
225
|
- !ruby/object:Gem::Version
|
232
226
|
version: 1.3.6
|
233
227
|
requirements: []
|
234
228
|
rubyforge_project: padrino-core
|
235
|
-
rubygems_version: 2.
|
229
|
+
rubygems_version: 2.6.12
|
236
230
|
signing_key:
|
237
231
|
specification_version: 4
|
238
232
|
summary: The required Padrino core gem
|