wpa_cli_web 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wpa_cli_web.rb +6 -2
- data/wpa_cli_web.gemspec +1 -1
- metadata +2 -7
data/lib/wpa_cli_web.rb
CHANGED
@@ -17,16 +17,20 @@ class WpaCliWeb < Sinatra::Base
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
before do
|
21
|
+
@host = request.host_with_port
|
22
|
+
end
|
23
|
+
|
20
24
|
template :index do
|
21
25
|
<<-eos
|
22
26
|
<html>
|
23
27
|
<head>
|
24
28
|
<title>Network Authentication Required</title>
|
25
29
|
<meta http-equiv="refresh"
|
26
|
-
content="0; url
|
30
|
+
content="0; url=//<%= @host %>/access_points">
|
27
31
|
</head>
|
28
32
|
<body>
|
29
|
-
<p>You need to <a href="
|
33
|
+
<p>You need to <a href="//<%= @host %>/access_points">
|
30
34
|
authenticate with the local network</a> in order to gain
|
31
35
|
access.</p>
|
32
36
|
</body>
|
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.4"
|
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}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wpa_cli_web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -124,18 +124,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- - ! '>='
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
|
-
segments:
|
128
|
-
- 0
|
129
|
-
hash: -2222692181566366556
|
130
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
128
|
none: false
|
132
129
|
requirements:
|
133
130
|
- - ! '>='
|
134
131
|
- !ruby/object:Gem::Version
|
135
132
|
version: '0'
|
136
|
-
segments:
|
137
|
-
- 0
|
138
|
-
hash: -2222692181566366556
|
139
133
|
requirements: []
|
140
134
|
rubyforge_project:
|
141
135
|
rubygems_version: 1.8.23
|
@@ -143,3 +137,4 @@ signing_key:
|
|
143
137
|
specification_version: 3
|
144
138
|
summary: Web interface for configuring wifi using wpa_cli
|
145
139
|
test_files: []
|
140
|
+
has_rdoc:
|