jekyll-cloudinary_fetcher 0.2.0 → 0.3.0

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: 246f90172e2daf744bd0414018a060ddf0f92c0b
4
- data.tar.gz: 7d456406ff144471dcfc49369b44006236ef0822
3
+ metadata.gz: 3ba6e770f22ae28b6787c7b1b822270d4f96a9a5
4
+ data.tar.gz: 134dbacbb7e72526027de6ad29f081fc7123d916
5
5
  SHA512:
6
- metadata.gz: f5343254af80767e05dc81d381eb456d7a1dedcd51513cd17b0fd3346f81a36ea465f846af5973cb14d8726bf62c2bf630ec5698b008986489f5f4c27f79be48
7
- data.tar.gz: f791922f4b18816867aa4c099f77b328999cb69aa27c4f0a1b56d943fc482bc5ead54cf67f9cb6c6e63740547ad791f9fb9bbec28406c848af58b6d72aa33f85
6
+ metadata.gz: c92ddd26dd67720acdff173ba049f2167f1a554f46368293615cdaf6997fdb5a5068b76ec3a177eec660432a196f79a3ba85bb5aabdd05e1ec43d05f585b7b37
7
+ data.tar.gz: 5619814fe1e5283f33bfabcec61024abb114a5b7cca8798b1bf6d0eef995320a5b9938b5a2f0ffcec41be7de3ec322328141277b40f48bce07bef56f1013de73
data/README.md CHANGED
@@ -23,10 +23,11 @@ And then execute:
23
23
 
24
24
  Add the following to your Jekyll config:
25
25
 
26
- ```YAML
27
- cloudinary_cloud_name: <CLOUDINARY_CLOUD_NAME>
28
- cloudinary_fetch_url: <PUBLIC_URL> # optional, defaults to site.url
29
- ```
26
+ | Name | Default | Description |
27
+ | - | - | - |
28
+ | `cloudinary_cloud_name` | | "Cloud name" assigned in https://cloudinary.com/ |
29
+ | `cloudinary_fetch_url` | `site.url` | Publicly accessible URL |
30
+ | `cloudinary_fetch_skip_transform` | `[]` | Global list of file formats to which [Cloudinary transforms](https://cloudinary.com/documentation/image_transformation_reference) should never be applied |
30
31
 
31
32
  Now you can use the `cloudinary_fetch` tag in any of your Liquid templates to
32
33
  make use of Cloudinary's Fetch feature.
@@ -37,8 +37,10 @@ module Jekyll
37
37
  end
38
38
 
39
39
  asset_url = URI.join(site_url, context[@filepath])
40
+ asset_ext = File.extname(context[@filepath])
41
+ skip_transform = site.config["cloudinary_fetch_skip_transform"] || []
40
42
 
41
- if @transforms.empty?
43
+ if @transforms.empty? or skip_transform.include? asset_ext
42
44
  return "#{cloudinary_url}/#{asset_url}"
43
45
  end
44
46
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module CloudinaryFetcher
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-cloudinary_fetcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedrich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-27 00:00:00.000000000 Z
11
+ date: 2018-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll