paperclip-optimizer 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54a73743a4292fad633610a9ba45e8be974c6f41
4
- data.tar.gz: ce89fe05d24e156c2f3240f648e49e3df24d2f68
3
+ metadata.gz: 9431f29d41af83de62dcace1d3780eeb0c9a295a
4
+ data.tar.gz: faff5246fab5f3dfff07f17d5a821a3ee64d90d4
5
5
  SHA512:
6
- metadata.gz: a3c550541bf92277673f740b18415a9a738810b47f134cd87b77976ef8b0b3fb15414255fa3781d3e2a42ed9c7cdf26f4cfb9f4de8762741252fb6ebd7aa8e1b
7
- data.tar.gz: e1a007f2a0c2eff6749b5dde5c44df269b845bfbc4448482a872b05a77296763b96329629e23b8ed90395655cc77c58c2ca7e7f5fd1dd58536e28c3ab61fb3e7
6
+ metadata.gz: f6a1909c1c7a59f25a6553d536d7733fdefd8d7b7524ea21d1e65967e5d5fb1ab032ff952f3d2b7f1347566cb3654ef48c2068a018797404d178485ea2d1361f
7
+ data.tar.gz: d73cadc21f5a477abfc6a26268171bd52cd07fd3d48271c3dfb25d72991beb6028a94a4a31729ecbb5303e4477e073373f37b3241791b229034cd9eb63849d8e
data/CHANGELOG.md CHANGED
@@ -1,13 +1,17 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.3
4
+
5
+ * updated tests, compatibility with Paperclip 4 - thanks [Sija](https://github.com/Sija)
6
+
3
7
  ## 1.0.2
4
8
 
5
9
  * relax Paperclip dependency, allow 3.4.x again since it works fine
6
10
 
7
11
  ## 1.0.1
8
12
 
9
- * do not produce verbose log output by default - [Sunny Ripert](https://github.com/sunny)
10
- * declare the dependency on Paperclip only once - [Sunny Ripert](https://github.com/sunny)
13
+ * do not produce verbose log output by default - thanks [Sunny Ripert](https://github.com/sunny)
14
+ * declare the dependency on Paperclip only once - thanks [Sunny Ripert](https://github.com/sunny)
11
15
 
12
16
  ## 1.0.0
13
17
 
data/README.md CHANGED
@@ -21,6 +21,10 @@ which supports many external optimization libraries like
21
21
 
22
22
  ### What's new
23
23
 
24
+ **2014-05-02 1.0.3 released**
25
+
26
+ * updated tests, compatibility with Paperclip 4 - thanks [Sija](https://github.com/Sija)
27
+
24
28
  **2014-04-02 1.0.2 released**
25
29
 
26
30
  * relax Paperclip dependency, allow 3.4.x again since it works fine
@@ -29,9 +33,7 @@ Read the [CHANGELOG](CHANGELOG.md) for previous changes.
29
33
 
30
34
  ### Dependencies
31
35
 
32
- PaperclipOptimizer 1.x is currently compatible with Paperclip 3.4.0 to 3.5.4; version 2 will require Paperclip 4.
33
-
34
- I plan on keeping the 1.x series updated and on feature parity for at least until the end of 2014.
36
+ PaperclipOptimizer is currently compatible with Paperclip 3.4.0 to 4.1.x.
35
37
 
36
38
  ## Installation
37
39
 
@@ -1,3 +1,3 @@
1
1
  module PaperclipOptimizer
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/janfoeh/paperclip-optimizer"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.add_runtime_dependency "paperclip", "~> 3.4"
16
+ spec.add_runtime_dependency "paperclip", ">= 3.4"
17
17
  spec.add_runtime_dependency "image_optim", "~> 0.9"
18
18
 
19
19
  spec.add_development_dependency "bundler", "~> 1.3"
data/spec/spec_helper.rb CHANGED
@@ -30,6 +30,10 @@ class Upload < ActiveRecord::Base
30
30
  :styles => lambda { |attachment| attachment.instance.style_settings },
31
31
  :processors => lambda { |instance| instance.processor_settings }
32
32
 
33
+ if self.respond_to?(:do_not_validate_attachment_file_type)
34
+ do_not_validate_attachment_file_type :image
35
+ end
36
+
33
37
  def style_settings
34
38
  {
35
39
  medium: { geometry: "500x500>" }
@@ -47,4 +51,4 @@ def get_fixture(file_type = :jpg, valid = "valid")
47
51
  fixture_path = File.join(fixtures_dir, file_name)
48
52
 
49
53
  File.open(fixture_path)
50
- end
54
+ end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-optimizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan-Christian Föh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-02 00:00:00.000000000 Z
11
+ date: 2014-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paperclip
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.4'
27
27
  - !ruby/object:Gem::Dependency