jekyll-file-protocol 0.1.1 → 0.1.3

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: 95a178002e4e1ab1f79727fbc2743d182c385120
4
- data.tar.gz: d8fd545466618bd39235db3950aef9229de90b06
3
+ metadata.gz: 64e838dd7ebf0f0d155dfa3f74897ce594ffc317
4
+ data.tar.gz: ff5a034ca706b37c36556a297178a8d2026a1d0b
5
5
  SHA512:
6
- metadata.gz: 45696d7dd4e98a7b018c042046143b3feb4596e54cc3c59a5739e741c191fb6d18f846e3f5487d7d1cdf53652f0ad8e44376ecde308fa60ca5822d5ecd72031c
7
- data.tar.gz: 1ba54e36fc4c9d4812ab4780ffc1156eff02a40d84251f9e22c1704a9ab56b0011c81ffb66ba82d2fe2baf4351b4e5ec91de2d1c506ebd23e3400de3c2603279
6
+ metadata.gz: 9e380eddfcf6db1841c55577250daf729c42c1c5f2b52faafac820af405462cf093702e4141900e0826d87890eef9ffe1264d11d5ec4175578d87b3987098d01
7
+ data.tar.gz: a2b7e38b17dfd3f326d9bec203ccf7bf793e8442f934df2c79a4abce5306e9a027cc73e22cf1f480f8e49008bdf1eb48ef096beb5983997b416c061b1614dfae
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.1'
13
+ gem 'jekyll-file-protocol', '~> 0.1.3'
14
14
 
15
15
  And then execute:
16
16
 
@@ -7,7 +7,7 @@ module JekyllFileProtocol
7
7
  module Filters
8
8
 
9
9
  def relative_path(input)
10
- require 'pry'; binding.pry
10
+ return input if input.nil?
11
11
  ::JekyllFileProtocol::RelativePathRenderer.new(@context, input).render
12
12
  end
13
13
 
@@ -25,8 +25,10 @@ module JekyllFileProtocol
25
25
  end
26
26
 
27
27
  def generate_relative_path!
28
- @relative_path = @path and return unless is_absolute_path?
28
+ @relative_path = @path
29
29
  relative = @relative_path
30
+
31
+ return unless is_absolute_path?
30
32
 
31
33
  if relative.start_with?('//')
32
34
  relative = relative[2..-1]
@@ -1,3 +1,3 @@
1
1
  module JekyllFileProtocol
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fire-Dragon-DoL