spud_media 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@ class SpudMedia < ActiveRecord::Base
3
3
  has_attached_file :attachment,
4
4
  :storage => Spud::Media.paperclip_storage,
5
5
  :s3_credentials => Spud::Media.s3_credentials,
6
+ :s3_host_name => Spud::Media.s3_host_name,
7
+
6
8
  :s3_permissions => lambda { |attachment, style|
7
9
  attachment.instance.is_protected ? 'private' : 'public-read'
8
10
  },
@@ -1,11 +1,13 @@
1
1
  module Spud
2
2
  module Media
3
3
  include ActiveSupport::Configurable
4
- config_accessor :paperclip_storage,:s3_credentials,:storage_path,:storage_path_protected,:storage_url
4
+ config_accessor :paperclip_storage,:s3_credentials,:storage_path,:storage_path_protected,:storage_url, :s3_host_name
5
5
  self.paperclip_storage = :filesystem
6
6
  self.s3_credentials = "#{Rails.root}/config/s3.yml"
7
+ self.s3_host_name = 's3.amazonaws.com'
8
+
7
9
  self.storage_path = "public/system/spud_media/:id/:style/:basename.:extension"
8
10
  self.storage_path_protected = "public/system/spud_media_protected/:id/:style/:basename.:extension"
9
11
  self.storage_url = "/system/spud_media/:id/:style/:basename.:extension"
10
12
  end
11
- end
13
+ end
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Media
3
- VERSION = "0.9.6"
3
+ VERSION = "0.9.7"
4
4
  end
5
5
  end
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.9.6
4
+ version: 0.9.7
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: 2013-07-09 00:00:00.000000000 Z
12
+ date: 2013-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -270,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  segments:
272
272
  - 0
273
- hash: 2768522942128927229
273
+ hash: -416899076259161455
274
274
  required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  none: false
276
276
  requirements:
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  version: '0'
280
280
  segments:
281
281
  - 0
282
- hash: 2768522942128927229
282
+ hash: -416899076259161455
283
283
  requirements: []
284
284
  rubyforge_project:
285
285
  rubygems_version: 1.8.25