sudo 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/LICENSE +1 -1
- data/README.md +9 -6
- data/lib/sudo/constants.rb +1 -1
- data/lib/sudo/system.rb +1 -1
- data/lib/sudo/wrapper.rb +2 -2
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8533dcc019e5bf40c31a3a2f0d00fb1ed7799710fbd623e1f35bdc7b3854f8ad
|
4
|
+
data.tar.gz: d21c8cc10c30840bdcd0d6a9c86816ea8123897305c5e4b41b6503301c39e8f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53a797c78535d39c6fd4c123726345cc6ad4a73617f8e835437ab49c86168dbfd83696776ea7c2a1fdb26419e88f9cb6799bf33365447ff42c2a023015c0fc48
|
7
|
+
data.tar.gz: e81deabf36e8a0a4a4bad76e8d94560c0518e25deb8f8dac7184dcbb9befee866f704a2f17716dafc773ad0427329120c7ca88562fb82af21e061234681c5114
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
[](https://travis-ci.com/gderosa/rubysu)
|
1
|
+
[](https://badge.fury.io/rb/sudo)[](https://travis-ci.com/gderosa/rubysu)
|
3
2
|
[](https://codeclimate.com/github/gderosa/rubysu/maintainability)
|
4
3
|
[](https://codeclimate.com/github/gderosa/rubysu/test_coverage)
|
5
4
|
|
@@ -9,7 +8,7 @@ Give Ruby objects superuser privileges.
|
|
9
8
|
|
10
9
|
Based on [dRuby](http://ruby-doc.org/stdlib-2.5.3/libdoc/drb/rdoc/DRb.html) and [sudo](http://www.sudo.ws/).
|
11
10
|
|
12
|
-
Only tested with [MRI](http://en.wikipedia.org/wiki/Ruby_MRI).
|
11
|
+
Only tested with [MRI](http://en.wikipedia.org/wiki/Ruby_MRI).
|
13
12
|
|
14
13
|
## Usage
|
15
14
|
|
@@ -79,22 +78,26 @@ graphical): support this feature.
|
|
79
78
|
|
80
79
|
## Credits
|
81
80
|
|
82
|
-
### Author
|
81
|
+
### Author and Copyright
|
83
82
|
|
84
83
|
Guido De Rosa ([@gderosa](http://github.com/gderosa/)).
|
85
84
|
|
86
|
-
|
85
|
+
See LICENSE.
|
87
86
|
|
88
87
|
### Contributors
|
89
88
|
|
90
|
-
Dale ([@voltechs](https://github.com/voltechs))
|
89
|
+
Dale Stevens ([@voltechs](https://github.com/voltechs))
|
91
90
|
|
92
91
|
Robert M. Koch ([@threadmetal](https://github.com/threadmetal))
|
93
92
|
|
93
|
+
Wolfgang Teuber ([@wteuber](https://github.com/wteuber))
|
94
|
+
|
94
95
|
### Other aknowledgements
|
95
96
|
Thanks to Tony Arcieri and Brian Candler for suggestions on
|
96
97
|
[ruby-talk](http://www.ruby-forum.com/topic/262655).
|
97
98
|
|
99
|
+
Initially developed by G. D. while working at [@vemarsas](https://github.com/vemarsas).
|
100
|
+
|
98
101
|
## Contributing
|
99
102
|
|
100
103
|
1. Fork it ( https://github.com/gderosa/rubysu/fork )
|
data/lib/sudo/constants.rb
CHANGED
data/lib/sudo/system.rb
CHANGED
data/lib/sudo/wrapper.rb
CHANGED
@@ -69,7 +69,7 @@ module Sudo
|
|
69
69
|
finalizer = Finalizer.new(pid: @sudo_pid, socket: @socket)
|
70
70
|
ObjectSpace.define_finalizer(self, finalizer)
|
71
71
|
|
72
|
-
if wait_for(timeout: 1){File.
|
72
|
+
if wait_for(timeout: 1){File.exist? @socket}
|
73
73
|
@proxy = DRbObject.new_with_uri(server_uri)
|
74
74
|
else
|
75
75
|
raise RuntimeError, "Couldn't create DRb socket #{@socket}"
|
@@ -83,7 +83,7 @@ module Sudo
|
|
83
83
|
def running?
|
84
84
|
true if (
|
85
85
|
@sudo_pid and Process.exists? @sudo_pid and
|
86
|
-
@socket and File.
|
86
|
+
@socket and File.exist? @socket and
|
87
87
|
@proxy
|
88
88
|
)
|
89
89
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sudo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guido De Rosa
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry-byebug
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,12 +86,12 @@ files:
|
|
86
86
|
- lib/sudo/system.rb
|
87
87
|
- lib/sudo/wrapper.rb
|
88
88
|
- libexec/server.rb
|
89
|
-
homepage: https://github.com/
|
89
|
+
homepage: https://github.com/TwilightCoders/rubysu
|
90
90
|
licenses:
|
91
91
|
- MIT
|
92
92
|
metadata:
|
93
93
|
allowed_push_host: https://rubygems.org
|
94
|
-
post_install_message:
|
94
|
+
post_install_message:
|
95
95
|
rdoc_options: []
|
96
96
|
require_paths:
|
97
97
|
- lib
|
@@ -106,9 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
|
-
|
110
|
-
|
111
|
-
signing_key:
|
109
|
+
rubygems_version: 3.1.6
|
110
|
+
signing_key:
|
112
111
|
specification_version: 4
|
113
112
|
summary: Give Ruby objects superuser privileges
|
114
113
|
test_files: []
|