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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8442dfb50e30ac79aacd58ed1dd80ac17858571c3d84790eed8d8efcad7e6f29
4
- data.tar.gz: bab46330d7f3aca3dee667501d2a59a001f813665a071be8362b8a9a6b9e2a18
3
+ metadata.gz: '02938cd29be8b4f58c3bee34c23a9812f698bba6059527aff428bf33b14d042a'
4
+ data.tar.gz: 2dd378d354a441deccc1e5eebfaaa27a45a042ddcadf483a2c5835e55515320c
5
5
  SHA512:
6
- metadata.gz: 852303708004d232098e85ad7ea762caa69bb65b450d4b9cda0eb208c573e85d47f46981a3a281de35cbd84830ca9a52f71126486848962ad980acbb6940d48b
7
- data.tar.gz: a9c234d9e6c112ce682fb444b3c77eaa76619fbc46b3d64ab86914beebead28268e460fb5305a5642c9f662c318d22836e8b2b1b7c11891b531b9615c5f2a5e4
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
- opensuse: {
167
- name: 'openSUSE',
166
+ sles: {
167
+ name: 'SUSE Linux Enterprise Server',
168
168
  os_family: 'linux',
169
169
  upstream: 'linux',
170
- model: 'open_source',
170
+ model: 'commercial',
171
171
  state: 'current',
172
172
  type: 'distribution'
173
173
  },
174
174
  opensuse_leap: {
175
175
  name: 'openSUSE Leap',
176
- type: 'alias',
177
- to: 'opensuse'
176
+ os_family: 'linux',
177
+ upstream: 'sles',
178
+ model: 'open_source',
179
+ state: 'current',
180
+ type: 'distribution'
178
181
  },
179
- sles: {
180
- name: 'SUSE Linux Enterprise Server',
182
+ opensuse: {
183
+ name: 'openSUSE',
181
184
  os_family: 'linux',
182
- upstream: 'opensuse',
183
- model: 'commercial',
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  end
@@ -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.6
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-17 00:00:00.000000000 Z
11
+ date: 2021-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec