html_attributes 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3a6baf11341a53c2fbaf3b9eeaa4e9014c02c03b
4
+ data.tar.gz: 66e843524f79e704981eb48995fe495225369c57
5
+ SHA512:
6
+ metadata.gz: 09a16ceab9f4ea667cd4d58d1fcac9cbd9418dd5769584c9b451d4d8591a4e8d832d51b00cc5a9c0e0a26e2766c017b92ac926ac64ef228d67684a026a13dd70
7
+ data.tar.gz: 8a8d71e8ecdedabf72d859b8bf625fba773363b39ba895e021a5a0d27790f6fb2158376e10ca969c088bc0af4a8bd29296f512bde63cba234f2ee416a86bd14f
@@ -12,7 +12,7 @@ module HtmlAttributes #:nodoc:
12
12
  end
13
13
 
14
14
  def tag_options_with_html_attributes(options, escape = true) #:nodoc:
15
- options = ::Hash[*options.map { |key, value| [key, value.respond_to?("to_#{key}_attr") ? value.send("to_#{key}_attr") : value] }.flatten] unless options.blank?
15
+ options = ::Hash[options.map { |key, value| [key, value.respond_to?("to_#{key}_attr") ? value.send("to_#{key}_attr") : value] }] unless options.blank?
16
16
  tag_options_without_html_attributes(options, escape)
17
17
  end
18
18
 
@@ -1,5 +1,5 @@
1
1
  module HtmlAttributes
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
 
4
4
  module Version
5
5
  version = VERSION.to_s.split(".").map { |i| i.to_i }
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jan Sebastian Siwy
@@ -11,26 +10,25 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2012-09-12 00:00:00.000000000 Z
13
+ date: 2015-11-26 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rspec
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - ">="
22
20
  - !ruby/object:Gem::Version
23
21
  version: '0'
24
22
  type: :development
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - ">="
30
27
  - !ruby/object:Gem::Version
31
28
  version: '0'
32
- description: ! "html_attributes provide helper methods to convert arrays\n and
33
- hashes to valid html attributes."
29
+ description: |-
30
+ html_attributes provide helper methods to convert arrays
31
+ and hashes to valid html attributes.
34
32
  email:
35
33
  - github@henning-staib.de
36
34
  executables: []
@@ -53,36 +51,30 @@ files:
53
51
  - spec/spec_helper.rb
54
52
  homepage: https://github.com/serevaris/html_attributes
55
53
  licenses: []
54
+ metadata: {}
56
55
  post_install_message:
57
56
  rdoc_options: []
58
57
  require_paths:
59
58
  - lib
60
59
  required_ruby_version: !ruby/object:Gem::Requirement
61
- none: false
62
60
  requirements:
63
- - - ! '>='
61
+ - - ">="
64
62
  - !ruby/object:Gem::Version
65
63
  version: '0'
66
- segments:
67
- - 0
68
- hash: -89085853264897424
69
64
  required_rubygems_version: !ruby/object:Gem::Requirement
70
- none: false
71
65
  requirements:
72
- - - ! '>='
66
+ - - ">="
73
67
  - !ruby/object:Gem::Version
74
68
  version: '0'
75
- segments:
76
- - 0
77
- hash: -89085853264897424
78
69
  requirements: []
79
70
  rubyforge_project:
80
- rubygems_version: 1.8.23
71
+ rubygems_version: 2.2.2
81
72
  signing_key:
82
- specification_version: 3
73
+ specification_version: 4
83
74
  summary: html_attributes provide helper methods to convert arrays and hashes to valid
84
75
  html attributes.
85
76
  test_files:
86
77
  - spec/html_attributes/array_spec.rb
87
78
  - spec/html_attributes/hash_spec.rb
88
79
  - spec/spec_helper.rb
80
+ has_rdoc: