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.

Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -6
  3. data/.travis.yml +4 -13
  4. data/Appraisals +0 -10
  5. data/CONTRIBUTING.md +10 -5
  6. data/Gemfile +8 -4
  7. data/NEWS +1 -1
  8. data/README.md +51 -10
  9. data/Rakefile +6 -8
  10. data/features/basic_integration.feature +5 -5
  11. data/features/step_definitions/attachment_steps.rb +4 -4
  12. data/features/step_definitions/rails_steps.rb +4 -4
  13. data/features/step_definitions/web_steps.rb +2 -2
  14. data/features/support/env.rb +2 -2
  15. data/features/support/fixtures/gemfile.txt +1 -1
  16. data/features/support/rails.rb +2 -1
  17. data/gemfiles/3.2.gemfile +5 -3
  18. data/gemfiles/4.0.gemfile +5 -3
  19. data/gemfiles/4.1.gemfile +5 -3
  20. data/lib/generators/paperclip/paperclip_generator.rb +0 -2
  21. data/lib/generators/paperclip/templates/paperclip_migration.rb.erb +1 -1
  22. data/lib/paperclip.rb +4 -1
  23. data/lib/paperclip/attachment.rb +90 -29
  24. data/lib/paperclip/content_type_detector.rb +1 -1
  25. data/lib/paperclip/geometry_detector_factory.rb +3 -1
  26. data/lib/paperclip/has_attached_file.rb +2 -1
  27. data/lib/paperclip/interpolations.rb +8 -0
  28. data/lib/paperclip/io_adapters/abstract_adapter.rb +1 -1
  29. data/lib/paperclip/io_adapters/data_uri_adapter.rb +1 -1
  30. data/lib/paperclip/io_adapters/stringio_adapter.rb +5 -11
  31. data/lib/paperclip/locales/de.yml +18 -0
  32. data/lib/paperclip/locales/es.yml +18 -0
  33. data/lib/paperclip/matchers/have_attached_file_matcher.rb +2 -1
  34. data/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +2 -1
  35. data/lib/paperclip/matchers/validate_attachment_size_matcher.rb +2 -1
  36. data/lib/paperclip/media_type_spoof_detector.rb +10 -2
  37. data/lib/paperclip/storage/filesystem.rb +1 -1
  38. data/lib/paperclip/storage/s3.rb +26 -4
  39. data/lib/paperclip/style.rb +1 -1
  40. data/lib/paperclip/thumbnail.rb +6 -6
  41. data/lib/paperclip/validators.rb +5 -3
  42. data/lib/paperclip/validators/attachment_size_validator.rb +7 -3
  43. data/lib/paperclip/version.rb +1 -1
  44. data/lib/tasks/paperclip.rake +1 -2
  45. data/paperclip.gemspec +5 -3
  46. data/shoulda_macros/paperclip.rb +0 -1
  47. data/{test → spec}/database.yml +0 -0
  48. data/spec/paperclip/attachment_definitions_spec.rb +13 -0
  49. data/{test/attachment_processing_test.rb → spec/paperclip/attachment_processing_spec.rb} +20 -21
  50. data/{test/attachment_registry_test.rb → spec/paperclip/attachment_registry_spec.rb} +10 -11
  51. data/{test/attachment_test.rb → spec/paperclip/attachment_spec.rb} +367 -360
  52. data/{test/content_type_detector_test.rb → spec/paperclip/content_type_detector_spec.rb} +8 -8
  53. data/{test/file_command_content_type_detector_test.rb → spec/paperclip/file_command_content_type_detector_spec.rb} +5 -5
  54. data/spec/paperclip/filename_cleaner_spec.rb +14 -0
  55. data/spec/paperclip/geometry_detector_spec.rb +39 -0
  56. data/{test/geometry_parser_test.rb → spec/paperclip/geometry_parser_spec.rb} +27 -27
  57. data/{test/geometry_test.rb → spec/paperclip/geometry_spec.rb} +49 -51
  58. data/{test/has_attached_file_test.rb → spec/paperclip/has_attached_file_spec.rb} +18 -27
  59. data/{test/integration_test.rb → spec/paperclip/integration_spec.rb} +134 -126
  60. data/{test/interpolations_test.rb → spec/paperclip/interpolations_spec.rb} +54 -40
  61. data/{test/io_adapters/abstract_adapter_test.rb → spec/paperclip/io_adapters/abstract_adapter_spec.rb} +21 -10
  62. data/{test/io_adapters/attachment_adapter_test.rb → spec/paperclip/io_adapters/attachment_adapter_spec.rb} +27 -29
  63. data/{test/io_adapters/data_uri_adapter_test.rb → spec/paperclip/io_adapters/data_uri_adapter_spec.rb} +22 -18
  64. data/spec/paperclip/io_adapters/empty_string_adapter_spec.rb +17 -0
  65. data/{test/io_adapters/file_adapter_test.rb → spec/paperclip/io_adapters/file_adapter_spec.rb} +32 -28
  66. data/{test/io_adapters/http_url_proxy_adapter_test.rb → spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb} +22 -22
  67. data/spec/paperclip/io_adapters/identity_adapter_spec.rb +8 -0
  68. data/{test/io_adapters/nil_adapter_test.rb → spec/paperclip/io_adapters/nil_adapter_spec.rb} +7 -7
  69. data/{test/io_adapters/registry_test.rb → spec/paperclip/io_adapters/registry_spec.rb} +10 -7
  70. data/{test/io_adapters/stringio_adapter_test.rb → spec/paperclip/io_adapters/stringio_adapter_spec.rb} +16 -17
  71. data/{test/io_adapters/uploaded_file_adapter_test.rb → spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb} +41 -41
  72. data/{test/io_adapters/uri_adapter_test.rb → spec/paperclip/io_adapters/uri_adapter_spec.rb} +22 -22
  73. data/spec/paperclip/matchers/have_attached_file_matcher_spec.rb +19 -0
  74. data/spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb +99 -0
  75. data/spec/paperclip/matchers/validate_attachment_presence_matcher_spec.rb +69 -0
  76. data/spec/paperclip/matchers/validate_attachment_size_matcher_spec.rb +88 -0
  77. data/{test/media_type_spoof_detector_test.rb → spec/paperclip/media_type_spoof_detector_spec.rb} +13 -8
  78. data/spec/paperclip/meta_class_spec.rb +30 -0
  79. data/spec/paperclip/paperclip_missing_attachment_styles_spec.rb +84 -0
  80. data/{test/paperclip_test.rb → spec/paperclip/paperclip_spec.rb} +47 -47
  81. data/{test/plural_cache_test.rb → spec/paperclip/plural_cache_spec.rb} +6 -6
  82. data/{test/processor_test.rb → spec/paperclip/processor_spec.rb} +5 -5
  83. data/{test/rake_test.rb → spec/paperclip/rake_spec.rb} +15 -15
  84. data/spec/paperclip/schema_spec.rb +206 -0
  85. data/{test/storage/filesystem_test.rb → spec/paperclip/storage/filesystem_spec.rb} +18 -18
  86. data/{test/storage/fog_test.rb → spec/paperclip/storage/fog_spec.rb} +145 -140
  87. data/spec/paperclip/storage/s3_live_spec.rb +182 -0
  88. data/spec/paperclip/storage/s3_spec.rb +1475 -0
  89. data/spec/paperclip/style_spec.rb +255 -0
  90. data/spec/paperclip/tempfile_factory_spec.rb +29 -0
  91. data/{test/thumbnail_test.rb → spec/paperclip/thumbnail_spec.rb} +107 -107
  92. data/{test/url_generator_test.rb → spec/paperclip/url_generator_spec.rb} +55 -56
  93. data/spec/paperclip/validators/attachment_content_type_validator_spec.rb +322 -0
  94. data/spec/paperclip/validators/attachment_file_name_validator_spec.rb +160 -0
  95. data/{test/validators/attachment_presence_validator_test.rb → spec/paperclip/validators/attachment_presence_validator_spec.rb} +19 -19
  96. data/{test/validators/attachment_size_validator_test.rb → spec/paperclip/validators/attachment_size_validator_spec.rb} +65 -58
  97. data/{test/validators/media_type_spoof_detection_validator_test.rb → spec/paperclip/validators/media_type_spoof_detection_validator_spec.rb} +8 -8
  98. data/spec/paperclip/validators_spec.rb +164 -0
  99. data/spec/spec_helper.rb +40 -0
  100. data/spec/support/assertions.rb +71 -0
  101. data/spec/support/fake_model.rb +21 -0
  102. data/spec/support/fake_rails.rb +12 -0
  103. data/{test → spec/support}/fixtures/12k.png +0 -0
  104. data/{test → spec/support}/fixtures/50x50.png +0 -0
  105. data/{test → spec/support}/fixtures/5k.png +0 -0
  106. data/{test → spec/support}/fixtures/animated +0 -0
  107. data/{test → spec/support}/fixtures/animated.gif +0 -0
  108. data/{test → spec/support}/fixtures/animated.unknown +0 -0
  109. data/{test → spec/support}/fixtures/bad.png +0 -0
  110. data/{test → spec/support}/fixtures/empty.html +0 -0
  111. data/{test → spec/support}/fixtures/fog.yml +0 -0
  112. data/{test → spec/support}/fixtures/rotated.jpg +0 -0
  113. data/{test → spec/support}/fixtures/s3.yml +0 -0
  114. data/spec/support/fixtures/spaced file.jpg +0 -0
  115. data/test/fixtures/spaced file.png b/data/spec/support/fixtures/spaced → file.png +0 -0
  116. data/{test → spec/support}/fixtures/text.txt +0 -0
  117. data/{test → spec/support}/fixtures/twopage.pdf +0 -0
  118. data/{test → spec/support}/fixtures/uppercase.PNG +0 -0
  119. data/spec/support/matchers/accept.rb +5 -0
  120. data/spec/support/matchers/exist.rb +5 -0
  121. data/{test → spec}/support/mock_attachment.rb +0 -0
  122. data/{test → spec}/support/mock_interpolator.rb +0 -0
  123. data/{test → spec}/support/mock_model.rb +0 -0
  124. data/{test → spec}/support/mock_url_generator_builder.rb +0 -0
  125. data/spec/support/model_reconstruction.rb +60 -0
  126. data/spec/support/rails_helpers.rb +7 -0
  127. data/spec/support/test_data.rb +13 -0
  128. data/spec/support/version_helper.rb +9 -0
  129. metadata +256 -210
  130. data/gemfiles/3.0.gemfile +0 -11
  131. data/gemfiles/3.1.gemfile +0 -11
  132. data/test/attachment_definitions_test.rb +0 -13
  133. data/test/filename_cleaner_test.rb +0 -14
  134. data/test/generator_test.rb +0 -84
  135. data/test/geometry_detector_test.rb +0 -24
  136. data/test/helper.rb +0 -239
  137. data/test/io_adapters/empty_string_adapter_test.rb +0 -18
  138. data/test/io_adapters/identity_adapter_test.rb +0 -8
  139. data/test/matchers/have_attached_file_matcher_test.rb +0 -25
  140. data/test/matchers/validate_attachment_content_type_matcher_test.rb +0 -111
  141. data/test/matchers/validate_attachment_presence_matcher_test.rb +0 -70
  142. data/test/matchers/validate_attachment_size_matcher_test.rb +0 -87
  143. data/test/meta_class_test.rb +0 -32
  144. data/test/paperclip_missing_attachment_styles_test.rb +0 -90
  145. data/test/schema_test.rb +0 -206
  146. data/test/storage/s3_live_test.rb +0 -179
  147. data/test/storage/s3_test.rb +0 -1357
  148. data/test/style_test.rb +0 -251
  149. data/test/tempfile_factory_test.rb +0 -29
  150. data/test/validators/attachment_content_type_validator_test.rb +0 -324
  151. data/test/validators/attachment_file_name_validator_test.rb +0 -162
  152. data/test/validators_test.rb +0 -101
