nomansland 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a6b63c35782ff24077f5ba4ba2a03b504f0c553824d5ab57bb871073aecd9137
4
+ data.tar.gz: b5b66f51cfe99876190a11361018548b6d4e6b2bb71dd122d59ddf714850c641
5
+ SHA512:
6
+ metadata.gz: 907792b6704ec36b10cfdfc6ed6b6171b3bc4fcaeb89b9434dc87acfc97aef70b894ec105b7fc174a34d02e4f5cc3986a4d4c393f3b6097bb37c361c4bfaae30
7
+ data.tar.gz: 48f401d4b596fe75349853da8ba3ceaf5efc469ceb0e5a1d52c22a412c4ba17623a49ab86905e9036ee83748f8a4292ea2085c2f1e757cf8a41b247348a7b5e8
@@ -0,0 +1,4 @@
1
+ ?���ZdG�Z:���Z��+?�����8gAԭ��>W����
2
+ Q��p��a<͉Ü-�6�T�l�*�n���/l�\�:�Qp ����X��� 4�6j������L4s��OM�c���D�~�����(˴q;=��0���%�L��S��礽l+0�sJ(;q���/�~���ױ�R���x��!(W��s�M�(�����Ki�ޝ������X�fH�l�]r�4W���9
3
+ ���$)�Ҟ=ɤ����QDڎ)��铻���Z7�dCS�#�"�*�����]�}�h̵>
4
+ ���� #q�����>����W�٘h鉔!�14ŵ�u�r�{Q\̤��lFK��6ej���
@@ -0,0 +1,3 @@
1
+ aY� �Z��+���U* �g
2
+ M������8$������j��J�޼;� ���*��췍�4| �bF�媮�N���>���h}
3
+ �I���k�$;�K�A�;"�
@@ -0,0 +1,56 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ # Gemfile.lock
49
+ # .ruby-version
50
+ # .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ # .rubocop-https?--*
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 szorfein
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,36 @@
1
+ # nomansland
2
+ A simple gem that allows you to search where you fell (distro, OS, kernel, installer...) and adapt your commands accordingly.
3
+
4
+ ## Install
5
+ Nomansland is cryptographically signed, so add my public key (if you haven’t already) as a trusted certificate.
6
+
7
+ $ gem cert --add <(curl -Ls https://raw.githubusercontent.com/szorfein/spior/master/certs/szorfein.pem)
8
+
9
+ And install
10
+
11
+ $ gem install nomansland
12
+
13
+ ## Usage
14
+ By distrib:
15
+
16
+ ```rb
17
+ require 'Nomansland'
18
+
19
+ puts "Running Fedora" if Nomansland::distro? == :fedora
20
+ puts "Running Gentoo" if Nomansland::distro? == :gentoo
21
+ ```
22
+
23
+ Sometimes, it is better to search by installer:
24
+
25
+ ```rb
26
+ require 'Nomansland'
27
+
28
+ case Nomansland::installer?
29
+ when :yum
30
+ system("sudo yum install tor")
31
+ when :apt_get
32
+ system("sudo apt-get install tor")
33
+ when :pacman
34
+ system("sudo pacman -S tor")
35
+ end
36
+ ```
@@ -0,0 +1,12 @@
1
+ module Nomansland
2
+ def self.distro?
3
+ return :fedora if File.exist?("/etc/fedora-release")
4
+ return :redhat if File.exist?("/etc/redhat-release")
5
+ return :suse if File.exist?("/etc/SUSE-release")
6
+ return :mandrake if File.exist?("/etc/mandrake-release")
7
+ return :ubuntu if File.exist?("/etc/ubuntu-release")
8
+ return :debian if File.exist?("/etc/debian_version")
9
+ return :gentoo if File.exist?("/etc/gentoo-release")
10
+ return :archlinux if File.exist?("/etc/arch-release")
11
+ end
12
+ end
@@ -0,0 +1,8 @@
1
+ module Nomansland
2
+ def self.installer?
3
+ return :yum if File.exist?("/usr/bin/yum")
4
+ return :apt_get if File.exist?("/usr/bin/apt-get")
5
+ return :pacman if File.exist?("/usr/bin/pacman")
6
+ return :emerge if File.exist?("/usr/bin/emerge")
7
+ end
8
+ end
@@ -0,0 +1,24 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "nomansland"
3
+
4
+ s.summary = "A simple gem that allows you to search where you fell"
5
+ s.description = "A simple gem that allows you to search where you fell (distro, OS, kernel, installer...) and adapt your commands accordingly."
6
+ s.metadata = {
7
+ "bug_tracker_uri" => "https://github.com/szorfein/nomansland/issues",
8
+ "wiki_uri" => "https://github.com/szorfein/nomansland"
9
+ }
10
+
11
+ s.version = "0.0.1"
12
+ s.platform = Gem::Platform::RUBY
13
+ s.author = ['szorfein']
14
+ s.homepage = 'https://github.com/szorfein/nomansland'
15
+ s.email = 'szorfein@protonmail.com'
16
+ s.required_ruby_version = '>=2.4'
17
+ s.files = `git ls-files`.split(" ")
18
+ s.files.reject! { |fn| fn.include? "certs" }
19
+ s.files.reject! { |fn| fn.include? "Makefile" }
20
+ s.test_files = Dir["test/test_*.rb"]
21
+ s.licenses = ['MIT']
22
+ s.cert_chain = ['certs/szorfein.pem']
23
+ s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $0 =~ /gem\z/
24
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nomansland
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - szorfein
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIETTCCArWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1zem9y
14
+ ZmVpbi9EQz1wcm90b25tYWlsL0RDPWNvbTAeFw0yMDA0MzAxNzAxNDBaFw0yMTA0
15
+ MzAxNzAxNDBaMCgxJjAkBgNVBAMMHXN6b3JmZWluL0RDPXByb3Rvbm1haWwvREM9
16
+ Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAxCTYZRnd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onVQMZsiLTUFf30BXX7PY1O0Km15MQn1HzOecJ3ZIDBWtS
33
+ d/lg1MHB7+/FQAY5FujZqvVv5i2M9wLx+7N4ONRA7MsWD86hLiYN68QeRsHI+LNf
34
+ AnVdw7i28f3GhZldcdllblGeTOjSfwl9wL4yBb1UwVjvcwMR5SDed0yPmHPXBiAC
35
+ J/zT/q2Ac7BWpSLbv6p9lChBiEnD9j24x463LR5QQjDNS5SsjzRQfFuprsa9Nqf2
36
+ Tw==
37
+ -----END CERTIFICATE-----
38
+ date: 2020-05-04 00:00:00.000000000 Z
39
+ dependencies: []
40
+ description: A simple gem that allows you to search where you fell (distro, OS, kernel,
41
+ installer...) and adapt your commands accordingly.
42
+ email: szorfein@protonmail.com
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - ".gitignore"
48
+ - LICENSE
49
+ - README.md
50
+ - lib/nomansland/distro.rb
51
+ - lib/nomansland/installer.rb
52
+ - nomansland.gemspec
53
+ homepage: https://github.com/szorfein/nomansland
54
+ licenses:
55
+ - MIT
56
+ metadata:
57
+ bug_tracker_uri: https://github.com/szorfein/nomansland/issues
58
+ wiki_uri: https://github.com/szorfein/nomansland
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '2.4'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubygems_version: 3.1.2
75
+ signing_key:
76
+ specification_version: 4
77
+ summary: A simple gem that allows you to search where you fell
78
+ test_files: []
@@ -0,0 +1,2 @@
1
+ ���Vt���>�m ���,����o�,W�/+�����l�4å�h��R]C��6��+ߜ�����Tv�uu�T�L�L�?7�{z>��T�>m�b�w��k�C�2�'�Ln���7����4��-�Rթ<]2���Q�۴�Q�.(������CM�8&�3smu(�+la�ob2j�8����(�H�����S,Q�P�,^���ۨ�諄����2��G��VTuAh����@��>�4��p��n ��I�
2
+ �.�Qu̔