jekyll-file-protocol 0.4.1 → 0.4.2

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: 0556055def8a3132be2a980da5e5eca1bd2b82fa
4
- data.tar.gz: e08f69269cf12a3f023ff001cf27e5094c811788
3
+ metadata.gz: bc3a134a3f5cd8d2f52e04635cb7c81600de868c
4
+ data.tar.gz: f9111409d245ed0461eaabae3fc3e8a6813f71a5
5
5
  SHA512:
6
- metadata.gz: 42c3fc214640418af2f91a0c1b665c31e6c1fd104ae41ebe744933e78f8b2d5dcaf55b1abd7bbcfb3fec1529c78c0bdfb2d8472b062c1ef0de7a355c6c7a8bce
7
- data.tar.gz: e411b1a2f5d7b646366318adad202917d4d4e2a5289f42653adc4baf3b20896b3ad1dcb823951da0d5eca30442a626e4fa72b008510e5f60b4bbea8fe206c0c8
6
+ metadata.gz: 80974f35ad25bed82f8643a462c62fe5ee2eac79c6adc995b01ca9e704c0ef179c51ca21488a48517eec0e630d6e832e77a27baa0d7920ac58fb2dbc440525cf
7
+ data.tar.gz: 093ffcacd0f435be23dbaed455a30d8a16f3c8a8b6c0ebec7a88dac865a47b4ea2de4d9ab5fb061f9b9a61fbc3d2190701f9be10f957119c451bebc92351eb6a
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.4.1'
13
+ gem 'jekyll-file-protocol', '~> 0.4.2'
14
14
 
15
15
  And then execute:
16
16
 
@@ -21,7 +21,7 @@ module JekyllFileProtocol
21
21
  tags = nil
22
22
 
23
23
  # Stylesheet
24
- if (tags = node.css('link').to_a).size < 1
24
+ if (tags = node.css('link').to_a).size > 0
25
25
  return tags.map do |tag|
26
26
  tag['href'] = ::JekyllFileProtocol::RelativePathRenderer.new(@context, tag['href']).render
27
27
  tag
@@ -29,7 +29,7 @@ module JekyllFileProtocol
29
29
  end
30
30
 
31
31
  # Javascript
32
- if (tags = node.css('script').to_a).size < 1
32
+ if (tags = node.css('script').to_a).size > 0
33
33
  return tags.map do |tag|
34
34
  tag['src'] = ::JekyllFileProtocol::RelativePathRenderer.new(@context, tag['src']).render
35
35
  tag
@@ -37,7 +37,7 @@ module JekyllFileProtocol
37
37
  end
38
38
 
39
39
  # Image
40
- if (tags = node.css('img').to_a).size < 1
40
+ if (tags = node.css('img').to_a).size > 0
41
41
  return tags.map do |tag|
42
42
  tag['src'] = ::JekyllFileProtocol::RelativePathRenderer.new(@context, tag['src']).render
43
43
  tag
@@ -1,3 +1,3 @@
1
1
  module JekyllFileProtocol
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fire-Dragon-DoL