hanami-helpers 1.1.0.beta1 → 1.1.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
  SHA1:
3
- metadata.gz: f48199cf6ff734ff97a768a162c7c2c1ea20f28e
4
- data.tar.gz: d036870ab45c686b2e190cd29e6e32c5b2faa390
3
+ metadata.gz: f1d92f3c639d7bcbfcabba275d3dadbb739c56d5
4
+ data.tar.gz: 3e07737d9a83e10c27be5c0a2972b553ef97b005
5
5
  SHA512:
6
- metadata.gz: b943827969430e932e4de3623f01f322a97d42474092e2f2f264bdcabf1438f6c330d7b7c28b3c494a3b431f7b27daf8c1c75944875862d9d7eb692f050aa0e9
7
- data.tar.gz: ca2e6f19cad1f60a7ef578bfadb69252db795f86a8e93ceead474be29fb776a94c11d33620a65d6f2b6b363c0aa40d216984777538b54e840af04f803291fab2
6
+ metadata.gz: 1d9cd7ccf095727f3b0e7a72ab7d2ff62d00b26e0f9611ba83b9708f5d0ab05bd26e77436ca61a622907b5346cfe97af1ea9b0aa28f6ef316a11ac21ad358e81
7
+ data.tar.gz: 21a3ebf4f7430afcdf5073b06f5190b0dfe77c85fe64aeb51d3c1359e77d30d6274faa0d7b13b86f5d13936ce970d0b74b1629ae96553dcd8e0bde4f3159bcb7
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.beta2 - 2017-10-03
5
+
4
6
  ## v1.1.0.beta1 - 2017-08-11
5
7
 
6
8
  ## v1.0.0 - 2017-04-06
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  lib = File.expand_path('../lib', __FILE__)
4
2
 
5
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@@ -22,11 +20,10 @@ Gem::Specification.new do |spec|
22
20
  spec.require_paths = ['lib']
23
21
  spec.required_ruby_version = '>= 2.3.0'
24
22
 
25
- spec.add_dependency 'hanami-utils', '1.1.0.beta1'
23
+ spec.add_dependency 'hanami-utils', '1.1.0.beta2'
26
24
 
27
- spec.add_development_dependency 'bundler', '~> 1.6'
28
- spec.add_development_dependency 'rake', '~> 11'
29
- spec.add_development_dependency 'minitest', '~> 5.5'
30
- spec.add_development_dependency 'rspec', '~> 3.5'
31
- spec.add_development_dependency 'dry-struct', '~> 0.1'
25
+ spec.add_development_dependency 'bundler', '~> 1.6'
26
+ spec.add_development_dependency 'rake', '~> 12'
27
+ spec.add_development_dependency 'rspec', '~> 3.6'
28
+ spec.add_development_dependency 'dry-struct', '~> 0.3'
32
29
  end
@@ -1 +1 @@
1
- require 'hanami/helpers' # rubocop:disable Style/FileName
1
+ require 'hanami/helpers' # rubocop:disable Naming/FileName
@@ -414,7 +414,7 @@ module Hanami
414
414
  Form.new(name, url, options.delete(:values))
415
415
  end
416
416
 
417
- attributes = { action: form.url, method: form.verb, :'accept-charset' => DEFAULT_CHARSET, id: "#{form.name}-form" }.merge(options)
417
+ attributes = { action: form.url, method: form.verb, 'accept-charset': DEFAULT_CHARSET, id: "#{form.name}-form" }.merge(options)
418
418
  FormBuilder.new(form, attributes, self, &blk)
419
419
  end
420
420
 
@@ -17,13 +17,13 @@ module Hanami
17
17
  #
18
18
  # @since 0.2.0
19
19
  # @api private
20
- BROWSER_METHODS = %w(GET POST).freeze
20
+ BROWSER_METHODS = %w[GET POST].freeze
21
21
 
22
22
  # Set of HTTP methods that should NOT generate CSRF token
23
23
  #
24
24
  # @since 0.2.0
25
25
  # @api private
26
- EXCLUDED_CSRF_METHODS = %w(GET).freeze
26
+ EXCLUDED_CSRF_METHODS = %w[GET].freeze
27
27
 
28
28
  # Checked attribute value
29
29
  #
@@ -997,7 +997,6 @@ module Hanami
997
997
  def search_field(name, attributes = {})
998
998
  input _attributes(:search, name, attributes)
999
999
  end
1000
- alias input_text text_field
1001
1000
 
1002
1001
  # Radio input
1003
1002
  #
@@ -12,7 +12,7 @@ module Hanami
12
12
  # @api private
13
13
  #
14
14
  # @see http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-attribute
15
- BOOLEAN_ATTRIBUTES = %w(
15
+ BOOLEAN_ATTRIBUTES = %w[
16
16
  allowfullscreen
17
17
  async
18
18
  autobuffer
@@ -59,7 +59,7 @@ module Hanami
59
59
  truespeed
60
60
  typemustmatch
61
61
  visible
62
- ).freeze
62
+ ].freeze
63
63
 
64
64
  # Attributes separator
65
65
  #
@@ -20,7 +20,7 @@ module Hanami
20
20
  #
21
21
  # @see Hanami::Helpers::HtmlHelper::HtmlNode
22
22
  # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element
23
- CONTENT_TAGS = %w(
23
+ CONTENT_TAGS = %w[
24
24
  a
25
25
  abbr
26
26
  address
@@ -120,7 +120,7 @@ module Hanami
120
120
  ul
121
121
  var
122
122
  video
123
- ).freeze
123
+ ].freeze
124
124
 
125
125
  # HTML5 empty tags
126
126
  #
@@ -129,7 +129,7 @@ module Hanami
129
129
  #
130
130
  # @see Hanami::Helpers::HtmlHelper::EmptyHtmlNode
131
131
  # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element
132
- EMPTY_TAGS = %w(
132
+ EMPTY_TAGS = %w[
133
133
  area
134
134
  base
135
135
  br
@@ -146,7 +146,7 @@ module Hanami
146
146
  source
147
147
  track
148
148
  wbr
149
- ).freeze
149
+ ].freeze
150
150
 
151
151
  # New line separator
152
152
  #
@@ -3,6 +3,6 @@ module Hanami
3
3
  # Define version
4
4
  #
5
5
  # @since 0.1.0
6
- VERSION = '1.1.0.beta1'.freeze
6
+ VERSION = '1.1.0.beta2'.freeze
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.beta1
4
+ version: 1.1.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: 2017-08-11 00:00:00.000000000 Z
11
+ date: 2017-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hanami-utils
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0.beta1
19
+ version: 1.1.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.1.0.beta1
26
+ version: 1.1.0.beta2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,56 +44,42 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '11'
47
+ version: '12'
48
48
  type: :development
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: '11'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '5.5'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '5.5'
54
+ version: '12'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '3.5'
61
+ version: '3.6'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '3.5'
68
+ version: '3.6'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: dry-struct
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0.1'
75
+ version: '0.3'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0.1'
82
+ version: '0.3'
97
83
  description: View helpers for Ruby applications
98
84
  email:
99
85
  - me@lucaguidi.com
@@ -142,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
128
  version: 1.3.1
143
129
  requirements: []
144
130
  rubyforge_project:
145
- rubygems_version: 2.6.11
131
+ rubygems_version: 2.6.13
146
132
  signing_key:
147
133
  specification_version: 4
148
134
  summary: Hanami helpers