radiant-paperclipped-extension 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/.gitmodules +3 -0
  2. data/HELP_admin.markdown +69 -0
  3. data/LICENSE +21 -0
  4. data/README.md +137 -0
  5. data/Rakefile +110 -0
  6. data/VERSION +1 -0
  7. data/app/controllers/admin/assets_controller.rb +124 -0
  8. data/app/helpers/admin/assets_helper.rb +5 -0
  9. data/app/models/asset.rb +279 -0
  10. data/app/models/asset_page_tags.rb +101 -0
  11. data/app/models/asset_tags.rb +272 -0
  12. data/app/models/old_page_attachment.rb +26 -0
  13. data/app/models/page_attachment.rb +8 -0
  14. data/app/views/admin/assets/_asset.html.haml +19 -0
  15. data/app/views/admin/assets/_asset_table.html.haml +49 -0
  16. data/app/views/admin/assets/_assets_bucket.html.haml +8 -0
  17. data/app/views/admin/assets/_assets_container.html.haml +72 -0
  18. data/app/views/admin/assets/_bucket.html.haml +11 -0
  19. data/app/views/admin/assets/_bucket_asset.html.haml +9 -0
  20. data/app/views/admin/assets/_errors.html.haml +3 -0
  21. data/app/views/admin/assets/_form.html.haml +20 -0
  22. data/app/views/admin/assets/_page_assets.html.haml +12 -0
  23. data/app/views/admin/assets/_search_results.html.haml +17 -0
  24. data/app/views/admin/assets/_show_bucket_link.html.haml +4 -0
  25. data/app/views/admin/assets/_upload_to_page.html.haml +16 -0
  26. data/app/views/admin/assets/edit.html.haml +53 -0
  27. data/app/views/admin/assets/index.html.haml +43 -0
  28. data/app/views/admin/assets/new.html.haml +27 -0
  29. data/app/views/admin/assets/remove.html.haml +21 -0
  30. data/app/views/admin/bucket/_iframe.html.haml +1 -0
  31. data/config/locales/en.yml +60 -0
  32. data/config/locales/nl.yml +60 -0
  33. data/config/locales/pl.yml +60 -0
  34. data/config/routes.rb +20 -0
  35. data/db/migrate/001_create_assets.rb +12 -0
  36. data/db/migrate/002_create_paperclip_attributes.rb +13 -0
  37. data/db/migrate/003_create_user_observer.rb +13 -0
  38. data/db/migrate/004_create_page_attachments.rb +19 -0
  39. data/db/migrate/005_rename_users.rb +13 -0
  40. data/db/migrate/006_add_default_configs.rb +29 -0
  41. data/db/migrate/007_add_default_content_types.rb +29 -0
  42. data/db/migrate/20090316132151_disable_file_types.rb +20 -0
  43. data/lib/assets_admin_ui.rb +38 -0
  44. data/lib/mime_type_ext.rb +7 -0
  45. data/lib/tasks/assets_extension_tasks.rake +123 -0
  46. data/lib/tasks/paperclip_tasks.rake +79 -0
  47. data/lib/url_additions.rb +10 -0
  48. data/paperclipped_extension.rb +56 -0
  49. data/psds/file_type_icons.psd +0 -0
  50. data/psds/file_type_icons_.psd +0 -0
  51. data/public/images/assets/_page_assets.html.haml +26 -0
  52. data/public/images/assets/add-to-bucket.png +0 -0
  53. data/public/images/assets/add.png +0 -0
  54. data/public/images/assets/audio_icon.png +0 -0
  55. data/public/images/assets/audio_thumbnail.png +0 -0
  56. data/public/images/assets/delete.png +0 -0
  57. data/public/images/assets/doc_icon.png +0 -0
  58. data/public/images/assets/doc_thumbnail.png +0 -0
  59. data/public/images/assets/edit.png +0 -0
  60. data/public/images/assets/movie_icon.png +0 -0
  61. data/public/images/assets/movie_thumbnail.png +0 -0
  62. data/public/images/assets/new-asset.png +0 -0
  63. data/public/images/assets/page_edit.png +0 -0
  64. data/public/images/assets/pdf_icon.png +0 -0
  65. data/public/images/assets/pdf_thumbnail.png +0 -0
  66. data/public/images/assets/reorder_assets.png +0 -0
  67. data/public/javascripts/admin/assets.js +173 -0
  68. data/public/stylesheets/admin/assets.css +163 -0
  69. data/spec/controllers/admin/assets_controller_spec.rb +10 -0
  70. data/spec/models/asset_spec.rb +68 -0
  71. data/spec/spec.opts +6 -0
  72. data/spec/spec_helper.rb +27 -0
  73. data/vendor/plugins/acts_as_list/README +23 -0
  74. data/vendor/plugins/acts_as_list/init.rb +3 -0
  75. data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
  76. data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
  77. data/vendor/plugins/paperclip/LICENSE +26 -0
  78. data/vendor/plugins/paperclip/README.rdoc +179 -0
  79. data/vendor/plugins/paperclip/Rakefile +76 -0
  80. data/vendor/plugins/paperclip/cucumber/paperclip_steps.rb +6 -0
  81. data/vendor/plugins/paperclip/generators/paperclip/USAGE +5 -0
  82. data/vendor/plugins/paperclip/generators/paperclip/paperclip_generator.rb +27 -0
  83. data/vendor/plugins/paperclip/generators/paperclip/templates/paperclip_migration.rb.erb +19 -0
  84. data/vendor/plugins/paperclip/init.rb +1 -0
  85. data/vendor/plugins/paperclip/lib/generators/paperclip/USAGE +8 -0
  86. data/vendor/plugins/paperclip/lib/generators/paperclip/paperclip_generator.rb +31 -0
  87. data/vendor/plugins/paperclip/lib/generators/paperclip/templates/paperclip_migration.rb.erb +19 -0
  88. data/vendor/plugins/paperclip/lib/paperclip.rb +397 -0
  89. data/vendor/plugins/paperclip/lib/paperclip/attachment.rb +326 -0
  90. data/vendor/plugins/paperclip/lib/paperclip/callback_compatability.rb +61 -0
  91. data/vendor/plugins/paperclip/lib/paperclip/geometry.rb +115 -0
  92. data/vendor/plugins/paperclip/lib/paperclip/interpolations.rb +108 -0
  93. data/vendor/plugins/paperclip/lib/paperclip/iostream.rb +59 -0
  94. data/vendor/plugins/paperclip/lib/paperclip/matchers.rb +33 -0
  95. data/vendor/plugins/paperclip/lib/paperclip/matchers/have_attached_file_matcher.rb +57 -0
  96. data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +74 -0
  97. data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +54 -0
  98. data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_size_matcher.rb +95 -0
  99. data/vendor/plugins/paperclip/lib/paperclip/processor.rb +49 -0
  100. data/vendor/plugins/paperclip/lib/paperclip/railtie.rb +24 -0
  101. data/vendor/plugins/paperclip/lib/paperclip/storage.rb +247 -0
  102. data/vendor/plugins/paperclip/lib/paperclip/style.rb +90 -0
  103. data/vendor/plugins/paperclip/lib/paperclip/thumbnail.rb +78 -0
  104. data/vendor/plugins/paperclip/lib/paperclip/upfile.rb +52 -0
  105. data/vendor/plugins/paperclip/lib/paperclip/version.rb +3 -0
  106. data/vendor/plugins/paperclip/lib/tasks/paperclip.rake +79 -0
  107. data/vendor/plugins/paperclip/paperclip.gemspec +34 -0
  108. data/vendor/plugins/paperclip/rails/init.rb +2 -0
  109. data/vendor/plugins/paperclip/shoulda_macros/paperclip.rb +119 -0
  110. data/vendor/plugins/paperclip/test/.gitignore +1 -0
  111. data/vendor/plugins/paperclip/test/attachment_test.rb +758 -0
  112. data/vendor/plugins/paperclip/test/database.yml +4 -0
  113. data/vendor/plugins/paperclip/test/fixtures/12k.png +0 -0
  114. data/vendor/plugins/paperclip/test/fixtures/50x50.png +0 -0
  115. data/vendor/plugins/paperclip/test/fixtures/5k.png +0 -0
  116. data/vendor/plugins/paperclip/test/fixtures/bad.png +1 -0
  117. data/vendor/plugins/paperclip/test/fixtures/s3.yml +8 -0
  118. data/vendor/plugins/paperclip/test/fixtures/text.txt +0 -0
  119. data/vendor/plugins/paperclip/test/fixtures/twopage.pdf +0 -0
  120. data/vendor/plugins/paperclip/test/geometry_test.rb +177 -0
  121. data/vendor/plugins/paperclip/test/helper.rb +148 -0
  122. data/vendor/plugins/paperclip/test/integration_test.rb +483 -0
  123. data/vendor/plugins/paperclip/test/interpolations_test.rb +124 -0
  124. data/vendor/plugins/paperclip/test/iostream_test.rb +78 -0
  125. data/vendor/plugins/paperclip/test/matchers/have_attached_file_matcher_test.rb +24 -0
  126. data/vendor/plugins/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb +37 -0
  127. data/vendor/plugins/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb +26 -0
  128. data/vendor/plugins/paperclip/test/matchers/validate_attachment_size_matcher_test.rb +51 -0
  129. data/vendor/plugins/paperclip/test/paperclip_test.rb +317 -0
  130. data/vendor/plugins/paperclip/test/processor_test.rb +10 -0
  131. data/vendor/plugins/paperclip/test/storage_test.rb +343 -0
  132. data/vendor/plugins/paperclip/test/style_test.rb +141 -0
  133. data/vendor/plugins/paperclip/test/thumbnail_test.rb +227 -0
  134. data/vendor/plugins/paperclip/test/upfile_test.rb +36 -0
  135. data/vendor/plugins/responds_to_parent/MIT-LICENSE +20 -0
  136. data/vendor/plugins/responds_to_parent/README +42 -0
  137. data/vendor/plugins/responds_to_parent/Rakefile +22 -0
  138. data/vendor/plugins/responds_to_parent/init.rb +2 -0
  139. data/vendor/plugins/responds_to_parent/lib/parent_selector_assertion.rb +144 -0
  140. data/vendor/plugins/responds_to_parent/lib/responds_to_parent.rb +46 -0
  141. data/vendor/plugins/responds_to_parent/test/assert_select_parent_test.rb +318 -0
  142. data/vendor/plugins/responds_to_parent/test/responds_to_parent_test.rb +115 -0
  143. metadata +226 -0
