wpa_cli_web 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,15 @@
1
1
  class AccessPointList
2
2
  include WpaCliRuby
3
3
 
4
+ # Initialize with scan results. This assumes that cli_client.scan()
5
+ # has been called elsewhere. When this application is run with the
6
+ # wifi interface in AP mode, calling scan() is destructive.
4
7
  def initialize(cli_client = WpaCli.new)
5
- cli_client.scan
6
8
  @access_points = cli_client.scan_results
7
9
  end
8
10
 
9
11
  def access_points
10
- strongest_unique_ssids_sorted_alphabetically
12
+ strongest_unique_ssids_sorted_alphabetically
11
13
  end
12
14
 
13
15
  def strongest_unique_ssids_sorted_alphabetically
@@ -6,7 +6,6 @@ require_relative '../../lib/wpa_cli_web/access_point_list.rb'
6
6
  describe AccessPointList do
7
7
  before do
8
8
  mock_wrapper = stub()
9
- mock_wrapper.expects(:scan).returns("Selected interface 'wlan0'\nOK\n")
10
9
  response = <<-eos
11
10
  Selected interface 'wlan0'
12
11
  bssid / frequency / signal level / flags / ssid
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.9"
7
+ spec.version = "0.0.10"
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.9
4
+ version: 0.0.10
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-27 00:00:00.000000000 Z
13
+ date: 2013-09-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sinatra
@@ -250,12 +250,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
250
250
  - - ! '>='
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
+ segments:
254
+ - 0
255
+ hash: 231190901924834760
253
256
  required_rubygems_version: !ruby/object:Gem::Requirement
254
257
  none: false
255
258
  requirements:
256
259
  - - ! '>='
257
260
  - !ruby/object:Gem::Version
258
261
  version: '0'
262
+ segments:
263
+ - 0
264
+ hash: 231190901924834760
259
265
  requirements: []
260
266
  rubyforge_project:
261
267
  rubygems_version: 1.8.23
@@ -264,4 +270,3 @@ specification_version: 3
264
270
  summary: Web interface for configuring wifi using wpa_cli
265
271
  test_files:
266
272
  - test/wpa_cli_web/access_point_list_test.rb
267
- has_rdoc: