sheepsafe 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +10 -0
- data/lib/sheepsafe/controller.rb +1 -1
- data/lib/sheepsafe.rb +1 -1
- data/sheepsafe.gemspec +1 -1
- data/spec/sheepsafe_spec.rb +6 -1
- metadata +3 -3
data/History.txt
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
=== 0.2.1
|
2
|
+
|
3
|
+
- Fix regression if config.last_network.nil?
|
4
|
+
|
5
|
+
=== 0.2.0
|
6
|
+
|
7
|
+
- Eliminate manual configuration of "Untrusted" location (Cory Preus)
|
8
|
+
- Make Growl optional (James Conroy-Finn)
|
9
|
+
- Add `sheepsafe update`
|
10
|
+
|
1
11
|
=== 0.1.0
|
2
12
|
|
3
13
|
- Initial release.
|
data/lib/sheepsafe/controller.rb
CHANGED
@@ -45,7 +45,7 @@ module Sheepsafe
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def network_changed?
|
48
|
-
@network.ssid != @config.last_network.ssid || @network.bssid != @config.last_network.bssid
|
48
|
+
@config.last_network.nil? || @network.ssid != @config.last_network.ssid || @network.bssid != @config.last_network.bssid
|
49
49
|
end
|
50
50
|
|
51
51
|
def switch_to_trusted?
|
data/lib/sheepsafe.rb
CHANGED
data/sheepsafe.gemspec
CHANGED
data/spec/sheepsafe_spec.rb
CHANGED
@@ -21,7 +21,12 @@ describe Sheepsafe::Controller do
|
|
21
21
|
|
22
22
|
context "#network_changed?" do
|
23
23
|
it "is when the current_network is different than the last_network" do
|
24
|
-
config.
|
24
|
+
config.stub!(:last_network).and_return double("network", :ssid => "last", :bssid => nil)
|
25
|
+
controller.network_changed?.should be_true
|
26
|
+
end
|
27
|
+
|
28
|
+
it "is when there is no last network" do
|
29
|
+
config.stub!(:last_network).and_return nil
|
25
30
|
controller.network_changed?.should be_true
|
26
31
|
end
|
27
32
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sheepsafe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nick Sieger
|