wpa_cli_web 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,6 @@ class AccessPointList
12
12
  map {|ssid, network_group| network_group}.
13
13
  map {|network_group| network_group.sort_by { |network| network.signal_level}.reverse.take(1)}.
14
14
  flatten.
15
- sort_by { |network| network.signal_level }.
16
- reverse
15
+ sort_by { |network| network.ssid }
17
16
  end
18
17
  end
@@ -6,15 +6,19 @@
6
6
  table {
7
7
  width: 100%;
8
8
  }
9
+
10
+ .hostname {
11
+ text-align: right;
12
+ }
9
13
  </style>
10
14
  </head>
11
15
  <body>
12
16
  <header class="masthead">
13
17
  <div class="grid">
14
- <div class="grid-col grid-10">
18
+ <div class="grid-col grid-8">
15
19
  <span class="dept"><%= product_name %></span>
16
20
  </div>
17
- <div class="grid-col grid-2"><%= @host %></div>
21
+ <div class="hostname grid-col grid-4"><%= @host %></div>
18
22
  </div><!-- .grid -->
19
23
  </header>
20
24
  <div class="grid">
data/lib/wpa_cli_web.rb CHANGED
@@ -81,6 +81,7 @@ class WpaCliWeb < Sinatra::Base
81
81
  end
82
82
 
83
83
  post '/restart' do
84
+ `sudo reboot` if ENV['RACK_ENV'] == "production"
84
85
  erb :restarting
85
86
  end
86
87
  end
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.6"
7
+ spec.version = "0.0.7"
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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-25 00:00:00.000000000 Z
13
+ date: 2013-08-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sinatra