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.
Files changed (3) hide show
  1. data/asf.version +1 -1
  2. data/lib/whimsy/asf/rack.rb +3 -1
  3. metadata +2 -2
@@ -1 +1 @@
1
- 0.0.25
1
+ 0.0.26
@@ -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'] ||= ENV['USER'] || Etc.getpwuid.name
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.25
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-02 00:00:00.000000000 Z
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