jekyll_include_plugin 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: 11271262b7a80806c8adab712832cf7f761744e9a8c771f0221a093d8bfbba53
4
- data.tar.gz: 8eb7789ac320b98a785ce2d789f4b41da6407596a14805ff62f8fb145f781201
3
+ metadata.gz: 48c00a3a0b4212b8a0cce6baaeb7456757ba3beace6822c49bc9f73f6dfc99cb
4
+ data.tar.gz: 5c898ce7917cdb6d5625cf2a0f98ff42673a6f3a3e729e122513762da9b50e9c
5
5
  SHA512:
6
- metadata.gz: fe9a08250e743f1d99b7d1f84d3fab503999e38b77d579e80dde17be04e2233047a55aef254e8ac8af4589a158d4fe64495416322ef1644a5b839530b30c9025
7
- data.tar.gz: 6d466011f2f2c69ec1f12af31e7fd68a7037f9ef94f0606608d57e84020d9ec37842205a9df47856a91d3a52a5cc6a73d6183aaf604621c53e916d2d3dc76fb4
6
+ metadata.gz: 4237d7094f118b514590c946e37827a2caf98da9c61b65ab2f299fadb32ec37e3571e460f8e8b6a8068f90ae5bb97e743b1a645258d1e35974f4ea3c87c079d3
7
+ data.tar.gz: 3bf99cf6bb7871453d682ef91774fc862e2b1b3d5652b6c31d3232bed074aa2499f720052d480da9b112739465225e0c13d5158128c16f3e8df438377c2c9845
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll_include_plugin (1.0.3)
4
+ jekyll_include_plugin (1.0.4)
5
5
  jekyll (~> 3.9)
6
6
  liquid (~> 4.0)
7
7
 
@@ -42,7 +42,7 @@ module JekyllIncludePlugin
42
42
  abort("End of the snippet '#{snippet_name}' has not been found.") unless snippet_end_found
43
43
  abort("Snippet '#{snippet_name}' appears to be empty. Fix and retry.") if snippet_content.empty?
44
44
 
45
- first_line_indent = %r!^\s*!.match(line)[0]
45
+ first_line_indent = %r!^\s*!.match(snippet_content)[0]
46
46
  return "#{first_line_indent}...\n#{snippet_content}"
47
47
  end
48
48
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllIncludePlugin
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_include_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Lesikov