water_wheel 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d75be9afccde503215262b32fc3bcdbae69ae6653d249a58a37eb206e897a3b7
4
- data.tar.gz: 0dcb13d9a9185e697156b6ad0acaa5d3bcc97d7472e420562709993d3b93b3e1
3
+ metadata.gz: 0a6f505db8024feb54b7662be1e8d609b0af7aaf088f5b82b5fe012f53abd183
4
+ data.tar.gz: fbb6fd264b01e39725e7bd0ae4ed0a44baf4971540c905f019fd289a5834bc36
5
5
  SHA512:
6
- metadata.gz: 871aad2fc9a25bfc8911525930eb1cbcceb20605e041f520061fa7f78650a28e9e879fe83ff0719f11b155f1a78e40d0d322c1e95f0660c18eef7bf68902cdc3
7
- data.tar.gz: d6a35db07b29eaa57f057aa0c56e4f5b6dd13fdeccebbac143d2b8aeb68db20ca1612966de6a3b0072f18b7b194a0ef03a1725ce905716b70fb088a21b2869c6
6
+ metadata.gz: bca825a9fbff114ef36b7e11f94c9fd810042d28173844e188db8eaf246e18d7b32a49e00dca229a5a66775e0aaf6a8240fab032ab78c1f2d6b4252dc0955b68
7
+ data.tar.gz: ddafddd155e70644e6b6d625f307395d82111c84a6dbf9787ceb79321a68958fc625566b51b17918b48d1416e320a897efee85e8489b16a15360b7dfb7960ea1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  ## [Unreleased]
2
2
  * None
3
3
 
4
+ ## [0.2.1] - 2022-02-13
5
+ ### Added
6
+ - Let logger output logs on checking existing files.
7
+
4
8
  ## [0.2.0] - 2022-01-29
5
9
  ### Added
6
10
  - Introduced `parallel_count` setting, which can be used to set the number of parallel threads to use.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- water_wheel (0.2.0)
4
+ water_wheel (0.2.1)
5
5
  fog-aws (~> 3.0)
6
6
  parallel (~> 1.21)
7
7
  retriable (~> 3.1)
@@ -12,7 +12,7 @@ GEM
12
12
  ast (2.4.2)
13
13
  builder (3.2.4)
14
14
  diff-lcs (1.5.0)
15
- excon (0.90.0)
15
+ excon (0.91.0)
16
16
  fog-aws (3.12.0)
17
17
  fog-core (~> 2.1)
18
18
  fog-json (~> 1.1)
@@ -34,10 +34,10 @@ GEM
34
34
  mime-types (3.4.1)
35
35
  mime-types-data (~> 3.2015)
36
36
  mime-types-data (3.2022.0105)
37
+ mini_portile2 (2.7.1)
37
38
  multi_json (1.15.0)
38
- nokogiri (1.13.1-x86_64-darwin)
39
- racc (~> 1.4)
40
- nokogiri (1.13.1-x86_64-linux)
39
+ nokogiri (1.13.1)
40
+ mini_portile2 (~> 2.7.0)
41
41
  racc (~> 1.4)
42
42
  parallel (1.21.0)
43
43
  parser (3.0.3.2)
@@ -76,6 +76,7 @@ GEM
76
76
  unicode-display_width (2.1.0)
77
77
 
78
78
  PLATFORMS
79
+ ruby
79
80
  x86_64-darwin-20
80
81
  x86_64-linux
81
82
 
@@ -116,7 +116,11 @@ module WaterWheel
116
116
 
117
117
  file_information = bucket.files.head(buckey_file_key)
118
118
  return true if file_information.nil?
119
- return false if file_information.content_length == File.size(absolute_file_path)
119
+ if file_information.content_length == File.size(absolute_file_path)
120
+ WaterWheel.logger.info "#{absolute_file_path} has already been backed up as #{buckey_file_key} on #{bucket.key}"
121
+ return false
122
+ end
123
+
120
124
  true
121
125
  end
122
126
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WaterWheel
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: water_wheel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - shoutatani
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-29 00:00:00.000000000 Z
11
+ date: 2022-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-aws
@@ -125,7 +125,7 @@ metadata:
125
125
  homepage_uri: https://github.com/shoutatani/water_wheel
126
126
  source_code_uri: https://github.com/shoutatani/water_wheel
127
127
  changelog_uri: https://github.com/shoutatani/water_wheel/blob/main/CHANGELOG.md
128
- post_install_message:
128
+ post_install_message:
129
129
  rdoc_options: []
130
130
  require_paths:
131
131
  - lib
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubygems_version: 3.1.6
144
- signing_key:
144
+ signing_key:
145
145
  specification_version: 4
146
146
  summary: Backup local files or directories to S3
147
147
  test_files: []