camaleon_image_optimizer 0.3.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bce400abe10be5ac285e3ac2a46522f3e61e3baa493c3c9bbe04ebb92a9f1bf
4
- data.tar.gz: abdbcce351bb19a11b9482eca084ab23f9e6b81ce8c96d6bba62faac67f8c162
3
+ metadata.gz: 0bf7c95ce3ddd3007c02c99d7e85bfe3f141f70d89f0a1dc454063dfa18d9aaa
4
+ data.tar.gz: 1254d4c47a8129a727cdd61c4fe6a4d4d87fbdd2be0599c593a2bd31bdb6e9e2
5
5
  SHA512:
6
- metadata.gz: df2ca6913877f97fa01d12a918ffb23d88e103f632e77533bba044c87f25cf9b56704207bca718d383c8128fe57e6223455bed32097fc36b104343853704c271
7
- data.tar.gz: b112c50eb7e55f777752960f69d5ac270eaf1ecb14bd3602441cd0dadbb10b7185050064e9122a0663d56d8531affcbf288602b23531c494d54a4bd7b39ae4a1
6
+ metadata.gz: ce2bff1deb6835357a2049ff5c3b2852b94b03e19229176d6f9a505bcd60ae7ff146a08a70829ae1f65e4ebc4fc70b5d5f323b956792a6ca08f3bc828f56b147
7
+ data.tar.gz: 964cc3e96e51e68a661cb989804b5d2923ef37afa09b9374bd0ce0867709a92e72a098f40ce8fba6314fd42ac071d938082641042bf871597e6db930fecdf3db
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
+ ![](https://img.shields.io/badge/ruby-2.3%2B-red.svg)
2
+ ![Gem Version](https://img.shields.io/gem/v/camaleon_image_optimizer.svg?colorB=blue)
1
3
  [![Build Status](https://travis-ci.org/brian-kephart/camaleon_image_optimizer.svg?branch=master)](https://travis-ci.org/brian-kephart/camaleon_image_optimizer)
2
4
 
5
+
6
+
3
7
  # Camaleon Image Optimizer
4
8
  This is a convenient image optimizer plugin for Camaleon CMS. Compressing images improves load times and thus SEO. It uses the [image_optim gem](https://github.com/toy/image_optim) under the hood. This gem contains multiple utilities for compressing GIF, JPEG, PNG, and SVG files. My experience has been that GIFs JPEGs are easily crushable with these tools, but using multiple PNG compressors is extremely slow. Thus, only one of the PNG compressors is enabled here.
5
9
 
@@ -46,7 +46,7 @@ module Plugins::CamaleonImageOptimizer::MainHelper
46
46
  @camaleon_image_optimizer_default_settings ||= begin
47
47
  spec = Gem::Specification.find_by_name 'camaleon_image_optimizer'
48
48
  gem_root = Pathname.new spec.gem_dir
49
- YAML.load_file gem_root.join('config', 'image_optim.yml')
49
+ YAML.safe_load File.open(gem_root.join('config', 'image_optim.yml')), [Range]
50
50
  end
51
51
  end
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module CamaleonImageOptimizer
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camaleon_image_optimizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Kephart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-27 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camaleon_cms