plat4m 1.0.0 → 1.0.3

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: 9df6b644a5e122916e8230965e4e4999441bd067706d2679e905008f0000c0f8
4
- data.tar.gz: 0efb88c4163e04fef3499e3f542d9a003ffb7fdd28ced4ff0db4a1d8fb3aa8d8
3
+ metadata.gz: d774a6034deb7d66867efea3c8d068cd8df0aa6fcc3fb78b81b02fdd1db5eb05
4
+ data.tar.gz: 2626301d32033e23ab9f510c8eda0f3c25a61146c575079a455fa81a2ebf17de
5
5
  SHA512:
6
- metadata.gz: e7101d9e5feba298a1b945b010996a7d48f26d3267f31da53b041cf5b4e936eeff29ed8e5ff6277d6548c5d4efda9de05b2779000d3100d611474a99196c5bd7
7
- data.tar.gz: d8c7db00c80acc09fe3308b04a33a522263ffe71b40b01096ab5da4614b9b0486c349907d9f66a440feb738e82ef15e96f10f146a93b451f9f2c970450213e1a
6
+ metadata.gz: 242a9eb4d6077d64e5a95aa8fd5c51d3ab6185c949d7d5bbf36153ba089ce7caf160db0d1fbb8c9013978dcb134d72c19fcea828c57a12e9e3a03ca51892f6e6
7
+ data.tar.gz: afa1a19f783a9a7631d7aa0ed44717ba6edf5cdc8dae6f7bd7b4171aa84ab0f162d63af373d75b3697482b642f5dc47d2dddb7a146ab76bbea0e1fab80b0bd87
@@ -96,15 +96,11 @@ module Plat4m
96
96
  end
97
97
 
98
98
  def has_macports?
99
- if @has_macports.nil?
100
- @has_macports = system('command -v port>/dev/null')
101
- end
99
+ @has_macports
102
100
  end
103
101
 
104
102
  def has_homebrew?
105
- if @has_homebrew.nil?
106
- @has_homebrew = system('command -v brew>/dev/null')
107
- end
103
+ @has_homebrew
108
104
  end
109
105
 
110
106
  class Homebrew < PkgManager
@@ -50,6 +50,6 @@ module Plat4m
50
50
 
51
51
  end
52
52
 
53
- self.sniffers[:windows] = Sniffer::Darwin
53
+ self.sniffers[:windows] = Sniffer::Windows
54
54
 
55
55
  end
data/lib/plat4m/system.rb CHANGED
@@ -43,7 +43,7 @@ module Plat4m
43
43
  @pkgman = pkgman
44
44
  @other = other
45
45
  @other.each_key do |key|
46
- unless self.method(key.to_sym)
46
+ unless self.respond_to?(key.to_sym)
47
47
  singleton_class.class_eval <<~__CODE
48
48
  define_method(:#{key}) do
49
49
  @other['#{key}']
@@ -8,6 +8,6 @@
8
8
  module Plat4m
9
9
 
10
10
  # Current Plat4m version.
11
- VERSION = '1.0.0'
11
+ VERSION = '1.0.3'
12
12
 
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plat4m
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Corino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-20 00:00:00.000000000 Z
11
+ date: 2024-02-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plat4m is a simple runtime system platform scouting and support library.
14
14
  email: mcorino@m2c-software.nl