mender_paperclip 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +26 -0
- data/README.md +402 -0
- data/Rakefile +86 -0
- data/generators/paperclip/USAGE +5 -0
- data/generators/paperclip/paperclip_generator.rb +27 -0
- data/generators/paperclip/templates/paperclip_migration.rb.erb +19 -0
- data/init.rb +4 -0
- data/lib/generators/paperclip/USAGE +8 -0
- data/lib/generators/paperclip/paperclip_generator.rb +33 -0
- data/lib/generators/paperclip/templates/paperclip_migration.rb.erb +19 -0
- data/lib/paperclip/attachment.rb +454 -0
- data/lib/paperclip/callback_compatibility.rb +61 -0
- data/lib/paperclip/geometry.rb +120 -0
- data/lib/paperclip/interpolations.rb +181 -0
- data/lib/paperclip/iostream.rb +45 -0
- data/lib/paperclip/matchers/have_attached_file_matcher.rb +57 -0
- data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +81 -0
- data/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +54 -0
- data/lib/paperclip/matchers/validate_attachment_size_matcher.rb +95 -0
- data/lib/paperclip/matchers.rb +33 -0
- data/lib/paperclip/missing_attachment_styles.rb +87 -0
- data/lib/paperclip/options.rb +79 -0
- data/lib/paperclip/processor.rb +58 -0
- data/lib/paperclip/railtie.rb +26 -0
- data/lib/paperclip/storage/filesystem.rb +81 -0
- data/lib/paperclip/storage/fog.rb +162 -0
- data/lib/paperclip/storage/s3.rb +262 -0
- data/lib/paperclip/storage.rb +3 -0
- data/lib/paperclip/style.rb +95 -0
- data/lib/paperclip/thumbnail.rb +105 -0
- data/lib/paperclip/upfile.rb +62 -0
- data/lib/paperclip/version.rb +3 -0
- data/lib/paperclip.rb +478 -0
- data/lib/tasks/paperclip.rake +97 -0
- data/rails/init.rb +2 -0
- data/shoulda_macros/paperclip.rb +124 -0
- data/test/attachment_test.rb +1120 -0
- data/test/database.yml +4 -0
- data/test/fixtures/12k.png +0 -0
- data/test/fixtures/50x50.png +0 -0
- data/test/fixtures/5k.png +0 -0
- data/test/fixtures/animated.gif +0 -0
- data/test/fixtures/bad.png +1 -0
- data/test/fixtures/fog.yml +8 -0
- data/test/fixtures/s3.yml +8 -0
- data/test/fixtures/spaced file.png +0 -0
- data/test/fixtures/text.txt +1 -0
- data/test/fixtures/twopage.pdf +0 -0
- data/test/fixtures/uppercase.PNG +0 -0
- data/test/fog_test.rb +191 -0
- data/test/geometry_test.rb +206 -0
- data/test/helper.rb +152 -0
- data/test/integration_test.rb +654 -0
- data/test/interpolations_test.rb +195 -0
- data/test/iostream_test.rb +71 -0
- data/test/matchers/have_attached_file_matcher_test.rb +24 -0
- data/test/matchers/validate_attachment_content_type_matcher_test.rb +87 -0
- data/test/matchers/validate_attachment_presence_matcher_test.rb +26 -0
- data/test/matchers/validate_attachment_size_matcher_test.rb +51 -0
- data/test/options_test.rb +68 -0
- data/test/paperclip_missing_attachment_styles_test.rb +80 -0
- data/test/paperclip_test.rb +329 -0
- data/test/processor_test.rb +10 -0
- data/test/storage/filesystem_test.rb +52 -0
- data/test/storage/s3_live_test.rb +51 -0
- data/test/storage/s3_test.rb +633 -0
- data/test/style_test.rb +180 -0
- data/test/thumbnail_test.rb +383 -0
- data/test/upfile_test.rb +53 -0
- metadata +243 -0
metadata
ADDED
@@ -0,0 +1,243 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mender_paperclip
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.4.3
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jon Yurek
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-17 00:00:00.000000000 +06:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activerecord
|
17
|
+
requirement: &83645350 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.3.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *83645350
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: activesupport
|
28
|
+
requirement: &83644570 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.3.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *83644570
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: cocaine
|
39
|
+
requirement: &83643880 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 0.0.2
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *83643880
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: mime-types
|
50
|
+
requirement: &83643430 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :runtime
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *83643430
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: shoulda
|
61
|
+
requirement: &83642930 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *83642930
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: appraisal
|
72
|
+
requirement: &83642370 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *83642370
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: mocha
|
83
|
+
requirement: &83641680 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *83641680
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: aws-s3
|
94
|
+
requirement: &83607120 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
type: :development
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *83607120
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: sqlite3
|
105
|
+
requirement: &83606440 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *83606440
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: cucumber
|
116
|
+
requirement: &83605830 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *83605830
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: capybara
|
127
|
+
requirement: &83605470 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *83605470
|
136
|
+
description: Easy upload management for ActiveRecord
|
137
|
+
email: jyurek@thoughtbot.com
|
138
|
+
executables: []
|
139
|
+
extensions: []
|
140
|
+
extra_rdoc_files:
|
141
|
+
- README.md
|
142
|
+
files:
|
143
|
+
- README.md
|
144
|
+
- LICENSE
|
145
|
+
- Rakefile
|
146
|
+
- init.rb
|
147
|
+
- lib/generators/paperclip/templates/paperclip_migration.rb.erb
|
148
|
+
- lib/generators/paperclip/paperclip_generator.rb
|
149
|
+
- lib/generators/paperclip/USAGE
|
150
|
+
- lib/tasks/paperclip.rake
|
151
|
+
- lib/paperclip.rb
|
152
|
+
- lib/paperclip/interpolations.rb
|
153
|
+
- lib/paperclip/missing_attachment_styles.rb
|
154
|
+
- lib/paperclip/style.rb
|
155
|
+
- lib/paperclip/upfile.rb
|
156
|
+
- lib/paperclip/matchers.rb
|
157
|
+
- lib/paperclip/iostream.rb
|
158
|
+
- lib/paperclip/callback_compatibility.rb
|
159
|
+
- lib/paperclip/attachment.rb
|
160
|
+
- lib/paperclip/storage.rb
|
161
|
+
- lib/paperclip/version.rb
|
162
|
+
- lib/paperclip/options.rb
|
163
|
+
- lib/paperclip/thumbnail.rb
|
164
|
+
- lib/paperclip/matchers/validate_attachment_size_matcher.rb
|
165
|
+
- lib/paperclip/matchers/have_attached_file_matcher.rb
|
166
|
+
- lib/paperclip/matchers/validate_attachment_content_type_matcher.rb
|
167
|
+
- lib/paperclip/matchers/validate_attachment_presence_matcher.rb
|
168
|
+
- lib/paperclip/processor.rb
|
169
|
+
- lib/paperclip/railtie.rb
|
170
|
+
- lib/paperclip/storage/s3.rb
|
171
|
+
- lib/paperclip/storage/fog.rb
|
172
|
+
- lib/paperclip/storage/filesystem.rb
|
173
|
+
- lib/paperclip/geometry.rb
|
174
|
+
- test/integration_test.rb
|
175
|
+
- test/interpolations_test.rb
|
176
|
+
- test/helper.rb
|
177
|
+
- test/processor_test.rb
|
178
|
+
- test/geometry_test.rb
|
179
|
+
- test/fixtures/12k.png
|
180
|
+
- test/fixtures/text.txt
|
181
|
+
- test/fixtures/s3.yml
|
182
|
+
- test/fixtures/50x50.png
|
183
|
+
- test/fixtures/5k.png
|
184
|
+
- test/fixtures/animated.gif
|
185
|
+
- test/fixtures/bad.png
|
186
|
+
- test/fixtures/uppercase.PNG
|
187
|
+
- test/fixtures/fog.yml
|
188
|
+
- test/fixtures/spaced file.png
|
189
|
+
- test/fixtures/twopage.pdf
|
190
|
+
- test/paperclip_test.rb
|
191
|
+
- test/thumbnail_test.rb
|
192
|
+
- test/paperclip_missing_attachment_styles_test.rb
|
193
|
+
- test/options_test.rb
|
194
|
+
- test/fog_test.rb
|
195
|
+
- test/iostream_test.rb
|
196
|
+
- test/upfile_test.rb
|
197
|
+
- test/attachment_test.rb
|
198
|
+
- test/database.yml
|
199
|
+
- test/matchers/validate_attachment_content_type_matcher_test.rb
|
200
|
+
- test/matchers/have_attached_file_matcher_test.rb
|
201
|
+
- test/matchers/validate_attachment_size_matcher_test.rb
|
202
|
+
- test/matchers/validate_attachment_presence_matcher_test.rb
|
203
|
+
- test/storage/filesystem_test.rb
|
204
|
+
- test/storage/s3_test.rb
|
205
|
+
- test/storage/s3_live_test.rb
|
206
|
+
- test/style_test.rb
|
207
|
+
- rails/init.rb
|
208
|
+
- generators/paperclip/templates/paperclip_migration.rb.erb
|
209
|
+
- generators/paperclip/paperclip_generator.rb
|
210
|
+
- generators/paperclip/USAGE
|
211
|
+
- shoulda_macros/paperclip.rb
|
212
|
+
has_rdoc: true
|
213
|
+
homepage: https://github.com/thoughtbot/paperclip
|
214
|
+
licenses: []
|
215
|
+
post_install_message:
|
216
|
+
rdoc_options:
|
217
|
+
- --line-numbers
|
218
|
+
- --inline-source
|
219
|
+
require_paths:
|
220
|
+
- lib
|
221
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
222
|
+
none: false
|
223
|
+
requirements:
|
224
|
+
- - ! '>='
|
225
|
+
- !ruby/object:Gem::Version
|
226
|
+
version: '0'
|
227
|
+
segments:
|
228
|
+
- 0
|
229
|
+
hash: 948056321
|
230
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
|
+
none: false
|
232
|
+
requirements:
|
233
|
+
- - ! '>='
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
requirements:
|
237
|
+
- ImageMagick
|
238
|
+
rubyforge_project: paperclip
|
239
|
+
rubygems_version: 1.6.2
|
240
|
+
signing_key:
|
241
|
+
specification_version: 3
|
242
|
+
summary: File attachments as attributes for ActiveRecord
|
243
|
+
test_files: []
|