metadata ADDED
@@ -0,0 +1,226 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: radiant-paperclipped-extension
3
+ version: !ruby/object:Gem::Version
4
+ hash: 61
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 8
9
+ - 1
10
+ version: 0.8.1
11
+ platform: ruby
12
+ authors:
13
+ - Keith Bingman
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-16 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: radiant
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 57
30
+ segments:
31
+ - 0
32
+ - 9
33
+ - 1
34
+ version: 0.9.1
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ description: Assets extension based on the lightweight Paperclip plugin.
38
+ email: benny@gorilla-webdesign.be
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - LICENSE
45
+ - README.md
46
+ files:
47
+ - .gitmodules
48
+ - HELP_admin.markdown
49
+ - LICENSE
50
+ - README.md
51
+ - Rakefile
52
+ - VERSION
53
+ - app/controllers/admin/assets_controller.rb
54
+ - app/helpers/admin/assets_helper.rb
55
+ - app/models/asset.rb
56
+ - app/models/asset_page_tags.rb
57
+ - app/models/asset_tags.rb
58
+ - app/models/old_page_attachment.rb
59
+ - app/models/page_attachment.rb
60
+ - app/views/admin/assets/_asset.html.haml
61
+ - app/views/admin/assets/_asset_table.html.haml
62
+ - app/views/admin/assets/_assets_bucket.html.haml
63
+ - app/views/admin/assets/_assets_container.html.haml
64
+ - app/views/admin/assets/_bucket.html.haml
65
+ - app/views/admin/assets/_bucket_asset.html.haml
66
+ - app/views/admin/assets/_errors.html.haml
67
+ - app/views/admin/assets/_form.html.haml
68
+ - app/views/admin/assets/_page_assets.html.haml
69
+ - app/views/admin/assets/_search_results.html.haml
70
+ - app/views/admin/assets/_show_bucket_link.html.haml
71
+ - app/views/admin/assets/_upload_to_page.html.haml
72
+ - app/views/admin/assets/edit.html.haml
73
+ - app/views/admin/assets/index.html.haml
74
+ - app/views/admin/assets/new.html.haml
75
+ - app/views/admin/assets/remove.html.haml
76
+ - app/views/admin/bucket/_iframe.html.haml
77
+ - config/locales/en.yml
78
+ - config/locales/nl.yml
79
+ - config/locales/pl.yml
80
+ - config/routes.rb
81
+ - db/migrate/001_create_assets.rb
82
+ - db/migrate/002_create_paperclip_attributes.rb
83
+ - db/migrate/003_create_user_observer.rb
84
+ - db/migrate/004_create_page_attachments.rb
85
+ - db/migrate/005_rename_users.rb
86
+ - db/migrate/006_add_default_configs.rb
87
+ - db/migrate/007_add_default_content_types.rb
88
+ - db/migrate/20090316132151_disable_file_types.rb
89
+ - lib/assets_admin_ui.rb
90
+ - lib/mime_type_ext.rb
91
+ - lib/tasks/assets_extension_tasks.rake
92
+ - lib/tasks/paperclip_tasks.rake
93
+ - lib/url_additions.rb
94
+ - paperclipped_extension.rb
95
+ - psds/file_type_icons.psd
96
+ - psds/file_type_icons_.psd
97
+ - public/images/assets/_page_assets.html.haml
98
+ - public/images/assets/add-to-bucket.png
99
+ - public/images/assets/add.png
100
+ - public/images/assets/audio_icon.png
101
+ - public/images/assets/audio_thumbnail.png
102
+ - public/images/assets/delete.png
103
+ - public/images/assets/doc_icon.png
104
+ - public/images/assets/doc_thumbnail.png
105
+ - public/images/assets/edit.png
106
+ - public/images/assets/movie_icon.png
107
+ - public/images/assets/movie_thumbnail.png
108
+ - public/images/assets/new-asset.png
109
+ - public/images/assets/page_edit.png
110
+ - public/images/assets/pdf_icon.png
111
+ - public/images/assets/pdf_thumbnail.png
112
+ - public/images/assets/reorder_assets.png
113
+ - public/javascripts/admin/assets.js
114
+ - public/stylesheets/admin/assets.css
115
+ - spec/controllers/admin/assets_controller_spec.rb
116
+ - spec/models/asset_spec.rb
117
+ - spec/spec.opts
118
+ - spec/spec_helper.rb
119
+ - vendor/plugins/acts_as_list/README
120
+ - vendor/plugins/acts_as_list/init.rb
121
+ - vendor/plugins/acts_as_list/lib/active_record/acts/list.rb
122
+ - vendor/plugins/acts_as_list/test/list_test.rb
123
+ - vendor/plugins/paperclip/LICENSE
124
+ - vendor/plugins/paperclip/README.rdoc
125
+ - vendor/plugins/paperclip/Rakefile
126
+ - vendor/plugins/paperclip/cucumber/paperclip_steps.rb
127
+ - vendor/plugins/paperclip/generators/paperclip/USAGE
128
+ - vendor/plugins/paperclip/generators/paperclip/paperclip_generator.rb
129
+ - vendor/plugins/paperclip/generators/paperclip/templates/paperclip_migration.rb.erb
130
+ - vendor/plugins/paperclip/init.rb
131
+ - vendor/plugins/paperclip/lib/generators/paperclip/USAGE
132
+ - vendor/plugins/paperclip/lib/generators/paperclip/paperclip_generator.rb
133
+ - vendor/plugins/paperclip/lib/generators/paperclip/templates/paperclip_migration.rb.erb
134
+ - vendor/plugins/paperclip/lib/paperclip.rb
135
+ - vendor/plugins/paperclip/lib/paperclip/attachment.rb
136
+ - vendor/plugins/paperclip/lib/paperclip/callback_compatability.rb
137
+ - vendor/plugins/paperclip/lib/paperclip/geometry.rb
138
+ - vendor/plugins/paperclip/lib/paperclip/interpolations.rb
139
+ - vendor/plugins/paperclip/lib/paperclip/iostream.rb
140
+ - vendor/plugins/paperclip/lib/paperclip/matchers.rb
141
+ - vendor/plugins/paperclip/lib/paperclip/matchers/have_attached_file_matcher.rb
142
+ - vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb
143
+ - vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
144
+ - vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_size_matcher.rb
145
+ - vendor/plugins/paperclip/lib/paperclip/processor.rb
146
+ - vendor/plugins/paperclip/lib/paperclip/railtie.rb
147
+ - vendor/plugins/paperclip/lib/paperclip/storage.rb
148
+ - vendor/plugins/paperclip/lib/paperclip/style.rb
149
+ - vendor/plugins/paperclip/lib/paperclip/thumbnail.rb
150
+ - vendor/plugins/paperclip/lib/paperclip/upfile.rb
151
+ - vendor/plugins/paperclip/lib/paperclip/version.rb
152
+ - vendor/plugins/paperclip/lib/tasks/paperclip.rake
153
+ - vendor/plugins/paperclip/paperclip.gemspec
154
+ - vendor/plugins/paperclip/rails/init.rb
155
+ - vendor/plugins/paperclip/shoulda_macros/paperclip.rb
156
+ - vendor/plugins/paperclip/test/.gitignore
157
+ - vendor/plugins/paperclip/test/attachment_test.rb
158
+ - vendor/plugins/paperclip/test/database.yml
159
+ - vendor/plugins/paperclip/test/fixtures/12k.png
160
+ - vendor/plugins/paperclip/test/fixtures/50x50.png
161
+ - vendor/plugins/paperclip/test/fixtures/5k.png
162
+ - vendor/plugins/paperclip/test/fixtures/bad.png
163
+ - vendor/plugins/paperclip/test/fixtures/s3.yml
164
+ - vendor/plugins/paperclip/test/fixtures/text.txt
165
+ - vendor/plugins/paperclip/test/fixtures/twopage.pdf
166
+ - vendor/plugins/paperclip/test/geometry_test.rb
167
+ - vendor/plugins/paperclip/test/helper.rb
168
+ - vendor/plugins/paperclip/test/integration_test.rb
169
+ - vendor/plugins/paperclip/test/interpolations_test.rb
170
+ - vendor/plugins/paperclip/test/iostream_test.rb
171
+ - vendor/plugins/paperclip/test/matchers/have_attached_file_matcher_test.rb
172
+ - vendor/plugins/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
173
+ - vendor/plugins/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
174
+ - vendor/plugins/paperclip/test/matchers/validate_attachment_size_matcher_test.rb
175
+ - vendor/plugins/paperclip/test/paperclip_test.rb
176
+ - vendor/plugins/paperclip/test/processor_test.rb
177
+ - vendor/plugins/paperclip/test/storage_test.rb
178
+ - vendor/plugins/paperclip/test/style_test.rb
179
+ - vendor/plugins/paperclip/test/thumbnail_test.rb
180
+ - vendor/plugins/paperclip/test/upfile_test.rb
181
+ - vendor/plugins/responds_to_parent/MIT-LICENSE
182
+ - vendor/plugins/responds_to_parent/README
183
+ - vendor/plugins/responds_to_parent/Rakefile
184
+ - vendor/plugins/responds_to_parent/init.rb
185
+ - vendor/plugins/responds_to_parent/lib/parent_selector_assertion.rb
186
+ - vendor/plugins/responds_to_parent/lib/responds_to_parent.rb
187
+ - vendor/plugins/responds_to_parent/test/assert_select_parent_test.rb
188
+ - vendor/plugins/responds_to_parent/test/responds_to_parent_test.rb
189
+ has_rdoc: true
190
+ homepage: https://github.com/jomz/paperclipped
191
+ licenses: []
192
+
193
+ post_install_message:
194
+ rdoc_options: []
195
+
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ none: false
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ hash: 3
204
+ segments:
205
+ - 0
206
+ version: "0"
207
+ required_rubygems_version: !ruby/object:Gem::Requirement
208
+ none: false
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ hash: 3
213
+ segments:
214
+ - 0
215
+ version: "0"
216
+ requirements: []
217
+
218
+ rubyforge_project:
219
+ rubygems_version: 1.3.7
220
+ signing_key:
221
+ specification_version: 3
222
+ summary: Paperclipped extension for Radiant CMS
223
+ test_files:
224
+ - spec/controllers/admin/assets_controller_spec.rb
225
+ - spec/models/asset_spec.rb
226
+ - spec/spec_helper.rb