paperclip 4.1.1 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of paperclip might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.gitignore +0 -6
- data/.travis.yml +4 -13
- data/Appraisals +0 -10
- data/CONTRIBUTING.md +10 -5
- data/Gemfile +8 -4
- data/NEWS +1 -1
- data/README.md +51 -10
- data/Rakefile +6 -8
- data/features/basic_integration.feature +5 -5
- data/features/step_definitions/attachment_steps.rb +4 -4
- data/features/step_definitions/rails_steps.rb +4 -4
- data/features/step_definitions/web_steps.rb +2 -2
- data/features/support/env.rb +2 -2
- data/features/support/fixtures/gemfile.txt +1 -1
- data/features/support/rails.rb +2 -1
- data/gemfiles/3.2.gemfile +5 -3
- data/gemfiles/4.0.gemfile +5 -3
- data/gemfiles/4.1.gemfile +5 -3
- data/lib/generators/paperclip/paperclip_generator.rb +0 -2
- data/lib/generators/paperclip/templates/paperclip_migration.rb.erb +1 -1
- data/lib/paperclip.rb +4 -1
- data/lib/paperclip/attachment.rb +90 -29
- data/lib/paperclip/content_type_detector.rb +1 -1
- data/lib/paperclip/geometry_detector_factory.rb +3 -1
- data/lib/paperclip/has_attached_file.rb +2 -1
- data/lib/paperclip/interpolations.rb +8 -0
- data/lib/paperclip/io_adapters/abstract_adapter.rb +1 -1
- data/lib/paperclip/io_adapters/data_uri_adapter.rb +1 -1
- data/lib/paperclip/io_adapters/stringio_adapter.rb +5 -11
- data/lib/paperclip/locales/de.yml +18 -0
- data/lib/paperclip/locales/es.yml +18 -0
- data/lib/paperclip/matchers/have_attached_file_matcher.rb +2 -1
- data/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +2 -1
- data/lib/paperclip/matchers/validate_attachment_size_matcher.rb +2 -1
- data/lib/paperclip/media_type_spoof_detector.rb +10 -2
- data/lib/paperclip/storage/filesystem.rb +1 -1
- data/lib/paperclip/storage/s3.rb +26 -4
- data/lib/paperclip/style.rb +1 -1
- data/lib/paperclip/thumbnail.rb +6 -6
- data/lib/paperclip/validators.rb +5 -3
- data/lib/paperclip/validators/attachment_size_validator.rb +7 -3
- data/lib/paperclip/version.rb +1 -1
- data/lib/tasks/paperclip.rake +1 -2
- data/paperclip.gemspec +5 -3
- data/shoulda_macros/paperclip.rb +0 -1
- data/{test → spec}/database.yml +0 -0
- data/spec/paperclip/attachment_definitions_spec.rb +13 -0
- data/{test/attachment_processing_test.rb → spec/paperclip/attachment_processing_spec.rb} +20 -21
- data/{test/attachment_registry_test.rb → spec/paperclip/attachment_registry_spec.rb} +10 -11
- data/{test/attachment_test.rb → spec/paperclip/attachment_spec.rb} +367 -360
- data/{test/content_type_detector_test.rb → spec/paperclip/content_type_detector_spec.rb} +8 -8
- data/{test/file_command_content_type_detector_test.rb → spec/paperclip/file_command_content_type_detector_spec.rb} +5 -5
- data/spec/paperclip/filename_cleaner_spec.rb +14 -0
- data/spec/paperclip/geometry_detector_spec.rb +39 -0
- data/{test/geometry_parser_test.rb → spec/paperclip/geometry_parser_spec.rb} +27 -27
- data/{test/geometry_test.rb → spec/paperclip/geometry_spec.rb} +49 -51
- data/{test/has_attached_file_test.rb → spec/paperclip/has_attached_file_spec.rb} +18 -27
- data/{test/integration_test.rb → spec/paperclip/integration_spec.rb} +134 -126
- data/{test/interpolations_test.rb → spec/paperclip/interpolations_spec.rb} +54 -40
- data/{test/io_adapters/abstract_adapter_test.rb → spec/paperclip/io_adapters/abstract_adapter_spec.rb} +21 -10
- data/{test/io_adapters/attachment_adapter_test.rb → spec/paperclip/io_adapters/attachment_adapter_spec.rb} +27 -29
- data/{test/io_adapters/data_uri_adapter_test.rb → spec/paperclip/io_adapters/data_uri_adapter_spec.rb} +22 -18
- data/spec/paperclip/io_adapters/empty_string_adapter_spec.rb +17 -0
- data/{test/io_adapters/file_adapter_test.rb → spec/paperclip/io_adapters/file_adapter_spec.rb} +32 -28
- data/{test/io_adapters/http_url_proxy_adapter_test.rb → spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb} +22 -22
- data/spec/paperclip/io_adapters/identity_adapter_spec.rb +8 -0
- data/{test/io_adapters/nil_adapter_test.rb → spec/paperclip/io_adapters/nil_adapter_spec.rb} +7 -7
- data/{test/io_adapters/registry_test.rb → spec/paperclip/io_adapters/registry_spec.rb} +10 -7
- data/{test/io_adapters/stringio_adapter_test.rb → spec/paperclip/io_adapters/stringio_adapter_spec.rb} +16 -17
- data/{test/io_adapters/uploaded_file_adapter_test.rb → spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb} +41 -41
- data/{test/io_adapters/uri_adapter_test.rb → spec/paperclip/io_adapters/uri_adapter_spec.rb} +22 -22
- data/spec/paperclip/matchers/have_attached_file_matcher_spec.rb +19 -0
- data/spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb +99 -0
- data/spec/paperclip/matchers/validate_attachment_presence_matcher_spec.rb +69 -0
- data/spec/paperclip/matchers/validate_attachment_size_matcher_spec.rb +88 -0
- data/{test/media_type_spoof_detector_test.rb → spec/paperclip/media_type_spoof_detector_spec.rb} +13 -8
- data/spec/paperclip/meta_class_spec.rb +30 -0
- data/spec/paperclip/paperclip_missing_attachment_styles_spec.rb +84 -0
- data/{test/paperclip_test.rb → spec/paperclip/paperclip_spec.rb} +47 -47
- data/{test/plural_cache_test.rb → spec/paperclip/plural_cache_spec.rb} +6 -6
- data/{test/processor_test.rb → spec/paperclip/processor_spec.rb} +5 -5
- data/{test/rake_test.rb → spec/paperclip/rake_spec.rb} +15 -15
- data/spec/paperclip/schema_spec.rb +206 -0
- data/{test/storage/filesystem_test.rb → spec/paperclip/storage/filesystem_spec.rb} +18 -18
- data/{test/storage/fog_test.rb → spec/paperclip/storage/fog_spec.rb} +145 -140
- data/spec/paperclip/storage/s3_live_spec.rb +182 -0
- data/spec/paperclip/storage/s3_spec.rb +1475 -0
- data/spec/paperclip/style_spec.rb +255 -0
- data/spec/paperclip/tempfile_factory_spec.rb +29 -0
- data/{test/thumbnail_test.rb → spec/paperclip/thumbnail_spec.rb} +107 -107
- data/{test/url_generator_test.rb → spec/paperclip/url_generator_spec.rb} +55 -56
- data/spec/paperclip/validators/attachment_content_type_validator_spec.rb +322 -0
- data/spec/paperclip/validators/attachment_file_name_validator_spec.rb +160 -0
- data/{test/validators/attachment_presence_validator_test.rb → spec/paperclip/validators/attachment_presence_validator_spec.rb} +19 -19
- data/{test/validators/attachment_size_validator_test.rb → spec/paperclip/validators/attachment_size_validator_spec.rb} +65 -58
- data/{test/validators/media_type_spoof_detection_validator_test.rb → spec/paperclip/validators/media_type_spoof_detection_validator_spec.rb} +8 -8
- data/spec/paperclip/validators_spec.rb +164 -0
- data/spec/spec_helper.rb +40 -0
- data/spec/support/assertions.rb +71 -0
- data/spec/support/fake_model.rb +21 -0
- data/spec/support/fake_rails.rb +12 -0
- data/{test → spec/support}/fixtures/12k.png +0 -0
- data/{test → spec/support}/fixtures/50x50.png +0 -0
- data/{test → spec/support}/fixtures/5k.png +0 -0
- data/{test → spec/support}/fixtures/animated +0 -0
- data/{test → spec/support}/fixtures/animated.gif +0 -0
- data/{test → spec/support}/fixtures/animated.unknown +0 -0
- data/{test → spec/support}/fixtures/bad.png +0 -0
- data/{test → spec/support}/fixtures/empty.html +0 -0
- data/{test → spec/support}/fixtures/fog.yml +0 -0
- data/{test → spec/support}/fixtures/rotated.jpg +0 -0
- data/{test → spec/support}/fixtures/s3.yml +0 -0
- data/spec/support/fixtures/spaced file.jpg +0 -0
- data/test/fixtures/spaced file.png b/data/spec/support/fixtures/spaced → file.png +0 -0
- data/{test → spec/support}/fixtures/text.txt +0 -0
- data/{test → spec/support}/fixtures/twopage.pdf +0 -0
- data/{test → spec/support}/fixtures/uppercase.PNG +0 -0
- data/spec/support/matchers/accept.rb +5 -0
- data/spec/support/matchers/exist.rb +5 -0
- data/{test → spec}/support/mock_attachment.rb +0 -0
- data/{test → spec}/support/mock_interpolator.rb +0 -0
- data/{test → spec}/support/mock_model.rb +0 -0
- data/{test → spec}/support/mock_url_generator_builder.rb +0 -0
- data/spec/support/model_reconstruction.rb +60 -0
- data/spec/support/rails_helpers.rb +7 -0
- data/spec/support/test_data.rb +13 -0
- data/spec/support/version_helper.rb +9 -0
- metadata +256 -210
- data/gemfiles/3.0.gemfile +0 -11
- data/gemfiles/3.1.gemfile +0 -11
- data/test/attachment_definitions_test.rb +0 -13
- data/test/filename_cleaner_test.rb +0 -14
- data/test/generator_test.rb +0 -84
- data/test/geometry_detector_test.rb +0 -24
- data/test/helper.rb +0 -239
- data/test/io_adapters/empty_string_adapter_test.rb +0 -18
- data/test/io_adapters/identity_adapter_test.rb +0 -8
- data/test/matchers/have_attached_file_matcher_test.rb +0 -25
- data/test/matchers/validate_attachment_content_type_matcher_test.rb +0 -111
- data/test/matchers/validate_attachment_presence_matcher_test.rb +0 -70
- data/test/matchers/validate_attachment_size_matcher_test.rb +0 -87
- data/test/meta_class_test.rb +0 -32
- data/test/paperclip_missing_attachment_styles_test.rb +0 -90
- data/test/schema_test.rb +0 -206
- data/test/storage/s3_live_test.rb +0 -179
- data/test/storage/s3_test.rb +0 -1357
- data/test/style_test.rb +0 -251
- data/test/tempfile_factory_test.rb +0 -29
- data/test/validators/attachment_content_type_validator_test.rb +0 -324
- data/test/validators/attachment_file_name_validator_test.rb +0 -162
- data/test/validators_test.rb +0 -101
@@ -0,0 +1,13 @@
|
|
1
|
+
module TestData
|
2
|
+
def attachment(options={})
|
3
|
+
Paperclip::Attachment.new(:avatar, FakeModel.new, options)
|
4
|
+
end
|
5
|
+
|
6
|
+
def stringy_file
|
7
|
+
StringIO.new('.\n')
|
8
|
+
end
|
9
|
+
|
10
|
+
def fixture_file(filename)
|
11
|
+
File.join(File.dirname(__FILE__), 'fixtures', filename)
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,209 +1,209 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Yurek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.0.0
|
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.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 3.0.0
|
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: 3.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cocaine
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.5.3
|
48
48
|
type: :runtime
|
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: 0.5.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mime-types
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
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: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activerecord
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 3.0.0
|
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: 3.0.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: shoulda
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: appraisal
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: mocha
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: aws-sdk
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 1.5.7
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 1.5.7
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: bourne
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: cucumber
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - ~>
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 1.
|
173
|
+
version: 1.3.11
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - ~>
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 1.
|
180
|
+
version: 1.3.11
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: aruba
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: nokogiri
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
@@ -224,100 +224,128 @@ dependencies:
|
|
224
224
|
name: bundler
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- -
|
227
|
+
- - ">="
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: '0'
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- -
|
234
|
+
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: fog
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
|
-
- - ~>
|
241
|
+
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: '1.0'
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
|
-
- - ~>
|
248
|
+
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: '1.0'
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
252
|
name: launchy
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
|
-
- -
|
255
|
+
- - ">="
|
256
256
|
- !ruby/object:Gem::Version
|
257
257
|
version: '0'
|
258
258
|
type: :development
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
|
-
- -
|
262
|
+
- - ">="
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: rake
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
|
-
- -
|
269
|
+
- - ">="
|
270
270
|
- !ruby/object:Gem::Version
|
271
271
|
version: '0'
|
272
272
|
type: :development
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
|
-
- -
|
276
|
+
- - ">="
|
277
277
|
- !ruby/object:Gem::Version
|
278
278
|
version: '0'
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: fakeweb
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
282
282
|
requirements:
|
283
|
-
- -
|
283
|
+
- - ">="
|
284
284
|
- !ruby/object:Gem::Version
|
285
285
|
version: '0'
|
286
286
|
type: :development
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
|
-
- -
|
290
|
+
- - ">="
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: '0'
|
293
293
|
- !ruby/object:Gem::Dependency
|
294
294
|
name: railties
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
|
-
- -
|
297
|
+
- - ">="
|
298
298
|
- !ruby/object:Gem::Version
|
299
299
|
version: '0'
|
300
300
|
type: :development
|
301
301
|
prerelease: false
|
302
302
|
version_requirements: !ruby/object:Gem::Requirement
|
303
303
|
requirements:
|
304
|
-
- -
|
304
|
+
- - ">="
|
305
305
|
- !ruby/object:Gem::Version
|
306
306
|
version: '0'
|
307
307
|
- !ruby/object:Gem::Dependency
|
308
308
|
name: actionmailer
|
309
309
|
requirement: !ruby/object:Gem::Requirement
|
310
310
|
requirements:
|
311
|
-
- -
|
311
|
+
- - ">="
|
312
312
|
- !ruby/object:Gem::Version
|
313
313
|
version: 3.0.0
|
314
314
|
type: :development
|
315
315
|
prerelease: false
|
316
316
|
version_requirements: !ruby/object:Gem::Requirement
|
317
317
|
requirements:
|
318
|
-
- -
|
318
|
+
- - ">="
|
319
319
|
- !ruby/object:Gem::Version
|
320
320
|
version: 3.0.0
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: generator_spec
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ">="
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0'
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ">="
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: timecop
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - ">="
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '0'
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0'
|
321
349
|
description: Easy upload management for ActiveRecord
|
322
350
|
email:
|
323
351
|
- jyurek@thoughtbot.com
|
@@ -325,8 +353,8 @@ executables: []
|
|
325
353
|
extensions: []
|
326
354
|
extra_rdoc_files: []
|
327
355
|
files:
|
328
|
-
- .gitignore
|
329
|
-
- .travis.yml
|
356
|
+
- ".gitignore"
|
357
|
+
- ".travis.yml"
|
330
358
|
- Appraisals
|
331
359
|
- CONTRIBUTING.md
|
332
360
|
- Gemfile
|
@@ -354,8 +382,6 @@ files:
|
|
354
382
|
- features/support/paths.rb
|
355
383
|
- features/support/rails.rb
|
356
384
|
- features/support/selectors.rb
|
357
|
-
- gemfiles/3.0.gemfile
|
358
|
-
- gemfiles/3.1.gemfile
|
359
385
|
- gemfiles/3.2.gemfile
|
360
386
|
- gemfiles/4.0.gemfile
|
361
387
|
- gemfiles/4.1.gemfile
|
@@ -390,7 +416,9 @@ files:
|
|
390
416
|
- lib/paperclip/io_adapters/stringio_adapter.rb
|
391
417
|
- lib/paperclip/io_adapters/uploaded_file_adapter.rb
|
392
418
|
- lib/paperclip/io_adapters/uri_adapter.rb
|
419
|
+
- lib/paperclip/locales/de.yml
|
393
420
|
- lib/paperclip/locales/en.yml
|
421
|
+
- lib/paperclip/locales/es.yml
|
394
422
|
- lib/paperclip/logger.rb
|
395
423
|
- lib/paperclip/matchers.rb
|
396
424
|
- lib/paperclip/matchers/have_attached_file_matcher.rb
|
@@ -422,79 +450,88 @@ files:
|
|
422
450
|
- lib/tasks/paperclip.rake
|
423
451
|
- paperclip.gemspec
|
424
452
|
- shoulda_macros/paperclip.rb
|
425
|
-
-
|
426
|
-
-
|
427
|
-
-
|
428
|
-
-
|
429
|
-
-
|
430
|
-
-
|
431
|
-
-
|
432
|
-
-
|
433
|
-
-
|
434
|
-
-
|
435
|
-
-
|
436
|
-
-
|
437
|
-
-
|
438
|
-
-
|
439
|
-
-
|
440
|
-
-
|
441
|
-
-
|
442
|
-
-
|
443
|
-
-
|
444
|
-
-
|
445
|
-
-
|
446
|
-
-
|
447
|
-
-
|
448
|
-
-
|
449
|
-
-
|
450
|
-
-
|
451
|
-
-
|
452
|
-
-
|
453
|
-
-
|
454
|
-
-
|
455
|
-
-
|
456
|
-
-
|
457
|
-
-
|
458
|
-
-
|
459
|
-
-
|
460
|
-
-
|
461
|
-
-
|
462
|
-
-
|
463
|
-
-
|
464
|
-
-
|
465
|
-
-
|
466
|
-
-
|
467
|
-
-
|
468
|
-
-
|
469
|
-
-
|
470
|
-
-
|
471
|
-
-
|
472
|
-
-
|
473
|
-
-
|
474
|
-
-
|
475
|
-
-
|
476
|
-
-
|
477
|
-
-
|
478
|
-
-
|
479
|
-
-
|
480
|
-
-
|
481
|
-
-
|
482
|
-
-
|
483
|
-
-
|
484
|
-
-
|
485
|
-
-
|
486
|
-
-
|
487
|
-
-
|
488
|
-
-
|
489
|
-
-
|
490
|
-
-
|
491
|
-
-
|
492
|
-
-
|
493
|
-
-
|
494
|
-
-
|
495
|
-
-
|
496
|
-
-
|
497
|
-
-
|
453
|
+
- spec/database.yml
|
454
|
+
- spec/paperclip/attachment_definitions_spec.rb
|
455
|
+
- spec/paperclip/attachment_processing_spec.rb
|
456
|
+
- spec/paperclip/attachment_registry_spec.rb
|
457
|
+
- spec/paperclip/attachment_spec.rb
|
458
|
+
- spec/paperclip/content_type_detector_spec.rb
|
459
|
+
- spec/paperclip/file_command_content_type_detector_spec.rb
|
460
|
+
- spec/paperclip/filename_cleaner_spec.rb
|
461
|
+
- spec/paperclip/geometry_detector_spec.rb
|
462
|
+
- spec/paperclip/geometry_parser_spec.rb
|
463
|
+
- spec/paperclip/geometry_spec.rb
|
464
|
+
- spec/paperclip/has_attached_file_spec.rb
|
465
|
+
- spec/paperclip/integration_spec.rb
|
466
|
+
- spec/paperclip/interpolations_spec.rb
|
467
|
+
- spec/paperclip/io_adapters/abstract_adapter_spec.rb
|
468
|
+
- spec/paperclip/io_adapters/attachment_adapter_spec.rb
|
469
|
+
- spec/paperclip/io_adapters/data_uri_adapter_spec.rb
|
470
|
+
- spec/paperclip/io_adapters/empty_string_adapter_spec.rb
|
471
|
+
- spec/paperclip/io_adapters/file_adapter_spec.rb
|
472
|
+
- spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb
|
473
|
+
- spec/paperclip/io_adapters/identity_adapter_spec.rb
|
474
|
+
- spec/paperclip/io_adapters/nil_adapter_spec.rb
|
475
|
+
- spec/paperclip/io_adapters/registry_spec.rb
|
476
|
+
- spec/paperclip/io_adapters/stringio_adapter_spec.rb
|
477
|
+
- spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb
|
478
|
+
- spec/paperclip/io_adapters/uri_adapter_spec.rb
|
479
|
+
- spec/paperclip/matchers/have_attached_file_matcher_spec.rb
|
480
|
+
- spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb
|
481
|
+
- spec/paperclip/matchers/validate_attachment_presence_matcher_spec.rb
|
482
|
+
- spec/paperclip/matchers/validate_attachment_size_matcher_spec.rb
|
483
|
+
- spec/paperclip/media_type_spoof_detector_spec.rb
|
484
|
+
- spec/paperclip/meta_class_spec.rb
|
485
|
+
- spec/paperclip/paperclip_missing_attachment_styles_spec.rb
|
486
|
+
- spec/paperclip/paperclip_spec.rb
|
487
|
+
- spec/paperclip/plural_cache_spec.rb
|
488
|
+
- spec/paperclip/processor_spec.rb
|
489
|
+
- spec/paperclip/rake_spec.rb
|
490
|
+
- spec/paperclip/schema_spec.rb
|
491
|
+
- spec/paperclip/storage/filesystem_spec.rb
|
492
|
+
- spec/paperclip/storage/fog_spec.rb
|
493
|
+
- spec/paperclip/storage/s3_live_spec.rb
|
494
|
+
- spec/paperclip/storage/s3_spec.rb
|
495
|
+
- spec/paperclip/style_spec.rb
|
496
|
+
- spec/paperclip/tempfile_factory_spec.rb
|
497
|
+
- spec/paperclip/thumbnail_spec.rb
|
498
|
+
- spec/paperclip/url_generator_spec.rb
|
499
|
+
- spec/paperclip/validators/attachment_content_type_validator_spec.rb
|
500
|
+
- spec/paperclip/validators/attachment_file_name_validator_spec.rb
|
501
|
+
- spec/paperclip/validators/attachment_presence_validator_spec.rb
|
502
|
+
- spec/paperclip/validators/attachment_size_validator_spec.rb
|
503
|
+
- spec/paperclip/validators/media_type_spoof_detection_validator_spec.rb
|
504
|
+
- spec/paperclip/validators_spec.rb
|
505
|
+
- spec/spec_helper.rb
|
506
|
+
- spec/support/assertions.rb
|
507
|
+
- spec/support/fake_model.rb
|
508
|
+
- spec/support/fake_rails.rb
|
509
|
+
- spec/support/fixtures/12k.png
|
510
|
+
- spec/support/fixtures/50x50.png
|
511
|
+
- spec/support/fixtures/5k.png
|
512
|
+
- spec/support/fixtures/animated
|
513
|
+
- spec/support/fixtures/animated.gif
|
514
|
+
- spec/support/fixtures/animated.unknown
|
515
|
+
- spec/support/fixtures/bad.png
|
516
|
+
- spec/support/fixtures/empty.html
|
517
|
+
- spec/support/fixtures/fog.yml
|
518
|
+
- spec/support/fixtures/rotated.jpg
|
519
|
+
- spec/support/fixtures/s3.yml
|
520
|
+
- spec/support/fixtures/spaced file.jpg
|
521
|
+
- spec/support/fixtures/spaced file.png
|
522
|
+
- spec/support/fixtures/text.txt
|
523
|
+
- spec/support/fixtures/twopage.pdf
|
524
|
+
- spec/support/fixtures/uppercase.PNG
|
525
|
+
- spec/support/matchers/accept.rb
|
526
|
+
- spec/support/matchers/exist.rb
|
527
|
+
- spec/support/mock_attachment.rb
|
528
|
+
- spec/support/mock_interpolator.rb
|
529
|
+
- spec/support/mock_model.rb
|
530
|
+
- spec/support/mock_url_generator_builder.rb
|
531
|
+
- spec/support/model_reconstruction.rb
|
532
|
+
- spec/support/rails_helpers.rb
|
533
|
+
- spec/support/test_data.rb
|
534
|
+
- spec/support/version_helper.rb
|
498
535
|
homepage: https://github.com/thoughtbot/paperclip
|
499
536
|
licenses:
|
500
537
|
- MIT
|
@@ -505,18 +542,18 @@ require_paths:
|
|
505
542
|
- lib
|
506
543
|
required_ruby_version: !ruby/object:Gem::Requirement
|
507
544
|
requirements:
|
508
|
-
- -
|
545
|
+
- - ">="
|
509
546
|
- !ruby/object:Gem::Version
|
510
547
|
version: 1.9.2
|
511
548
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
512
549
|
requirements:
|
513
|
-
- -
|
550
|
+
- - ">="
|
514
551
|
- !ruby/object:Gem::Version
|
515
552
|
version: '0'
|
516
553
|
requirements:
|
517
554
|
- ImageMagick
|
518
555
|
rubyforge_project: paperclip
|
519
|
-
rubygems_version: 2.
|
556
|
+
rubygems_version: 2.2.2
|
520
557
|
signing_key:
|
521
558
|
specification_version: 4
|
522
559
|
summary: File attachments as attributes for ActiveRecord
|
@@ -538,76 +575,85 @@ test_files:
|
|
538
575
|
- features/support/paths.rb
|
539
576
|
- features/support/rails.rb
|
540
577
|
- features/support/selectors.rb
|
541
|
-
-
|
542
|
-
-
|
543
|
-
-
|
544
|
-
-
|
545
|
-
-
|
546
|
-
-
|
547
|
-
-
|
548
|
-
-
|
549
|
-
-
|
550
|
-
-
|
551
|
-
-
|
552
|
-
-
|
553
|
-
-
|
554
|
-
-
|
555
|
-
-
|
556
|
-
-
|
557
|
-
-
|
558
|
-
-
|
559
|
-
-
|
560
|
-
-
|
561
|
-
-
|
562
|
-
-
|
563
|
-
-
|
564
|
-
-
|
565
|
-
-
|
566
|
-
-
|
567
|
-
-
|
568
|
-
-
|
569
|
-
-
|
570
|
-
-
|
571
|
-
-
|
572
|
-
-
|
573
|
-
-
|
574
|
-
-
|
575
|
-
-
|
576
|
-
-
|
577
|
-
-
|
578
|
-
-
|
579
|
-
-
|
580
|
-
-
|
581
|
-
-
|
582
|
-
-
|
583
|
-
-
|
584
|
-
-
|
585
|
-
-
|
586
|
-
-
|
587
|
-
-
|
588
|
-
-
|
589
|
-
-
|
590
|
-
-
|
591
|
-
-
|
592
|
-
-
|
593
|
-
-
|
594
|
-
-
|
595
|
-
-
|
596
|
-
-
|
597
|
-
-
|
598
|
-
-
|
599
|
-
-
|
600
|
-
-
|
601
|
-
-
|
602
|
-
-
|
603
|
-
-
|
604
|
-
-
|
605
|
-
-
|
606
|
-
-
|
607
|
-
-
|
608
|
-
-
|
609
|
-
-
|
610
|
-
-
|
611
|
-
-
|
612
|
-
-
|
613
|
-
-
|
578
|
+
- spec/database.yml
|
579
|
+
- spec/paperclip/attachment_definitions_spec.rb
|
580
|
+
- spec/paperclip/attachment_processing_spec.rb
|
581
|
+
- spec/paperclip/attachment_registry_spec.rb
|
582
|
+
- spec/paperclip/attachment_spec.rb
|
583
|
+
- spec/paperclip/content_type_detector_spec.rb
|
584
|
+
- spec/paperclip/file_command_content_type_detector_spec.rb
|
585
|
+
- spec/paperclip/filename_cleaner_spec.rb
|
586
|
+
- spec/paperclip/geometry_detector_spec.rb
|
587
|
+
- spec/paperclip/geometry_parser_spec.rb
|
588
|
+
- spec/paperclip/geometry_spec.rb
|
589
|
+
- spec/paperclip/has_attached_file_spec.rb
|
590
|
+
- spec/paperclip/integration_spec.rb
|
591
|
+
- spec/paperclip/interpolations_spec.rb
|
592
|
+
- spec/paperclip/io_adapters/abstract_adapter_spec.rb
|
593
|
+
- spec/paperclip/io_adapters/attachment_adapter_spec.rb
|
594
|
+
- spec/paperclip/io_adapters/data_uri_adapter_spec.rb
|
595
|
+
- spec/paperclip/io_adapters/empty_string_adapter_spec.rb
|
596
|
+
- spec/paperclip/io_adapters/file_adapter_spec.rb
|
597
|
+
- spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb
|
598
|
+
- spec/paperclip/io_adapters/identity_adapter_spec.rb
|
599
|
+
- spec/paperclip/io_adapters/nil_adapter_spec.rb
|
600
|
+
- spec/paperclip/io_adapters/registry_spec.rb
|
601
|
+
- spec/paperclip/io_adapters/stringio_adapter_spec.rb
|
602
|
+
- spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb
|
603
|
+
- spec/paperclip/io_adapters/uri_adapter_spec.rb
|
604
|
+
- spec/paperclip/matchers/have_attached_file_matcher_spec.rb
|
605
|
+
- spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb
|
606
|
+
- spec/paperclip/matchers/validate_attachment_presence_matcher_spec.rb
|
607
|
+
- spec/paperclip/matchers/validate_attachment_size_matcher_spec.rb
|
608
|
+
- spec/paperclip/media_type_spoof_detector_spec.rb
|
609
|
+
- spec/paperclip/meta_class_spec.rb
|
610
|
+
- spec/paperclip/paperclip_missing_attachment_styles_spec.rb
|
611
|
+
- spec/paperclip/paperclip_spec.rb
|
612
|
+
- spec/paperclip/plural_cache_spec.rb
|
613
|
+
- spec/paperclip/processor_spec.rb
|
614
|
+
- spec/paperclip/rake_spec.rb
|
615
|
+
- spec/paperclip/schema_spec.rb
|
616
|
+
- spec/paperclip/storage/filesystem_spec.rb
|
617
|
+
- spec/paperclip/storage/fog_spec.rb
|
618
|
+
- spec/paperclip/storage/s3_live_spec.rb
|
619
|
+
- spec/paperclip/storage/s3_spec.rb
|
620
|
+
- spec/paperclip/style_spec.rb
|
621
|
+
- spec/paperclip/tempfile_factory_spec.rb
|
622
|
+
- spec/paperclip/thumbnail_spec.rb
|
623
|
+
- spec/paperclip/url_generator_spec.rb
|
624
|
+
- spec/paperclip/validators/attachment_content_type_validator_spec.rb
|
625
|
+
- spec/paperclip/validators/attachment_file_name_validator_spec.rb
|
626
|
+
- spec/paperclip/validators/attachment_presence_validator_spec.rb
|
627
|
+
- spec/paperclip/validators/attachment_size_validator_spec.rb
|
628
|
+
- spec/paperclip/validators/media_type_spoof_detection_validator_spec.rb
|
629
|
+
- spec/paperclip/validators_spec.rb
|
630
|
+
- spec/spec_helper.rb
|
631
|
+
- spec/support/assertions.rb
|
632
|
+
- spec/support/fake_model.rb
|
633
|
+
- spec/support/fake_rails.rb
|
634
|
+
- spec/support/fixtures/12k.png
|
635
|
+
- spec/support/fixtures/50x50.png
|
636
|
+
- spec/support/fixtures/5k.png
|
637
|
+
- spec/support/fixtures/animated
|
638
|
+
- spec/support/fixtures/animated.gif
|
639
|
+
- spec/support/fixtures/animated.unknown
|
640
|
+
- spec/support/fixtures/bad.png
|
641
|
+
- spec/support/fixtures/empty.html
|
642
|
+
- spec/support/fixtures/fog.yml
|
643
|
+
- spec/support/fixtures/rotated.jpg
|
644
|
+
- spec/support/fixtures/s3.yml
|
645
|
+
- spec/support/fixtures/spaced file.jpg
|
646
|
+
- spec/support/fixtures/spaced file.png
|
647
|
+
- spec/support/fixtures/text.txt
|
648
|
+
- spec/support/fixtures/twopage.pdf
|
649
|
+
- spec/support/fixtures/uppercase.PNG
|
650
|
+
- spec/support/matchers/accept.rb
|
651
|
+
- spec/support/matchers/exist.rb
|
652
|
+
- spec/support/mock_attachment.rb
|
653
|
+
- spec/support/mock_interpolator.rb
|
654
|
+
- spec/support/mock_model.rb
|
655
|
+
- spec/support/mock_url_generator_builder.rb
|
656
|
+
- spec/support/model_reconstruction.rb
|
657
|
+
- spec/support/rails_helpers.rb
|
658
|
+
- spec/support/test_data.rb
|
659
|
+
- spec/support/version_helper.rb
|