rack-rpx 0.1.2 → 0.1.3
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/VERSION +1 -1
- data/examples/views/login.haml +0 -1
- data/lib/rack-rpx.rb +2 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/examples/views/login.haml
CHANGED
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.
|
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:
|
12
|
+
date: 2010-01-14 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|