capistrano-s3 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/NEWS CHANGED
@@ -1,3 +1,7 @@
1
+ New in 0.2.3
2
+
3
+ * Bugfix : fixed error when no specific bucket_write_options is set.
4
+
1
5
  New in 0.2.2
2
6
 
3
7
  * Bugfix : fixed an error caused previously by removing SASS & HAML dependency.
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # capistrano-s3
2
2
 
3
- > Allows static websites deployment to Amazon S3 website buckets using Capistrano.
3
+ > Enables static websites deployment to Amazon S3 website buckets using Capistrano.
4
+
5
+ [![Dependency Status](https://gemnasium.com/hooktstudios/capistrano-s3.png)](https://gemnasium.com/hooktstudios/capistrano-s3)
6
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/hooktstudios/capistrano-s3)
4
7
 
5
8
  ## Hosting your website with Amazon S3
6
9
 
@@ -61,7 +64,7 @@ Once you get this together, add a capistrano task to trigger website generation
61
64
  ```ruby
62
65
  # config/deploy.rb
63
66
  before 'deploy' do
64
- run_locally "bundle exec ruby sinata:export"
67
+ run_locally "bundle exec ruby sinatra:export"
65
68
  run_locally "bundle exec rake assetpack:build"
66
69
  end
67
70
  ```
data/Rakefile CHANGED
@@ -1 +1,11 @@
1
- require 'rake'
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rspec/core'
5
+ require 'rspec/core/rake_task'
6
+
7
+ RSpec::Core::RakeTask.new(:spec) do |spec|
8
+ spec.pattern = FileList['spec/**/*_spec.rb']
9
+ end
10
+
11
+ task :default => "spec"
@@ -1,21 +1,25 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
- Gem::Specification.new do |gem|
4
- gem.authors = ["Jean-Philippe Doyle","Josh Delsman"]
5
- gem.email = ["jeanphilippe.doyle@hooktstudios.com"]
6
- gem.description = "Using Ruby and Capistrano, build and deploy a static website to Amazon S3"
7
- gem.summary = "Using Ruby and Capistrano, build and deploy a static website to Amazon S3"
8
- gem.homepage = "http://github.com/hooktstudios/capistrano-s3"
9
- gem.licenses = ["MIT"]
10
- gem.files = `git ls-files`.split($\)
11
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
- gem.name = "capistrano-s3"
14
- gem.require_paths = ["lib"]
15
- gem.version = "0.2.2"
3
+ Gem::Specification.new do |s|
4
+ s.authors = ['Jean-Philippe Doyle','Josh Delsman']
5
+ s.email = ['jeanphilippe.doyle@hooktstudios.com']
6
+ s.description = 'Enables static websites deployment to Amazon S3 website buckets using Capistrano.'
7
+ s.summary = 'Build and deploy a static website to Amazon S3'
8
+ s.homepage = 'http://github.com/hooktstudios/capistrano-s3'
9
+ s.licenses = ['MIT']
10
+ s.files = `git ls-files`.split($\)
11
+ s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
12
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
13
+ s.name = 'capistrano-s3'
14
+ s.require_paths = ['lib']
15
+ s.version = '0.2.3'
16
16
 
17
17
  # Gem dependencies
18
- gem.add_dependency("aws-sdk")
19
- gem.add_dependency("capistrano")
20
- gem.add_dependency("mime-types")
18
+ s.add_dependency 'aws-sdk'
19
+ s.add_dependency 'capistrano'
20
+ s.add_dependency 'mime-types'
21
+
22
+ s.add_development_dependency 'rake'
23
+ s.add_development_dependency 'rspec'
24
+ s.add_development_dependency 'mocha'
21
25
  end
data/lib/capistrano/s3.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'capistrano'
1
2
  require 'capistrano/s3/publisher'
2
3
 
3
4
  unless Capistrano::Configuration.respond_to?(:instance)
@@ -10,6 +11,7 @@ Capistrano::Configuration.instance(true).load do
10
11
  end
11
12
 
12
13
  _cset :deployment_path, Dir.pwd.gsub("\n", "") + "/public"
14
+ _cset :bucket_write_options, :acl => :public_read
13
15
 
14
16
  # Deployment recipes
15
17
  namespace :deploy do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-13 00:00:00.000000000 Z
13
+ date: 2013-02-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk
@@ -60,8 +60,56 @@ dependencies:
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  none: false
63
- description: Using Ruby and Capistrano, build and deploy a static website to Amazon
64
- S3
63
+ - !ruby/object:Gem::Dependency
64
+ name: rake
65
+ prerelease: false
66
+ requirement: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ none: false
72
+ type: :development
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ none: false
79
+ - !ruby/object:Gem::Dependency
80
+ name: rspec
81
+ prerelease: false
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ none: false
88
+ type: :development
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ none: false
95
+ - !ruby/object:Gem::Dependency
96
+ name: mocha
97
+ prerelease: false
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ none: false
104
+ type: :development
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ none: false
111
+ description: Enables static websites deployment to Amazon S3 website buckets using
112
+ Capistrano.
65
113
  email:
66
114
  - jeanphilippe.doyle@hooktstudios.com
67
115
  executables: []
@@ -101,6 +149,6 @@ rubyforge_project:
101
149
  rubygems_version: 1.8.24
102
150
  signing_key:
103
151
  specification_version: 3
104
- summary: Using Ruby and Capistrano, build and deploy a static website to Amazon S3
152
+ summary: Build and deploy a static website to Amazon S3
105
153
  test_files: []
106
154
  has_rdoc: