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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69355c4a2e99f6578bd441262177cf5ceb594c67
4
- data.tar.gz: e054c31985cb4297924151d4b60cb53007eac3f8
3
+ metadata.gz: 4597e54bfdd73cec8513d4eaa87e44a3c4b60639
4
+ data.tar.gz: 2c0198763912801b11209c23fb92a5e5d61d4364
5
5
  SHA512:
6
- metadata.gz: 76ed158d3fa50be9d85593ad870fda837ef81bffddec4cb9ddea0b40da320c89804e7d212d82b36e3a78f707313d281e6f120047c51c1565e10386f79b740233
7
- data.tar.gz: 179daa5fa5599e1ad0e204998802a5a3179eeeb3d6f249477b2197b46486e29ef79132b1622f29de0bf168bc31ba81353b9b1d8a787368e2918ea0e12c9de741
6
+ metadata.gz: 47cae71662655adfaae7df0d1f15b8e108a3f55c2e4e13e5663b201d1c9541e6ca4495fd30b44d1f79a33186a2b186bdad1e2fc758b87a17089a98d66ff1a870
7
+ data.tar.gz: 1d106a2a12d884f6a96e33a12a922909cfc17b4430caec78ca351b3248d8cfa7a293884f5004dc90208db30797b8a2857cc4a82e758b147b1378983e4c330871
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hanami::Controller
2
2
  Complete, fast and testable actions for Rack
3
3
 
4
+ ## v1.0.0 - 2017-04-06
5
+
4
6
  ## v1.0.0.rc1 - 2017-03-31
5
7
 
6
8
  ## v1.0.0.beta3 - 2017-03-17
@@ -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.0.rc1'
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'
@@ -20,7 +20,7 @@ module Hanami
20
20
  # The key that returns Rack session params from the Rack env
21
21
  # Please note that this is used only when an action is unit tested.
22
22
  #
23
- # @since 1.0.0.beta1
23
+ # @since 1.0.0
24
24
  # @api private
25
25
  #
26
26
  # @example
@@ -93,7 +93,7 @@ module Hanami
93
93
 
94
94
  # @return [String]
95
95
  #
96
- # @since 1.0.0.beta2
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.beta2
147
+ # @since 1.0.0
148
148
  # @api private
149
149
  #
150
150
  # @see Hanami::Action::Flash#[]
@@ -42,7 +42,7 @@ module Hanami
42
42
 
43
43
  # Most commom MIME Types used for responses
44
44
  #
45
- # @since 1.0.0.beta1
45
+ # @since 1.0.0
46
46
  # @api private
47
47
  MIME_TYPES = {
48
48
  txt: 'text/plain',
@@ -12,19 +12,19 @@ module Hanami
12
12
  module Rack
13
13
  # Rack SPEC response code
14
14
  #
15
- # @since 1.0.0.beta2
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.beta2
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.beta2
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.beta2
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.beta2
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.beta2
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.beta2
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.beta2
376
+ # @since 1.0.0
377
377
  # @api private
378
378
  def _send_file(response)
379
379
  headers.merge!(response[RESPONSE_HEADERS])
@@ -12,7 +12,7 @@ module Hanami
12
12
  class File
13
13
  # The key that returns path info from the Rack env
14
14
  #
15
- # @since 1.0.0.beta1
15
+ # @since 1.0.0
16
16
  # @api private
17
17
  PATH_INFO = "PATH_INFO".freeze
18
18
 
@@ -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.beta1
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.beta1
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.beta1
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.beta2
655
+ # @since 1.0.0
656
656
  attr_reader :root_directory
657
657
 
658
658
  def public_directory(value = nil)
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.0.0.rc1'.freeze
6
+ VERSION = '1.0.0'.freeze
7
7
  end
8
8
  end
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.rc1
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-03-31 00:00:00.000000000 Z
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.0.rc1
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.0.rc1
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: 1.3.1
144
+ version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
147
  rubygems_version: 2.6.11