sys-admin 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +6 -0
- data/MANIFEST +1 -0
- data/README +3 -1
- data/Rakefile +4 -7
- data/certs/djberg96_pub.pem +21 -0
- data/lib/sys-admin.rb +1 -0
- data/lib/sys/admin.rb +7 -0
- data/lib/sys/admin/common.rb +0 -3
- data/lib/windows/sys/admin.rb +0 -3
- data/sys-admin.gemspec +10 -9
- data/test/test_sys_admin.rb +1 -1
- metadata +28 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11ff07c63305a225768e24fd1dc0747f680f15f3
|
4
|
+
data.tar.gz: 37c72a843fc83396347f6f30e94f55b8f7c8163e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14c0cdcfda935f10ef5670d853ab03a358b66986122d452e65dcfaf8ceedf0e0d44633824a83f0e04a4e485ad0bb5dd2c7fab4c4427ad740d5548d72ba966e0a
|
7
|
+
data.tar.gz: 86bac88fe951f77ce10f72d832dcdbba4e629a38038f03516ec94c7faa891f5304a3f4ba44760d0210fe0933d146b09abd7a1cb705d8d40e573f083c0f01255f
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/CHANGES
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== 1.6.4 - 6-Sep-2015
|
2
|
+
* Added a sys-admin.rb file for convenience.
|
3
|
+
* Set VERSION in a single place.
|
4
|
+
* Assume Rubygems 2.x for Rakefile tasks.
|
5
|
+
* This gem is now signed.
|
6
|
+
|
1
7
|
== 1.6.3 - 8-Mar-2014
|
2
8
|
* The Admin#get_group method now handles groups with very large numbers
|
3
9
|
of members more robustly.
|
data/MANIFEST
CHANGED
data/README
CHANGED
@@ -16,9 +16,11 @@
|
|
16
16
|
|
17
17
|
# Get information about a particular user
|
18
18
|
p Admin.get_user("nobody")
|
19
|
+
p Admin.get_user("nobody", :localaccount => true)
|
19
20
|
|
20
21
|
# Get information about a particular group
|
21
22
|
p Admin.get_group("adm")
|
23
|
+
p Admin.get_group("adm", :localaccount => true)
|
22
24
|
|
23
25
|
== Admin
|
24
26
|
Admin.get_login
|
@@ -145,7 +147,7 @@ Admin::Error < StandardError
|
|
145
147
|
Artistic 2.0
|
146
148
|
|
147
149
|
== Copyright
|
148
|
-
(C) 2005-
|
150
|
+
(C) 2005-2015, Daniel J. Berger
|
149
151
|
All Rights Reserved
|
150
152
|
|
151
153
|
== Author
|
data/Rakefile
CHANGED
@@ -8,19 +8,16 @@ CLEAN.include("**/*.gem", "**/*.rbx", "**/*.rbc", "ruby.core")
|
|
8
8
|
namespace :gem do
|
9
9
|
desc "Create the sys-uname gem"
|
10
10
|
task :create => [:clean] do
|
11
|
+
require 'rubygems/package'
|
11
12
|
spec = eval(IO.read('sys-admin.gemspec'))
|
12
|
-
|
13
|
-
|
14
|
-
else
|
15
|
-
require 'rubygems/package'
|
16
|
-
Gem::Package.build(spec)
|
17
|
-
end
|
13
|
+
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
14
|
+
Gem::Package.build(spec)
|
18
15
|
end
|
19
16
|
|
20
17
|
desc "Install the sys-uname gem"
|
21
18
|
task :install => [:create] do
|
22
19
|
file = Dir["*.gem"].first
|
23
|
-
sh "gem install #{file}"
|
20
|
+
sh "gem install -l #{file}"
|
24
21
|
end
|
25
22
|
end
|
26
23
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
3
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWB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|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
19
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
20
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
21
|
+
-----END CERTIFICATE-----
|
data/lib/sys-admin.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require_relative 'sys/admin'
|
data/lib/sys/admin.rb
CHANGED
data/lib/sys/admin/common.rb
CHANGED
data/lib/windows/sys/admin.rb
CHANGED
@@ -299,9 +299,6 @@ module Sys
|
|
299
299
|
class Admin
|
300
300
|
extend FFI::Library
|
301
301
|
|
302
|
-
# The version of the sys-admin library.
|
303
|
-
VERSION = '1.6.3'
|
304
|
-
|
305
302
|
# This is the error raised in the majority of cases if anything goes wrong
|
306
303
|
# with any of the Sys::Admin methods.
|
307
304
|
#
|
data/sys-admin.gemspec
CHANGED
@@ -2,15 +2,16 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
|
-
spec.name
|
6
|
-
spec.version
|
7
|
-
spec.author
|
8
|
-
spec.license
|
9
|
-
spec.email
|
10
|
-
spec.homepage
|
11
|
-
spec.summary
|
12
|
-
spec.test_file
|
13
|
-
spec.files
|
5
|
+
spec.name = 'sys-admin'
|
6
|
+
spec.version = '1.6.4'
|
7
|
+
spec.author = 'Daniel J. Berger'
|
8
|
+
spec.license = 'Artistic 2.0'
|
9
|
+
spec.email = 'djberg96@gmail.com'
|
10
|
+
spec.homepage = 'http://www.github.com/djberg96/sysutils'
|
11
|
+
spec.summary = 'A unified, cross platform replacement for the "etc" library.'
|
12
|
+
spec.test_file = 'test/test_sys_admin.rb'
|
13
|
+
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
14
|
+
spec.cert_chain = ['certs/djberg96_pub.pem']
|
14
15
|
|
15
16
|
spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST']
|
16
17
|
spec.rubyforge_project = 'sysutils'
|
data/test/test_sys_admin.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sys-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
14
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
15
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
16
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
17
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
|
18
|
+
Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
|
19
|
+
S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
|
20
|
+
gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
|
21
|
+
FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
|
22
|
+
zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
|
23
|
+
DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
|
24
|
+
nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
25
|
+
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
26
|
+
ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
|
27
|
+
tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
|
28
|
+
/sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
|
29
|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
30
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
31
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-09-06 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: ffi
|
@@ -70,6 +92,7 @@ files:
|
|
70
92
|
- MANIFEST
|
71
93
|
- README
|
72
94
|
- Rakefile
|
95
|
+
- certs/djberg96_pub.pem
|
73
96
|
- doc/sys-admin-unix.txt
|
74
97
|
- doc/sys-admin-windows.txt
|
75
98
|
- examples/example_groups.rb
|
@@ -78,6 +101,7 @@ files:
|
|
78
101
|
- lib/darwin/sys/admin.rb
|
79
102
|
- lib/linux/sys/admin.rb
|
80
103
|
- lib/sunos/sys/admin.rb
|
104
|
+
- lib/sys-admin.rb
|
81
105
|
- lib/sys/admin.rb
|
82
106
|
- lib/sys/admin/common.rb
|
83
107
|
- lib/sys/admin/custom.rb
|
@@ -107,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
131
|
version: '0'
|
108
132
|
requirements: []
|
109
133
|
rubyforge_project: sysutils
|
110
|
-
rubygems_version: 2.
|
134
|
+
rubygems_version: 2.4.5
|
111
135
|
signing_key:
|
112
136
|
specification_version: 4
|
113
137
|
summary: A unified, cross platform replacement for the "etc" library.
|
metadata.gz.sig
ADDED
Binary file
|