@@ -0,0 +1,7 @@
1
+ module RailsHelpers
2
+ module ClassMethods
3
+ def using_protected_attributes?
4
+ ActiveRecord::VERSION::MAJOR < 4
5
+ end
6
+ end
7
+ end
@@ -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
@@ -0,0 +1,9 @@
1
+ module VersionHelper
2
+ def active_support_version
3
+ ActiveSupport::VERSION::STRING
4
+ end
5
+
6
+ def ruby_version
7
+ RUBY_VERSION
8
+ end
9
+ 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.1.1
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-02-21 00:00:00.000000000 Z
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: appraisal
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: mocha
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: aws-sdk
126
+ name: mocha
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 1.5.7
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: 1.5.7
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: bourne
140
+ name: aws-sdk
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
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: '0'
152
+ version: 1.5.7
153
153
  - !ruby/object:Gem::Dependency
154
- name: sqlite3
154
+ name: bourne
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 1.3.4
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: 1.3.4
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.2.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.2.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
- - test/attachment_definitions_test.rb
426
- - test/attachment_processing_test.rb
427
- - test/attachment_registry_test.rb
428
- - test/attachment_test.rb
429
- - test/content_type_detector_test.rb
430
- - test/database.yml
431
- - test/file_command_content_type_detector_test.rb
432
- - test/filename_cleaner_test.rb
433
- - test/fixtures/12k.png
434
- - test/fixtures/50x50.png
435
- - test/fixtures/5k.png
436
- - test/fixtures/animated
437
- - test/fixtures/animated.gif
438
- - test/fixtures/animated.unknown
439
- - test/fixtures/bad.png
440
- - test/fixtures/empty.html
441
- - test/fixtures/fog.yml
442
- - test/fixtures/rotated.jpg
443
- - test/fixtures/s3.yml
444
- - test/fixtures/spaced file.png
445
- - test/fixtures/text.txt
446
- - test/fixtures/twopage.pdf
447
- - test/fixtures/uppercase.PNG
448
- - test/generator_test.rb
449
- - test/geometry_detector_test.rb
450
- - test/geometry_parser_test.rb
451
- - test/geometry_test.rb
452
- - test/has_attached_file_test.rb
453
- - test/helper.rb
454
- - test/integration_test.rb
455
- - test/interpolations_test.rb
456
- - test/io_adapters/abstract_adapter_test.rb
457
- - test/io_adapters/attachment_adapter_test.rb
458
- - test/io_adapters/data_uri_adapter_test.rb
459
- - test/io_adapters/empty_string_adapter_test.rb
460
- - test/io_adapters/file_adapter_test.rb
461
- - test/io_adapters/http_url_proxy_adapter_test.rb
462
- - test/io_adapters/identity_adapter_test.rb
463
- - test/io_adapters/nil_adapter_test.rb
464
- - test/io_adapters/registry_test.rb
465
- - test/io_adapters/stringio_adapter_test.rb
466
- - test/io_adapters/uploaded_file_adapter_test.rb
467
- - test/io_adapters/uri_adapter_test.rb
468
- - test/matchers/have_attached_file_matcher_test.rb
469
- - test/matchers/validate_attachment_content_type_matcher_test.rb
470
- - test/matchers/validate_attachment_presence_matcher_test.rb
471
- - test/matchers/validate_attachment_size_matcher_test.rb
472
- - test/media_type_spoof_detector_test.rb
473
- - test/meta_class_test.rb
474
- - test/paperclip_missing_attachment_styles_test.rb
475
- - test/paperclip_test.rb
476
- - test/plural_cache_test.rb
477
- - test/processor_test.rb
478
- - test/rake_test.rb
479
- - test/schema_test.rb
480
- - test/storage/filesystem_test.rb
481
- - test/storage/fog_test.rb
482
- - test/storage/s3_live_test.rb
483
- - test/storage/s3_test.rb
484
- - test/style_test.rb
485
- - test/support/mock_attachment.rb
486
- - test/support/mock_interpolator.rb
487
- - test/support/mock_model.rb
488
- - test/support/mock_url_generator_builder.rb
489
- - test/tempfile_factory_test.rb
490
- - test/thumbnail_test.rb
491
- - test/url_generator_test.rb
492
- - test/validators/attachment_content_type_validator_test.rb
493
- - test/validators/attachment_file_name_validator_test.rb
494
- - test/validators/attachment_presence_validator_test.rb
495
- - test/validators/attachment_size_validator_test.rb
496
- - test/validators/media_type_spoof_detection_validator_test.rb
497
- - test/validators_test.rb
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.0.14
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
- - test/attachment_definitions_test.rb
542
- - test/attachment_processing_test.rb
543
- - test/attachment_registry_test.rb
544
- - test/attachment_test.rb
545
- - test/content_type_detector_test.rb
546
- - test/database.yml
547
- - test/file_command_content_type_detector_test.rb
548
- - test/filename_cleaner_test.rb
549
- - test/fixtures/12k.png
550
- - test/fixtures/50x50.png
551
- - test/fixtures/5k.png
552
- - test/fixtures/animated
553
- - test/fixtures/animated.gif
554
- - test/fixtures/animated.unknown
555
- - test/fixtures/bad.png
556
- - test/fixtures/empty.html
557
- - test/fixtures/fog.yml
558
- - test/fixtures/rotated.jpg
559
- - test/fixtures/s3.yml
560
- - test/fixtures/spaced file.png
561
- - test/fixtures/text.txt
562
- - test/fixtures/twopage.pdf
563
- - test/fixtures/uppercase.PNG
564
- - test/generator_test.rb
565
- - test/geometry_detector_test.rb
566
- - test/geometry_parser_test.rb
567
- - test/geometry_test.rb
568
- - test/has_attached_file_test.rb
569
- - test/helper.rb
570
- - test/integration_test.rb
571
- - test/interpolations_test.rb
572
- - test/io_adapters/abstract_adapter_test.rb
573
- - test/io_adapters/attachment_adapter_test.rb
574
- - test/io_adapters/data_uri_adapter_test.rb
575
- - test/io_adapters/empty_string_adapter_test.rb
576
- - test/io_adapters/file_adapter_test.rb
577
- - test/io_adapters/http_url_proxy_adapter_test.rb
578
- - test/io_adapters/identity_adapter_test.rb
579
- - test/io_adapters/nil_adapter_test.rb
580
- - test/io_adapters/registry_test.rb
581
- - test/io_adapters/stringio_adapter_test.rb
582
- - test/io_adapters/uploaded_file_adapter_test.rb
583
- - test/io_adapters/uri_adapter_test.rb
584
- - test/matchers/have_attached_file_matcher_test.rb
585
- - test/matchers/validate_attachment_content_type_matcher_test.rb
586
- - test/matchers/validate_attachment_presence_matcher_test.rb
587
- - test/matchers/validate_attachment_size_matcher_test.rb
588
- - test/media_type_spoof_detector_test.rb
589
- - test/meta_class_test.rb
590
- - test/paperclip_missing_attachment_styles_test.rb
591
- - test/paperclip_test.rb
592
- - test/plural_cache_test.rb
593
- - test/processor_test.rb
594
- - test/rake_test.rb
595
- - test/schema_test.rb
596
- - test/storage/filesystem_test.rb
597
- - test/storage/fog_test.rb
598
- - test/storage/s3_live_test.rb
599
- - test/storage/s3_test.rb
600
- - test/style_test.rb
601
- - test/support/mock_attachment.rb
602
- - test/support/mock_interpolator.rb
603
- - test/support/mock_model.rb
604
- - test/support/mock_url_generator_builder.rb
605
- - test/tempfile_factory_test.rb
606
- - test/thumbnail_test.rb
607
- - test/url_generator_test.rb
608
- - test/validators/attachment_content_type_validator_test.rb
609
- - test/validators/attachment_file_name_validator_test.rb
610
- - test/validators/attachment_presence_validator_test.rb
611
- - test/validators/attachment_size_validator_test.rb
612
- - test/validators/media_type_spoof_detection_validator_test.rb
613
- - test/validators_test.rb
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