wifi-wand 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffa643d3118b6039e5335d2b390ccbaaad5b6985b633ccb6ddc06292547285f2
4
- data.tar.gz: 95845961ff4f1c0e0a97a88f676f7fedf71b056cb530bc10fc735318ea23cc4b
3
+ metadata.gz: 39fb11e8effdadab7a0585480a02695f9f693f49c27b6855f2d258e6e29b9421
4
+ data.tar.gz: 523cb07ce2169deb4bbdfaf214ef650d07b92da1650f8c8c2a0a9dcafdf128a3
5
5
  SHA512:
6
- metadata.gz: 8c8e7a084ca01bc32ea3975d3cfc0a42de836f5ccde28f0dbae78a5ee1709398301adba3ddbcfa23cb78f90625ceb58f06c9c831f22fc490e3166c4126a231aa
7
- data.tar.gz: 6dec19538c4b1ecc0196144776e99e3f237a79a0495df5f06c74904489c051b460cf9707d09020f60bc804a9ee2766043602f99190c1577b8dcc1e3f53c4db26
6
+ metadata.gz: dddac4e2bf62fc1a02322f142021fa54bfa8f29b5eec6fe033c280f47fa85b00847c93d8faa4899d2e572b7765e6a278411471f4399f21dcc7c13e31ae9c0a51
7
+ data.tar.gz: 53468c830a5a14bbe6dda666572621c5188dad82f87669901200922f7247569cebe25913ad7e0dca14106a85b1ad479a9d28578ed325a0de623754d48443346f
data/README.md CHANGED
@@ -28,7 +28,7 @@ output at the time of this writing:
28
28
  ```
29
29
  $ wifi-wand -h
30
30
 
31
- Command Line Switches: [wifi-wand version 2.4.0]
31
+ Command Line Switches: [wifi-wand version 2.4.1]
32
32
 
33
33
  -o[i,j,p,y] - outputs data in inspect, JSON, puts, or YAML format when not in shell mode
34
34
  -s - run in shell mode
data/RELEASE_NOTES.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v2.4.1
2
+
3
+ * Fix bug: undefined local variable or method `connected_network_name'
4
+
5
+
1
6
  ## v2.4.0
2
7
 
3
8
  * Project has been renamed from 'mac-wifi' to 'wifi-wand'.
@@ -301,7 +301,7 @@ When in interactive shell mode:
301
301
 
302
302
 
303
303
  def cmd_n
304
- name = model.current_network
304
+ name = model.connected_network_name
305
305
  if interactive_mode
306
306
  name
307
307
  else
@@ -109,7 +109,7 @@ class BaseModel
109
109
  # TODO: Make this network name saving and restoring conditional on it not having a password.
110
110
  # If the disabled code below is enabled, an error will be raised if a password is required,
111
111
  # even though it is stored.
112
- # network_name = current_network
112
+ # network_name = connected_network_name
113
113
  wifi_off
114
114
  wifi_on
115
115
  # connect(network_name) if network_name
@@ -233,7 +233,7 @@ class MacOsModel < BaseModel
233
233
 
234
234
 
235
235
  # Returns the network currently connected to, or nil if none.
236
- def current_network
236
+ def connected_network_name
237
237
  lines = run_os_command("#{AIRPORT_CMD} -I").split("\n")
238
238
  ssid_lines = lines.grep(/ SSID:/)
239
239
  ssid_lines.empty? ? nil : ssid_lines.first.split('SSID: ').last.strip
@@ -254,7 +254,7 @@ class MacOsModel < BaseModel
254
254
  'wifi_on' => wifi_on?,
255
255
  'internet_on' => connected_to_internet?,
256
256
  'port' => wifi_hardware_port,
257
- 'network' => current_network,
257
+ 'network' => connected_network_name,
258
258
  'ip_address' => ip_address,
259
259
  'nameservers' => nameservers_using_scutil,
260
260
  'timestamp' => Time.now,
@@ -1,5 +1,5 @@
1
1
  module WifiWand
2
2
 
3
- VERSION = '2.4.0'
3
+ VERSION = '2.4.1'
4
4
 
5
5
  end
@@ -89,7 +89,7 @@ describe MacOsModel do
89
89
 
90
90
  it 'can determine the current network' do
91
91
  wifi_starts_on ? subject.wifi_on : subject.wifi_off
92
- network = subject.current_network
92
+ network = subject.connected_network_name
93
93
  unless subject.wifi_on?
94
94
  expect(network).to eq(nil)
95
95
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wifi-wand
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Bennett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-04 00:00:00.000000000 Z
11
+ date: 2018-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler