gloo 2.3.1 → 2.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f34d7102d0ca036b885dc482a76bd9e2e69056fd1fc24a94f85b019ad93ae2ec
4
- data.tar.gz: b40a76f7f123e27bfa97e4d027cff20f520fecb46c2b11a7f4514817f31a6bfa
3
+ metadata.gz: e677ad11e6ffef597d0e2a42b34abb8402cdc43acd542bfbf798b7ad83b25079
4
+ data.tar.gz: ef5c30735d1da7cb085aab63f85d63e43de3399bb07902eb2192aca0976ca19a
5
5
  SHA512:
6
- metadata.gz: b70d8504a1fee2ce79639f4dc6e10e51195f5900a92e32666bf26f3233e61d14818346886c818d11c87f0738476f1e994a27742e019adef6bbc8b5f6f0845e83
7
- data.tar.gz: 959b01d16677ad6e6e8a873ccea468a3da5c54c15da4734e611bdac188b4f686f187f32d2d29fc49f33af3c13f12f04dbbea8e0a4030bf7c1ee9ac1fbf78bd11
6
+ metadata.gz: 6c1b7ca772f6ac41a93cd4f4b16957b54f0b4db7ab393050b7ebee7ee810f31cc57f75c6c9f8075dd065d1267c42b609217b8a6933ff29ee537f4c1cd27a9072
7
+ data.tar.gz: f5886a43cc46fd4665e8613e0d59162446234572d71b928dd32ede48f34ae3e2bbb692f61509750ccda197d2334ea607989bb5c59ab29894b02aa0621c5e3de2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.4.0
data/lib/VERSION_NOTES CHANGED
@@ -1,3 +1,8 @@
1
+ 2.4.0 - 2023.06.27
2
+ - Updates URI open to work on Windows.
3
+ - Updates exec to work on Windows.
4
+
5
+
1
6
  2.3.1 - 2023.06.26
2
7
  - Fixes version number stuff.
3
8
 
@@ -258,6 +258,7 @@ module Gloo
258
258
  platform = TTY::Platform.new
259
259
  return 'open' if platform.mac?
260
260
  return 'xdg-open' if platform.linux?
261
+ return 'Start-Process' if platform.windows?
261
262
 
262
263
  return nil
263
264
  end
@@ -140,7 +140,8 @@ module Gloo
140
140
 
141
141
  cmd = Gloo::Core::GlooSystem.open_for_platform
142
142
  cmd_with_param = "#{cmd} \"#{value}\""
143
- `#{cmd_with_param}`
143
+ # `#{cmd_with_param}`
144
+ exec cmd_with_param
144
145
  end
145
146
 
146
147
  end
@@ -25,8 +25,13 @@ module Gloo
25
25
  cmd = expr.evaluate
26
26
  @engine.log.debug "starting cmd: #{cmd}"
27
27
 
28
- pid = fork { exec( cmd ) }
29
- Process.wait pid
28
+ platform = TTY::Platform.new
29
+ if platform.mac?
30
+ pid = fork { exec( cmd ) }
31
+ Process.wait pid
32
+ else
33
+ exec cmd
34
+ end
30
35
 
31
36
  # pid = spawn cmd
32
37
  # Process.wait pid
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-26 00:00:00.000000000 Z
11
+ date: 2023-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler