gloo 2.4.0 → 2.4.2

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: e677ad11e6ffef597d0e2a42b34abb8402cdc43acd542bfbf798b7ad83b25079
4
- data.tar.gz: ef5c30735d1da7cb085aab63f85d63e43de3399bb07902eb2192aca0976ca19a
3
+ metadata.gz: a704c5992ac756233098d2f952a6ea1f474972fdee86ef4fa0683addff4b554a
4
+ data.tar.gz: 3673558572d3bf6ffe5ed3730df3af5d4b34fddccc6746f1a6eaecb6fd0253c6
5
5
  SHA512:
6
- metadata.gz: 6c1b7ca772f6ac41a93cd4f4b16957b54f0b4db7ab393050b7ebee7ee810f31cc57f75c6c9f8075dd065d1267c42b609217b8a6933ff29ee537f4c1cd27a9072
7
- data.tar.gz: f5886a43cc46fd4665e8613e0d59162446234572d71b928dd32ede48f34ae3e2bbb692f61509750ccda197d2334ea607989bb5c59ab29894b02aa0621c5e3de2
6
+ metadata.gz: 452722cf12e8fcd076dee90724a8408fb484106200733655fb5cd229f11e31bd073936a94c2f49c2f7477ed85158aaedefa2e4db797a52ab7c838506c6ac2e9e
7
+ data.tar.gz: b1891da012cc6e829aa25d552a0da49f8597558e43fe02f6cd1d397562ee0f1d7d58257c0455b5d5f0dc40771a3f679231553995b9aee244a836cc33d84f981e
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.4.0
1
+ 2.4.2
data/lib/VERSION_NOTES CHANGED
@@ -1,3 +1,11 @@
1
+ 2.4.2 - 2023.06.27
2
+ - Fixes issue with platform detection.
3
+
4
+
5
+ 2.4.1 - 2023.06.27
6
+ - trying alternate for OS detection
7
+
8
+
1
9
  2.4.0 - 2023.06.27
2
10
  - Updates URI open to work on Windows.
3
11
  - Updates exec to work on Windows.
@@ -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
  #
@@ -140,8 +140,12 @@ module Gloo
140
140
 
141
141
  cmd = Gloo::Core::GlooSystem.open_for_platform
142
142
  cmd_with_param = "#{cmd} \"#{value}\""
143
- # `#{cmd_with_param}`
144
- exec cmd_with_param
143
+
144
+ if OS.mac?
145
+ `#{cmd_with_param}`
146
+ else
147
+ exec cmd_with_param
148
+ end
145
149
  end
146
150
 
147
151
  end
@@ -25,8 +25,7 @@ module Gloo
25
25
  cmd = expr.evaluate
26
26
  @engine.log.debug "starting cmd: #{cmd}"
27
27
 
28
- platform = TTY::Platform.new
29
- if platform.mac?
28
+ if OS.mac?
30
29
  pid = fork { exec( cmd ) }
31
30
  Process.wait pid
32
31
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane
@@ -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