masquerade 0.4.0 → 0.5.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.
- data/CHANGELOG.rdoc +5 -1
- data/Rakefile +1 -1
- data/lib/masquerade.rb +2 -2
- data/masquerade.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
|
@@ -2,7 +2,7 @@ require "rubygems"
|
|
|
2
2
|
require "rake"
|
|
3
3
|
require "echoe"
|
|
4
4
|
|
|
5
|
-
Echoe.new("masquerade", "0.
|
|
5
|
+
Echoe.new("masquerade", "0.5.0") do |p|
|
|
6
6
|
p.description = "A user/group impersonator. Allows you to run a block of code as another user or group."
|
|
7
7
|
p.summary = "A user/group impersonator. Allows you to run a block of code as another user or group"
|
|
8
8
|
p.url = "http://rubygems.org/gems/masquerade"
|
data/lib/masquerade.rb
CHANGED
|
@@ -48,8 +48,8 @@ Returns the result of the block call. So you can do:
|
|
|
48
48
|
module Masquerade
|
|
49
49
|
def self.as(who)
|
|
50
50
|
begin
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
current_euid = Process.euid
|
|
52
|
+
current_egid = Process.egid
|
|
53
53
|
if who.include? :group
|
|
54
54
|
group_struct = nil
|
|
55
55
|
if who[:group].kind_of? String
|
data/masquerade.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: masquerade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
8
|
+
- 5
|
|
9
9
|
- 0
|
|
10
|
-
version: 0.
|
|
10
|
+
version: 0.5.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Nitesh Goel
|