metanorma-release 0.2.22 → 0.2.23

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: 1490acc4afbc4dad249b93c8d295cc32a4c6403d07c42f153f807d95c0e43815
4
- data.tar.gz: e9e6351e5409f1953b3261c9c2ba39ff05c13e0c12fcabc6cfe5882b85b50672
3
+ metadata.gz: fcbd94afb53b355f5637604bd713ec156adaf4e061c49dda44c1cf6cf777938a
4
+ data.tar.gz: 6dfa4f1d17e6aa4bac1bccc991510d9ac3856012d2205c9ce46644aa045d1ede
5
5
  SHA512:
6
- metadata.gz: 37f0fff84870f3231d32918b7fca7810acb1df88c6558d79eff7acac0ef2fbf2e111d75c5144fbef72043f6254f549e1757856f8a429ccef651b4097536e260b
7
- data.tar.gz: 3c571cf5ae67f317b8e7deb773f12094f29d61aa6b54bf89ed9169fb804a89cb6f250d7e0af81e97b2ec8cf7ef26d0253f04f982638da140149bc991d5ed64ba
6
+ metadata.gz: 5acb0eb4eaaa919c5a5f5f5a868aea80cc0d1de643fc9377d4497e0148f6b84171dee1208832f037b3dcab9ab285e8e7fdcba600cb0db99a2169ed4da484f50d
7
+ data.tar.gz: 9e55e666c20c4e5c93a2545ff5d8927328721878f83ae8f4affdbbe40bc31d94f021f796ce437d3389297eeecca802875dc2f3174545db67f2d586218f10156c
@@ -84,7 +84,7 @@ module Metanorma
84
84
 
85
85
  private
86
86
 
87
- def process_repo(repo, _output_dir, config)
87
+ def process_repo(repo, output_dir, config)
88
88
  repo_key = repo.to_s
89
89
 
90
90
  manifest_channels = @deps.manifest_reader.read(repo)
@@ -120,9 +120,11 @@ module Metanorma
120
120
 
121
121
  if @deps.delta_state.processed?(repo_key, tag, content_hash)
122
122
  files = @deps.delta_state.release_files(repo_key, tag)
123
- publications << build_publication(metadata, files, content_hash,
124
- release, repo)
125
- next
123
+ if files.all? { |f| File.exist?(File.join(output_dir, f)) }
124
+ publications << build_publication(metadata, files, content_hash,
125
+ release, repo)
126
+ next
127
+ end
126
128
  end
127
129
 
128
130
  zip_asset = find_zip_asset(release)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Release
5
- VERSION = "0.2.22"
5
+ VERSION = "0.2.23"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.22
4
+ version: 0.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.