realuser 0.1.0 → 0.1.1
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/README.md +6 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6eed82703e564ca0853f2ba8ed1b169f8195c7b872205ab536da31cba6733c9
|
4
|
+
data.tar.gz: 787b9b835e4765b9cc7a600372350d8aafbde99d75aa8ca4d49b0ab94650be10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3fe957a0772d046b0e5bfde3927567689626dd3ad381194139c2ec8172eb088b955cf6f77ee0fbd6b171b60ecdd3aa97216647f6fe80359ef30212ef7191d5d
|
7
|
+
data.tar.gz: bf27b3431eed58a112fb2c1f19055cb8d375bb9ef06a7e65fab7791e5b567bd2b5fa2f7eb14d7637c29a55b6c232d164b9ca40098aa3e06d827ff1e7528ab463
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ You can also install the gem from the source repository:
|
|
46
46
|
git clone https://github.com/juliankahlert/realuser.git
|
47
47
|
cd realuser
|
48
48
|
gem build realuser.gemspec
|
49
|
-
sudo gem install --local realuser-0.1.
|
49
|
+
sudo gem install --local realuser-0.1.1.gem
|
50
50
|
```
|
51
51
|
|
52
52
|
## API Documentation
|
@@ -91,7 +91,7 @@ sudo gem install --local realuser-0.1.0.gem
|
|
91
91
|
- `pid` (Integer): The process ID to retrieve the PPID for. Defaults to `Process.pid`.
|
92
92
|
- **Returns**: Integer representing the PPID, or `nil` if the PPID cannot be determined.
|
93
93
|
|
94
|
-
For detailed API documentation, please refer to the [YARD documentation](https://
|
94
|
+
For detailed API documentation, please refer to the [YARD documentation](https://juliankahlert.github.io/realuser/).
|
95
95
|
|
96
96
|
## Example Usage
|
97
97
|
|
@@ -100,20 +100,17 @@ Here is an example of how to use the `RealUser` gem to find the RUID of a proces
|
|
100
100
|
```ruby
|
101
101
|
require 'realuser'
|
102
102
|
|
103
|
-
# Create an instance of the RealUser module
|
104
|
-
real_user = RealUser.new
|
105
|
-
|
106
103
|
# Get the RUID of the current process
|
107
|
-
puts "Current process RUID: #{
|
104
|
+
puts "Current process RUID: #{RealUser.ruid()}"
|
108
105
|
|
109
106
|
# Get the RUID of a specific process (PID 1234)
|
110
|
-
puts "Process 1234 RUID: #{
|
107
|
+
puts "Process 1234 RUID: #{RealUser.ruid(1234)}"
|
111
108
|
|
112
109
|
# Perform a deep resolution to find the root RUID of a specific process (PID 1234)
|
113
|
-
puts "Root RUID of process 1234: #{
|
110
|
+
puts "Root RUID of process 1234: #{RealUser.ruid(pid: 1234, deep: true)}"
|
114
111
|
|
115
112
|
# Perform a shallow resolution to find the nearest ancestor with a different RUID
|
116
|
-
puts "Shallow RUID of process 1234: #{
|
113
|
+
puts "Shallow RUID of process 1234: #{RealUser.ruid(pid: 1234, deep: false)}"
|
117
114
|
```
|
118
115
|
|
119
116
|
## Encouragement for Contribution
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: realuser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Kahlert
|
@@ -128,7 +128,7 @@ licenses:
|
|
128
128
|
- MIT
|
129
129
|
metadata:
|
130
130
|
homepage_uri: https://juliankahlert.github.io/realuser/
|
131
|
-
documentation_uri: https://www.rubydoc.info/gems/realuser/0.1.
|
131
|
+
documentation_uri: https://www.rubydoc.info/gems/realuser/0.1.1
|
132
132
|
source_code_uri: https://github.com/juliankahlert/realuser
|
133
133
|
post_install_message:
|
134
134
|
rdoc_options: []
|