hanami-controller 1.0.0.rc1 → 1.0.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 +2 -0
- data/hanami-controller.gemspec +1 -1
- data/lib/hanami/action/base_params.rb +1 -1
- data/lib/hanami/action/flash.rb +2 -2
- data/lib/hanami/action/mime.rb +1 -1
- data/lib/hanami/action/rack.rb +8 -8
- data/lib/hanami/action/rack/file.rb +1 -1
- data/lib/hanami/controller/configuration.rb +4 -4
- data/lib/hanami/controller/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4597e54bfdd73cec8513d4eaa87e44a3c4b60639
|
4
|
+
data.tar.gz: 2c0198763912801b11209c23fb92a5e5d61d4364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47cae71662655adfaae7df0d1f15b8e108a3f55c2e4e13e5663b201d1c9541e6ca4495fd30b44d1f79a33186a2b186bdad1e2fc758b87a17089a98d66ff1a870
|
7
|
+
data.tar.gz: 1d106a2a12d884f6a96e33a12a922909cfc17b4430caec78ca351b3248d8cfa7a293884f5004dc90208db30797b8a2857cc4a82e758b147b1378983e4c330871
|
data/CHANGELOG.md
CHANGED
data/hanami-controller.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.required_ruby_version = '>= 2.3.0'
|
21
21
|
|
22
22
|
spec.add_dependency 'rack', '~> 2.0'
|
23
|
-
spec.add_dependency 'hanami-utils', '~> 1.0
|
23
|
+
spec.add_dependency 'hanami-utils', '~> 1.0'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
26
26
|
spec.add_development_dependency 'rack-test', '~> 0.6'
|
data/lib/hanami/action/flash.rb
CHANGED
@@ -93,7 +93,7 @@ module Hanami
|
|
93
93
|
|
94
94
|
# @return [String]
|
95
95
|
#
|
96
|
-
# @since 1.0.0
|
96
|
+
# @since 1.0.0
|
97
97
|
def inspect
|
98
98
|
"#<#{self.class}:#{'0x%x' % (__id__ << 1)} #{@merged.inspect}>"
|
99
99
|
end
|
@@ -144,7 +144,7 @@ module Hanami
|
|
144
144
|
@session.delete(SESSION_KEY) if empty?
|
145
145
|
end
|
146
146
|
|
147
|
-
# @since 1.0.0
|
147
|
+
# @since 1.0.0
|
148
148
|
# @api private
|
149
149
|
#
|
150
150
|
# @see Hanami::Action::Flash#[]
|
data/lib/hanami/action/mime.rb
CHANGED
data/lib/hanami/action/rack.rb
CHANGED
@@ -12,19 +12,19 @@ module Hanami
|
|
12
12
|
module Rack
|
13
13
|
# Rack SPEC response code
|
14
14
|
#
|
15
|
-
# @since 1.0.0
|
15
|
+
# @since 1.0.0
|
16
16
|
# @api private
|
17
17
|
RESPONSE_CODE = 0
|
18
18
|
|
19
19
|
# Rack SPEC response headers
|
20
20
|
#
|
21
|
-
# @since 1.0.0
|
21
|
+
# @since 1.0.0
|
22
22
|
# @api private
|
23
23
|
RESPONSE_HEADERS = 1
|
24
24
|
|
25
25
|
# Rack SPEC response body
|
26
26
|
#
|
27
|
-
# @since 1.0.0
|
27
|
+
# @since 1.0.0
|
28
28
|
# @api private
|
29
29
|
RESPONSE_BODY = 2
|
30
30
|
|
@@ -36,7 +36,7 @@ module Hanami
|
|
36
36
|
|
37
37
|
# Not Found
|
38
38
|
#
|
39
|
-
# @since 1.0.0
|
39
|
+
# @since 1.0.0
|
40
40
|
# @api private
|
41
41
|
NOT_FOUND = 404
|
42
42
|
|
@@ -62,14 +62,14 @@ module Hanami
|
|
62
62
|
|
63
63
|
# The Content-Length HTTP header
|
64
64
|
#
|
65
|
-
# @since 1.0.0
|
65
|
+
# @since 1.0.0
|
66
66
|
# @api private
|
67
67
|
CONTENT_LENGTH = 'Content-Length'.freeze
|
68
68
|
|
69
69
|
# The non-standard HTTP header to pass the control over when a resource
|
70
70
|
# cannot be found by the current endpoint
|
71
71
|
#
|
72
|
-
# @since 1.0.0
|
72
|
+
# @since 1.0.0
|
73
73
|
# @api private
|
74
74
|
X_CASCADE = 'X-Cascade'.freeze
|
75
75
|
|
@@ -335,7 +335,7 @@ module Hanami
|
|
335
335
|
# @param path [String, Pathname] path to the file to be sent
|
336
336
|
# @return [void]
|
337
337
|
#
|
338
|
-
# @since 1.0.0
|
338
|
+
# @since 1.0.0
|
339
339
|
#
|
340
340
|
# @example
|
341
341
|
# require 'hanami/controller'
|
@@ -373,7 +373,7 @@ module Hanami
|
|
373
373
|
@_env[REQUEST_METHOD]
|
374
374
|
end
|
375
375
|
|
376
|
-
# @since 1.0.0
|
376
|
+
# @since 1.0.0
|
377
377
|
# @api private
|
378
378
|
def _send_file(response)
|
379
379
|
headers.merge!(response[RESPONSE_HEADERS])
|
@@ -30,7 +30,7 @@ module Hanami
|
|
30
30
|
#
|
31
31
|
# It serves as base root for file downloads
|
32
32
|
#
|
33
|
-
# @since 1.0.0
|
33
|
+
# @since 1.0.0
|
34
34
|
# @api private
|
35
35
|
DEFAULT_PUBLIC_DIRECTORY = 'public'.freeze
|
36
36
|
|
@@ -220,7 +220,7 @@ module Hanami
|
|
220
220
|
#
|
221
221
|
# @param exception [Exception] an exception
|
222
222
|
#
|
223
|
-
# @since 1.0.0
|
223
|
+
# @since 1.0.0
|
224
224
|
# @api private
|
225
225
|
#
|
226
226
|
# @see Hanami::Controller::Configuration#handle_exception
|
@@ -439,7 +439,7 @@ module Hanami
|
|
439
439
|
#
|
440
440
|
# @param mime_types [Array] the set of MIME types
|
441
441
|
#
|
442
|
-
# @since 1.0.0
|
442
|
+
# @since 1.0.0
|
443
443
|
# @api private
|
444
444
|
#
|
445
445
|
# @see Hanami::Action::Mime::ClassMethods#accept
|
@@ -652,7 +652,7 @@ module Hanami
|
|
652
652
|
end
|
653
653
|
|
654
654
|
# @api private
|
655
|
-
# @since 1.0.0
|
655
|
+
# @since 1.0.0
|
656
656
|
attr_reader :root_directory
|
657
657
|
|
658
658
|
def public_directory(value = nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,9 +139,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
139
|
version: 2.3.0
|
140
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
|
-
- - "
|
142
|
+
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
144
|
+
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
147
|
rubygems_version: 2.6.11
|