rack-rpx 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -4,6 +4,5 @@
4
4
  RPXNOW.overlay = true;
5
5
  RPXNOW.language_preference = 'en';
6
6
 
7
-
8
7
  %a.rpxnow{ :href => login_widget_url("olokun"), :onclick => "return false;" }
9
8
  Sign In
data/lib/rack-rpx.rb CHANGED
@@ -53,7 +53,7 @@ module Rack #:nodoc:
53
53
  http.use_ssl = true if u.scheme == 'https'
54
54
  json = JSON.parse(http.request(req).body)
55
55
 
56
- raise LoginFailedError, 'Cannot log in. Try another account!' unless json['stat'] == 'ok'
56
+ raise LoginFailedError, 'Cannot log in. Try another account! #{json.inspect}' unless json['stat'] == 'ok'
57
57
  json
58
58
  end
59
59
  end
@@ -63,8 +63,7 @@ module Rack #:nodoc:
63
63
  OPTIONS.merge! options.pop
64
64
  OPTIONS.each do |k,v|
65
65
  Rack::Rpx.send(:define_method, k.to_s) {OPTIONS[k]}
66
- end
67
-
66
+ end
68
67
  end
69
68
 
70
69
  def call env
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-rpx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Del Gallego
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-17 00:00:00 +01:00
12
+ date: 2010-01-14 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency