spud_media 0.4.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/spud/admin/media/application.js +0 -0
- data/app/assets/libs/tiny_mce/plugins/spud_media/blank.htm +12 -0
- data/app/assets/libs/tiny_mce/plugins/spud_media/css/template.css +23 -0
- data/app/assets/libs/tiny_mce/plugins/spud_media/editor_plugin.js +1 -0
- data/app/assets/libs/tiny_mce/plugins/spud_media/editor_plugin_src.js +159 -0
- data/app/assets/libs/tiny_mce/plugins/spud_media/js/template.js +106 -0
- data/app/assets/libs/tiny_mce/plugins/spud_media/langs/en_dlg.js +1 -0
- data/app/assets/libs/tiny_mce/plugins/spud_media/template.htm +31 -0
- data/app/assets/stylesheets/spud/admin/media/application.css +3 -0
- data/app/controllers/spud/admin/media_controller.rb +1 -1
- data/app/views/layouts/spud/admin/media/detail.html.erb +4 -0
- data/app/views/spud/admin/media/index.html.erb +3 -3
- data/app/views/spud/admin/media/new.html.erb +12 -15
- data/db/migrate/20120101194256_create_spud_media.rb +11 -0
- data/lib/spud_media/version.rb +5 -0
- data/lib/tasks/spud_media_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +56 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -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/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- metadata +173 -15
- data/config/application.rb +0 -50
- data/config/boot.rb +0 -6
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spud_media
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,36 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: &70259117586720 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.2
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70259117586720
|
14
25
|
- !ruby/object:Gem::Dependency
|
15
26
|
name: spud_core
|
16
|
-
requirement: &
|
27
|
+
requirement: &70259117586200 !ruby/object:Gem::Requirement
|
17
28
|
none: false
|
18
29
|
requirements:
|
19
30
|
- - ! '>='
|
20
31
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
32
|
+
version: 0.8.0
|
33
|
+
- - <
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 0.9.0
|
22
36
|
type: :runtime
|
23
37
|
prerelease: false
|
24
|
-
version_requirements: *
|
38
|
+
version_requirements: *70259117586200
|
25
39
|
- !ruby/object:Gem::Dependency
|
26
40
|
name: paperclip
|
27
|
-
requirement: &
|
41
|
+
requirement: &70259117585480 !ruby/object:Gem::Requirement
|
28
42
|
none: false
|
29
43
|
requirements:
|
30
44
|
- - ! '>='
|
@@ -32,9 +46,77 @@ dependencies:
|
|
32
46
|
version: '0'
|
33
47
|
type: :runtime
|
34
48
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
|
37
|
-
|
49
|
+
version_requirements: *70259117585480
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: mysql2
|
52
|
+
requirement: &70259117585100 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
type: :development
|
59
|
+
prerelease: false
|
60
|
+
version_requirements: *70259117585100
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rspec
|
63
|
+
requirement: &70259117584620 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: *70259117584620
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: rspec-rails
|
74
|
+
requirement: &70259117584200 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
type: :development
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: *70259117584200
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: factory_girl
|
85
|
+
requirement: &70259117583700 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - =
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 2.5.0
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: *70259117583700
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: mocha
|
96
|
+
requirement: &70259117583200 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - =
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.10.3
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: *70259117583200
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: database_cleaner
|
107
|
+
requirement: &70259117582740 !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - =
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 0.7.1
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: *70259117582740
|
116
|
+
description: Spud Media allows you to upload files to your site and manage them in
|
117
|
+
the spud administrative panel. It also uses paperclip and supports s3 storage
|
118
|
+
email:
|
119
|
+
- destes@redwindsw.com
|
38
120
|
executables: []
|
39
121
|
extensions: []
|
40
122
|
extra_rdoc_files: []
|
@@ -50,19 +132,61 @@ files:
|
|
50
132
|
- app/assets/images/spud/admin/files_thumbs/xls_thumb.png
|
51
133
|
- app/assets/images/spud/admin/files_thumbs/zip_thumb.png
|
52
134
|
- app/assets/images/spud/admin/media_thumb.png
|
135
|
+
- app/assets/javascripts/spud/admin/media/application.js
|
136
|
+
- app/assets/libs/tiny_mce/plugins/spud_media/blank.htm
|
137
|
+
- app/assets/libs/tiny_mce/plugins/spud_media/css/template.css
|
138
|
+
- app/assets/libs/tiny_mce/plugins/spud_media/editor_plugin.js
|
139
|
+
- app/assets/libs/tiny_mce/plugins/spud_media/editor_plugin_src.js
|
140
|
+
- app/assets/libs/tiny_mce/plugins/spud_media/js/template.js
|
141
|
+
- app/assets/libs/tiny_mce/plugins/spud_media/langs/en_dlg.js
|
142
|
+
- app/assets/libs/tiny_mce/plugins/spud_media/template.htm
|
143
|
+
- app/assets/stylesheets/spud/admin/media/application.css
|
53
144
|
- app/controllers/spud/admin/media_controller.rb
|
54
145
|
- app/helpers/spud/admin/users_helper.rb
|
55
146
|
- app/helpers/spud/user_sessions_helper.rb
|
56
147
|
- app/models/spud_media.rb
|
148
|
+
- app/views/layouts/spud/admin/media/detail.html.erb
|
57
149
|
- app/views/spud/admin/media/index.html.erb
|
58
150
|
- app/views/spud/admin/media/new.html.erb
|
59
|
-
- config/application.rb
|
60
|
-
- config/boot.rb
|
61
151
|
- config/routes.rb
|
62
|
-
-
|
152
|
+
- db/migrate/20120101194256_create_spud_media.rb
|
63
153
|
- lib/spud_media/configuration.rb
|
64
154
|
- lib/spud_media/engine.rb
|
65
|
-
|
155
|
+
- lib/spud_media/version.rb
|
156
|
+
- lib/spud_media.rb
|
157
|
+
- lib/tasks/spud_media_tasks.rake
|
158
|
+
- MIT-LICENSE
|
159
|
+
- Rakefile
|
160
|
+
- README.rdoc
|
161
|
+
- test/dummy/app/assets/javascripts/application.js
|
162
|
+
- test/dummy/app/assets/stylesheets/application.css
|
163
|
+
- test/dummy/app/controllers/application_controller.rb
|
164
|
+
- test/dummy/app/helpers/application_helper.rb
|
165
|
+
- test/dummy/app/views/layouts/application.html.erb
|
166
|
+
- test/dummy/config/application.rb
|
167
|
+
- test/dummy/config/boot.rb
|
168
|
+
- test/dummy/config/database.yml
|
169
|
+
- test/dummy/config/environment.rb
|
170
|
+
- test/dummy/config/environments/development.rb
|
171
|
+
- test/dummy/config/environments/production.rb
|
172
|
+
- test/dummy/config/environments/test.rb
|
173
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
174
|
+
- test/dummy/config/initializers/inflections.rb
|
175
|
+
- test/dummy/config/initializers/mime_types.rb
|
176
|
+
- test/dummy/config/initializers/secret_token.rb
|
177
|
+
- test/dummy/config/initializers/session_store.rb
|
178
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
179
|
+
- test/dummy/config/locales/en.yml
|
180
|
+
- test/dummy/config/routes.rb
|
181
|
+
- test/dummy/config.ru
|
182
|
+
- test/dummy/public/404.html
|
183
|
+
- test/dummy/public/422.html
|
184
|
+
- test/dummy/public/500.html
|
185
|
+
- test/dummy/public/favicon.ico
|
186
|
+
- test/dummy/Rakefile
|
187
|
+
- test/dummy/README.rdoc
|
188
|
+
- test/dummy/script/rails
|
189
|
+
homepage: http://www.github.com/davydotcom/spud_media
|
66
190
|
licenses: []
|
67
191
|
post_install_message:
|
68
192
|
rdoc_options: []
|
@@ -74,16 +198,50 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
198
|
- - ! '>='
|
75
199
|
- !ruby/object:Gem::Version
|
76
200
|
version: '0'
|
201
|
+
segments:
|
202
|
+
- 0
|
203
|
+
hash: -3234345202016585044
|
77
204
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
205
|
none: false
|
79
206
|
requirements:
|
80
207
|
- - ! '>='
|
81
208
|
- !ruby/object:Gem::Version
|
82
209
|
version: '0'
|
210
|
+
segments:
|
211
|
+
- 0
|
212
|
+
hash: -3234345202016585044
|
83
213
|
requirements: []
|
84
214
|
rubyforge_project:
|
85
215
|
rubygems_version: 1.8.15
|
86
216
|
signing_key:
|
87
217
|
specification_version: 3
|
88
|
-
summary: Spud
|
89
|
-
test_files:
|
218
|
+
summary: Spud File upload/management module
|
219
|
+
test_files:
|
220
|
+
- test/dummy/app/assets/javascripts/application.js
|
221
|
+
- test/dummy/app/assets/stylesheets/application.css
|
222
|
+
- test/dummy/app/controllers/application_controller.rb
|
223
|
+
- test/dummy/app/helpers/application_helper.rb
|
224
|
+
- test/dummy/app/views/layouts/application.html.erb
|
225
|
+
- test/dummy/config/application.rb
|
226
|
+
- test/dummy/config/boot.rb
|
227
|
+
- test/dummy/config/database.yml
|
228
|
+
- test/dummy/config/environment.rb
|
229
|
+
- test/dummy/config/environments/development.rb
|
230
|
+
- test/dummy/config/environments/production.rb
|
231
|
+
- test/dummy/config/environments/test.rb
|
232
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
233
|
+
- test/dummy/config/initializers/inflections.rb
|
234
|
+
- test/dummy/config/initializers/mime_types.rb
|
235
|
+
- test/dummy/config/initializers/secret_token.rb
|
236
|
+
- test/dummy/config/initializers/session_store.rb
|
237
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
238
|
+
- test/dummy/config/locales/en.yml
|
239
|
+
- test/dummy/config/routes.rb
|
240
|
+
- test/dummy/config.ru
|
241
|
+
- test/dummy/public/404.html
|
242
|
+
- test/dummy/public/422.html
|
243
|
+
- test/dummy/public/500.html
|
244
|
+
- test/dummy/public/favicon.ico
|
245
|
+
- test/dummy/Rakefile
|
246
|
+
- test/dummy/README.rdoc
|
247
|
+
- test/dummy/script/rails
|
data/config/application.rb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
if defined?(Bundler)
|
6
|
-
# If you precompile assets before deploying to production, use this line
|
7
|
-
Bundler.require *Rails.groups(:assets => %w(development test))
|
8
|
-
# If you want your assets lazily compiled in production, use this line
|
9
|
-
# Bundler.require(:default, :assets, Rails.env)
|
10
|
-
end
|
11
|
-
|
12
|
-
module Spud
|
13
|
-
module Media
|
14
|
-
class Application < Rails::Application
|
15
|
-
# Settings in config/environments/* take precedence over those specified here.
|
16
|
-
# Application configuration should go into files in config/initializers
|
17
|
-
# -- all .rb files in that directory are automatically loaded.
|
18
|
-
|
19
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
20
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
21
|
-
|
22
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
23
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
24
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
25
|
-
|
26
|
-
# Activate observers that should always be running.
|
27
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
28
|
-
|
29
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
30
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
31
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
32
|
-
|
33
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
34
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
35
|
-
# config.i18n.default_locale = :de
|
36
|
-
|
37
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
38
|
-
config.encoding = "utf-8"
|
39
|
-
|
40
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
41
|
-
config.filter_parameters += [:password]
|
42
|
-
|
43
|
-
# Enable the asset pipeline
|
44
|
-
config.assets.enabled = true
|
45
|
-
|
46
|
-
# Version of your assets, change this if you want to expire all your assets
|
47
|
-
config.assets.version = '1.0'
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|