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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/objective_elements/html_attributes.rb +7 -1
- data/lib/objective_elements/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e2d1f8b25c51909941b93851d03b35750d6f565a96c79e15c4fc7b335c8569b
|
4
|
+
data.tar.gz: cfc29825193a34c5d5fe1c6aa279cd2d5767181639afa1080eba7faad0081091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35c68f9a39dbe6da0ab4ff7681bff27ec230a1633c0d991c7015bd359225cd92b7d6b9ed02a1e5563a9a2675953e715ec55b851c62c59e4a61185ab7188f459a
|
7
|
+
data.tar.gz: a6fb2881ad600bde01391a56359a3a35459d957e561cc9b5c0cdd20bfe66b1028c6c636d7711bff67b89a6321a39230b6ed9ce18578898aa26d5449f3c55fbcb
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
|
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
|
-
|
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.
|
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
|
-
|
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
|
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.
|
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-
|
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.
|
110
|
+
rubygems_version: 3.0.3
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Build HTML without interpolating strings.
|