paperclip-optimizer 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NGEzODU1MjYxODJhNDM2ZjI0ZjZkY2IyN2E2YTg5ZWM5NDBkYmRmOQ==
5
- data.tar.gz: !binary |-
6
- Y2U0ODFmNWVhYTg4ZmE1OTIwODg5YjhmZTA0OTA1MjU5NDMwYzNjMw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZWUxZjhlNzgyNGViMDQ0MjE4MmM3YjI2NWZiYWYxYjQwY2EzNzYyNjE3NzQy
10
- ZjJiYWEzMjQ4Mzc2Nzc4Y2E1OTQ4ZTI2YWM4MTFkMTc3NWU3YWJlNTM5MDUz
11
- ZmViOWY3Y2UwZTEyODdjYTkwMDY0OTIzZDI1YmJiNzBiMDYxYTI=
12
- data.tar.gz: !binary |-
13
- NTM3N2M3MjY5YTgyZGM2MjBiZjM2ODVmOTZmMjIzNWFmOThkMzhkOGExZDQ0
14
- ODVjMGYxNTkzNmVkNjFkZDAwYTUyNTgzODJmZGM4OGRkYjE0MGY0YmFjMjIw
15
- ZjU4NjQ3ODgzM2FlZWM0MmRkNTk1YTgzZDYxMTUxNGZlYWQ0ODM=
2
+ SHA1:
3
+ metadata.gz: 54a73743a4292fad633610a9ba45e8be974c6f41
4
+ data.tar.gz: ce89fe05d24e156c2f3240f648e49e3df24d2f68
5
+ SHA512:
6
+ metadata.gz: a3c550541bf92277673f740b18415a9a738810b47f134cd87b77976ef8b0b3fb15414255fa3781d3e2a42ed9c7cdf26f4cfb9f4de8762741252fb6ebd7aa8e1b
7
+ data.tar.gz: e1a007f2a0c2eff6749b5dde5c44df269b845bfbc4448482a872b05a77296763b96329629e23b8ed90395655cc77c58c2ca7e7f5fd1dd58536e28c3ab61fb3e7
@@ -1 +1 @@
1
- ruby-1.9.3
1
+ ruby-2.1.1
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - "1.9.3"
4
- - "2.0.0"
4
+ - "2.1.1"
5
5
  before_install:
6
6
  - sudo apt-get install -qq libjpeg-progs optipng
7
7
  script: bundle exec rspec -b spec
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.2
4
+
5
+ * relax Paperclip dependency, allow 3.4.x again since it works fine
6
+
3
7
  ## 1.0.1
4
8
 
5
9
  * do not produce verbose log output by default - [Sunny Ripert](https://github.com/sunny)
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # PaperclipOptimizer
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/paperclip-optimizer.png)](http://badge.fury.io/rb/paperclip-optimizer)
3
4
  [![Build Status](https://travis-ci.org/janfoeh/paperclip-optimizer.png)](https://travis-ci.org/janfoeh/paperclip-optimizer)
4
5
  [![Dependency Status](https://gemnasium.com/janfoeh/paperclip-optimizer.png)](https://gemnasium.com/janfoeh/paperclip-optimizer)
5
6
 
@@ -18,6 +19,20 @@ which supports many external optimization libraries like
18
19
  * [pngcrush](http://pmt.sourceforge.net/pngcrush/)
19
20
  * [pngout](http://www.advsys.net/ken/util/pngout.htm)
20
21
 
22
+ ### What's new
23
+
24
+ **2014-04-02 1.0.2 released**
25
+
26
+ * relax Paperclip dependency, allow 3.4.x again since it works fine
27
+
28
+ Read the [CHANGELOG](CHANGELOG.md) for previous changes.
29
+
30
+ ### Dependencies
31
+
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.
35
+
21
36
  ## Installation
22
37
 
23
38
  Add this line to your application's Gemfile after the Paperclip gem:
@@ -1,3 +1,3 @@
1
1
  module PaperclipOptimizer
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
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.5.2"
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"
@@ -64,18 +64,6 @@ describe Paperclip::PaperclipOptimizer do
64
64
  expect(optimized_file_size).to be < unoptimized_file_size
65
65
  end
66
66
 
67
- it "does not prevent invalid attachments from being saved" do
68
- jpg = get_fixture(:jpg, "invalid")
69
- upload = stubbed_upload_model(
70
- processor_settings: [:paperclip_optimizer]
71
- ).new(:image => jpg)
72
- jpg.close
73
- upload.save
74
-
75
- expect(upload.errors).to be_empty
76
- expect(upload.persisted?).to be_true
77
- end
78
-
79
67
  it "should allow disabled optimization options to be reenabled" do
80
68
  settings = {
81
69
  :gifsicle => {:interlace => true}
metadata CHANGED
@@ -1,117 +1,117 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-optimizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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-01-21 00:00:00.000000000 Z
11
+ date: 2014-04-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
- version: 3.5.2
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
- version: 3.5.2
26
+ version: '3.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: image_optim
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.9'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '10.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.13'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.13'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 3.2.13
90
- - - <
90
+ - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: 4.1.0
93
93
  type: :development
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ! '>='
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: 3.2.13
100
- - - <
100
+ - - "<"
101
101
  - !ruby/object:Gem::Version
102
102
  version: 4.1.0
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: sqlite3
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ~>
107
+ - - "~>"
108
108
  - !ruby/object:Gem::Version
109
109
  version: 1.3.7
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ~>
114
+ - - "~>"
115
115
  - !ruby/object:Gem::Version
116
116
  version: 1.3.7
117
117
  description: paperclip-optimizer is a processor for Paperclip that allows you to optimize
@@ -122,11 +122,11 @@ executables: []
122
122
  extensions: []
123
123
  extra_rdoc_files: []
124
124
  files:
125
- - .gitignore
126
- - .rspec
127
- - .ruby-gemset
128
- - .ruby-version
129
- - .travis.yml
125
+ - ".gitignore"
126
+ - ".rspec"
127
+ - ".ruby-gemset"
128
+ - ".ruby-version"
129
+ - ".travis.yml"
130
130
  - CHANGELOG.md
131
131
  - Gemfile
132
132
  - LICENSE.txt
@@ -153,17 +153,17 @@ require_paths:
153
153
  - lib
154
154
  required_ruby_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
- - - ! '>='
156
+ - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - ! '>='
161
+ - - ">="
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.0.5
166
+ rubygems_version: 2.2.2
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: Minify Paperclip JPEG and PNG attachments