photo-cook 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/Rakefile +3 -0
- data/app/helpers/photo_cook_helper.rb +2 -0
- data/lib/photo-cook/device-pixel-ratio-spy.rb +2 -0
- data/lib/photo-cook/device-pixel-ratio.rb +2 -0
- data/lib/photo-cook/engine.rb +2 -0
- data/lib/photo-cook/events.rb +2 -0
- data/lib/photo-cook/logger.rb +2 -0
- data/lib/photo-cook/optimization/__api__.rb +2 -0
- data/lib/photo-cook/optimization/carrierwave.rb +2 -0
- data/lib/photo-cook/optimization/image-optim.rb +2 -0
- data/lib/photo-cook/optimization/job.rb +2 -0
- data/lib/photo-cook/optimization/logging.rb +2 -0
- data/lib/photo-cook/pixels.rb +3 -1
- data/lib/photo-cook/resize/__api__.rb +2 -0
- data/lib/photo-cook/resize/assemble.rb +2 -0
- data/lib/photo-cook/resize/calculations.rb +2 -0
- data/lib/photo-cook/resize/carrierwave.rb +2 -0
- data/lib/photo-cook/resize/command.rb +3 -1
- data/lib/photo-cook/resize/logging.rb +2 -0
- data/lib/photo-cook/resize/magick-photo.rb +2 -0
- data/lib/photo-cook/resize/middleware.rb +2 -0
- data/lib/photo-cook/resize/mode.rb +2 -0
- data/lib/photo-cook/resize/resizer.rb +2 -0
- data/lib/photo-cook/utils.rb +2 -0
- data/lib/photo-cook/version.rb +3 -1
- data/lib/photo-cook.rb +2 -0
- data/photo-cook.gemspec +2 -0
- data/srcset.rb +2 -0
- data/test/helper.rb +2 -0
- data/test/test-photo-cook-assemble.rb +2 -0
- data/test/test-photo-cook-calculations.rb +2 -0
- data/test/test-photo-cook-resize.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b183067366f3120d9a50a812562e4236106a599
|
4
|
+
data.tar.gz: e89b75704d7b123fb26f69bb53878fb2dd7c7c8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1567b3e12e1c77463023e7cd9f9bdfd4bcdd26dce9781975944a6e8937abf5c2e73cb13cc25e7cf6592fd2316d10f5ed3c25a5deeca0be88e5d6a3ff1a7ec0b1
|
7
|
+
data.tar.gz: f1e65c98bfa38d1e475dbfc926db3badccdad1d4aaca22f98409af2d806143b99a4f27a80a62fa9db34b6292cf0f7452ade8f444f452cea1c9ce91f92993bf23
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/lib/photo-cook/engine.rb
CHANGED
data/lib/photo-cook/events.rb
CHANGED
data/lib/photo-cook/logger.rb
CHANGED
data/lib/photo-cook/pixels.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
+
# encoding: utf-8
|
1
2
|
# frozen_string_literal: true
|
3
|
+
|
2
4
|
module PhotoCook
|
3
5
|
module Resize
|
4
6
|
module Command
|
@@ -10,7 +12,7 @@ module PhotoCook
|
|
10
12
|
# http://dpi.lv/
|
11
13
|
# http://www.canbike.org/CSSpixels/
|
12
14
|
def regex
|
13
|
-
@regex ||= /\A(?<mode>fit|fill)-(?<width
|
15
|
+
@regex ||= /\A(?<mode>fit|fill)-(?<width>[1-9]\d{0,3})x(?<height>[1-9]\d{0,3})\z/
|
14
16
|
end
|
15
17
|
|
16
18
|
# NOTE: This method performs no validation
|
data/lib/photo-cook/utils.rb
CHANGED
data/lib/photo-cook/version.rb
CHANGED
data/lib/photo-cook.rb
CHANGED
data/photo-cook.gemspec
CHANGED
data/srcset.rb
CHANGED
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: photo-cook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Konoplov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|