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 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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Sheepsafe
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
4
4
 
5
5
  require 'sheepsafe/config'
data/sheepsafe.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sheepsafe'
5
- s.version = '0.2.0'
5
+ s.version = '0.2.1'
6
6
  s.date = '2010-10-27'
7
7
 
8
8
  s.rubyforge_project = %q{caldersphere}
@@ -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.should_receive(:last_network).and_return double("network", :ssid => "last", :bssid => nil)
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nick Sieger