syncassets_r2 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +11 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/tasks/syncassets_r2.rake +1 -1
- data/syncassets_r2.gemspec +3 -3
- metadata +5 -5
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
This rake task will update (delete and copy) all the files under
|
1
|
+
This rake task will update (delete and copy) all the files under the public directory to S3, by default is the public directory but you can pass as argument the path to the folder inside the public directory.
|
2
2
|
|
3
3
|
The rake task will verify if the local file exist on s3 and
|
4
4
|
if the local file have been modified since the upload to s3.
|
@@ -24,3 +24,13 @@ In your config/aws.yml
|
|
24
24
|
access_key_id: 'YOUR_ACCESS_KEY'
|
25
25
|
secret_access_key: 'YOUR_SECRET_ACCESS_KEY'
|
26
26
|
bucket: 'YOUR_BUCKET_NAME'
|
27
|
+
|
28
|
+
Running the task
|
29
|
+
rake syncassets:sync_s3_public_assets
|
30
|
+
# this will sync all the folders and files under the /public directory of your app
|
31
|
+
|
32
|
+
rake syncassets:sync_s3_public_assets[javascripts]
|
33
|
+
# this will sync all the folders and files under the /public/javascripts directory of your app
|
34
|
+
|
35
|
+
rake syncassets:sync_s3_public_assets[javascripts/some_folder]
|
36
|
+
# this will sync all the folders and files under the /public/javascripts/some_folder directory of your app
|
data/Rakefile
CHANGED
@@ -15,8 +15,8 @@ Jeweler::Tasks.new do |gem|
|
|
15
15
|
gem.name = "syncassets_r2"
|
16
16
|
gem.homepage = "http://github.com/uokesita/syncassets_r2"
|
17
17
|
gem.license = "MIT"
|
18
|
-
gem.summary = %q{This rake task will update (delete and copy) all the files under
|
19
|
-
gem.description = %q{This rake task will update (delete and copy) all the files under
|
18
|
+
gem.summary = %q{This rake task will update (delete and copy) all the files under the public directory to S3, by default is the public directory but you can pass as argument the path to the folder inside the public directory.}
|
19
|
+
gem.description = %q{This rake task will update (delete and copy) all the files under the public directory to S3, by default is the public directory but you can pass as argument the path to the folder inside the public directory.}
|
20
20
|
gem.email = "osledybazo@gmail.com"
|
21
21
|
gem.authors = ["Osledy Bazo"]
|
22
22
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
@@ -3,7 +3,7 @@ require 'syncassets_r2'
|
|
3
3
|
|
4
4
|
namespace :syncassets do
|
5
5
|
|
6
|
-
desc "
|
6
|
+
desc "This rake task will update (delete and copy) all the files under the public directory to S3, by default is the public directory but you can pass as argument the path to the folder inside the public directory"
|
7
7
|
task :sync_s3_public_assets, :directory do |t, args|
|
8
8
|
puts "#########################################################"
|
9
9
|
puts "## Syncing folders and files with S3 ##"
|
data/syncassets_r2.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{syncassets_r2}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Osledy Bazo"]
|
12
12
|
s.date = %q{2011-09-15}
|
13
|
-
s.description = %q{This rake task will update (delete and copy) all the files under
|
13
|
+
s.description = %q{This rake task will update (delete and copy) all the files under the public directory to S3, by default is the public directory but you can pass as argument the path to the folder inside the public directory.}
|
14
14
|
s.email = %q{osledybazo@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.licenses = ["MIT"]
|
36
36
|
s.require_paths = ["lib"]
|
37
37
|
s.rubygems_version = %q{1.4.2}
|
38
|
-
s.summary = %q{This rake task will update (delete and copy) all the files under
|
38
|
+
s.summary = %q{This rake task will update (delete and copy) all the files under the public directory to S3, by default is the public directory but you can pass as argument the path to the folder inside the public directory.}
|
39
39
|
s.test_files = [
|
40
40
|
"test/helper.rb",
|
41
41
|
"test/test_syncassets_r2.rb"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syncassets_r2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 5
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Osledy Bazo
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
requirement: *id005
|
95
95
|
prerelease: false
|
96
96
|
name: rcov
|
97
|
-
description: This rake task will update (delete and copy) all the files under
|
97
|
+
description: This rake task will update (delete and copy) all the files under the public directory to S3, by default is the public directory but you can pass as argument the path to the folder inside the public directory.
|
98
98
|
email: osledybazo@gmail.com
|
99
99
|
executables: []
|
100
100
|
|
@@ -150,7 +150,7 @@ rubyforge_project:
|
|
150
150
|
rubygems_version: 1.4.2
|
151
151
|
signing_key:
|
152
152
|
specification_version: 3
|
153
|
-
summary: This rake task will update (delete and copy) all the files under
|
153
|
+
summary: This rake task will update (delete and copy) all the files under the public directory to S3, by default is the public directory but you can pass as argument the path to the folder inside the public directory.
|
154
154
|
test_files:
|
155
155
|
- test/helper.rb
|
156
156
|
- test/test_syncassets_r2.rb
|