hanami-controller 1.0.1 → 1.1.0.beta1
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/exposable/guard.rb +1 -1
- data/lib/hanami/action/params.rb +1 -1
- data/lib/hanami/controller/configuration.rb +1 -1
- data/lib/hanami/controller/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79d8fab970716e6c18ccce8a0e594ab23ff0e611
|
4
|
+
data.tar.gz: 1f7d27447cb47de7188bceae96aef46d32e48fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbd7ab49602fc8f4d7639eb4c59a8629b2eb1f32d35585e71fa21d5c1ec698509efe1511a4aa1cfe1273161ad63da75948c8ccb69d6abdda3e1bb6a8417b4daa
|
7
|
+
data.tar.gz: 6b4580064f085f43cff37b4a94b273241e633b98a4f452d8e8655ba2fad6654c4dcc4807d16bb777ee88a0755c5f31fe002d2525babe08ce8c113284f110d0bc
|
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', '
|
23
|
+
spec.add_dependency 'hanami-utils', '1.1.0.beta1'
|
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/params.rb
CHANGED
@@ -107,7 +107,7 @@ module Hanami
|
|
107
107
|
# # => ["Email is missing", "Email is in invalid format", "Name is missing", "Tos is missing", "Age is missing", "Address is missing"]
|
108
108
|
def error_messages(error_set = errors)
|
109
109
|
error_set.each_with_object([]) do |(key, messages), result|
|
110
|
-
k = Utils::String.
|
110
|
+
k = Utils::String.titleize(key)
|
111
111
|
|
112
112
|
_messages = if messages.is_a?(Hash)
|
113
113
|
error_messages(messages)
|
@@ -96,7 +96,7 @@ module Hanami
|
|
96
96
|
# Hanami::Controller::Configuration.for(MyApp::Controllers::Dashboard)
|
97
97
|
# # => will duplicate from MyApp::Controller
|
98
98
|
def self.for(base)
|
99
|
-
namespace = Utils::String.
|
99
|
+
namespace = Utils::String.namespace(base)
|
100
100
|
framework = Utils::Class.load_from_pattern!("(#{namespace}|Hanami)::Controller")
|
101
101
|
framework.configuration.duplicate
|
102
102
|
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.
|
4
|
+
version: 1.1.0.beta1
|
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-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: hanami-utils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.1.0.beta1
|
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:
|
40
|
+
version: 1.1.0.beta1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,9 +153,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: 2.3.0
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- - "
|
156
|
+
- - ">"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
158
|
+
version: 1.3.1
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
161
|
rubygems_version: 2.6.11
|