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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bf7c95ce3ddd3007c02c99d7e85bfe3f141f70d89f0a1dc454063dfa18d9aaa
|
4
|
+
data.tar.gz: 1254d4c47a8129a727cdd61c4fe6a4d4d87fbdd2be0599c593a2bd31bdb6e9e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
49
|
+
YAML.safe_load File.open(gem_root.join('config', 'image_optim.yml')), [Range]
|
50
50
|
end
|
51
51
|
end
|
52
52
|
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.
|
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-
|
11
|
+
date: 2018-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: camaleon_cms
|