filepicker-rails 2.0.0 → 2.1.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
  SHA1:
3
- metadata.gz: 3b84369b54427063911d87d865e6e982912b6536
4
- data.tar.gz: 1735e9671044f54eaf076b358c5397b41a14e4be
3
+ metadata.gz: 4b4267d6de72fd7e7d3a88bc2d1f9684288d364a
4
+ data.tar.gz: 6d0314fa563f022126ec2eadc818695d30d9d173
5
5
  SHA512:
6
- metadata.gz: b18582c1c14ba2cbb2f4674d9ca26e12b65f29fe432d743790f486875265a5a6cdcd6e8744de26f82e28f896e874a4f1486ae8972d1dbae48d8deb5c7595b01e
7
- data.tar.gz: f199fd9c056a9c30203ce25f81cfba3687b4b1261949af4af56e7b95e35b5624f5a8063d53bf4658c6f9299f21056503ac8e17d6d08d0a6e412db1d4a14b07e9
6
+ metadata.gz: 30d2deca6ee104f4eabcfceb86aee80ef2b9c73bdfc3297b8fa8e10b558e0bb2654c8828e46aedd8460464bfee4e52f67656200458c08f76476c55fecc6a0a1e
7
+ data.tar.gz: 249e156207830eedf375830185fa3c73ee5f2df3ecc9056cc2269fa0380a50fd02e0673a0bcce57295180454d3aa84c82bd238044fa7e167e2adcbad819efdb5
@@ -138,6 +138,10 @@ module FilepickerRails
138
138
  # from 10 pixels from the left edge and 20 pixels from the top edge of the
139
139
  # image.
140
140
  #
141
+ # - `:crop_first` - Makes sure the image is cropped before any other
142
+ # conversion parameters are executed.
143
+ # The only value for this parameter is `true`.
144
+ #
141
145
  # - `:format` - Specifies what format the image should be converted to, if any.
142
146
  # Possible values are `jpg` and `png`. For `jpg` conversions, you
143
147
  # can additionally specify a quality parameter.
@@ -171,7 +175,8 @@ module FilepickerRails
171
175
  class FilepickerImageUrl
172
176
 
173
177
  CONVERT_OPTIONS = [:w, :h, :fit, :align, :rotate, :crop, :format,
174
- :quality, :watermark, :watersize, :waterposition]
178
+ :quality, :watermark, :watersize, :waterposition,
179
+ :crop_first]
175
180
  VALID_OPTIONS = CONVERT_OPTIONS + [:cache]
176
181
 
177
182
  def initialize(url, options = {})
@@ -1,3 +1,3 @@
1
1
  module FilepickerRails
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Tilford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-15 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 2.2.2
177
+ rubygems_version: 2.4.6
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: Makes integrating filepicker.io with rails 4 easy