slicehost 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,6 @@ config/hoe.rb
7
7
  config/requirements.rb
8
8
  lib/slicehost.rb
9
9
  lib/slicehost/version.rb
10
- local/slicehost.rb
11
10
  local/slicehost.rb.sample
12
11
  log/debug.log
13
12
  script/destroy
@@ -35,6 +35,7 @@ class Slicehost::Helper
35
35
  form.email = email
36
36
  form.password = password
37
37
  @page = agent.submit(form)
38
+ page.title != "Slicehost Login"
38
39
  end
39
40
 
40
41
  def zone?(url)
@@ -2,7 +2,7 @@ module Slicehost #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -6,8 +6,13 @@ class TestAdmin < Test::Unit::TestCase
6
6
  setup_login
7
7
  end
8
8
 
9
- def test_login
10
- page = session.login(email, password)
11
- assert_not_equal("Slicehost Login", page.title, "Have you setup ENVs SLICEHOST_EMAIL and SLICEHOST_PASSWORD to your own slicehost account? Place them in local/slicehost.rb")
9
+ def test_login_successful
10
+ successful = session.login(email, password)
11
+ assert(successful, "Login not successful")
12
+ end
13
+
14
+ def test_login_unsuccessful
15
+ successful = session.login(email, "123456")
16
+ assert(!successful, "Login successful, but should have failed")
12
17
  end
13
18
  end
@@ -33,7 +33,7 @@
33
33
  <h1>slicehost</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/slicehost"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/slicehost" class="numbers">0.1.0</a>
36
+ <a href="http://rubyforge.org/projects/slicehost" class="numbers">0.1.1</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;slicehost&#8217;</h1>
39
39
 
@@ -82,7 +82,7 @@
82
82
 
83
83
  <p>Comments are welcome. Send an email to <a href="mailto:drnicwilliams@gmail.com">Dr Nic Williams</a> via the <a href="http://groups.google.com/group/slicehost">forum</a></p>
84
84
  <p class="coda">
85
- <a href="drnicwilliams@gmail.com">Dr Nic Williams</a>, 22nd December 2007<br>
85
+ <a href="drnicwilliams@gmail.com">Dr Nic Williams</a>, 23rd December 2007<br>
86
86
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
87
87
  </p>
88
88
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slicehost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -35,7 +35,6 @@ files:
35
35
  - config/requirements.rb
36
36
  - lib/slicehost.rb
37
37
  - lib/slicehost/version.rb
38
- - local/slicehost.rb
39
38
  - local/slicehost.rb.sample
40
39
  - log/debug.log
41
40
  - script/destroy
@@ -1,2 +0,0 @@
1
- ENV['SLICEHOST_EMAIL'] = "drnicwilliams@gmail.com"
2
- ENV['SLICEHOST_PASSWORD'] = "UHUst0ck"