wpa_cli_web 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wpa_cli_web.rb +1 -19
- data/wpa_cli_web.gemspec +1 -1
- metadata +1 -1
data/lib/wpa_cli_web.rb
CHANGED
@@ -21,23 +21,6 @@ class WpaCliWeb < Sinatra::Base
|
|
21
21
|
@host = request.host_with_port
|
22
22
|
end
|
23
23
|
|
24
|
-
template :index do
|
25
|
-
<<-eos
|
26
|
-
<html>
|
27
|
-
<head>
|
28
|
-
<title>Network Authentication Required</title>
|
29
|
-
<meta http-equiv="refresh"
|
30
|
-
content="0; url=//<%= @host %>/access_points">
|
31
|
-
</head>
|
32
|
-
<body>
|
33
|
-
<p>You need to <a href="//<%= @host %>/access_points">
|
34
|
-
authenticate with the local network</a> in order to gain
|
35
|
-
access.</p>
|
36
|
-
</body>
|
37
|
-
</html>
|
38
|
-
eos
|
39
|
-
end
|
40
|
-
|
41
24
|
template :networks do
|
42
25
|
<<-eos
|
43
26
|
<ul>
|
@@ -68,8 +51,7 @@ class WpaCliWeb < Sinatra::Base
|
|
68
51
|
end
|
69
52
|
|
70
53
|
get '/' do
|
71
|
-
|
72
|
-
erb :index, :layout => false
|
54
|
+
redirect '/access_points'
|
73
55
|
end
|
74
56
|
|
75
57
|
get '/access_points' do
|
data/wpa_cli_web.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "wpa_cli_web"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.5"
|
8
8
|
spec.authors = ["Chris Lowis", "Andrew Nicolaou"]
|
9
9
|
spec.email = ["chris.lowis@gmail.com"]
|
10
10
|
spec.description = %q{Web interface for configuring wifi using wpa_cli}
|