hanami 1.2.0.beta1 → 1.2.0.beta2

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: 8a9410374b4c5778d39a7929a839012e22563268752d4937c4afe6343a74cd0c
4
- data.tar.gz: 9fb8af94de128436c1e1cde83c79dc52c2321baa3ddf3605da7b97cb5a5e6195
3
+ metadata.gz: 9a0f72fe00d3ad621f01a1a30055d1effc1d03f6bc64c889f4054771e5608ceb
4
+ data.tar.gz: 3ebc04ca82a25d17662fbf33b92476de8abe3fa1cbbdaa41c07b060eda2e32d7
5
5
  SHA512:
6
- metadata.gz: 021c99d12215c9932a830cfd1b00efa6f4049eebd98513b0469f6a38a811557a7da1c6e040cf9cdbae15ace92a3fc9d4fe349c5f492817868647c65f51b61b2e
7
- data.tar.gz: 04a48aedeb9a843f63b4ed5cee9523f1d94fcc088034b8335bc94c6e8774af737a3b44601979d3609312ccba403a1283d8e0e92fac3539ade749a22675735277
6
+ metadata.gz: d5b97bf005b5f5b5c036219f843c622afd3714266e130bc267f843be15013378da400d79d40d9e63dd616a51093d2f717c71a4835deda64f9ed8cde4e4d7ab10
7
+ data.tar.gz: 304ba7c190f72e27873029489a47ca2e5dbd9335e9608d70b6193a4afc805c2d24d41dabff08fc3e1596733dd32a7e80b0a82bdfa59f20ee483b7e58dca056ce
@@ -1,6 +1,18 @@
1
1
  # Hanami
2
2
  The web, with simplicity.
3
3
 
4
+ ## v1.2.0.beta2 - 2018-03-23
5
+ ### Fixed
6
+ - [Luca Guidi] Raise meaningful error message when trying to access `session` or `flash` with disabled sessions
7
+ - [Pistos] Print stack trace to standard output when a CLI command raises an error
8
+
9
+ ## v1.2.0.beta1 - 2018-02-28
10
+ ### Added
11
+ - [Luca Guidi] HTTP/2 Early Hints
12
+
13
+ ### Fixed
14
+ - [Alfonso Uceda] Render custom template if an exception is raised from a view or template
15
+
4
16
  ## v1.1.1 - 2018-02-27
5
17
  ### Added
6
18
  - [Luca Guidi] Official support for Ruby MRI 2.5+
@@ -3,6 +3,14 @@
3
3
 
4
4
  ## Features
5
5
 
6
+ ## v1.2.0 (unreleased)
7
+ - HTTP/2 Early Hints
8
+ - Unobtrusive JavaScript (UJS) (via `hanami-ujs` gem)
9
+ - Interactive console for development error page (via `hanami-webconsole` gem)
10
+ - CLI: register callbacks for `hanami` commands (`Hanami::CLI.after("db migrate") { ... }`)
11
+ - Project level Rack middleware stack (`Hanami.configure { middleware.use MyRackMiddlewre }`)
12
+ - Plugins can hook into project configuration (`Hanami.plugin { middleware.use AnotherRackMiddleware }`)
13
+
6
14
  ## v1.1.1 - 2018-02-27
7
15
 
8
16
  ## v1.1.0 - 2017-10-25
@@ -21,15 +21,15 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
23
23
 
