whimsy-asf 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- data/asf.version +1 -1
- data/lib/whimsy/asf/rack.rb +3 -1
- metadata +2 -2
data/asf.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.26
|
data/lib/whimsy/asf/rack.rb
CHANGED
@@ -25,9 +25,11 @@ module ASF
|
|
25
25
|
env.user, env.password = Base64.decode64(env['HTTP_AUTHORIZATION'][
|
26
26
|
/^Basic ([A-Za-z0-9+\/=]+)$/,1]).split(':',2)
|
27
27
|
else
|
28
|
-
env.user = env['REMOTE_USER']
|
28
|
+
env.user = env['REMOTE_USER'] || ENV['USER'] || Etc.getpwuid.name
|
29
29
|
end
|
30
30
|
|
31
|
+
env['REMOTE_USER'] ||= env.user
|
32
|
+
|
31
33
|
ASF::Person.new(env.user)
|
32
34
|
end
|
33
35
|
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: whimsy-asf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.26
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sam Ruby
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
version_requirements: !ruby/object:Gem::Requirement
|