ruby_everywhere 0.1.6 → 0.1.7

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: 0e9efcbd721dfa8ec5eb10adcbd9d96970feb860b9bfa20d3d6b761012bb8d1b
4
- data.tar.gz: 66a196953da3501c430aa91318d02cc51fc42ff4ebfe294d33a58c44cf7d5333
3
+ metadata.gz: e49675a00a9bbeda3f2e8e9df0dd625535de48ed2cf1dbe2efd6ce2bd6c6975d
4
+ data.tar.gz: 6ee2c5cf2063f6099473e51b8bd1b60a93c738c80136b605807dfd6d89095e2e
5
5
  SHA512:
6
- metadata.gz: 0644e199416ba7568a78812a83ba97fda7b97a829bca821540ba03f355b5798b2e69765db1aa5bd498e0f537edff73d8cad34ba0ce855261338a1522421b60ef
7
- data.tar.gz: 9fb95b8c424cbcc6c82148f4bab93fd07d243e5c2051a0b7b5b056a3ded8fc2a8f43f5e6730b3791edd53d249dde25e001ff2d5d729e4c6a216d44831448cb6b
6
+ metadata.gz: 24efd93b6713e1d50497367a1c532e784284ff18003b5204adc5f99bf2ad9cc0d34c8ef1815539957a1b06e24ff7d64880966a83a43ea7cf40aa357d526456ca
7
+ data.tar.gz: e9820167a09013b4721c584738b2b480f6054dfcbb9fb2417d83ec07158e6359c05ba364a8d8e905b5e5b1a044f97e938917852ac5c4e68f368eda84198fa421
@@ -68,6 +68,7 @@ module Everywhere
68
68
  # 3. Gather signing facts from the bundle itself, then emit the receipt.
69
69
  artifact = "#{app_dir.sub(/\.app\z/, "")}.zip" # notarize.sh re-zips the stapled app
70
70
  UI.die!("expected notarized zip #{artifact} not found") unless File.exist?(artifact)
71
+ artifact = dashify(artifact)
71
72
 
72
73
  signing = gather_signing(app_dir, log)
73
74
  receipt = Receipt.new(root: root_path, config: config, framework: framework, ruby: ruby,
@@ -87,6 +88,15 @@ module Everywhere
87
88
  UI.die!("signing engine missing at #{NOTARIZE}") unless File.exist?(NOTARIZE)
88
89
  end
89
90
 
91
+ # The distributable filename must be URL/CI-safe, so spaces become dashes
92
+ # ("My App.zip" → "My-App.zip"). Only the zip is renamed — the .app keeps
93
+ # its spaced display name for Finder/menu bar.
94
+ def dashify(zip)
95
+ dashed = File.join(File.dirname(zip), File.basename(zip).gsub(/\s+/, "-"))
96
+ File.rename(zip, dashed) unless dashed == zip
97
+ dashed
98
+ end
99
+
90
100
  # A .env.release next to the app, then at the repo root above it.
91
101
  def discover_env_file(root_path)
92
102
  [ENV["ENV_FILE"], File.join(root_path, ".env.release"), File.join(root_path, "..", ".env.release")]
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Everywhere
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
 
6
6
  # Version of the vendored @rubyeverywhere/bridge JS this gem ships. Tracks
7
7
  # bridge/package.json — bump it whenever lib/everywhere/javascript/bridge.js is
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_everywhere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Fomera