ruby_everywhere 0.1.13 → 0.1.14

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: b32234a25ed3595183b216bcf7b3c1098e5a3c4f3bd442dc97b273623e48ef5d
4
- data.tar.gz: 5019ffcd442cf46b5d2327b998b939390eb79a99c8238a629ebd509e5df89d4a
3
+ metadata.gz: 43abb21e2044de5630a87ca49d653368af5d84c6186ec993fd4c1b2a588e31c8
4
+ data.tar.gz: cfb169771be7b208b230c6c9d7b0a63f7ed53061724d0008d5551409309e315f
5
5
  SHA512:
6
- metadata.gz: 8a76d601c2550e82d43b8205a40499376ffa7472d8611378b1af5eae4050b6138bf5cd947312865fbadfed1d82e4066e36e174f69deb8a9217af7c3868af7d45
7
- data.tar.gz: 843e78f6a210b4c2480fb1b75a17a9c32a200cff4eeadf3635796a105c6974bb6c1f88c2f0c4d95ae51caa6cd69a627ae00a5b4268cbb9003926f3e121ef16f4
6
+ metadata.gz: b5086b64a57d5f010bea583175eb954881370c2d9cb304243249645ccd324a900df7b2748037cf2950894722ea85b9c1ae3ddf71617676c42b5ddb5c619b74cc
7
+ data.tar.gz: e87e280008d30d90a5a85446191673bd7bb2ada124a68a6578068b5f5f078f455461993fddfb5975e606144b029bd49c3fe71379361ee38c3b002769f9af6c19
@@ -50,9 +50,13 @@ module Everywhere
50
50
  return
51
51
  end
52
52
 
53
- framework = Framework.detect(root)
54
- output ||= File.join("dist", File.basename(framework.root))
55
- output_path = File.expand_path(output)
53
+ framework = Framework.detect(root_path)
54
+ # dist/ belongs to the APP, not to the shell's cwd: `every platform
55
+ # runner` invokes us with --root <snapshot> from its own working
56
+ # directory, and `every release` looks for the .app under <root>/dist.
57
+ # Resolving a relative default against Dir.pwd scattered the build
58
+ # products into the runner's checkout instead.
59
+ output_path = output ? File.expand_path(output) : File.join(root_path, "dist", File.basename(root_path))
56
60
  entry_path = File.join(framework.root, entry)
57
61
 
58
62
  unless File.exist?(entry_path)
@@ -62,19 +66,21 @@ module Everywhere
62
66
  UI.step("#{UI.bold(framework.name)} app at #{framework.root}")
63
67
 
64
68
  if skip_press
65
- UI.die!("--skip-press given but #{output} doesn't exist") unless File.exist?(output_path)
66
- UI.step("reusing pressed binary #{output}")
69
+ UI.die!("--skip-press given but #{rel(output_path, root_path)} doesn't exist") unless File.exist?(output_path)
70
+ UI.step("reusing pressed binary #{rel(output_path, root_path)}")
67
71
  else
68
72
  press!(framework, entry, ruby, output_path)
69
73
  end
70
74
 
71
75
  bundle_app(output_path, app_name, shell_dir, config, target: target) if RUBY_PLATFORM.include?("darwin")
72
76
 
73
- UI.success("built #{output} (#{(File.size(output_path) / 1024.0 / 1024.0).round}MB)")
77
+ UI.success("built #{rel(output_path, root_path)} (#{(File.size(output_path) / 1024.0 / 1024.0).round}MB)")
74
78
  end
75
79
 
76
80
  private
77
81
 
82
+ def rel(path, root_path) = UI.short_path(path.sub("#{root_path}/", "").sub("#{Dir.pwd}/", ""))
83
+
78
84
  # The precompile step runs against the HOST Ruby — unlike tebako press,
79
85
  # which installs the app's gems itself inside the packaged Ruby. A fresh
80
86
  # machine (a hosted build runner, a brand-new checkout) has Gemfile.lock
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Everywhere
4
- VERSION = "0.1.13"
4
+ VERSION = "0.1.14"
5
5
 
6
6
  # Version of the @rubyeverywhere/bridge JS this gem ships. bridge/ in the
7
7
  # gem IS the npm package (served to Rails apps by Everywhere::Engine,
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.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Fomera