hotspotlogin 1.3.0.1 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ * 1.3.1 (2011-10.03)
2
+ * "retry & delay" on logoff
3
+
1
4
  * 1.3.0 (2011-09-29)
2
5
  * Italian and English localization based on R18n
3
6
  * some mobile-friendliness (without special layouts or device detection)
@@ -17,12 +20,12 @@
17
20
  * --signup-url
18
21
 
19
22
  * 1.0.2 (2010-12-08)
20
- * Display Reply-Message properly
21
- * fix serious encoding issues
22
- * use Rack instead of ERB utils for escaping
23
+ * Display Reply-Message properly
24
+ * fix serious encoding issues
25
+ * use Rack instead of ERB utils for escaping
23
26
 
24
27
  * 1.0.1 (2010-11-17)
25
- * Urgent bugfix -- handle config['logo'] == nil (TypeError)
28
+ * Urgent bugfix -- handle config['logo'] == nil (TypeError)
26
29
 
27
30
  * 1.0.0 (2010-11-16)
28
31
  * Major rewrite based on CoovaChilli JSON API (coova.org/CoovaChilli/JSON).
@@ -1,6 +1,6 @@
1
1
  module HotSpotLogin
2
2
 
3
- VERSION = '1.3.0.1'
3
+ VERSION = '1.3.1'
4
4
 
5
5
  DEFAULT_CONFIG = {
6
6
  'listen-address' => '0.0.0.0',
@@ -68,7 +68,13 @@ chilliController.formatBytesShort = function( b , zeroReturn ) {
68
68
 
69
69
  chilliController.refreshAndLogoff = function() {
70
70
  chilliController.refresh();
71
- setTimeout('chilliController.logoff()', 250); // a delay is necessary...
71
+
72
+ // inelegant but effective ;-)
73
+
74
+ for (delay=250; delay<1600; delay+=250) {
75
+ setTimeout('if (chilliController.clientState == chilliController.stateCodes.AUTH) chilliController.logoff()', delay);
76
+ }
77
+
72
78
  }
73
79
 
74
80
 
metadata CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 0
9
8
  - 1
10
- version: 1.3.0.1
9
+ version: 1.3.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Guido De Rosa
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-09-29 00:00:00 +00:00
17
+ date: 2011-10-14 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency