wpa_cli_web 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmEyYmYyZGE4ZjFmZDMxODk1YjM2MjJjYzBmNzJkOWMwOGY5OWNhYQ==
4
+ MDQ3YTA3N2ViN2Q1NzFmMTg4MmFmYzdlOTVjN2IzY2ZlMzljN2NkNw==
5
5
  data.tar.gz: !binary |-
6
- ZTI3MjQzNGIyODhjMjg1NjFiMDc5OTZjOTAwYmYwNGE5MzQzMGI4ZQ==
6
+ ODQyZmJjYzQ4MWI4MDlmY2NjNGQ0ZTg0OTZlYmQ5YzAyYzk2NDE4OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmY0MmY5ZjE1ODljZDAzYTMxMGZmOTUwODZlNzljYjM5Yjg5ZmEyZjQ3ZWE0
10
- MTk4ODFjY2I4YjRiMzkwOWFjMmExMTg3Njc4ODU5M2YzZDVjOTM0ZjUyYjg4
11
- NDI1OWIxNzJiODQxZjRmYWRmYmQxNThmYjE5MTBhZDYxY2Q1M2I=
9
+ YTYxYmMxNDA4ZmM0NzIxYjc2YTdkZWM1ODY5ZTA5YmVlNGFjYjdhNWRlZjM1
10
+ NmEzYmZlYTExZmExMmE2OGI4NGUxNDdjZDdmMGI5NDA2ZTNlMzFmMTU3Y2E4
11
+ OTViZDAxN2Q1NjNiNTNlZWFmOTk3OWZjMDBkYmZhMWZkYTQ0ZTg=
12
12
  data.tar.gz: !binary |-
13
- NDUxYjMzMWExNjY5ZTE0ZjgyN2FjYmEyZTNkZWFmZTVkMTJhZjFjNDU4NDgx
14
- YmI1OWY3NTU2NzJiZWFlZTY1YTk2NDg5ZjRlNjhmMmRmNzQ3NWY4Mzg1Yzcx
15
- YzM1ZGYxYzIyZjg4ZThhMWJhMWY0ZDU0MTVmNjNhYjAwN2U0MWY=
13
+ ZWMxM2U5Y2JiMTc5NDlhNzgxMTQ4ZDFhYjRlOGQzMDFmNDgyZjEwZjY2MjQw
14
+ MThhOTMxZTc4NTM0NjgzOTQ5MTIwNDNmNTk5MGM3ODE0OTdhMjE3YmUxZTAz
15
+ MTc1MTFkMThlOGY1NjI3OGYwNDY4ZjRlMzE1ZTEyMTRmYTc0OWY=
@@ -14,7 +14,7 @@ class AccessPointList
14
14
 
15
15
  def strongest_unique_ssids_sorted_alphabetically
16
16
  strongest_unique_ssids.
17
- sort_by { |network| network.ssid }
17
+ sort_by { |network| network.ssid.downcase }
18
18
  end
19
19
 
20
20
  def strongest_unique_ssids
@@ -12,6 +12,7 @@ bssid / frequency / signal level / flags / ssid
12
12
  12:34:56:78:aa:bb 2437 -47 [WPA-EAP-TKIP][WPA2-EAP-CCMP][ESS] z_ssid
13
13
  12:34:56:78:bb:cc 2412 -57 [WPA2-PSK-CCMP][ESS] a_ssid
14
14
  43:34:56:78:bb:cc 2412 -87 [WPA-EAP-TKIP][WPA2-EAP-CCMP][ESS] z_ssid
15
+ 12:34:56:78:bb:cc 2412 -57 [WPA2-PSK-CCMP][ESS] B_ssid
15
16
  eos
16
17
  mock_wrapper.expects(:scan_results).returns(response)
17
18
  @access_point_list = AccessPointList.new(WpaCliRuby::WpaCli.new(mock_wrapper))
@@ -19,9 +20,10 @@ eos
19
20
 
20
21
  describe "access_points" do
21
22
  it "returns a list of unique, strongest access points sorted alphabetically" do
22
- assert_equal 2, @access_point_list.access_points.size
23
+ assert_equal 3, @access_point_list.access_points.size
23
24
  assert_equal "a_ssid", @access_point_list.access_points[0].ssid
24
- assert_equal "z_ssid", @access_point_list.access_points[1].ssid
25
+ assert_equal "B_ssid", @access_point_list.access_points[1].ssid
26
+ assert_equal "z_ssid", @access_point_list.access_points[2].ssid
25
27
  end
26
28
  end
27
29
  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.12"
7
+ spec.version = "0.0.13"
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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Lowis