effective_assets 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +228 -0
- data/Rakefile +23 -0
- data/app/assets/images/effective_assets/icon_close.png +0 -0
- data/app/assets/images/effective_assets/s3_down_button.gif +0 -0
- data/app/assets/images/effective_assets/s3_over_button.gif +0 -0
- data/app/assets/images/effective_assets/s3_up_button.gif +0 -0
- data/app/assets/images/effective_assets/s3_upload.swf +0 -0
- data/app/assets/images/effective_assets/spinner.gif +0 -0
- data/app/assets/images/mime-types/excel.jpg +0 -0
- data/app/assets/images/mime-types/file.png +0 -0
- data/app/assets/images/mime-types/mp3.png +0 -0
- data/app/assets/images/mime-types/pdf.png +0 -0
- data/app/assets/images/mime-types/video.png +0 -0
- data/app/assets/images/mime-types/word.jpg +0 -0
- data/app/assets/images/mime-types/zip.png +0 -0
- data/app/assets/javascripts/effective_assets.js +1 -0
- data/app/assets/javascripts/effective_assets/asset_box_input.js.coffee +71 -0
- data/app/assets/javascripts/effective_assets/asset_box_uploader.js +122 -0
- data/app/assets/javascripts/effective_assets/asset_box_uploader_customization.js +166 -0
- data/app/assets/javascripts/effective_assets/jquery_ui_sortable.js +2106 -0
- data/app/assets/stylesheets/effective_assets.css.scss +1 -0
- data/app/assets/stylesheets/effective_assets/_asset_box_input.scss +206 -0
- data/app/controllers/effective/attachments_controller.rb +14 -0
- data/app/controllers/effective/s3_uploads_controller.rb +98 -0
- data/app/helpers/effective_assets_helper.rb +55 -0
- data/app/models/concerns/acts_as_asset_box.rb +97 -0
- data/app/models/effective/asset.rb +224 -0
- data/app/models/effective/attachment.rb +25 -0
- data/app/models/effective/delayed_job.rb +99 -0
- data/app/models/inputs/asset_box_input.rb +87 -0
- data/app/models/validators/asset_box_length_validator.rb +11 -0
- data/app/models/validators/asset_box_presence_validator.rb +6 -0
- data/app/uploaders/asset_uploader.rb +26 -0
- data/app/uploaders/effective_assets_uploader.rb +63 -0
- data/app/views/active_admin/effective_assets/_edit.html.haml +35 -0
- data/app/views/active_admin/effective_assets/_form.html.haml +4 -0
- data/app/views/active_admin/effective_assets/_new.html.haml +3 -0
- data/app/views/asset_box_input/_attachment_fields.html.haml +14 -0
- data/app/views/asset_box_input/_uploader.html.haml +119 -0
- data/app/views/assets/_video.html.erb +4 -0
- data/config/routes.rb +6 -0
- data/db/migrate/01_create_effective_assets.rb.erb +42 -0
- data/lib/effective_assets.rb +31 -0
- data/lib/effective_assets/engine.rb +38 -0
- data/lib/effective_assets/version.rb +3 -0
- data/lib/generators/effective_assets/install_generator.rb +41 -0
- data/lib/generators/templates/README +1 -0
- data/lib/generators/templates/asset_uploader.rb +25 -0
- data/lib/generators/templates/effective_assets.rb +19 -0
- data/lib/tasks/effective_assets_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +16 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +71 -0
- data/spec/dummy/log/test.log +33 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/spec_link +3 -0
- data/spec/models/asset_spec.rb +46 -0
- data/spec/spec_helper.rb +34 -0
- data/spec/support/factories.rb +28 -0
- metadata +431 -0
@@ -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'
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# Attributes
|
4
|
+
describe Effective::Asset do
|
5
|
+
let(:asset) { FactoryGirl.create(:asset) }
|
6
|
+
|
7
|
+
it 'should be valid' do
|
8
|
+
asset.valid?.should eq true
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# describe Asset do
|
13
|
+
# let(:image_url) { 'http://cdn.sstatic.net/stackoverflow/img/sprites.png?v=1' }
|
14
|
+
|
15
|
+
# it 'should be creatable from URL' do
|
16
|
+
# asset = Asset.create_from_url(image_url, {:title => 'a title', :description => 'a description', :tags => 'a tags', :user_id => 1})
|
17
|
+
|
18
|
+
# # A new asset should exist, and it should be unprocessed
|
19
|
+
# asset.upload_file.should eq image_url
|
20
|
+
# asset.processed.should eq false
|
21
|
+
|
22
|
+
# # It should have queued up a process_asset task with delayed job
|
23
|
+
# Delayed::Job.count.should eq 1
|
24
|
+
|
25
|
+
# job = Psych.load(Delayed::Job.first.handler)
|
26
|
+
# job.method_name.should eq :process_asset_without_delay
|
27
|
+
# job.args.first.should eq asset
|
28
|
+
|
29
|
+
# # Run DelayedJob
|
30
|
+
# Delayed::Worker.new(:max_priority => nil, :min_priority => nil, :quiet => true).work_off
|
31
|
+
# Delayed::Job.count.should eq 0
|
32
|
+
|
33
|
+
# # We should have a totally processed Asset
|
34
|
+
# asset = Asset.find(asset.id)
|
35
|
+
# asset.processed.should eq true
|
36
|
+
# asset.data.kind_of?(AssetUploader).should eq true
|
37
|
+
# asset.title.should eq 'a title'
|
38
|
+
# asset.description.should eq 'a description'
|
39
|
+
# asset.tags.should eq 'a tags'
|
40
|
+
# asset.user_id.should eq 1
|
41
|
+
# asset.versions_info.present?.should eq true
|
42
|
+
# asset.content_type.should eq 'image/png'
|
43
|
+
# asset.height.should eq 1073
|
44
|
+
# asset.width.should eq 238
|
45
|
+
# end
|
46
|
+
# end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= 'test'
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
4
|
+
|
5
|
+
require 'rspec/rails'
|
6
|
+
require 'rspec/autorun'
|
7
|
+
require 'factory_girl_rails'
|
8
|
+
|
9
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
10
|
+
# in spec/support/ and its subdirectories.
|
11
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f }
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
15
|
+
|
16
|
+
Rails.logger.level = 4 # Output only minimal stuff to test.log
|
17
|
+
|
18
|
+
config.use_transactional_fixtures = true # Make this false to once again use DatabaseCleaner
|
19
|
+
config.infer_base_class_for_anonymous_controllers = false
|
20
|
+
config.order = 'random'
|
21
|
+
end
|
22
|
+
|
23
|
+
class ActiveRecord::Base
|
24
|
+
mattr_accessor :shared_connection
|
25
|
+
@@shared_connection = nil
|
26
|
+
|
27
|
+
def self.connection
|
28
|
+
@@shared_connection || retrieve_connection
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# Forces all threads to share the same connection. This works on
|
33
|
+
# Capybara because it starts the web server in a thread.
|
34
|
+
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'factory_girl'
|
2
|
+
|
3
|
+
FactoryGirl.define do
|
4
|
+
factory :asset, :class => Effective::Asset do
|
5
|
+
user_id 1
|
6
|
+
|
7
|
+
sequence(:title) { |n| "Title #{n}" }
|
8
|
+
content_type 'image/jpg'
|
9
|
+
processed true
|
10
|
+
|
11
|
+
sequence(:upload_file) { |n| "http://#{EffectiveAssets.aws_bucket}.s3.amazonaws.com/uploads/asset#{n}.jpg"}
|
12
|
+
sequence(:data) { |n| "asset#{n}.jpg" }
|
13
|
+
|
14
|
+
data_size 123456
|
15
|
+
width 600
|
16
|
+
height 480
|
17
|
+
versions_info Hash.new(:thumb => {:data_size => 123456, :width => 128, :height => 128}, :main => {:data_size => 123456, :width => 400, :height => 400})
|
18
|
+
end
|
19
|
+
|
20
|
+
# factory :attachment do
|
21
|
+
# association :asset
|
22
|
+
# association :attachable, :factory => :user
|
23
|
+
|
24
|
+
# position 0
|
25
|
+
# box 'featured_images'
|
26
|
+
# end
|
27
|
+
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,431 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: effective_assets
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Code and Effect
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-06-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: carrierwave
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: coffee-rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: delayed_job_active_record
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: fog
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.8.0
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.8.0
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: formtastic
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: haml
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: psych
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: migrant
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :runtime
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: mini_magick
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :runtime
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: s3_swf_upload
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :runtime
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: factory_girl_rails
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ! '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
name: rspec-rails
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ! '>='
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ! '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
222
|
+
- !ruby/object:Gem::Dependency
|
223
|
+
name: shoulda-matchers
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
227
|
+
- - ! '>='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
- !ruby/object:Gem::Dependency
|
239
|
+
name: sqlite3
|
240
|
+
requirement: !ruby/object:Gem::Requirement
|
241
|
+
none: false
|
242
|
+
requirements:
|
243
|
+
- - ! '>='
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '0'
|
246
|
+
type: :development
|
247
|
+
prerelease: false
|
248
|
+
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
250
|
+
requirements:
|
251
|
+
- - ! '>='
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
254
|
+
- !ruby/object:Gem::Dependency
|
255
|
+
name: psych
|
256
|
+
requirement: !ruby/object:Gem::Requirement
|
257
|
+
none: false
|
258
|
+
requirements:
|
259
|
+
- - ! '>='
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: '0'
|
262
|
+
type: :development
|
263
|
+
prerelease: false
|
264
|
+
version_requirements: !ruby/object:Gem::Requirement
|
265
|
+
none: false
|
266
|
+
requirements:
|
267
|
+
- - ! '>='
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
270
|
+
description: A full solution for managing assets (images, files, videos, etc). Attach
|
271
|
+
one or more assets to any model with validations. Includes an upload direct to Amazon
|
272
|
+
S3 implementation based on s3_swf_upload and image processing in the background
|
273
|
+
with CarrierWave and DelayedJob Formtastic input for displaying, organizing, and
|
274
|
+
uploading assets direct to s3. Includes (optional but recommended) integration with
|
275
|
+
ActiveAdmin
|
276
|
+
email:
|
277
|
+
- info@codeandeffect.com
|
278
|
+
executables: []
|
279
|
+
extensions: []
|
280
|
+
extra_rdoc_files: []
|
281
|
+
files:
|
282
|
+
- app/assets/images/effective_assets/icon_close.png
|
283
|
+
- app/assets/images/effective_assets/s3_down_button.gif
|
284
|
+
- app/assets/images/effective_assets/s3_over_button.gif
|
285
|
+
- app/assets/images/effective_assets/s3_up_button.gif
|
286
|
+
- app/assets/images/effective_assets/s3_upload.swf
|
287
|
+
- app/assets/images/effective_assets/spinner.gif
|
288
|
+
- app/assets/images/mime-types/excel.jpg
|
289
|
+
- app/assets/images/mime-types/file.png
|
290
|
+
- app/assets/images/mime-types/mp3.png
|
291
|
+
- app/assets/images/mime-types/pdf.png
|
292
|
+
- app/assets/images/mime-types/video.png
|
293
|
+
- app/assets/images/mime-types/word.jpg
|
294
|
+
- app/assets/images/mime-types/zip.png
|
295
|
+
- app/assets/javascripts/effective_assets/asset_box_input.js.coffee
|
296
|
+
- app/assets/javascripts/effective_assets/asset_box_uploader.js
|
297
|
+
- app/assets/javascripts/effective_assets/asset_box_uploader_customization.js
|
298
|
+
- app/assets/javascripts/effective_assets/jquery_ui_sortable.js
|
299
|
+
- app/assets/javascripts/effective_assets.js
|
300
|
+
- app/assets/stylesheets/effective_assets/_asset_box_input.scss
|
301
|
+
- app/assets/stylesheets/effective_assets.css.scss
|
302
|
+
- app/controllers/effective/attachments_controller.rb
|
303
|
+
- app/controllers/effective/s3_uploads_controller.rb
|
304
|
+
- app/helpers/effective_assets_helper.rb
|
305
|
+
- app/models/concerns/acts_as_asset_box.rb
|
306
|
+
- app/models/effective/asset.rb
|
307
|
+
- app/models/effective/attachment.rb
|
308
|
+
- app/models/effective/delayed_job.rb
|
309
|
+
- app/models/inputs/asset_box_input.rb
|
310
|
+
- app/models/validators/asset_box_length_validator.rb
|
311
|
+
- app/models/validators/asset_box_presence_validator.rb
|
312
|
+
- app/uploaders/asset_uploader.rb
|
313
|
+
- app/uploaders/effective_assets_uploader.rb
|
314
|
+
- app/views/active_admin/effective_assets/_edit.html.haml
|
315
|
+
- app/views/active_admin/effective_assets/_form.html.haml
|
316
|
+
- app/views/active_admin/effective_assets/_new.html.haml
|
317
|
+
- app/views/asset_box_input/_attachment_fields.html.haml
|
318
|
+
- app/views/asset_box_input/_uploader.html.haml
|
319
|
+
- app/views/assets/_video.html.erb
|
320
|
+
- config/routes.rb
|
321
|
+
- db/migrate/01_create_effective_assets.rb.erb
|
322
|
+
- lib/effective_assets/engine.rb
|
323
|
+
- lib/effective_assets/version.rb
|
324
|
+
- lib/effective_assets.rb
|
325
|
+
- lib/generators/effective_assets/install_generator.rb
|
326
|
+
- lib/generators/templates/asset_uploader.rb
|
327
|
+
- lib/generators/templates/effective_assets.rb
|
328
|
+
- lib/generators/templates/README
|
329
|
+
- lib/tasks/effective_assets_tasks.rake
|
330
|
+
- MIT-LICENSE
|
331
|
+
- Rakefile
|
332
|
+
- README.md
|
333
|
+
- spec/dummy/app/assets/javascripts/application.js
|
334
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
335
|
+
- spec/dummy/app/controllers/application_controller.rb
|
336
|
+
- spec/dummy/app/helpers/application_helper.rb
|
337
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
338
|
+
- spec/dummy/config/application.rb
|
339
|
+
- spec/dummy/config/boot.rb
|
340
|
+
- spec/dummy/config/database.yml
|
341
|
+
- spec/dummy/config/environment.rb
|
342
|
+
- spec/dummy/config/environments/development.rb
|
343
|
+
- spec/dummy/config/environments/production.rb
|
344
|
+
- spec/dummy/config/environments/test.rb
|
345
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
346
|
+
- spec/dummy/config/initializers/inflections.rb
|
347
|
+
- spec/dummy/config/initializers/mime_types.rb
|
348
|
+
- spec/dummy/config/initializers/secret_token.rb
|
349
|
+
- spec/dummy/config/initializers/session_store.rb
|
350
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
351
|
+
- spec/dummy/config/locales/en.yml
|
352
|
+
- spec/dummy/config/routes.rb
|
353
|
+
- spec/dummy/config.ru
|
354
|
+
- spec/dummy/db/development.sqlite3
|
355
|
+
- spec/dummy/db/schema.rb
|
356
|
+
- spec/dummy/db/test.sqlite3
|
357
|
+
- spec/dummy/log/development.log
|
358
|
+
- spec/dummy/log/test.log
|
359
|
+
- spec/dummy/public/404.html
|
360
|
+
- spec/dummy/public/422.html
|
361
|
+
- spec/dummy/public/500.html
|
362
|
+
- spec/dummy/public/favicon.ico
|
363
|
+
- spec/dummy/Rakefile
|
364
|
+
- spec/dummy/README.rdoc
|
365
|
+
- spec/dummy/script/rails
|
366
|
+
- spec/dummy/spec_link
|
367
|
+
- spec/models/asset_spec.rb
|
368
|
+
- spec/spec_helper.rb
|
369
|
+
- spec/support/factories.rb
|
370
|
+
homepage: https://github.com/code-and-effect/effective_assets
|
371
|
+
licenses: []
|
372
|
+
post_install_message:
|
373
|
+
rdoc_options: []
|
374
|
+
require_paths:
|
375
|
+
- lib
|
376
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
377
|
+
none: false
|
378
|
+
requirements:
|
379
|
+
- - ! '>='
|
380
|
+
- !ruby/object:Gem::Version
|
381
|
+
version: '0'
|
382
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
383
|
+
none: false
|
384
|
+
requirements:
|
385
|
+
- - ! '>='
|
386
|
+
- !ruby/object:Gem::Version
|
387
|
+
version: '0'
|
388
|
+
requirements: []
|
389
|
+
rubyforge_project:
|
390
|
+
rubygems_version: 1.8.25
|
391
|
+
signing_key:
|
392
|
+
specification_version: 3
|
393
|
+
summary: Effectively manage assets (images, files, videos, etc) in your application.
|
394
|
+
test_files:
|
395
|
+
- spec/dummy/app/assets/javascripts/application.js
|
396
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
397
|
+
- spec/dummy/app/controllers/application_controller.rb
|
398
|
+
- spec/dummy/app/helpers/application_helper.rb
|
399
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
400
|
+
- spec/dummy/config/application.rb
|
401
|
+
- spec/dummy/config/boot.rb
|
402
|
+
- spec/dummy/config/database.yml
|
403
|
+
- spec/dummy/config/environment.rb
|
404
|
+
- spec/dummy/config/environments/development.rb
|
405
|
+
- spec/dummy/config/environments/production.rb
|
406
|
+
- spec/dummy/config/environments/test.rb
|
407
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
408
|
+
- spec/dummy/config/initializers/inflections.rb
|
409
|
+
- spec/dummy/config/initializers/mime_types.rb
|
410
|
+
- spec/dummy/config/initializers/secret_token.rb
|
411
|
+
- spec/dummy/config/initializers/session_store.rb
|
412
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
413
|
+
- spec/dummy/config/locales/en.yml
|
414
|
+
- spec/dummy/config/routes.rb
|
415
|
+
- spec/dummy/config.ru
|
416
|
+
- spec/dummy/db/development.sqlite3
|
417
|
+
- spec/dummy/db/schema.rb
|
418
|
+
- spec/dummy/db/test.sqlite3
|
419
|
+
- spec/dummy/log/development.log
|
420
|
+
- spec/dummy/log/test.log
|
421
|
+
- spec/dummy/public/404.html
|
422
|
+
- spec/dummy/public/422.html
|
423
|
+
- spec/dummy/public/500.html
|
424
|
+
- spec/dummy/public/favicon.ico
|
425
|
+
- spec/dummy/Rakefile
|
426
|
+
- spec/dummy/README.rdoc
|
427
|
+
- spec/dummy/script/rails
|
428
|
+
- spec/dummy/spec_link
|
429
|
+
- spec/models/asset_spec.rb
|
430
|
+
- spec/spec_helper.rb
|
431
|
+
- spec/support/factories.rb
|