jekyll-image-data 0.3.0 → 0.3.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
  SHA256:
3
- metadata.gz: c91e1e0aee9d8638fa3251bf005331018ac9396d28f74677db957617570ea9c2
4
- data.tar.gz: 951c65eb83606857b7e7998c8621f5cd75736d1553e5d3eb60ff71e3db34c90f
3
+ metadata.gz: 4e9bd3c1eb8d55d63f7062f8947028aeba13f99c7bbad41b52007ab337e00ee1
4
+ data.tar.gz: 2e3b88cb6206e6c1b73c7ab985d519001e5f8a85f167d8f79036941f50942799
5
5
  SHA512:
6
- metadata.gz: b2b9b48e280d977192e026e0590ec35a981fec6ed1e87038614f4984c9debc6412db559dc6f87a52a4d2b90fc004d84498dd6019b2fd8ed5961b97a8646ca901
7
- data.tar.gz: 04d53ed526a13f8477da914c347bd749e62515b48d64f8e93959df701cbf07d411e44d620d3811f350c8b78f43145fc3bddbcbd666ae506fa2200f12894872e2
6
+ metadata.gz: 6a17612a31bb44dc9ca53e112bde714a800f1dc619b2efb09ea2c9d085383248630a4222406a19bbe7d69279b9a64f4ba903e073bdf61fb484160fadddfa0b41
7
+ data.tar.gz: e8d3da01517a82ba096bce3c48d021ef2240f5094d7dbf61f910e1dfbb4458734a2938cbdf14a59895fe854a01099d08ccbe31950bb889146d19b32b1ba4c982
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/rukbotto/jekyll-image-data.svg?branch=master)](https://travis-ci.org/rukbotto/jekyll-image-data)
4
4
 
5
- Image data for Jekyll posts and pages. Crawls generated HTML files in search of image data ("src" and "alt" attributes) and makes it available as a post/page metadata attribute.
5
+ Image data for Jekyll posts and pages. Crawls Markdown content from posts and pages in search of image data ("src" and "alt" attributes) and makes it available as a post/page metadata attribute.
6
6
 
7
7
  ## Installation
8
8
 
@@ -45,7 +45,7 @@ or
45
45
  {% include image.liquid src="http://placehold.it/800x600" alt="Image" %}
46
46
  ```
47
47
 
48
- Note that the included file must be named `image.liquid` or `image.html` and must accept two parameters: `src` and `alt`.
48
+ Note that the included file must be named `image.liquid` or `image.html` and must accept at least two parameters: `src` and `alt`.
49
49
 
50
50
  This plugin gets executed in the `:posts, :pre_render` and `:pages, :post_init` hooks. After execution, `post.data["images"]` or `page.data["images"]` will hold `alt` and `src` data for all images inside post/page:
51
51
 
@@ -2,7 +2,7 @@ module JekyllImageData
2
2
  class Crawler
3
3
  def initialize
4
4
  src = %r{(?:https|http|mailto)?(?:\:/)?/\S+}
5
- alt = %r{[[[:alnum:]][[:space:]]-]+}
5
+ alt = %r{[[[:alnum:]][[:space:]]`~¡!@\#\$%^&*\(\)+=\[\]\{\}\\\|;\:',\.¿\?/_-]+}
6
6
 
7
7
  md_image = %r{!\[(.*)\]\((.*)\)}
8
8
  md_image_ref = %r{!\[(.*)\]\[(.*)\]}
@@ -1,3 +1,3 @@
1
1
  module JekyllImageData
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-image-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Miguel Venegas Mendoza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-20 00:00:00.000000000 Z
11
+ date: 2018-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll