refinerycms-s3assets 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -7,7 +7,7 @@ This gem adds a rake task to your Refinery CMS project which copies your product
7
7
 
8
8
  1. Mac OS X, Linux, or UNIX.
9
9
  2. A Heroku account (or S3 credentials).
10
- 3. A Refinery CMS 2.x project (RefineryCMS 1.x not currently supported)
10
+ 3. A Refinery CMS project (Refinery 1.x and 2.x are supported)
11
11
 
12
12
  ## Installation
13
13
 
@@ -14,7 +14,6 @@ module Refinery
14
14
 
15
15
  def self.pull
16
16
  verify_s3_configuration
17
- base_path = "public/system/refinery"
18
17
  copy_from_s3_bucket(Image, :image_uid, s3_config[:bucket], File.join(base_path, "images"))
19
18
  copy_from_s3_bucket(Resource, :file_uid, s3_config[:bucket], File.join(base_path, "resources"))
20
19
  end
@@ -27,6 +26,10 @@ module Refinery
27
26
  end
28
27
 
29
28
  private
29
+
30
+ def self.base_path
31
+ defined?(::Refinery::Image) ? "public/system/refinery" : "public/system"
32
+ end
30
33
 
31
34
  def self.verify_s3_configuration
32
35
  { :key => 'S3_KEY', :secret => 'S3_SECRET', :bucket => 'S3_BUCKET' }.each do |key, val|
@@ -1,5 +1,5 @@
1
1
  module Refinery
2
2
  module S3assets
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-s3assets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Francois Harbec
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-13 00:00:00 Z
18
+ date: 2012-06-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: aws-sdk
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  requirements: []
114
114
 
115
115
  rubyforge_project: refinerycms-s3assets
116
- rubygems_version: 1.8.15
116
+ rubygems_version: 1.8.24
117
117
  signing_key:
118
118
  specification_version: 3
119
119
  summary: copies s3 assets from production refinerycms app hosted on Heroku to local