hotspot-login 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hl.rb +12 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87872bdf0f7f4f9b251f9925f03ff55fae50a0d9
4
- data.tar.gz: 24a82a907cf180962f83a88cca5ef5df5428ef8e
3
+ metadata.gz: ac74584d05880d4c18c237b33deec5a82395906b
4
+ data.tar.gz: 5b7596106e3ffeb16fddcf942fad28e645e59147
5
5
  SHA512:
6
- metadata.gz: b8a7fbe7601a56e3d9314d3f39014746dae82241de7808efae161b5fc202b04fea59cefe17787cd0cc54dc0b12503cbf4f93f93c11092f7a4d295608ffc3a0cb
7
- data.tar.gz: ab49db895d888bf3704e9586f591b20a7819ba5e2ea70fbd18c65dce83efc7e5050f317a190fd2333e0dbde444a09f1f023a325e5e2d27b3040a331fa5cd967b
6
+ metadata.gz: 06f289ec9e5d6df29da02e1dee6bb6c858688f16dea7c2023965d23e5cd36e1aeb2f991b6401216579c5c945a00498dd1784182556327583d4b6ce8c2ca9fc3e
7
+ data.tar.gz: 0e660ece6daffa14bc2e32bf1fd129a0a2331338cbaa84b1fa7f5aac02e4e1a1f9f7edc29647e62456f0cbb226c81a3a2313594a85f15ab47f54cb804f136b12
data/lib/hl.rb CHANGED
@@ -86,6 +86,10 @@ class Hotspot
86
86
  end
87
87
 
88
88
  class Sfr < Hotspot
89
+ def hotspot?
90
+ info.host == "hotspot.wifi.sfr.fr"
91
+ end
92
+
89
93
  def auth
90
94
  query = params.merge!({username: @user, username2: @user, password: @password, conditions: "on", lang: "fr", connexion: "Connexion", accessType: "neuf"})
91
95
  t = redirect? post("https://hotspot.wifi.sfr.fr/nb4_crypt.php", query)
@@ -94,6 +98,10 @@ class Sfr < Hotspot
94
98
  end
95
99
 
96
100
  class UPPA < Hotspot
101
+ def hotspot?
102
+ info.host == "wism.univ-pau.fr"
103
+ end
104
+
97
105
  def auth
98
106
  query = params.merge!({username: @user, password: @password, buttonClicked: 4, info_msg:nil, info_flag: 0, err_msg: nil, err_flag: 0})
99
107
  post("https://wism.univ-pau.fr/login.html", query)
@@ -101,6 +109,10 @@ class UPPA < Hotspot
101
109
  end
102
110
 
103
111
  class FreeWifi < Hotspot
112
+ def hotspot?
113
+ info.host == "wifi.free.fr"
114
+ end
115
+
104
116
  def auth
105
117
  query = params.merge!({login: @user, password: @password, submit: "Valider"})
106
118
  post("https://wifi.free.fr/Auth", query)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotspot-login
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Jeser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-26 00:00:00.000000000 Z
11
+ date: 2013-12-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Hotspot-login is a ruby script. It goal is connected hotspot like "Sfr
14
14
  Wifi", "FreeWifi" and "UPPA"