wpa_cli_web 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. data/lib/wpa_cli_web.rb +1 -19
  2. data/wpa_cli_web.gemspec +1 -1
  3. 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
- status 511
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.4"
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}
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
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: