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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 269ba9323aaf5a4925fc94d9c0f5d085ff9d5d2c
4
- data.tar.gz: b4a6312be3304b7aa12a3e0444230235a9df99ef
3
+ metadata.gz: 11ff07c63305a225768e24fd1dc0747f680f15f3
4
+ data.tar.gz: 37c72a843fc83396347f6f30e94f55b8f7c8163e
5
5
  SHA512:
6
- metadata.gz: fa2f68ca7a992a8dda0821f76c583eb9abeae941f8446f60368185e1860ee640353a9ccbe5f7f02927e04755220a7f65ad4d18f824866b99b48d972398dfe97c
7
- data.tar.gz: 25f88dee1694e2e669a1952973c0747f5bc820d396f47b751ff89c630a41719af5c0cb73c5e8cd41929506656868516d541381a8162079a4fb380ce933b578d5
6
+ metadata.gz: 14c0cdcfda935f10ef5670d853ab03a358b66986122d452e65dcfaf8ceedf0e0d44633824a83f0e04a4e485ad0bb5dd2c7fab4c4427ad740d5548d72ba966e0a
7
+ data.tar.gz: 86bac88fe951f77ce10f72d832dcdbba4e629a38038f03516ec94c7faa891f5304a3f4ba44760d0210fe0933d146b09abd7a1cb705d8d40e573f083c0f01255f
Binary file
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
@@ -3,6 +3,7 @@
3
3
  * MANIFEST
4
4
  * Rakefile
5
5
  * README
6
+ * certs/djberg96_pub.pem
6
7
  * examples/groups.rb
7
8
  * examples/users.rb
8
9
  * lib/sys/admin.rb
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-2014, Daniel J. Berger
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
- if Gem::VERSION < "2.0"
13
- Gem::Builder.new(spec).build
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
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
+ MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
5
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
+ bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
7
+ Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
8
+ S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
9
+ gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
10
+ FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
11
+ zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
12
+ DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
13
+ nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
14
+ bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
15
+ ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
16
+ tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
17
+ /sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
18
+ wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
19
+ EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
20
+ tGSHgAmcLlkdGgan182qsE/4kKM=
21
+ -----END CERTIFICATE-----
@@ -0,0 +1 @@
1
+ require_relative 'sys/admin'
@@ -1,3 +1,10 @@
1
+ module Sys
2
+ class Admin
3
+ # The version of the sys-admin library.
4
+ VERSION = "1.6.4"
5
+ end
6
+ end
7
+
1
8
  # Stub to require the correct based on platform
2
9
  require 'rbconfig'
3
10
 
@@ -33,9 +33,6 @@ module Sys
33
33
 
34
34
  public
35
35
 
36
- # The version of the sys-admin library.
37
- VERSION = '1.6.3'
38
-
39
36
  # Error typically raised if any of the Sys::Admin methods fail.
40
37
  class Error < StandardError; end
41
38
 
@@ -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
  #
@@ -2,15 +2,16 @@
2
2
  require 'rubygems'
3
3
 
4
4
  Gem::Specification.new do |spec|
5
- spec.name = 'sys-admin'
6
- spec.version = '1.6.3'
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') }
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'
@@ -14,6 +14,6 @@ end
14
14
 
15
15
  class TC_Sys_Admin_All < Test::Unit::TestCase
16
16
  test "version is set to expected value" do
17
- assert_equal('1.6.3', Sys::Admin::VERSION)
17
+ assert_equal('1.6.4', Sys::Admin::VERSION)
18
18
  end
19
19
  end
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.3
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
- date: 2014-03-08 00:00:00.000000000 Z
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.2.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.
Binary file