gloo 2.3.1 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f34d7102d0ca036b885dc482a76bd9e2e69056fd1fc24a94f85b019ad93ae2ec
4
- data.tar.gz: b40a76f7f123e27bfa97e4d027cff20f520fecb46c2b11a7f4514817f31a6bfa
3
+ metadata.gz: '080d31ca5a21a838f0dc7abb0525a905ef5d0eb416dfe3d4e6d0c024bfb31527'
4
+ data.tar.gz: ce0e8956b56e897c2ac0309ea47e1cf8232810505224e0582ec1eb2fea58a3ea
5
5
  SHA512:
6
- metadata.gz: b70d8504a1fee2ce79639f4dc6e10e51195f5900a92e32666bf26f3233e61d14818346886c818d11c87f0738476f1e994a27742e019adef6bbc8b5f6f0845e83
7
- data.tar.gz: 959b01d16677ad6e6e8a873ccea468a3da5c54c15da4734e611bdac188b4f686f187f32d2d29fc49f33af3c13f12f04dbbea8e0a4030bf7c1ee9ac1fbf78bd11
6
+ metadata.gz: 86ec4908473f0f051f03dc60d395e3df9fee3845bb4a59b8e9163620711cee8a90824fffa10a78ff331886e315aceaf78835cd5f3bb354039177b7ec03e8fa57
7
+ data.tar.gz: eaf74eeb9b5073b148d7fbf71049c146f6fb872e05748540594ceccca1688cc97d09ff0c383ec2a90330f5b885b3ef6565e76415d8e772ffe30b379637b057d8
data/gloo.gemspec CHANGED
@@ -40,4 +40,5 @@ Gem::Specification.new do |spec|
40
40
  spec.add_dependency 'net-ssh', '~> 6.1', '>= 6.1.0'
41
41
  spec.add_dependency 'mysql2', '~> 0.5', '>= 0.5.3'
42
42
  spec.add_dependency 'sqlite3', '~> 1.4', '>= 1.4.2'
43
+ spec.add_dependency 'os', '~> 1.1', '>= 1.1.4'
43
44
  end
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.4.1
data/lib/VERSION_NOTES CHANGED
@@ -1,3 +1,12 @@
1
+ 2.4.1 - 2023.06.27
2
+ - trying alternate for OS detection
3
+
4
+
5
+ 2.4.0 - 2023.06.27
6
+ - Updates URI open to work on Windows.
7
+ - Updates exec to work on Windows.
8
+
9
+
1
10
  2.3.1 - 2023.06.26
2
11
  - Fixes version number stuff.
3
12
 
@@ -7,6 +7,7 @@
7
7
  # actually an object in the normal sense of the word.
8
8
  #
9
9
  require 'tty-platform'
10
+ require 'os'
10
11
 
11
12
  module Gloo
12
13
  module Core
@@ -229,8 +230,7 @@ module Gloo
229
230
 
230
231
  # Is the platform Windows?
231
232
  def msg_platform_windows?
232
- platform = TTY::Platform.new
233
- return platform.windows?
233
+ return OS.windows?
234
234
  end
235
235
 
236
236
  # Is the platform Unix?
@@ -247,8 +247,7 @@ module Gloo
247
247
 
248
248
  # Is the platform Mac?
249
249
  def msg_platform_mac?
250
- platform = TTY::Platform.new
251
- return platform.mac?
250
+ return OS.mac?
252
251
  end
253
252
 
254
253
  #
@@ -258,6 +257,7 @@ module Gloo
258
257
  platform = TTY::Platform.new
259
258
  return 'open' if platform.mac?
260
259
  return 'xdg-open' if platform.linux?
260
+ return 'Start-Process' if platform.windows?
261
261
 
262
262
  return nil
263
263
  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.1
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
@@ -244,6 +244,26 @@ dependencies:
244
244
  - - ">="
245
245
  - !ruby/object:Gem::Version
246
246
  version: 1.4.2
247
+ - !ruby/object:Gem::Dependency
248
+ name: os
249
+ requirement: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - "~>"
252
+ - !ruby/object:Gem::Version
253
+ version: '1.1'
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: 1.1.4
257
+ type: :runtime
258
+ prerelease: false
259
+ version_requirements: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - "~>"
262
+ - !ruby/object:Gem::Version
263
+ version: '1.1'
264
+ - - ">="
265
+ - !ruby/object:Gem::Version
266
+ version: 1.1.4
247
267
  description: A scripting languge to keep it all together.
248
268
  email:
249
269
  - eric.crane@mac.com