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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 515508087dbc6e4c68bcb8deb1dea2afaef25717
4
- data.tar.gz: cc6fdaa0c425ca9391c8951e60637d1c15cd1982
3
+ metadata.gz: 79d8fab970716e6c18ccce8a0e594ab23ff0e611
4
+ data.tar.gz: 1f7d27447cb47de7188bceae96aef46d32e48fb9
5
5
  SHA512:
6
- metadata.gz: 0ce65d579990a9e4295a1f5906d927f80911358331e49545188860b72f783f26841628c5466b57c74d1d028f9fac0ec9b905b91ef67abc8df812d36b21277773
7
- data.tar.gz: 7c3cbcfd5066a33489c20c391124b806b5e3275c851d2268cc495451c22d76bf673291b8fe372b18ef1928c1842e50e16465452ba38d5d8046e6e76e55673480
6
+ metadata.gz: fbd7ab49602fc8f4d7639eb4c59a8629b2eb1f32d35585e71fa21d5c1ec698509efe1511a4aa1cfe1273161ad63da75948c8ccb69d6abdda3e1bb6a8417b4daa
7
+ data.tar.gz: 6b4580064f085f43cff37b4a94b273241e633b98a4f452d8e8655ba2fad6654c4dcc4807d16bb777ee88a0755c5f31fe002d2525babe08ce8c113284f110d0bc
@@ -1,6 +1,8 @@
1
1
  # Hanami::Controller
2
2
  Complete, fast and testable actions for Rack
3
3
 
4
+ ## v1.1.0.beta1 - 2017-08-11
5
+
4
6
  ## v1.0.1 - 2017-07-10
5
7
  ### Fixed
6
8
  - [Marcello Rocha] Ensure validation params to be symbolized in all the environments
@@ -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.1.0.beta1'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.6'
26
26
  spec.add_development_dependency 'rack-test', '~> 0.6'
@@ -52,7 +52,7 @@ module Hanami
52
52
  def initialize(env)
53
53
  @env = env
54
54
  @raw = _extract_params
55
- @params = Utils::Hash.new(@raw).deep_dup.deep_symbolize!.to_h
55
+ @params = Utils::Hash.deep_symbolize(@raw)
56
56
  freeze
57
57
  end
58
58
 
@@ -92,7 +92,7 @@ module Hanami
92
92
  if method_defined?(name) || private_method_defined?(name)
93
93
  method_owner = instance_method(name).owner
94
94
 
95
- Utils::String.new(method_owner).namespace == namespace
95
+ Utils::String.namespace(method_owner) == namespace
96
96
  else
97
97
  false
98
98
  end
@@ -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.new(key).titleize
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.new(base).namespace
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
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Defines the version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.0.1'.freeze
6
+ VERSION = '1.1.0.beta1'.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.1
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-07-10 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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: '0'
158
+ version: 1.3.1
159
159
  requirements: []
160
160
  rubyforge_project:
161
161
  rubygems_version: 2.6.11