alula 0.4.19 → 0.4.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,13 +26,13 @@ module Alula
26
26
  @options = {}
27
27
 
28
28
  # Parse tag options
29
- if m = /^([\"][\S\. ]+[\"]|[\S\.]+)(.*)$/.match(@markup)
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+):["]?((?:.(?!["]?\s+(?:\S+):|[>"]))+.)["]?/) do |name, value|
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) ? "style=\"cc-onconsent-#{@@cookieconsent[name].to_s}\"" : ""}>
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
@@ -2,7 +2,7 @@ module Alula
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- PATCH = 19
5
+ PATCH = 20
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
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.19
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-28 00:00:00.000000000 Z
12
+ date: 2012-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie