tramway-core 1.8 → 1.8.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 +4 -4
- data/app/uploaders/photo_uploader.rb +6 -1
- data/lib/tramway/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 73b78371455853d155814ff2b43ee628d01ae92508a2607fa8cd1a3a02c8802e
|
|
4
|
+
data.tar.gz: 913a54cba50d0767d037b343cb1c36dbf8a8aa071e41a8879525ce854196148f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faceb82d0bb5111852bed97404119e1722a75b98d9bbaec318c39da7744c034b9ca5205bc02dff80128450ec5c5f6d798970cd6cabfd497dcef2d11092ad3308
|
|
7
|
+
data.tar.gz: 96c67ce7e2216b1f17d736a242acef8b80378246d3e89c40e9b78b2e57ae4ee820665138bb2a46d61779de65aefb17f7d163f27df9d3cc95e253a03b206e5631
|
|
@@ -31,6 +31,11 @@ class PhotoUploader < ApplicationUploader
|
|
|
31
31
|
process resize_to_fill: [800, 350, 'North']
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
# FIXME move to tramway-landing uploader
|
|
35
|
+
version :mini do
|
|
36
|
+
process resize_to_limit: [300, nil]
|
|
37
|
+
end
|
|
38
|
+
|
|
34
39
|
attr_reader :width, :height
|
|
35
40
|
|
|
36
41
|
before :cache, :capture_size
|
|
@@ -42,7 +47,7 @@ class PhotoUploader < ApplicationUploader
|
|
|
42
47
|
@width = img[:width]
|
|
43
48
|
@height = img[:height]
|
|
44
49
|
else
|
|
45
|
-
@width, @height = `identify -format "%wx %h" #{file.path}`.split(/x/).map
|
|
50
|
+
@width, @height = `identify -format "%wx %h" #{file.path}`.split(/x/).map(&:to_i)
|
|
46
51
|
end
|
|
47
52
|
end
|
|
48
53
|
end
|
data/lib/tramway/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tramway-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pavel Kalashnikov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-12-
|
|
11
|
+
date: 2018-12-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: reform-rails
|