alula 0.4.19 → 0.4.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/alula/core_ext/tag.rb +2 -2
- data/lib/alula/plugin.rb +1 -1
- data/lib/alula/version.rb +1 -1
- metadata +2 -2
data/lib/alula/core_ext/tag.rb
CHANGED
@@ -26,13 +26,13 @@ module Alula
|
|
26
26
|
@options = {}
|
27
27
|
|
28
28
|
# Parse tag options
|
29
|
-
if m = /^([\"][\S\. ]
|
29
|
+
if m = /^([\"][\S\. ]+?[\"]|[\S\.]+)(.*)$/.match(@markup)
|
30
30
|
@source = m[1].gsub(/^["]?([^"]+)["]?$/, '\1')
|
31
31
|
@source = "" if @source == '""'
|
32
32
|
@options["source"] = @source unless @source.empty?
|
33
33
|
|
34
34
|
if m[2]
|
35
|
-
m[2].scan(/(\S
|
35
|
+
m[2].scan(/(\S+?):["]?((?:.(?!["]?\s+(?:\S+):|[>"]))+.)["]?/) do |name, value|
|
36
36
|
@options[name] = value.strip
|
37
37
|
end
|
38
38
|
end
|
data/lib/alula/plugin.rb
CHANGED
@@ -39,7 +39,7 @@ module Alula
|
|
39
39
|
end
|
40
40
|
|
41
41
|
script = <<-EOS
|
42
|
-
<script type="#{self.cookieconsent?(name) ? "text/plain" : "text/javascript"}" #{self.cookieconsent?(name) ? "
|
42
|
+
<script type="#{self.cookieconsent?(name) ? "text/plain" : "text/javascript"}" #{self.cookieconsent?(name) ? "class=\"cc-onconsent-#{@@cookieconsent[name].to_s}\"" : ""}>
|
43
43
|
EOS
|
44
44
|
if content_or_block.kind_of?(Proc)
|
45
45
|
scpt = ->(context) { script + content_or_block.call(context) + "</script>" }
|
data/lib/alula/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|