sink3 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 253f3fa30406d7a3234f7fa0f93b7586fe5dd4b2
4
- data.tar.gz: dcf5fbbee2991cb1d55f198b52b085ae416ce987
2
+ SHA256:
3
+ metadata.gz: f428eb1894d32bca6602df9fc23be208e23cfc86209e2c2c11fcfdea4d552fae
4
+ data.tar.gz: 62546a114fa3e7bbbe302ff18d14f4000fe0f7ebdd337bd56c782510a7833a88
5
5
  SHA512:
6
- metadata.gz: a3dcc00c4187c8c186240525d60aa85f3188480c7ed1aa9007a260214ac5da09f09cf4bf5064147d2fb578474317f6d16f8d63c7b347655e1074560330a7b85c
7
- data.tar.gz: 932cd69bfd7217fe445f1031274b4701ab7bb8819c550c220f82dd7698053015140067778877ff6edc015d6dbbd5d53ff8c3126ddefc173d37cdf703a5acc6c3
6
+ metadata.gz: a6027774cde9c3748f3238070aefc2192dcd019eef0ae45d262da91f18e01cd2c7b71c6d23b570e775cad6baabfa98cde5137e76247c61579980a5dda5cdf284
7
+ data.tar.gz: 066d2784ff5fa8f0287f94dd2f9d92fe5528d42c5e4a8f228b6e5f267627dd1a7d056f34657441139b4f7e9640d85e5004d58436af4c6c1b185d8bb27d77b4e8
data/lib/sink3/main.rb CHANGED
@@ -12,7 +12,7 @@ module Sink3
12
12
  option :delete, type: :boolean
13
13
  #
14
14
  # option :path, :required => true
15
- desc "Send file to S3", "Send files to S3 in write only mode"
15
+ desc "send", "Send files to S3 in write only mode"
16
16
 
17
17
  def send(*paths)
18
18
  configure
@@ -45,7 +45,7 @@ module Sink3
45
45
  end
46
46
 
47
47
  def send_to_remote
48
- remote_path = "#{ENV['HOSTNAME'].strip}/#{formatted_date}/#{prefix_and_path}"
48
+ remote_path = "#{ENV['HOSTNAME'].strip}/#{formatted_date}#{prefix_and_path}"
49
49
  remote_file = bucket.objects[remote_path]
50
50
  remote_file.write(@path)
51
51
 
@@ -55,7 +55,11 @@ module Sink3
55
55
  end
56
56
 
57
57
  def formatted_date
58
- Time.now.strftime "%Y-%m-%d"
58
+ if !ENV['SKIP_DATE_PARTITION']
59
+ return "#{Time.now.strftime "%Y-%m-%d"}/"
60
+ else
61
+ return ""
62
+ end
59
63
  end
60
64
 
61
65
  def prefix_and_path
data/lib/sink3/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sink3
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sink3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabrizio Regini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-02 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-v1
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.61.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.61.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dotenv
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.11.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.11.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.19.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.19.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.5'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Sink3 is an S3 backup designed to work with write-only keys.
@@ -88,8 +88,8 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
92
- - .rspec
91
+ - ".gitignore"
92
+ - ".rspec"
93
93
  - Gemfile
94
94
  - LICENSE.txt
95
95
  - README.md
@@ -116,17 +116,16 @@ require_paths:
116
116
  - lib
117
117
  required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - '>='
119
+ - - ">="
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - '>='
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubyforge_project:
129
- rubygems_version: 2.2.1
128
+ rubygems_version: 3.0.3
130
129
  signing_key:
131
130
  specification_version: 4
132
131
  summary: S3 backup designed for servers