jekyll-file-protocol 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65c09e1b868b13991dcd019846350db16c970c6c
4
- data.tar.gz: bae5782a49b0ffeec216dd746700811534237f1f
3
+ metadata.gz: 95a178002e4e1ab1f79727fbc2743d182c385120
4
+ data.tar.gz: d8fd545466618bd39235db3950aef9229de90b06
5
5
  SHA512:
6
- metadata.gz: 203a0d597b2d2a3910bb13361db9aa651f3b0196a8ba48d1df274b39373afe0bdf6fdd87c763fde794dd2006c12c530173b9e9f2a6ee16b36cb6ac4ca4c995d3
7
- data.tar.gz: c7f7b35dd2e4aac549e35f54497fc8d43cee401a82775f99fa01d937d47f0eb690cb1e4211ec43d45ffda5a9daef76897aef8221f57749b91372ef64cc3b3b86
6
+ metadata.gz: 45696d7dd4e98a7b018c042046143b3feb4596e54cc3c59a5739e741c191fb6d18f846e3f5487d7d1cdf53652f0ad8e44376ecde308fa60ca5822d5ecd72031c
7
+ data.tar.gz: 1ba54e36fc4c9d4812ab4780ffc1156eff02a40d84251f9e22c1704a9ab56b0011c81ffb66ba82d2fe2baf4351b4e5ec91de2d1c506ebd23e3400de3c2603279
data/README.md CHANGED
@@ -10,7 +10,7 @@ This gem is born to help me creating relative paths for filters of the gem [jeky
10
10
 
11
11
  Add this line to your application's Gemfile:
12
12
 
13
- gem 'jekyll-file-protocol', '~> 0.1.0'
13
+ gem 'jekyll-file-protocol', '~> 0.1.1'
14
14
 
15
15
  And then execute:
16
16
 
@@ -6,8 +6,9 @@ module JekyllFileProtocol
6
6
 
7
7
  module Filters
8
8
 
9
- def relative_path(url)
10
- ::JekyllFileProtocol::RelativePathRenderer.new(@context, url).render
9
+ def relative_path(input)
10
+ require 'pry'; binding.pry
11
+ ::JekyllFileProtocol::RelativePathRenderer.new(@context, input).render
11
12
  end
12
13
 
13
14
  end
@@ -7,7 +7,7 @@ module JekyllFileProtocol
7
7
  @page_url = @context.registers[:page]['url']
8
8
  @path = path.strip
9
9
 
10
- generate_relative_path! if is_absolute_path?
10
+ generate_relative_path!
11
11
  end
12
12
 
13
13
  def render
@@ -25,7 +25,7 @@ module JekyllFileProtocol
25
25
  end
26
26
 
27
27
  def generate_relative_path!
28
- @relative_path = @path
28
+ @relative_path = @path and return unless is_absolute_path?
29
29
  relative = @relative_path
30
30
 
31
31
  if relative.start_with?('//')
@@ -1,3 +1,3 @@
1
1
  module JekyllFileProtocol
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-file-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fire-Dragon-DoL