masquerade 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
- == Release 0.4.0 - April 14, 2011
2
+ == Release 0.5.0 - April 15, 2011
3
+
4
+ * FIX: Fatal bug
5
+
6
+ == Release 0.4.0 - April 15, 2011
3
7
 
4
8
  * CHANGE: Use euid and eguid as opposed to uid and gid to switch user
5
9
  * CHANGE: Make summary more descriptive
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
2
2
  require "rake"
3
3
  require "echoe"
4
4
 
5
- Echoe.new("masquerade", "0.4.0") do |p|
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
- current_uid = Process.euid
52
- current_gid = Process.egid
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{masquerade}
5
- s.version = "0.4.0"
5
+ s.version = "0.5.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Nitesh Goel"]
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: 15
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
8
+ - 5
9
9
  - 0
10
- version: 0.4.0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nitesh Goel