padrino-helpers 0.14.1.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Nzk0MDBmN2ZhODhkMzE3YjRkOGExMmY5MGZjM2I1ZTVlZWVlMDAyNA==
5
- data.tar.gz: !binary |-
6
- OWZhZTBiNjNmZWYyZjcyZmNlZjQ4N2RiOTI5MGM5NjNmOTM1MGQ4MA==
2
+ SHA1:
3
+ metadata.gz: 90d1836e3153526d67dc7c6f90a8abb8e37de49f
4
+ data.tar.gz: 20aa1133fac2cc3ec4f04e4966ee2fdcca24e309
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YWQzZWQ1NWI1YWY2ODE1NjNkMjYzNWMwYWU5ZjMzYmFjMjk1Y2RmZjkxMjUw
10
- OGM3ZmNhY2YwNmY4OWQ1MjI3ZWU0MjM1MmRjNzhmYzZlZjJmNzNjYTUzYTVl
11
- NWI2NTgwNDY1NjYyYzAzZDQxYzBhZjI3NjNiY2Y0ZTI5Yjk2YzY=
12
- data.tar.gz: !binary |-
13
- OWViY2JjNzNiZDNlZjc5MjMxMzY3Y2EzNGE2YTNhMWI5YzBlNmEyYWQxMjJk
14
- ZGFlOTU3ZjM3NGY4NWM1YTU0YWQ0MmYwNWRlODFlOTg2YzdjNThlNzgwZTJm
15
- NTU2ZWZhYTBkNWQ0ODk3M2FlODIyMDc0MDU5NDA4OWRmODcxMTI=
6
+ metadata.gz: 409b2f28e0f493d3833cc7329509d60247d7d0c2171b036f62d1467ad0392514279650427f132cf807ad44745979f37f5f901ba97b0e443738c1fcb40d06b8ad
7
+ data.tar.gz: ee87074312688a7ca02a52194b05bc32b75092a24d11102d74fa08d2e906e638938e976a04e4d6a1163b337d8e2619339a4e14c272c166161231627d60fd1b92
@@ -272,6 +272,7 @@ module Padrino
272
272
  # Escape tag values to their HTML/XML entities.
273
273
  #
274
274
  def escape_value(string)
275
+ string = string.collect(&:to_s).join(' ') if string.is_a?(Array)
275
276
  string.to_s.gsub(ESCAPE_REGEXP, ESCAPE_VALUES)
276
277
  end
277
278
 
@@ -42,6 +42,16 @@ describe "TagHelpers" do
42
42
  actual_html = tag(:br, :class => 'Example <foo> & "bar"')
43
43
  assert_equal "<br class=\"Example &lt;foo&gt; &amp; &quot;bar&quot;\" />", actual_html
44
44
  end
45
+
46
+ it 'should allow array as attributes' do
47
+ actual_html = tag(:p, :class => [:foo, :bar])
48
+ assert_html_has_tag(actual_html, 'p.foo.bar')
49
+ end
50
+
51
+ it 'should allow array as nested attributes' do
52
+ actual_html = tag(:p, :data => { :foo => [:bar, :baz] })
53
+ assert_html_has_tag(actual_html, 'p', :'data-foo' => 'bar baz')
54
+ end
45
55
  end
46
56
 
47
57
  describe 'for #content_tag method' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-05-16 00:00:00.000000000 Z
14
+ date: 2018-01-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-support
@@ -19,62 +19,54 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.1.1
22
+ version: 0.14.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.1.1
29
+ version: 0.14.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: tilt
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ! '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: !binary |-
37
- MS40LjE=
38
- - - <
36
+ version: 1.4.1
37
+ - - "<"
39
38
  - !ruby/object:Gem::Version
40
- version: !binary |-
41
- Mw==
39
+ version: '3'
42
40
  type: :runtime
43
41
  prerelease: false
44
42
  version_requirements: !ruby/object:Gem::Requirement
45
43
  requirements:
46
- - - ! '>='
44
+ - - ">="
47
45
  - !ruby/object:Gem::Version
48
- version: !binary |-
49
- MS40LjE=
50
- - - <
46
+ version: 1.4.1
47
+ - - "<"
51
48
  - !ruby/object:Gem::Version
52
- version: !binary |-
53
- Mw==
49
+ version: '3'
54
50
  - !ruby/object:Gem::Dependency
55
51
  name: i18n
56
52
  requirement: !ruby/object:Gem::Requirement
57
53
  requirements:
58
- - - ~>
54
+ - - "~>"
59
55
  - !ruby/object:Gem::Version
60
- version: !binary |-
61
- MC42
62
- - - ! '>='
56
+ version: '0.6'
57
+ - - ">="
63
58
  - !ruby/object:Gem::Version
64
- version: !binary |-
65
- MC42Ljc=
59
+ version: 0.6.7
66
60
  type: :runtime
67
61
  prerelease: false
68
62
  version_requirements: !ruby/object:Gem::Requirement
69
63
  requirements:
70
- - - ~>
64
+ - - "~>"
71
65
  - !ruby/object:Gem::Version
72
- version: !binary |-
73
- MC42
74
- - - ! '>='
66
+ version: '0.6'
67
+ - - ">="
75
68
  - !ruby/object:Gem::Version
76
- version: !binary |-
77
- MC42Ljc=
69
+ version: 0.6.7
78
70
  description: Tag helpers, asset helpers, form helpers, form builders and many more
79
71
  helpers for padrino
80
72
  email: padrinorb@gmail.com
@@ -83,9 +75,9 @@ extensions: []
83
75
  extra_rdoc_files:
84
76
  - README.rdoc
85
77
  files:
86
- - .document
87
- - .gitignore
88
- - .yardopts
78
+ - ".document"
79
+ - ".gitignore"
80
+ - ".yardopts"
89
81
  - LICENSE.txt
90
82
  - README.rdoc
91
83
  - Rakefile
@@ -245,22 +237,22 @@ licenses:
245
237
  metadata: {}
246
238
  post_install_message:
247
239
  rdoc_options:
248
- - --charset=UTF-8
240
+ - "--charset=UTF-8"
249
241
  require_paths:
250
242
  - lib
251
243
  required_ruby_version: !ruby/object:Gem::Requirement
252
244
  requirements:
253
- - - ! '>='
245
+ - - ">="
254
246
  - !ruby/object:Gem::Version
255
247
  version: '0'
256
248
  required_rubygems_version: !ruby/object:Gem::Requirement
257
249
  requirements:
258
- - - ! '>='
250
+ - - ">="
259
251
  - !ruby/object:Gem::Version
260
252
  version: 1.3.6
261
253
  requirements: []
262
254
  rubyforge_project: padrino-helpers
263
- rubygems_version: 2.4.3
255
+ rubygems_version: 2.6.12
264
256
  signing_key:
265
257
  specification_version: 4
266
258
  summary: Helpers for padrino