objective_elements 1.1.0 → 1.1.1

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
  SHA256:
3
- metadata.gz: cd77403a8910ff13f0b09d7d6d1a1e258b272f728d210f795d87e4df666309d3
4
- data.tar.gz: b937e84cc9071b9f103cc8fa8980b2a3f68ce976c22e6baf79d2cd23c8b16bb6
3
+ metadata.gz: 4e2d1f8b25c51909941b93851d03b35750d6f565a96c79e15c4fc7b335c8569b
4
+ data.tar.gz: cfc29825193a34c5d5fe1c6aa279cd2d5767181639afa1080eba7faad0081091
5
5
  SHA512:
6
- metadata.gz: e14e8f6c77cd762a26180d477ce028df2db91bf03309283dcdeb84c63cd0eb540af60f7c041b6c9d24d2a1647ccff47e5fab2037990f44bc4737a92168cd417c
7
- data.tar.gz: 07712c2317042d016e37dee5b95e1d411c2788ab2b61399ff3adf790c9282ae73d66dbcaf7a87da1ed8116fd554c836257707f93a158b871f6c8d28a3a044405
6
+ metadata.gz: 35c68f9a39dbe6da0ab4ff7681bff27ec230a1633c0d991c7015bd359225cd92b7d6b9ed02a1e5563a9a2675953e715ec55b851c62c59e4a61185ab7188f459a
7
+ data.tar.gz: a6fb2881ad600bde01391a56359a3a35459d957e561cc9b5c0cdd20bfe66b1028c6c636d7711bff67b89a6321a39230b6ed9ce18578898aa26d5449f3c55fbcb
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- elements (0.1.0)
4
+ objective_elements (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,10 +32,10 @@ PLATFORMS
32
32
 
33
33
  DEPENDENCIES
34
34
  bundler (~> 1.16)
35
- elements!
35
+ objective_elements!
36
36
  pry (~> 0.11.3)
37
37
  rake (~> 10.0)
38
38
  rspec (~> 3.8.0)
39
39
 
40
40
  BUNDLED WITH
41
- 1.16.3
41
+ 1.17.2
@@ -105,7 +105,13 @@ class HTMLAttributes
105
105
  new_hash = {}
106
106
  new_string.scan(/ ?([^="]+)="([^"]+)"/).each do |m|
107
107
  # [['class','something something-else'],['id','my-id']]
108
- new_hash[m.shift] = m.pop
108
+ key = m.shift
109
+ val = m.pop
110
+ if new_hash[key]
111
+ new_hash[key] << ' ' + val
112
+ else
113
+ new_hash[key] = val
114
+ end
109
115
  end
110
116
  new_hash
111
117
  end
@@ -1,3 +1,3 @@
1
1
  module ObjectiveElements
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objective_elements
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Buchberger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2019-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.0.2
110
+ rubygems_version: 3.0.3
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Build HTML without interpolating strings.