tramway-core 1.8 → 1.8.1

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: a4d976d3b5f208cf4b16ade1487f3b5c0ac75801564c6c63556ada359153a089
4
- data.tar.gz: 0e6d310a6da90806093147d684db371d7cfa8d685d1abc7aa25bd05b3a39052e
3
+ metadata.gz: 73b78371455853d155814ff2b43ee628d01ae92508a2607fa8cd1a3a02c8802e
4
+ data.tar.gz: 913a54cba50d0767d037b343cb1c36dbf8a8aa071e41a8879525ce854196148f
5
5
  SHA512:
6
- metadata.gz: d61db946870fd1db1221c6115aa13837094f97e066209a8a010a0de719b2d102a1debef3305797708d879d54cd2e8ff1eeddb1b0b2cbf91cc41858d885276b08
7
- data.tar.gz: 7ed35ee1f4820af6977190a8670c63e1bf6481910822cb4ec5f1e9c30b039032b391069b458b5e402d646005f119c98daa565647d4e7346dfe9ff4800d0ea20e
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{|dim| dim.to_i }
50
+ @width, @height = `identify -format "%wx %h" #{file.path}`.split(/x/).map(&:to_i)
46
51
  end
47
52
  end
48
53
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.8'
3
+ VERSION = '1.8.1'
4
4
  end
5
5
  end
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: '1.8'
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-20 00:00:00.000000000 Z
11
+ date: 2018-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reform-rails