24
- spec.add_dependency 'hanami-utils', '1.2.0.beta1'
25
- spec.add_dependency 'hanami-validations', '1.2.0.beta1'
26
- spec.add_dependency 'hanami-router', '1.2.0.beta1'
27
- spec.add_dependency 'hanami-controller', '1.2.0.beta1'
28
- spec.add_dependency 'hanami-view', '1.2.0.beta1'
29
- spec.add_dependency 'hanami-helpers', '1.2.0.beta1'
30
- spec.add_dependency 'hanami-mailer', '1.2.0.beta1'
31
- spec.add_dependency 'hanami-assets', '1.2.0.beta1'
32
- spec.add_dependency 'hanami-cli', '0.2.0.beta1'
24
+ spec.add_dependency 'hanami-utils', '1.2.0.beta2'
25
+ spec.add_dependency 'hanami-validations', '1.2.0.beta2'
26
+ spec.add_dependency 'hanami-router', '1.2.0.beta2'
27
+ spec.add_dependency 'hanami-controller', '1.2.0.beta2'
28
+ spec.add_dependency 'hanami-view', '1.2.0.beta2'
29
+ spec.add_dependency 'hanami-helpers', '1.2.0.beta2'
30
+ spec.add_dependency 'hanami-mailer', '1.2.0.beta2'
31
+ spec.add_dependency 'hanami-assets', '1.2.0.beta2'
32
+ spec.add_dependency 'hanami-cli', '0.2.0.beta2'
33
33
  spec.add_dependency 'concurrent-ruby', '~> 1.0'
34
34
  spec.add_dependency 'bundler'
35
35
 
@@ -85,6 +85,7 @@ module Hanami
85
85
  super(options)
86
86
  rescue StandardError => e
87
87
  warn e.message
88
+ warn e.backtrace.join("\n\t")
88
89
  exit(1)
89
90
  end
90
91
  end
@@ -299,7 +299,7 @@ module Hanami
299
299
  application_name: options.fetch(:application_name),
300
300
  application_base_url: options.fetch(:application_base_url),
301
301
  hanami_head: options.fetch(:hanami_head),
302
- hanami_model_version: '1.2.0.beta1',
302
+ hanami_model_version: '1.2.0.beta2',
303
303
  code_reloading: code_reloading?,
304
304
  hanami_version: hanami_version,
305
305
  project_module: Utils::String.classify(project),
@@ -14,3 +14,9 @@ Hanami::Controller.configure do
14
14
  include Hanami::Action::Glue
15
15
  end
16
16
  end
17
+
18
+ Hanami::Controller::MissingSessionError.class_eval do
19
+ def initialize(session_method)
20
+ super("To use `#{session_method}', please enable sessions for the current app.")
21
+ end
22
+ end
@@ -6,7 +6,7 @@ module Hanami
6
6
  module Version
7
7
  # @since 0.9.0
8
8
  # @api private
9
- VERSION = '1.2.0.beta1'.freeze
9
+ VERSION = '1.2.0.beta2'.freeze
10
10
 
11
11
  # @since 0.9.0
12
12
  # @api private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.beta1
4
+ version: 1.2.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-28 00:00:00.000000000 Z
11
+ date: 2018-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hanami-utils
@@ -16,126 +16,126 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.0.beta1
19
+ version: 1.2.0.beta2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.0.beta1
26
+ version: 1.2.0.beta2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hanami-validations
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.0.beta1
33
+ version: 1.2.0.beta2
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.2.0.beta1
40
+ version: 1.2.0.beta2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hanami-router
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2.0.beta1
47
+ version: 1.2.0.beta2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2.0.beta1
54
+ version: 1.2.0.beta2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: hanami-controller
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.0.beta1
61
+ version: 1.2.0.beta2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.0.beta1
68
+ version: 1.2.0.beta2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hanami-view
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 1.2.0.beta1
75
+ version: 1.2.0.beta2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 1.2.0.beta1
82
+ version: 1.2.0.beta2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: hanami-helpers
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.2.0.beta1
89
+ version: 1.2.0.beta2
90
90
  type: :runtime
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: 1.2.0.beta1
96
+ version: 1.2.0.beta2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: hanami-mailer
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 1.2.0.beta1
103
+ version: 1.2.0.beta2
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 1.2.0.beta1
110
+ version: 1.2.0.beta2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: hanami-assets
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 1.2.0.beta1
117
+ version: 1.2.0.beta2
118
118
  type: :runtime
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: 1.2.0.beta1
124
+ version: 1.2.0.beta2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: hanami-cli
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.2.0.beta1
131
+ version: 0.2.0.beta2
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.2.0.beta1
138
+ version: 0.2.0.beta2
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: concurrent-ruby
141
141
  requirement: !ruby/object:Gem::Requirement