mina-s3 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +1 -0
  3. data/lib/mina-s3.rb +1 -1
  4. data/lib/mina/s3.rb +8 -3
  5. metadata +15 -31
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2d260f3d7832d09b1c166b482c6e72e4941ce793
4
+ data.tar.gz: d120454dcccf75d15bce5e38ce13e0ac8f479ffb
5
+ SHA512:
6
+ metadata.gz: a2c5a764a4ab2f7833e6f56bdbd046dedfd18330c47e2f92279f6f34c0c82d6b6307dfa563fd0deb203449b2d2f48aca60cee9c77898b7fc88cb2c449fcb8a45
7
+ data.tar.gz: f9429207af2da9aa1880cc0ed57c88da11588e1229dc4f36674048de0143aa367393e04318a530551cbbe77c4d881c7e5d665476ef83b4662f297fe142540b29
data/README.md CHANGED
@@ -35,6 +35,7 @@ set :s3_bucket_name, 'mina'
35
35
  set :aws_access_key_id, 'YOUR_KEY'
36
36
  set :aws_secret_access_key, 'YOUR_SECRET'
37
37
  set :s3_files_pattern, ['assets/**/**', '*.html']
38
+ set :s3_region, 'eu-west-1'
38
39
  ```
39
40
 
40
41
  Update `deploy` task to invoke `aws:s3:deploy` task:
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module S3
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -40,6 +40,10 @@ set_default :s3_files_pattern, ['assets/**/**', '*.html', '*.css']
40
40
 
41
41
  set_default :s3_move_from_to, false
42
42
 
43
+ # ### s3_region
44
+ # Sets the AWS region
45
+ set_default :s3_region, 'us-east-1'
46
+
43
47
  # ### s3
44
48
  # Sets the s3 connection object
45
49
 
@@ -49,7 +53,8 @@ set_default :s3, proc{
49
53
 
50
54
  AWS::S3.new(
51
55
  :access_key_id => aws_access_key_id,
52
- :secret_access_key => aws_secret_access_key
56
+ :secret_access_key => aws_secret_access_key,
57
+ :region => s3_region
53
58
  )
54
59
  }
55
60
 
@@ -67,7 +72,7 @@ namespace 'aws:s3' do
67
72
  desc 'Starts a deploy to AWS S3'
68
73
  task :deploy do
69
74
  print_str '-----> Starting AWS S3 deployment'
70
- files = Dir.glob(s3_files_pattern).each do |file|
75
+ Dir.glob(s3_files_pattern).each do |file|
71
76
  if !File.directory?(file)
72
77
  path = file
73
78
 
@@ -88,7 +93,7 @@ namespace 'aws:s3' do
88
93
  s3_bucket.objects[path].write(contents, options)
89
94
  print_str 'Deployed ~> %s%s' % [s3_bucket.url, path]
90
95
  end # if
91
- end # files.each
96
+ end # each
92
97
  end
93
98
 
94
99
  # ### aws:s3:empty
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Stas SUȘCOV
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-21 00:00:00.000000000 Z
11
+ date: 2013-11-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mina
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: aws-sdk
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: mime-types
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: Adds AWS S3 support for mina.
@@ -92,32 +83,25 @@ files:
92
83
  - mina-s3.gemspec
93
84
  homepage: https://github.com/stas/mina-s3
94
85
  licenses: []
86
+ metadata: {}
95
87
  post_install_message:
96
88
  rdoc_options: []
97
89
  require_paths:
98
90
  - lib
99
91
  required_ruby_version: !ruby/object:Gem::Requirement
100
- none: false
101
92
  requirements:
102
- - - ! '>='
93
+ - - '>='
103
94
  - !ruby/object:Gem::Version
104
95
  version: '0'
105
- segments:
106
- - 0
107
- hash: 669874291
108
96
  required_rubygems_version: !ruby/object:Gem::Requirement
109
- none: false
110
97
  requirements:
111
- - - ! '>='
98
+ - - '>='
112
99
  - !ruby/object:Gem::Version
113
100
  version: '0'
114
- segments:
115
- - 0
116
- hash: 669874291
117
101
  requirements: []
118
102
  rubyforge_project:
119
- rubygems_version: 1.8.23
103
+ rubygems_version: 2.0.3
120
104
  signing_key:
121
- specification_version: 3
105
+ specification_version: 4
122
106
  summary: Deploy to S3 using mina.
123
107
  test_files: []