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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-geo-pattern.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a70b8b1fdf70a51eb239da2a4ccd6e4c9f8e9824
4
- data.tar.gz: 6e851c7a53a09abe62ed81a2e2cdf4b67e9e8b29
3
+ metadata.gz: e8b10b520ecdbdee05e8e9385f540425626f67ea
4
+ data.tar.gz: 7a3995940d1bcd1acca163b14c8956ca69e1d7ad
5
5
  SHA512:
6
- metadata.gz: 5866a38c05a4d5c9981079a7a208eb44260046c9b4f17a204cd4a6d18bad873a131750c7d925d7a324784f3b59505d418ac0490c3d9d5c17d2c76455d2ae9d39
7
- data.tar.gz: 66c7c92bd0639fca3d17fd627d882a5278e482554b7182b50928eea848b938ca9ebed3f13668595bc1863509d648123a5d5718dadb4c1edee78215548937c9fd
6
+ metadata.gz: db00f87a3b540e0800a39b988535f4685ede974de3f6eedfc6039bb7cb5e6b0df986268d6b1e684a9d9f218ecdf9043d9176320268264e93488fcdb62691c1f0
7
+ data.tar.gz: 76694ba27efc67853804d6a03b0c376fbd559e3d373305bdb7b83993f4a2ffe5c41f5865e49036d67d1509b84f7d71f4bdc233d30f1fa4db085ab34a8ff5de3a
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-geo-pattern
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian