hanami-helpers 1.0.0 → 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: fa41f81d01269e88ddcde3488cdc395b24487419
4
- data.tar.gz: 9b5fee09a1aa741fc37361f47936b923511c06b9
3
+ metadata.gz: f48199cf6ff734ff97a768a162c7c2c1ea20f28e
4
+ data.tar.gz: d036870ab45c686b2e190cd29e6e32c5b2faa390
5
5
  SHA512:
6
- metadata.gz: 1f04218c83fd34376c30c4eb2dc0b70e6d6b2660c37760319e96e05b04068997fb2a09eec79c27cca9e015b7f3bbea5355815fbe597b3b23c124536e489479a7
7
- data.tar.gz: 9b8b4cec68ed485dcc11a46276d3e08956ac2510b355e816ed57dfb2883e0c253bf8e2819e85cd4d462b30be6fa727bc02362e693f96ca76f64ab28836811800
6
+ metadata.gz: b943827969430e932e4de3623f01f322a97d42474092e2f2f264bdcabf1438f6c330d7b7c28b3c494a3b431f7b27daf8c1c75944875862d9d7eb692f050aa0e9
7
+ data.tar.gz: ca2e6f19cad1f60a7ef578bfadb69252db795f86a8e93ceead474be29fb776a94c11d33620a65d6f2b6b363c0aa40d216984777538b54e840af04f803291fab2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hanami::Helpers
2
2
  View helpers for Ruby web applications
3
3
 
4
+ ## v1.1.0.beta1 - 2017-08-11
5
+
4
6
  ## v1.0.0 - 2017-04-06
5
7
 
6
8
  ## v1.0.0.rc1 - 2017-03-31
@@ -1,6 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  lib = File.expand_path('../lib', __FILE__)
4
+
4
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
6
  require 'hanami/helpers/version'
6
7
 
@@ -21,11 +22,11 @@ Gem::Specification.new do |spec|
21
22
  spec.require_paths = ['lib']
22
23
  spec.required_ruby_version = '>= 2.3.0'
23
24
 
24
- spec.add_dependency 'hanami-utils', '~> 1.0'
25
+ spec.add_dependency 'hanami-utils', '1.1.0.beta1'
25
26
 
26
27
  spec.add_development_dependency 'bundler', '~> 1.6'
27
28
  spec.add_development_dependency 'rake', '~> 11'
28
29
  spec.add_development_dependency 'minitest', '~> 5.5'
29
-
30
+ spec.add_development_dependency 'rspec', '~> 3.5'
30
31
  spec.add_development_dependency 'dry-struct', '~> 0.1'
31
32
  end
@@ -315,7 +315,7 @@ module Hanami
315
315
  when String, Hanami::Utils::String
316
316
  content
317
317
  else
318
- Utils::String.new(content).capitalize
318
+ Utils::String.capitalize(content)
319
319
  end
320
320
 
321
321
  super(content, attributes)
@@ -1473,7 +1473,7 @@ module Hanami
1473
1473
  # @since 0.2.0
1474
1474
  def _input_id(name)
1475
1475
  name = _input_name(name).gsub(/\[(?<token>[[[:word:]]\-]*)\]/, INPUT_ID_REPLACEMENT)
1476
- Utils::String.new(name).dasherize
1476
+ Utils::String.dasherize(name)
1477
1477
  end
1478
1478
 
1479
1479
  # Input <tt>value</tt> HTML attribute
@@ -18,7 +18,7 @@ module Hanami
18
18
  # @since 0.2.0
19
19
  # @api private
20
20
  def initialize(values, params)
21
- @values = Utils::Hash.new(values || {}).symbolize!
21
+ @values = Utils::Hash.symbolize(values || {})
22
22
  @params = params
23
23
  end
24
24
 
@@ -43,7 +43,7 @@ module Hanami
43
43
  # @since 0.1.0
44
44
  # @api private
45
45
  def self.included(base)
46
- factory = "#{Utils::String.new(base).namespace}.routes"
46
+ factory = "#{Utils::String.namespace(base)}.routes"
47
47
 
48
48
  base.class_eval <<-END_EVAL, __FILE__, __LINE__
49
49
  def routes
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Define version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.0.0'.freeze
6
+ VERSION = '1.1.0.beta1'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.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-04-06 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: hanami-utils
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: 1.1.0.beta1
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.0'
26
+ version: 1.1.0.beta1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.5'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.5'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: dry-struct
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -123,9 +137,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
137
  version: 2.3.0
124
138
  required_rubygems_version: !ruby/object:Gem::Requirement
125
139
  requirements:
126
- - - ">="
140
+ - - ">"
127
141
  - !ruby/object:Gem::Version
128
- version: '0'
142
+ version: 1.3.1
129
143
  requirements: []
130
144
  rubyforge_project:
131
145
  rubygems_version: 2.6.11