hansef-checkdomain 1.0.8 → 1.0.9

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.
@@ -10,6 +10,8 @@ lib/checkdomain/search.rb
10
10
  script/console
11
11
  script/destroy
12
12
  script/generate
13
- test/test_checkdomain.rb
14
- test/test_checkdomain_cli.rb
15
- test/test_helper.rb
13
+ spec/checkdomain_cli_spec.rb
14
+ spec/checkdomain_spec.rb
15
+ spec/spec.opts
16
+ spec/spec_helper.rb
17
+ tasks/rspec.rake
@@ -8,7 +8,7 @@ require 'checkdomain/search'
8
8
  require 'checkdomain/domain'
9
9
 
10
10
  module CheckDomain
11
- VERSION = '1.0.8'
11
+ VERSION = '1.0.9'
12
12
 
13
13
  TLDS = %W(
14
14
  aero asia biz cat com coop edu gov info int jobs mil mobi museum name net org
@@ -0,0 +1,15 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+ require 'checkdomain/cli'
3
+
4
+ describe CheckDomain::CLI, "execute" do
5
+ before(:each) do
6
+ @stdout_io = StringIO.new
7
+ Checkdomain::CLI.execute(@stdout_io, [])
8
+ @stdout_io.rewind
9
+ @stdout = @stdout_io.read
10
+ end
11
+
12
+ it "should do something" do
13
+ @stdout.should_not =~ /To update this executable/
14
+ end
15
+ end
@@ -0,0 +1,11 @@
1
+ require File.dirname(__FILE__) + '/spec_helper.rb'
2
+
3
+ # Time to add your specs!
4
+ # http://rspec.info/
5
+ describe "Place your specs here" do
6
+
7
+ it "find this spec in spec directory" do
8
+ violated "Be sure to write your specs"
9
+ end
10
+
11
+ end
@@ -0,0 +1 @@
1
+ --colour
@@ -0,0 +1,10 @@
1
+ begin
2
+ require 'spec'
3
+ rescue LoadError
4
+ require 'rubygems'
5
+ gem 'rspec'
6
+ require 'spec'
7
+ end
8
+
9
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
10
+ require 'checkdomain'
@@ -0,0 +1,21 @@
1
+ begin
2
+ require 'spec'
3
+ rescue LoadError
4
+ require 'rubygems'
5
+ require 'spec'
6
+ end
7
+ begin
8
+ require 'spec/rake/spectask'
9
+ rescue LoadError
10
+ puts <<-EOS
11
+ To use rspec for testing you must install rspec gem:
12
+ gem install rspec
13
+ EOS
14
+ exit(0)
15
+ end
16
+
17
+ desc "Run the specs under spec/models"
18
+ Spec::Rake::SpecTask.new do |t|
19
+ t.spec_opts = ['--options', "spec/spec.opts"]
20
+ t.spec_files = FileList['spec/**/*_spec.rb']
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hansef-checkdomain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hans Friedrich
@@ -13,34 +13,34 @@ date: 2009-02-15 00:00:00 -08:00
13
13
  default_executable: checkdomain
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: newgem
17
- type: :development
16
+ name: net-dns
17
+ type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.2.3
23
+ version: "0.4"
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: hoe
26
+ name: newgem
27
27
  type: :development
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.8.0
33
+ version: 1.2.3
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
- name: net-dns
37
- type: :runtime
36
+ name: hoe
37
+ type: :development
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: "0.4"
43
+ version: 1.8.0
44
44
  version:
45
45
  description: "Easily check a domain's availability from the commandline. Usage: checkdomain domain [domain2 domain3 etc.] You can also use globs for more goodness and they will be expanded: checkdomain example.{com,org,net} This will result in checks for each of the following: * example.com * example.org * example.net"
46
46
  email:
@@ -66,9 +66,11 @@ files:
66
66
  - script/console
67
67
  - script/destroy
68
68
  - script/generate
69
- - test/test_checkdomain.rb
70
- - test/test_checkdomain_cli.rb
71
- - test/test_helper.rb
69
+ - spec/checkdomain_cli_spec.rb
70
+ - spec/checkdomain_spec.rb
71
+ - spec/spec.opts
72
+ - spec/spec_helper.rb
73
+ - tasks/rspec.rake
72
74
  has_rdoc: true
73
75
  homepage: http://github.com/hansef/checkdomain/
74
76
  post_install_message:
@@ -96,7 +98,5 @@ rubygems_version: 1.2.0
96
98
  signing_key:
97
99
  specification_version: 2
98
100
  summary: Easily check a domain's availability from the commandline
99
- test_files:
100
- - test/test_checkdomain.rb
101
- - test/test_checkdomain_cli.rb
102
- - test/test_helper.rb
101
+ test_files: []
102
+
@@ -1,11 +0,0 @@
1
- require File.dirname(__FILE__) + '/test_helper.rb'
2
-
3
- class TestCheckDomain < Test::Unit::TestCase
4
-
5
- def setup
6
- end
7
-
8
- def test_truth
9
- assert true
10
- end
11
- end
@@ -1,14 +0,0 @@
1
- require File.join(File.dirname(__FILE__), "test_helper.rb")
2
- require 'checkdomain/cli'
3
-
4
- class TestCheckDomainCli < Test::Unit::TestCase
5
- def setup
6
- CheckDomain::CLI.execute(@stdout_io = StringIO.new, [])
7
- @stdout_io.rewind
8
- @stdout = @stdout_io.read
9
- end
10
-
11
- def test_not_print_default_output
12
- assert_no_match(/To update this executable/, @stdout)
13
- end
14
- end
@@ -1,3 +0,0 @@
1
- require 'stringio'
2
- require 'test/unit'
3
- require File.dirname(__FILE__) + '/../lib/checkdomain'