ems 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/ems/article.rb +1 -1
- data/app/models/ems/asset.rb +1 -1
- data/app/models/ems/news.rb +1 -1
- data/app/models/ems/report.rb +2 -2
- data/config/environments/production.rb +10 -0
- data/config/s3.yml +5 -0
- data/lib/ems/version.rb +1 -1
- metadata +20 -2
data/app/models/ems/article.rb
CHANGED
@@ -51,7 +51,7 @@ module Ems
|
|
51
51
|
accepts_nested_attributes_for :assets, :allow_destroy => true
|
52
52
|
|
53
53
|
# paperclip files
|
54
|
-
has_attached_file :image, :styles => { :image564x252 => "564x252#", :image312x189 => "312x189#", :image312x126 => "312x126", :image228x126 => "228x126" }
|
54
|
+
has_attached_file :image, :styles => { :image564x252 => "564x252#", :image312x189 => "312x189#", :image312x126 => "312x126", :image228x126 => "228x126" }.merge(PAPERCLIP_STORAGE_OPTIONS)
|
55
55
|
|
56
56
|
|
57
57
|
# Method to make sure we have all our default values set on the object
|
data/app/models/ems/asset.rb
CHANGED
@@ -6,7 +6,7 @@ module Ems
|
|
6
6
|
|
7
7
|
belongs_to :assetable, :polymorphic => true
|
8
8
|
|
9
|
-
has_attached_file :asset, :styles => {:original => "564x252>"}
|
9
|
+
has_attached_file :asset, :styles => {:original => "564x252>"}.merge(PAPERCLIP_STORAGE_OPTIONS)
|
10
10
|
|
11
11
|
# virtual alt text accessor - returns the title of the image otherwise the path
|
12
12
|
def alt
|
data/app/models/ems/news.rb
CHANGED
@@ -47,7 +47,7 @@ module Ems
|
|
47
47
|
has_and_belongs_to_many :reports, :join_table => 'ems_news_reports'
|
48
48
|
accepts_nested_attributes_for :reports
|
49
49
|
|
50
|
-
has_attached_file :image, :styles => { :image228x126 => "228x126" }
|
50
|
+
has_attached_file :image, :styles => { :image228x126 => "228x126" }.merge(PAPERCLIP_STORAGE_OPTIONS)
|
51
51
|
|
52
52
|
has_many :assets, :as => :assetable
|
53
53
|
accepts_nested_attributes_for :assets, :allow_destroy => true
|
data/app/models/ems/report.rb
CHANGED
@@ -49,8 +49,8 @@ module Ems
|
|
49
49
|
accepts_nested_attributes_for :assets, :allow_destroy => true
|
50
50
|
|
51
51
|
# paperclip files
|
52
|
-
has_attached_file :image, :styles => { :image564x252 => "564x252#", :image312x189 => "312x189#", :image312x126 => "312x126", :image228x126 => "228x126" }
|
53
|
-
has_attached_file :report, :styles => { :report564x252 => "564x252#", :report312x189 => "312x189#", :report312x126 => "312x126", :report228x126 => "228x126" }
|
52
|
+
has_attached_file :image, :styles => { :image564x252 => "564x252#", :image312x189 => "312x189#", :image312x126 => "312x126", :image228x126 => "228x126" }.merge(PAPERCLIP_STORAGE_OPTIONS)
|
53
|
+
has_attached_file :report, :styles => { :report564x252 => "564x252#", :report312x189 => "312x189#", :report312x126 => "312x126", :report228x126 => "228x126" }.merge(PAPERCLIP_STORAGE_OPTIONS)
|
54
54
|
|
55
55
|
# Method to make sure we have all our default values set on the object
|
56
56
|
def init
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Ems::Engine.configure do
|
2
|
+
# Paperclip S3 config
|
3
|
+
PAPERCLIP_STORAGE_OPTIONS = {
|
4
|
+
:storage => :s3,
|
5
|
+
:s3_credentials => "#{Ems::Engine.root}/config/s3.yml",
|
6
|
+
:path => ":attachment/:filename",
|
7
|
+
:s3_host_alias => "tbg.beanscdn.co.uk",
|
8
|
+
:url => ":s3_alias_url"
|
9
|
+
}
|
10
|
+
end
|
data/config/s3.yml
ADDED
data/lib/ems/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -251,6 +251,22 @@ dependencies:
|
|
251
251
|
- - ! '>='
|
252
252
|
- !ruby/object:Gem::Version
|
253
253
|
version: '0'
|
254
|
+
- !ruby/object:Gem::Dependency
|
255
|
+
name: bean-kramdown
|
256
|
+
requirement: !ruby/object:Gem::Requirement
|
257
|
+
none: false
|
258
|
+
requirements:
|
259
|
+
- - ! '>='
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: '0'
|
262
|
+
type: :runtime
|
263
|
+
prerelease: false
|
264
|
+
version_requirements: !ruby/object:Gem::Requirement
|
265
|
+
none: false
|
266
|
+
requirements:
|
267
|
+
- - ! '>='
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
254
270
|
description: Editorial Management system used within group projects
|
255
271
|
email:
|
256
272
|
- vincent@thebeansgroup.com
|
@@ -387,6 +403,7 @@ files:
|
|
387
403
|
- app/views/layouts/ems/application.html.haml
|
388
404
|
- config/ems_navigation.rb
|
389
405
|
- config/environment.rb
|
406
|
+
- config/environments/production.rb
|
390
407
|
- config/initializers/devise.rb
|
391
408
|
- config/initializers/haml_template.rb
|
392
409
|
- config/initializers/simple_form.rb
|
@@ -394,6 +411,7 @@ files:
|
|
394
411
|
- config/locales/devise.en.yml
|
395
412
|
- config/locales/simple_form.en.yml
|
396
413
|
- config/routes.rb
|
414
|
+
- config/s3.yml
|
397
415
|
- config/sunspot.yml
|
398
416
|
- db/migrate/20120302144235_create_ems_tags.rb
|
399
417
|
- db/migrate/20120306110946_create_ems_categories.rb
|