jekyll-geo-pattern 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-geo-pattern.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8b10b520ecdbdee05e8e9385f540425626f67ea
|
4
|
+
data.tar.gz: 7a3995940d1bcd1acca163b14c8956ca69e1d7ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db00f87a3b540e0800a39b988535f4685ede974de3f6eedfc6039bb7cb5e6b0df986268d6b1e684a9d9f218ecdf9043d9176320268264e93488fcdb62691c1f0
|
7
|
+
data.tar.gz: 76694ba27efc67853804d6a03b0c376fbd559e3d373305bdb7b83993f4a2ffe5c41f5865e49036d67d1509b84f7d71f4bdc233d30f1fa4db085ab34a8ff5de3a
|
data/lib/jekyll-geo-pattern.rb
CHANGED
@@ -6,7 +6,7 @@ module Jekyll
|
|
6
6
|
VALID_SYNTAX = /([\w-]+)\s*=\s*(?:"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'|([\w\.-]+))/
|
7
7
|
|
8
8
|
# from a string of options, construct a hash, without using `eval`
|
9
|
-
def self.extract_options( input )
|
9
|
+
def self.extract_options( input, context )
|
10
10
|
opts = {}
|
11
11
|
markup = input
|
12
12
|
|
@@ -56,7 +56,7 @@ module Jekyll
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def render(context)
|
59
|
-
opts = GeoPatterns.extract_options(@text)
|
59
|
+
opts = GeoPatterns.extract_options(@text, context)
|
60
60
|
|
61
61
|
raise ArgumentError, "You must have the :text property passed in" if opts[:text].nil?
|
62
62
|
|
@@ -72,7 +72,7 @@ module Jekyll
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def render(context)
|
75
|
-
opts = GeoPatterns.extract_options(@text)
|
75
|
+
opts = GeoPatterns.extract_options(@text, context)
|
76
76
|
|
77
77
|
raise ArgumentError, "You must have the :text property passed in" if opts[:text].nil?
|
78
78
|
|