nomansland 0.0.3 → 0.0.5

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: c563c12ec255dfc166e066cba9bbcb20373202b182206cff794f6451ecfb2b73
4
- data.tar.gz: a82023fd649e2677a75bc64ce1b875063d24574c4ae748323d4b4574dc6d7b8e
3
+ metadata.gz: e91ae02bbb0fb3769135971a33014162995d57329719d1bceb210fa8168edd0f
4
+ data.tar.gz: 25a09c25db350e0f8cbd95deb746ce173b2ee6ac86db08ac05b5692a729df06a
5
5
  SHA512:
6
- metadata.gz: 02b349923d2b7dd878fa7030e7aeef14e53f801cd6fe426ac1d9c28d6a210d80ae7570fd0dff5aeaa0618daf5dbdd4933677271d45c6a76149698256334fadb4
7
- data.tar.gz: 8f881e380ea7c3845e715f877d88ccb07869957a5892184f1cb382cc6f56adfe66c40e3b08b48b84e5d857258ddb86c675edb239483a92ed1ae8c3a00bb0eb3f
6
+ metadata.gz: 280ead70b8b0a06cacb2d9b650e27fca0e9717592958e28f82da9f9e2e9ce08225af0ca667d09c7401a2d096c610918ac69abe9f0b3fff6ee2190a4daa7c8318
7
+ data.tar.gz: c61a45cf1f965b99bac3736b403b33726bdf036a842ca6b28f8460bd2cabebb08db5058fcd25d78bfd81a0e23f8a699ec5c3117353d507a6a2ab5afce6f1e1e8
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -38,3 +38,18 @@ when :pacman
38
38
  system('sudo pacman -S tor')
39
39
  end
40
40
  ```
41
+
42
+ Or by init system:
43
+
44
+ ```rb
45
+ require 'nomansland'
46
+
47
+ case Nomansland::init?
48
+ when :runit # Voidlinux
49
+ system('sv restart tor')
50
+ when :systemd
51
+ system('systemctl restart tor')
52
+ when :openrc # default for Gentoo
53
+ system('/etc/init.d/tor start')
54
+ end
55
+ ```
@@ -0,0 +1,9 @@
1
+ module Nomansland
2
+ def self.init?
3
+ return :systemd if Dir.exist? '/etc/systemd'
4
+
5
+ # https://github.com/void-linux/void-runit
6
+ return :runit if Dir.exist? '/etc/runit'
7
+ return :openrc if Dir.exist? '/etc/init.d'
8
+ end
9
+ end
data/lib/nomansland.rb CHANGED
@@ -3,3 +3,4 @@ end
3
3
 
4
4
  require 'nomansland/installer'
5
5
  require 'nomansland/distro'
6
+ require 'nomansland/init'
data/nomansland.gemspec CHANGED
@@ -8,12 +8,12 @@ Gem::Specification.new do |s|
8
8
  "wiki_uri" => "https://github.com/szorfein/nomansland"
9
9
  }
10
10
 
11
- s.version = "0.0.3"
11
+ s.version = "0.0.5"
12
12
  s.platform = Gem::Platform::RUBY
13
13
  s.author = ['szorfein']
14
14
  s.homepage = 'https://github.com/szorfein/nomansland'
15
15
  s.email = 'szorfein@protonmail.com'
16
- s.required_ruby_version = '>=2.4'
16
+ s.required_ruby_version = '>=2.5'
17
17
  s.files = `git ls-files`.split(" ")
18
18
  s.files.reject! { |fn| fn.include? "certs" }
19
19
  s.files.reject! { |fn| fn.include? "Makefile" }
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nomansland
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
@@ -10,32 +10,33 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIETTCCArWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1zem9y
14
- ZmVpbi9EQz1wcm90b25tYWlsL0RDPWNvbTAeFw0yMTA1MTEyMTAzNDZaFw0yMjA1
15
- MTEyMTAzNDZaMCgxJjAkBgNVBAMMHXN6b3JmZWluL0RDPXByb3Rvbm1haWwvREM9
16
- Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAxCTYZRndCTRy18rE
17
- exr2wig/staa0G5kt99xqa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Ha1xBmmHoUVudAnxAG43PrMCAwEA
26
+ AaOBgTB/MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRzxda94CPF
27
+ Ll9UQ5l55l65RCZuEzAiBgNVHREEGzAZgRdzem9yZmVpbkBwcm90b25tYWlsLmNv
28
+ bTAiBgNVHRIEGzAZgRdzem9yZmVpbkBwcm90b25tYWlsLmNvbTANBgkqhkiG9w0B
29
+ AQsFAAOCAYEAPhavFyzIP60Zw7y40zJhzQpMK2IWtdw9HrRJq313Ea4UT1Kgv7F9
30
+ lCFtQzI5XMzooYiLMoPz7xBMXaUz+DDFOOcgGSinVrFbfPA4rOGEkBjnlwC39lBc
31
+ AiyXFzCV7Wqn4VhtqQQyvmoNYL4Q666K+nL8/nsXZWsXtRQ119LeAvrI2A+xmYAb
32
+ FPE5bD3Jx1JCoJdVN1DmE4YYdM8mVmb0XjCK9Tp1M01EDKDvAX7f3B+X6A5D7uBq
33
+ 63X6Kx09VkntVOrifd3W4TwjDlyAMpB+50OIi3ErPnH2R4i09qnCiZmcVWATBVKw
34
+ e2QSloIAUZJwEFkrRqWPNVi8sr+BcMeuKpXaOwpbkP+xq/W2EKlUQKhPXMXS4jvC
35
+ MuTi+RjpSNKZxzBrOlK2eMIpiFrugF7nzKcM9EGnWRWUb899drCcD4VJhjPtgpn+
36
+ aEJeKq4/BlIwMlXPe+W5C8zp2i8hgG1/OYbwbGE1p2iRi1NIK7G/HyRqQjOqJxzE
37
+ LLknX69FN7/G
37
38
  -----END CERTIFICATE-----
38
- date: 2021-12-29 00:00:00.000000000 Z
39
+ date: 2022-09-08 00:00:00.000000000 Z
39
40
  dependencies: []
40
41
  description: A simple gem that allows you to search where you fell (distro, OS, kernel,
41
42
  installer...) and adapt your commands accordingly.
@@ -49,6 +50,7 @@ files:
49
50
  - README.md
50
51
  - lib/nomansland.rb
51
52
  - lib/nomansland/distro.rb
53
+ - lib/nomansland/init.rb
52
54
  - lib/nomansland/installer.rb
53
55
  - nomansland.gemspec
54
56
  homepage: https://github.com/szorfein/nomansland
@@ -65,14 +67,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
67
  requirements:
66
68
  - - ">="
67
69
  - !ruby/object:Gem::Version
68
- version: '2.4'
70
+ version: '2.5'
69
71
  required_rubygems_version: !ruby/object:Gem::Requirement
70
72
  requirements:
71
73
  - - ">="
72
74
  - !ruby/object:Gem::Version
73
75
  version: '0'
74
76
  requirements: []
75
- rubygems_version: 3.2.32
77
+ rubygems_version: 3.3.19
76
78
  signing_key:
77
79
  specification_version: 4
78
80
  summary: A simple gem that allows you to search where you fell
metadata.gz.sig CHANGED
Binary file