appydave-tools 0.24.0 → 0.26.0
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 +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/appydave/tools/dam/s3_operations.rb +14 -1
- data/lib/appydave/tools/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bab210dc9c8c8c367a1a24c6b7c3d6b732e1c4e3085ee98b311c34c1d057aac
|
|
4
|
+
data.tar.gz: 03f95635fce24ae1b0fddcb948584eab86ceadbc6738f65a8c049de85d960cb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb775da047c00b412065c4fa9bf6f17963cac598dab05e4e9f357e111580ea5aca38047ab9e390f7799f4c7d8a8f3b28facf8d30e05059696df83db9975c4c1f
|
|
7
|
+
data.tar.gz: a92bb5b8673726762216a9b03a2816cda499c8f00be0e896ed65fe85205fde1a13cc5dffd97ab52830a2c7692d01380eff724a1a4326db060765452dee437cd2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [0.25.0](https://github.com/appydave/appydave-tools/compare/v0.24.0...v0.25.0) (2025-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add download timing using shared format_duration helper ([c729792](https://github.com/appydave/appydave-tools/commit/c729792c89507e16ce4c51de55c7a05173da97e7))
|
|
7
|
+
|
|
8
|
+
# [0.24.0](https://github.com/appydave/appydave-tools/compare/v0.23.0...v0.24.0) (2025-11-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* create project directory before S3 download - fixes WSL permission denied error when downloading to non-existent projects ([5819a65](https://github.com/appydave/appydave-tools/commit/5819a658c7aae028107c00eebe073d9a100d246a))
|
|
14
|
+
|
|
1
15
|
# [0.23.0](https://github.com/appydave/appydave-tools/compare/v0.22.0...v0.23.0) (2025-11-19)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -26,6 +26,7 @@ module Appydave
|
|
|
26
26
|
**/.vercel/**
|
|
27
27
|
**/tmp/**
|
|
28
28
|
**/.DS_Store
|
|
29
|
+
**/*:Zone.Identifier
|
|
29
30
|
].freeze
|
|
30
31
|
|
|
31
32
|
def initialize(brand, project_id, brand_info: nil, brand_path: nil, s3_client: nil)
|
|
@@ -132,6 +133,13 @@ module Appydave
|
|
|
132
133
|
|
|
133
134
|
files.each do |file|
|
|
134
135
|
relative_path = file.sub("#{staging_dir}/", '')
|
|
136
|
+
|
|
137
|
+
# Skip excluded files (e.g., Windows Zone.Identifier, .DS_Store)
|
|
138
|
+
if excluded_path?(relative_path)
|
|
139
|
+
skipped += 1
|
|
140
|
+
next
|
|
141
|
+
end
|
|
142
|
+
|
|
135
143
|
s3_path = build_s3_key(relative_path)
|
|
136
144
|
|
|
137
145
|
# Check if file already exists with same MD5
|
|
@@ -551,13 +559,18 @@ module Appydave
|
|
|
551
559
|
|
|
552
560
|
FileUtils.mkdir_p(File.dirname(local_file))
|
|
553
561
|
|
|
562
|
+
start_time = Time.now
|
|
563
|
+
|
|
554
564
|
s3_client.get_object(
|
|
555
565
|
bucket: brand_info.aws.s3_bucket,
|
|
556
566
|
key: s3_key,
|
|
557
567
|
response_target: local_file
|
|
558
568
|
)
|
|
559
569
|
|
|
560
|
-
|
|
570
|
+
elapsed = Time.now - start_time
|
|
571
|
+
elapsed_str = format_duration(elapsed)
|
|
572
|
+
file_size = File.size(local_file)
|
|
573
|
+
puts " ✓ Downloaded: #{File.basename(local_file)} (#{file_size_human(file_size)}) in #{elapsed_str}"
|
|
561
574
|
true
|
|
562
575
|
rescue Aws::S3::Errors::ServiceError => e
|
|
563
576
|
puts " ✗ Failed: #{File.basename(local_file)}"
|
data/package.json
CHANGED