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 +4 -4
- data/CHANGELOG.md +12 -0
- data/FEATURES.md +8 -0
- data/hanami.gemspec +9 -9
- data/lib/hanami/cli/commands/command.rb +1 -0
- data/lib/hanami/cli/commands/new.rb +1 -1
- data/lib/hanami/frameworks.rb +6 -0
- data/lib/hanami/version.rb +1 -1
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a0f72fe00d3ad621f01a1a30055d1effc1d03f6bc64c889f4054771e5608ceb
|
4
|
+
data.tar.gz: 3ebc04ca82a25d17662fbf33b92476de8abe3fa1cbbdaa41c07b060eda2e32d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5b97bf005b5f5b5c036219f843c622afd3714266e130bc267f843be15013378da400d79d40d9e63dd616a51093d2f717c71a4835deda64f9ed8cde4e4d7ab10
|
7
|
+
data.tar.gz: 304ba7c190f72e27873029489a47ca2e5dbd9335e9608d70b6193a4afc805c2d24d41dabff08fc3e1596733dd32a7e80b0a82bdfa59f20ee483b7e58dca056ce
|
data/CHANGELOG.md
CHANGED
@@ -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+
|
data/FEATURES.md
CHANGED
@@ -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
|
data/hanami.gemspec
CHANGED
@@ -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.
|
25
|
-
spec.add_dependency 'hanami-validations', '1.2.0.
|
26
|
-
spec.add_dependency 'hanami-router', '1.2.0.
|
27
|
-
spec.add_dependency 'hanami-controller', '1.2.0.
|
28
|
-
spec.add_dependency 'hanami-view', '1.2.0.
|
29
|
-
spec.add_dependency 'hanami-helpers', '1.2.0.
|
30
|
-
spec.add_dependency 'hanami-mailer', '1.2.0.
|
31
|
-
spec.add_dependency 'hanami-assets', '1.2.0.
|
32
|
-
spec.add_dependency 'hanami-cli', '0.2.0.
|
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
|
|
@@ -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.
|
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),
|
data/lib/hanami/frameworks.rb
CHANGED
@@ -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
|
data/lib/hanami/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
138
|
+
version: 0.2.0.beta2
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: concurrent-ruby
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|