s3-publisher 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +22 -0
- data/Rakefile +1 -58
- data/lib/s3-publisher.rb +2 -1
- data/s3-publisher.gemspec +16 -47
- metadata +65 -85
- data/.document +0 -5
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a3a229558c18ee709daa8680c4d15d89cc832be0
|
4
|
+
data.tar.gz: ae139bdbc993ae23251f102c727bde45db901e6e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 052acc3beae0da6d7eb63c3ffedfca7a55ea5e3db429d4f8b98b38acefcdc48d1770df7a15e6d73f28143c3426936b61e77bdbdfeea7496f1add05e029aeaec3
|
7
|
+
data.tar.gz: 6e9abb6df1e5b8e0d82b17d5fe6d1e7b81737ab54f5c529de26c962e3f8c50d8b470d833657829e1dec8128b169a99662e4a40824e4e257825204fadce1fe184
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
s3-publisher (0.4.3)
|
5
|
+
aws_credentials
|
6
|
+
right_aws (>= 3.0.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
aws_credentials (0.7.0)
|
12
|
+
right_aws (3.1.0)
|
13
|
+
right_http_connection (>= 1.2.5)
|
14
|
+
right_http_connection (1.4.0)
|
15
|
+
thoughtbot-shoulda (2.11.1)
|
16
|
+
|
17
|
+
PLATFORMS
|
18
|
+
ruby
|
19
|
+
|
20
|
+
DEPENDENCIES
|
21
|
+
s3-publisher!
|
22
|
+
thoughtbot-shoulda
|
data/Rakefile
CHANGED
@@ -1,58 +1 @@
|
|
1
|
-
require
|
2
|
-
require 'rake'
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "s3-publisher"
|
8
|
-
gem.summary = %Q{Publish data to S3 for the world to see}
|
9
|
-
gem.description = %Q{Publish data to S3 for the world to see}
|
10
|
-
gem.email = "gems@benkoski.com"
|
11
|
-
gem.homepage = "http://github.com/bkoski/s3-publisher"
|
12
|
-
gem.authors = ["Ben Koski"]
|
13
|
-
gem.add_development_dependency "thoughtbot-shoulda"
|
14
|
-
gem.add_dependency 'aws_credentials'
|
15
|
-
gem.add_dependency 'right_aws', '>=3.0.0'
|
16
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
|
-
end
|
18
|
-
rescue LoadError
|
19
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
20
|
-
end
|
21
|
-
|
22
|
-
require 'rake/testtask'
|
23
|
-
Rake::TestTask.new(:test) do |test|
|
24
|
-
test.libs << 'lib' << 'test'
|
25
|
-
test.pattern = 'test/**/*_test.rb'
|
26
|
-
test.verbose = true
|
27
|
-
end
|
28
|
-
|
29
|
-
begin
|
30
|
-
require 'rcov/rcovtask'
|
31
|
-
Rcov::RcovTask.new do |test|
|
32
|
-
test.libs << 'test'
|
33
|
-
test.pattern = 'test/**/*_test.rb'
|
34
|
-
test.verbose = true
|
35
|
-
end
|
36
|
-
rescue LoadError
|
37
|
-
task :rcov do
|
38
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
task :test => :check_dependencies
|
43
|
-
|
44
|
-
task :default => :test
|
45
|
-
|
46
|
-
require 'rake/rdoctask'
|
47
|
-
Rake::RDocTask.new do |rdoc|
|
48
|
-
if File.exist?('VERSION')
|
49
|
-
version = File.read('VERSION')
|
50
|
-
else
|
51
|
-
version = ""
|
52
|
-
end
|
53
|
-
|
54
|
-
rdoc.rdoc_dir = 'rdoc'
|
55
|
-
rdoc.title = "s3-publisher #{version}"
|
56
|
-
rdoc.rdoc_files.include('README*')
|
57
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
58
|
-
end
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/s3-publisher.rb
CHANGED
@@ -27,10 +27,11 @@ class S3Publisher
|
|
27
27
|
# Pass the publisher a bucket_name along with any of the following options:
|
28
28
|
# * <tt>base_path</tt> - path prepended to supplied file_name on upload
|
29
29
|
# * <tt>logger</tt> - a logger object to recieve 'uploaded' messages. Defaults to STDOUT.
|
30
|
+
# * <tt>protocol</tt> - protocol to use for S3 requests. Defaults to 'http', but 'https' can also be used.
|
30
31
|
# * <tt>workers</tt> - number of threads to use when pushing to S3. Defaults to 3.
|
31
32
|
def initialize bucket_name, opts={}
|
32
33
|
@s3 = RightAws::S3.new(AWSCredentials.access_key, AWSCredentials.secret_access_key, :multi_thread => true,
|
33
|
-
:protocol => 'http',
|
34
|
+
:protocol => opts[:protocol] || 'http',
|
34
35
|
:port => 80,
|
35
36
|
:logger => Logger.new(nil))
|
36
37
|
@bucket_name, @base_path = bucket_name, opts[:base_path]
|
data/s3-publisher.gemspec
CHANGED
@@ -1,53 +1,22 @@
|
|
1
|
-
#
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# coding: utf-8
|
5
2
|
|
6
3
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.date = "2012-07-04"
|
4
|
+
s.name = "s3-publisher"
|
5
|
+
s.version = "0.4.4"
|
6
|
+
s.authors = ["Ben Koski"]
|
7
|
+
s.email = "gems@benkoski.com"
|
8
|
+
s.summary = "Publish data to S3 for the world to see"
|
13
9
|
s.description = "Publish data to S3 for the world to see"
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
"LICENSE",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
"LICENSE",
|
22
|
-
"README.rdoc",
|
23
|
-
"Rakefile",
|
24
|
-
"VERSION",
|
25
|
-
"lib/s3-publisher.rb",
|
26
|
-
"s3-publisher.gemspec",
|
27
|
-
"test/s3-publisher_test.rb",
|
28
|
-
"test/test_helper.rb"
|
29
|
-
]
|
30
|
-
s.homepage = "http://github.com/bkoski/s3-publisher"
|
31
|
-
s.require_paths = ["lib"]
|
32
|
-
s.rubygems_version = "1.8.10"
|
33
|
-
s.summary = "Publish data to S3 for the world to see"
|
10
|
+
s.homepage = "http://github.com/bkoski/s3-publisher"
|
11
|
+
s.license = 'MIT'
|
34
12
|
|
35
|
-
|
36
|
-
|
13
|
+
s.files = `git ls-files`.split($/)
|
14
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
15
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
37
16
|
|
38
|
-
|
39
|
-
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
40
|
-
s.add_runtime_dependency(%q<aws_credentials>, [">= 0"])
|
41
|
-
s.add_runtime_dependency(%q<right_aws>, [">= 3.0.0"])
|
42
|
-
else
|
43
|
-
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
44
|
-
s.add_dependency(%q<aws_credentials>, [">= 0"])
|
45
|
-
s.add_dependency(%q<right_aws>, [">= 3.0.0"])
|
46
|
-
end
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
49
|
-
s.add_dependency(%q<aws_credentials>, [">= 0"])
|
50
|
-
s.add_dependency(%q<right_aws>, [">= 3.0.0"])
|
51
|
-
end
|
52
|
-
end
|
17
|
+
s.require_paths = ["lib"]
|
53
18
|
|
19
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
20
|
+
s.add_runtime_dependency(%q<aws_credentials>, [">= 0"])
|
21
|
+
s.add_runtime_dependency(%q<right_aws>, [">= 3.0.0"])
|
22
|
+
end
|
metadata
CHANGED
@@ -1,117 +1,97 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3-publisher
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 4
|
9
|
-
- 3
|
10
|
-
version: 0.4.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.4
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Ben Koski
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-12-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: thoughtbot-shoulda
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
32
20
|
type: :development
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: aws_credentials
|
36
21
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws_credentials
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
46
34
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: right_aws
|
50
35
|
prerelease: false
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: right_aws
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
61
47
|
version: 3.0.0
|
62
48
|
type: :runtime
|
63
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0
|
64
55
|
description: Publish data to S3 for the world to see
|
65
56
|
email: gems@benkoski.com
|
66
57
|
executables: []
|
67
|
-
|
68
58
|
extensions: []
|
69
|
-
|
70
|
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
|
74
|
-
- .document
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- .gitignore
|
62
|
+
- Gemfile
|
63
|
+
- Gemfile.lock
|
75
64
|
- LICENSE
|
76
65
|
- README.rdoc
|
77
66
|
- Rakefile
|
78
|
-
- VERSION
|
79
67
|
- lib/s3-publisher.rb
|
80
68
|
- s3-publisher.gemspec
|
81
69
|
- test/s3-publisher_test.rb
|
82
70
|
- test/test_helper.rb
|
83
71
|
homepage: http://github.com/bkoski/s3-publisher
|
84
|
-
licenses:
|
85
|
-
|
72
|
+
licenses:
|
73
|
+
- MIT
|
74
|
+
metadata: {}
|
86
75
|
post_install_message:
|
87
76
|
rdoc_options: []
|
88
|
-
|
89
|
-
require_paths:
|
77
|
+
require_paths:
|
90
78
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
none: false
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
hash: 3
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
version: "0"
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
109
89
|
requirements: []
|
110
|
-
|
111
90
|
rubyforge_project:
|
112
|
-
rubygems_version:
|
91
|
+
rubygems_version: 2.0.6
|
113
92
|
signing_key:
|
114
|
-
specification_version:
|
93
|
+
specification_version: 4
|
115
94
|
summary: Publish data to S3 for the world to see
|
116
|
-
test_files:
|
117
|
-
|
95
|
+
test_files:
|
96
|
+
- test/s3-publisher_test.rb
|
97
|
+
- test/test_helper.rb
|
data/.document
DELETED
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.4.3
|