attachment_magick 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +12 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +159 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +98 -0
- data/Rakefile +13 -0
- data/app/controllers/attachment_magick/images_controller.rb +50 -0
- data/app/helpers/attachment_magick/attachment_magick_helper.rb +57 -0
- data/app/models/attachment_magick/active_record_image.rb +18 -0
- data/app/models/attachment_magick/mongoid_image.rb +29 -0
- data/app/views/layouts/attachment_magick/images/_add_image.html.erb +18 -0
- data/app/views/layouts/attachment_magick/images/_video_upload.html.erb +2 -0
- data/attachment_magick.gemspec +25 -0
- data/lib/attachment_magick/configuration/configuration.rb +28 -0
- data/lib/attachment_magick/configuration/custom_style.rb +19 -0
- data/lib/attachment_magick/dragonfly/init.rb +20 -0
- data/lib/attachment_magick/dsl.rb +37 -0
- data/lib/attachment_magick/railtie.rb +10 -0
- data/lib/attachment_magick/test/attachment_magick_test_helper.rb +43 -0
- data/lib/attachment_magick/version.rb +3 -0
- data/lib/attachment_magick.rb +78 -0
- data/lib/generators/attachment_magick/install_generator.rb +15 -0
- data/lib/generators/attachment_magick/migration_generator.rb +17 -0
- data/lib/generators/attachment_magick/templates/attachment_magick_migration.rb +18 -0
- data/lib/generators/attachment_magick/templates/public/javascripts/swfupload/handlers.js +384 -0
- data/lib/generators/attachment_magick/templates/public/javascripts/swfupload/swfupload.js +1132 -0
- data/lib/generators/attachment_magick/templates/public/javascripts/swfupload/swfupload.swf +0 -0
- data/lib/generators/attachment_magick/templates/public/stylesheets/attachment_magick.css +10 -0
- data/lib/generators/attachment_magick/templates/public/stylesheets/swfupload.css +108 -0
- data/test/attachment_magick/controllers/images_controller_test.rb +67 -0
- data/test/attachment_magick/generators/install_generator_test.rb +34 -0
- data/test/attachment_magick/generators/migration_generator_test.rb +16 -0
- data/test/attachment_magick/helpers/attachment_magick_test.rb +56 -0
- data/test/attachment_magick/units/artist_test.rb +11 -0
- data/test/attachment_magick/units/attachment_magick_test.rb +105 -0
- data/test/attachment_magick/units/image_test.rb +26 -0
- data/test/attachment_magick/units/place_test.rb +8 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/controllers/application_controller.rb +4 -0
- data/test/dummy/app/controllers/artists_controller.rb +34 -0
- data/test/dummy/app/controllers/places_controller.rb +34 -0
- data/test/dummy/app/controllers/works_controller.rb +37 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/artists_helper.rb +2 -0
- data/test/dummy/app/helpers/places_helper.rb +2 -0
- data/test/dummy/app/helpers/works_helper.rb +2 -0
- data/test/dummy/app/models/artist.rb +20 -0
- data/test/dummy/app/models/place.rb +8 -0
- data/test/dummy/app/models/work.rb +13 -0
- data/test/dummy/app/views/artists/_form.html.erb +29 -0
- data/test/dummy/app/views/artists/edit.html.erb +1 -0
- data/test/dummy/app/views/artists/index.html.erb +39 -0
- data/test/dummy/app/views/artists/new.html.erb +1 -0
- data/test/dummy/app/views/layouts/_custom_images_list.html.erb +6 -0
- data/test/dummy/app/views/layouts/application.html.erb +27 -0
- data/test/dummy/app/views/places/_form.html.erb +12 -0
- data/test/dummy/app/views/places/edit.html.erb +1 -0
- data/test/dummy/app/views/places/index.html.erb +32 -0
- data/test/dummy/app/views/places/new.html.erb +1 -0
- data/test/dummy/app/views/works/_form.html.erb +18 -0
- data/test/dummy/app/views/works/edit.html.erb +1 -0
- data/test/dummy/app/views/works/index.html.erb +32 -0
- data/test/dummy/app/views/works/new.html.erb +1 -0
- data/test/dummy/config/application.rb +24 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +22 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +26 -0
- data/test/dummy/config/environments/production.rb +49 -0
- data/test/dummy/config/environments/test.rb +35 -0
- data/test/dummy/config/initializers/attachment_magick_setup.rb +12 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/mongoid.yml +18 -0
- data/test/dummy/config/routes.rb +15 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20110310155855_create_places.rb +13 -0
- data/test/dummy/db/migrate/20110310210525_attachment_magick_migration.rb +18 -0
- data/test/dummy/db/schema.rb +33 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/images/little_girl.jpg +0 -0
- data/test/dummy/public/images/swfupload/cancelbutton.gif +0 -0
- data/test/dummy/public/javascripts/application.js +60 -0
- data/test/dummy/public/javascripts/jquery-ui.js +763 -0
- data/test/dummy/public/javascripts/jquery.js +7179 -0
- data/test/dummy/public/javascripts/jquery.min.js +167 -0
- data/test/dummy/public/javascripts/rails.js +137 -0
- data/test/dummy/public/javascripts/swfupload/handlers.js +384 -0
- data/test/dummy/public/javascripts/swfupload/swfupload.js +1132 -0
- data/test/dummy/public/javascripts/swfupload/swfupload.swf +0 -0
- data/test/dummy/public/stylesheets/.gitkeep +0 -0
- data/test/dummy/public/stylesheets/attachment_magick.css +10 -0
- data/test/dummy/public/stylesheets/grid.css +491 -0
- data/test/dummy/public/stylesheets/swfupload.css +108 -0
- data/test/dummy/public/stylesheets/text.css +15 -0
- data/test/dummy/script/rails +6 -0
- data/test/integration/navigation_test.rb +7 -0
- data/test/support/integration_case.rb +5 -0
- data/test/test_helper.rb +48 -0
- metadata +283 -0
metadata
ADDED
@@ -0,0 +1,283 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: attachment_magick
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.0
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- "Marco Ant\xC3\xB4nio Singer"
|
9
|
+
- Carlos Brando
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
|
14
|
+
date: 2011-04-07 00:00:00 -03:00
|
15
|
+
default_executable:
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: dragonfly
|
19
|
+
prerelease: false
|
20
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
none: false
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 0.8.1
|
26
|
+
type: :runtime
|
27
|
+
version_requirements: *id001
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rack-cache
|
30
|
+
prerelease: false
|
31
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
32
|
+
none: false
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: "1.0"
|
37
|
+
type: :runtime
|
38
|
+
version_requirements: *id002
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: jquery-rails
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.2.7
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id003
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: marcosinger-auto_html
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: 1.3.4
|
59
|
+
type: :runtime
|
60
|
+
version_requirements: *id004
|
61
|
+
description:
|
62
|
+
email:
|
63
|
+
- markaum@gmail.com
|
64
|
+
- eduardobrando@gmail.com
|
65
|
+
executables: []
|
66
|
+
|
67
|
+
extensions: []
|
68
|
+
|
69
|
+
extra_rdoc_files: []
|
70
|
+
|
71
|
+
files:
|
72
|
+
- .gitignore
|
73
|
+
- Gemfile
|
74
|
+
- Gemfile.lock
|
75
|
+
- MIT-LICENSE
|
76
|
+
- README.rdoc
|
77
|
+
- Rakefile
|
78
|
+
- app/controllers/attachment_magick/images_controller.rb
|
79
|
+
- app/helpers/attachment_magick/attachment_magick_helper.rb
|
80
|
+
- app/models/attachment_magick/active_record_image.rb
|
81
|
+
- app/models/attachment_magick/mongoid_image.rb
|
82
|
+
- app/views/layouts/attachment_magick/images/_add_image.html.erb
|
83
|
+
- app/views/layouts/attachment_magick/images/_video_upload.html.erb
|
84
|
+
- attachment_magick.gemspec
|
85
|
+
- lib/attachment_magick.rb
|
86
|
+
- lib/attachment_magick/configuration/configuration.rb
|
87
|
+
- lib/attachment_magick/configuration/custom_style.rb
|
88
|
+
- lib/attachment_magick/dragonfly/init.rb
|
89
|
+
- lib/attachment_magick/dsl.rb
|
90
|
+
- lib/attachment_magick/railtie.rb
|
91
|
+
- lib/attachment_magick/test/attachment_magick_test_helper.rb
|
92
|
+
- lib/attachment_magick/version.rb
|
93
|
+
- lib/generators/attachment_magick/install_generator.rb
|
94
|
+
- lib/generators/attachment_magick/migration_generator.rb
|
95
|
+
- lib/generators/attachment_magick/templates/attachment_magick_migration.rb
|
96
|
+
- lib/generators/attachment_magick/templates/public/javascripts/swfupload/handlers.js
|
97
|
+
- lib/generators/attachment_magick/templates/public/javascripts/swfupload/swfupload.js
|
98
|
+
- lib/generators/attachment_magick/templates/public/javascripts/swfupload/swfupload.swf
|
99
|
+
- lib/generators/attachment_magick/templates/public/stylesheets/attachment_magick.css
|
100
|
+
- lib/generators/attachment_magick/templates/public/stylesheets/swfupload.css
|
101
|
+
- test/attachment_magick/controllers/images_controller_test.rb
|
102
|
+
- test/attachment_magick/generators/install_generator_test.rb
|
103
|
+
- test/attachment_magick/generators/migration_generator_test.rb
|
104
|
+
- test/attachment_magick/helpers/attachment_magick_test.rb
|
105
|
+
- test/attachment_magick/units/artist_test.rb
|
106
|
+
- test/attachment_magick/units/attachment_magick_test.rb
|
107
|
+
- test/attachment_magick/units/image_test.rb
|
108
|
+
- test/attachment_magick/units/place_test.rb
|
109
|
+
- test/dummy/Rakefile
|
110
|
+
- test/dummy/app/controllers/application_controller.rb
|
111
|
+
- test/dummy/app/controllers/artists_controller.rb
|
112
|
+
- test/dummy/app/controllers/places_controller.rb
|
113
|
+
- test/dummy/app/controllers/works_controller.rb
|
114
|
+
- test/dummy/app/helpers/application_helper.rb
|
115
|
+
- test/dummy/app/helpers/artists_helper.rb
|
116
|
+
- test/dummy/app/helpers/places_helper.rb
|
117
|
+
- test/dummy/app/helpers/works_helper.rb
|
118
|
+
- test/dummy/app/models/artist.rb
|
119
|
+
- test/dummy/app/models/place.rb
|
120
|
+
- test/dummy/app/models/work.rb
|
121
|
+
- test/dummy/app/views/artists/_form.html.erb
|
122
|
+
- test/dummy/app/views/artists/edit.html.erb
|
123
|
+
- test/dummy/app/views/artists/index.html.erb
|
124
|
+
- test/dummy/app/views/artists/new.html.erb
|
125
|
+
- test/dummy/app/views/layouts/_custom_images_list.html.erb
|
126
|
+
- test/dummy/app/views/layouts/application.html.erb
|
127
|
+
- test/dummy/app/views/places/_form.html.erb
|
128
|
+
- test/dummy/app/views/places/edit.html.erb
|
129
|
+
- test/dummy/app/views/places/index.html.erb
|
130
|
+
- test/dummy/app/views/places/new.html.erb
|
131
|
+
- test/dummy/app/views/works/_form.html.erb
|
132
|
+
- test/dummy/app/views/works/edit.html.erb
|
133
|
+
- test/dummy/app/views/works/index.html.erb
|
134
|
+
- test/dummy/app/views/works/new.html.erb
|
135
|
+
- test/dummy/config.ru
|
136
|
+
- test/dummy/config/application.rb
|
137
|
+
- test/dummy/config/boot.rb
|
138
|
+
- test/dummy/config/database.yml
|
139
|
+
- test/dummy/config/environment.rb
|
140
|
+
- test/dummy/config/environments/development.rb
|
141
|
+
- test/dummy/config/environments/production.rb
|
142
|
+
- test/dummy/config/environments/test.rb
|
143
|
+
- test/dummy/config/initializers/attachment_magick_setup.rb
|
144
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
145
|
+
- test/dummy/config/initializers/inflections.rb
|
146
|
+
- test/dummy/config/initializers/mime_types.rb
|
147
|
+
- test/dummy/config/initializers/secret_token.rb
|
148
|
+
- test/dummy/config/initializers/session_store.rb
|
149
|
+
- test/dummy/config/locales/en.yml
|
150
|
+
- test/dummy/config/mongoid.yml
|
151
|
+
- test/dummy/config/routes.rb
|
152
|
+
- test/dummy/db/migrate/20110310155855_create_places.rb
|
153
|
+
- test/dummy/db/migrate/20110310210525_attachment_magick_migration.rb
|
154
|
+
- test/dummy/db/schema.rb
|
155
|
+
- test/dummy/public/404.html
|
156
|
+
- test/dummy/public/422.html
|
157
|
+
- test/dummy/public/500.html
|
158
|
+
- test/dummy/public/favicon.ico
|
159
|
+
- test/dummy/public/images/little_girl.jpg
|
160
|
+
- test/dummy/public/images/swfupload/cancelbutton.gif
|
161
|
+
- test/dummy/public/javascripts/application.js
|
162
|
+
- test/dummy/public/javascripts/jquery-ui.js
|
163
|
+
- test/dummy/public/javascripts/jquery.js
|
164
|
+
- test/dummy/public/javascripts/jquery.min.js
|
165
|
+
- test/dummy/public/javascripts/rails.js
|
166
|
+
- test/dummy/public/javascripts/swfupload/handlers.js
|
167
|
+
- test/dummy/public/javascripts/swfupload/swfupload.js
|
168
|
+
- test/dummy/public/javascripts/swfupload/swfupload.swf
|
169
|
+
- test/dummy/public/stylesheets/.gitkeep
|
170
|
+
- test/dummy/public/stylesheets/attachment_magick.css
|
171
|
+
- test/dummy/public/stylesheets/grid.css
|
172
|
+
- test/dummy/public/stylesheets/swfupload.css
|
173
|
+
- test/dummy/public/stylesheets/text.css
|
174
|
+
- test/dummy/script/rails
|
175
|
+
- test/integration/navigation_test.rb
|
176
|
+
- test/support/integration_case.rb
|
177
|
+
- test/test_helper.rb
|
178
|
+
has_rdoc: true
|
179
|
+
homepage: http://github.com/marcosinger/attachment_magick
|
180
|
+
licenses: []
|
181
|
+
|
182
|
+
post_install_message:
|
183
|
+
rdoc_options: []
|
184
|
+
|
185
|
+
require_paths:
|
186
|
+
- lib
|
187
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
188
|
+
none: false
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: "0"
|
193
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
|
+
none: false
|
195
|
+
requirements:
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: "0"
|
199
|
+
requirements: []
|
200
|
+
|
201
|
+
rubyforge_project: attachment_magick
|
202
|
+
rubygems_version: 1.6.2
|
203
|
+
signing_key:
|
204
|
+
specification_version: 3
|
205
|
+
summary: little more magick when you upload image files (with SwfUpload and Dragonfly)
|
206
|
+
test_files:
|
207
|
+
- test/attachment_magick/controllers/images_controller_test.rb
|
208
|
+
- test/attachment_magick/generators/install_generator_test.rb
|
209
|
+
- test/attachment_magick/generators/migration_generator_test.rb
|
210
|
+
- test/attachment_magick/helpers/attachment_magick_test.rb
|
211
|
+
- test/attachment_magick/units/artist_test.rb
|
212
|
+
- test/attachment_magick/units/attachment_magick_test.rb
|
213
|
+
- test/attachment_magick/units/image_test.rb
|
214
|
+
- test/attachment_magick/units/place_test.rb
|
215
|
+
- test/dummy/Rakefile
|
216
|
+
- test/dummy/app/controllers/application_controller.rb
|
217
|
+
- test/dummy/app/controllers/artists_controller.rb
|
218
|
+
- test/dummy/app/controllers/places_controller.rb
|
219
|
+
- test/dummy/app/controllers/works_controller.rb
|
220
|
+
- test/dummy/app/helpers/application_helper.rb
|
221
|
+
- test/dummy/app/helpers/artists_helper.rb
|
222
|
+
- test/dummy/app/helpers/places_helper.rb
|
223
|
+
- test/dummy/app/helpers/works_helper.rb
|
224
|
+
- test/dummy/app/models/artist.rb
|
225
|
+
- test/dummy/app/models/place.rb
|
226
|
+
- test/dummy/app/models/work.rb
|
227
|
+
- test/dummy/app/views/artists/_form.html.erb
|
228
|
+
- test/dummy/app/views/artists/edit.html.erb
|
229
|
+
- test/dummy/app/views/artists/index.html.erb
|
230
|
+
- test/dummy/app/views/artists/new.html.erb
|
231
|
+
- test/dummy/app/views/layouts/_custom_images_list.html.erb
|
232
|
+
- test/dummy/app/views/layouts/application.html.erb
|
233
|
+
- test/dummy/app/views/places/_form.html.erb
|
234
|
+
- test/dummy/app/views/places/edit.html.erb
|
235
|
+
- test/dummy/app/views/places/index.html.erb
|
236
|
+
- test/dummy/app/views/places/new.html.erb
|
237
|
+
- test/dummy/app/views/works/_form.html.erb
|
238
|
+
- test/dummy/app/views/works/edit.html.erb
|
239
|
+
- test/dummy/app/views/works/index.html.erb
|
240
|
+
- test/dummy/app/views/works/new.html.erb
|
241
|
+
- test/dummy/config.ru
|
242
|
+
- test/dummy/config/application.rb
|
243
|
+
- test/dummy/config/boot.rb
|
244
|
+
- test/dummy/config/database.yml
|
245
|
+
- test/dummy/config/environment.rb
|
246
|
+
- test/dummy/config/environments/development.rb
|
247
|
+
- test/dummy/config/environments/production.rb
|
248
|
+
- test/dummy/config/environments/test.rb
|
249
|
+
- test/dummy/config/initializers/attachment_magick_setup.rb
|
250
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
251
|
+
- test/dummy/config/initializers/inflections.rb
|
252
|
+
- test/dummy/config/initializers/mime_types.rb
|
253
|
+
- test/dummy/config/initializers/secret_token.rb
|
254
|
+
- test/dummy/config/initializers/session_store.rb
|
255
|
+
- test/dummy/config/locales/en.yml
|
256
|
+
- test/dummy/config/mongoid.yml
|
257
|
+
- test/dummy/config/routes.rb
|
258
|
+
- test/dummy/db/migrate/20110310155855_create_places.rb
|
259
|
+
- test/dummy/db/migrate/20110310210525_attachment_magick_migration.rb
|
260
|
+
- test/dummy/db/schema.rb
|
261
|
+
- test/dummy/public/404.html
|
262
|
+
- test/dummy/public/422.html
|
263
|
+
- test/dummy/public/500.html
|
264
|
+
- test/dummy/public/favicon.ico
|
265
|
+
- test/dummy/public/images/little_girl.jpg
|
266
|
+
- test/dummy/public/images/swfupload/cancelbutton.gif
|
267
|
+
- test/dummy/public/javascripts/application.js
|
268
|
+
- test/dummy/public/javascripts/jquery-ui.js
|
269
|
+
- test/dummy/public/javascripts/jquery.js
|
270
|
+
- test/dummy/public/javascripts/jquery.min.js
|
271
|
+
- test/dummy/public/javascripts/rails.js
|
272
|
+
- test/dummy/public/javascripts/swfupload/handlers.js
|
273
|
+
- test/dummy/public/javascripts/swfupload/swfupload.js
|
274
|
+
- test/dummy/public/javascripts/swfupload/swfupload.swf
|
275
|
+
- test/dummy/public/stylesheets/.gitkeep
|
276
|
+
- test/dummy/public/stylesheets/attachment_magick.css
|
277
|
+
- test/dummy/public/stylesheets/grid.css
|
278
|
+
- test/dummy/public/stylesheets/swfupload.css
|
279
|
+
- test/dummy/public/stylesheets/text.css
|
280
|
+
- test/dummy/script/rails
|
281
|
+
- test/integration/navigation_test.rb
|
282
|
+
- test/support/integration_case.rb
|
283
|
+
- test/test_helper.rb
|