kanrisuru 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kanrisuru/util/os_family.rb +13 -10
- data/lib/kanrisuru/version.rb +1 -1
- data/spec/unit/util_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '02938cd29be8b4f58c3bee34c23a9812f698bba6059527aff428bf33b14d042a'
|
4
|
+
data.tar.gz: 2dd378d354a441deccc1e5eebfaaa27a45a042ddcadf483a2c5835e55515320c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e5986e22a6e3f6b0e11d2f1b4b6e6293b0e7ce90b7e5f848f5df27e06569a30060d42257d502c035b46c488ac3f2bad098dd267d180618a5843360ab1e4db7a
|
7
|
+
data.tar.gz: d13bafb8ee5a585193e3e00a3ba16ab70f3eedad5666c9e4d5eb4036457d9db37cdda608ce9cce49fef978b789b3500e9142263fc1fbcd4aba5d10b1ac93d30a
|
@@ -163,27 +163,30 @@ module Kanrisuru
|
|
163
163
|
state: 'current',
|
164
164
|
type: 'distribution'
|
165
165
|
},
|
166
|
-
|
167
|
-
name: '
|
166
|
+
sles: {
|
167
|
+
name: 'SUSE Linux Enterprise Server',
|
168
168
|
os_family: 'linux',
|
169
169
|
upstream: 'linux',
|
170
|
-
model: '
|
170
|
+
model: 'commercial',
|
171
171
|
state: 'current',
|
172
172
|
type: 'distribution'
|
173
173
|
},
|
174
174
|
opensuse_leap: {
|
175
175
|
name: 'openSUSE Leap',
|
176
|
-
|
177
|
-
|
176
|
+
os_family: 'linux',
|
177
|
+
upstream: 'sles',
|
178
|
+
model: 'open_source',
|
179
|
+
state: 'current',
|
180
|
+
type: 'distribution'
|
178
181
|
},
|
179
|
-
|
180
|
-
name: '
|
182
|
+
opensuse: {
|
183
|
+
name: 'openSUSE',
|
181
184
|
os_family: 'linux',
|
182
|
-
upstream: '
|
183
|
-
model: '
|
185
|
+
upstream: 'linux',
|
186
|
+
model: 'open_source',
|
184
187
|
state: 'current',
|
185
188
|
type: 'distribution'
|
186
|
-
}
|
189
|
+
},
|
187
190
|
}
|
188
191
|
|
189
192
|
def self.family_include_distribution?(family, dist)
|
data/lib/kanrisuru/version.rb
CHANGED
data/spec/unit/util_spec.rb
CHANGED
@@ -59,6 +59,7 @@ RSpec.describe Kanrisuru::Util do
|
|
59
59
|
expect(Kanrisuru::Util::OsFamily.upstream_include_distribution?('linux', 'linux_mint')).to eq(true)
|
60
60
|
|
61
61
|
expect(Kanrisuru::Util::OsFamily.upstream_include_distribution?('fedora', 'redhat')).to eq(true)
|
62
|
+
expect(Kanrisuru::Util::OsFamily.upstream_include_distribution?('sles', 'opensuse_leap')).to eq(true)
|
62
63
|
expect(Kanrisuru::Util::OsFamily.upstream_include_distribution?('fedora', 'centos')).to eq(true)
|
63
64
|
|
64
65
|
expect(Kanrisuru::Util::OsFamily.upstream_include_distribution?('unix_like', 'linux_mint')).to eq(false)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kanrisuru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Mammina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|