remi-domain-finder 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,24 @@
1
+ require File.dirname(__FILE__) + '/spec_helper.rb'
2
+
3
+ class String
4
+ def body() self end # for Net::HTTP response-compatible string
5
+ end
6
+
7
+ describe Moniker do
8
+
9
+ before(:all) do
10
+ @example_html = File.read(File.dirname(__FILE__) + "/html/moniker-1.html")
11
+ end
12
+
13
+ it '.find_available should search for availability of domains' do
14
+ SecurePost.should_receive(:post).with('https://www.moniker.com/pub/DomainCheckBatch', { :cmd => 'check', :scope => 'batch', :domnamelist => "remi.org\ngoogle.com" }).and_return(@example_html)
15
+ Moniker.find_available('remi.org','google.com')
16
+ end
17
+
18
+ it '.parse_results should return available domains' do
19
+ available = Moniker.parse_results(@example_html)
20
+ available.length.should == 1
21
+ available.first.should == "BLAH12345BLAH12345.NET"
22
+ end
23
+
24
+ end
@@ -0,0 +1 @@
1
+ require File.dirname(__FILE__) + '/../lib/domain-finder'
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: remi-domain-finder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - remi Taylor
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-06-14 00:00:00 -07:00
13
+ default_executable: domain-finder
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: remi-simplecli
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">"
21
+ - !ruby/object:Gem::Version
22
+ version: 0.0.0
23
+ version:
24
+ - !ruby/object:Gem::Dependency
25
+ name: hpricot
26
+ version_requirement:
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">"
30
+ - !ruby/object:Gem::Version
31
+ version: 0.0.0
32
+ version:
33
+ description: Find some previously used domain names and check availability
34
+ email: remi@remitaylor.com
35
+ executables:
36
+ - domain-finder
37
+ extensions: []
38
+
39
+ extra_rdoc_files:
40
+ - README
41
+ files:
42
+ - bin/domain-finder
43
+ - COPYING
44
+ - lib/domain-finder.rb
45
+ - lib/domain-finder/bin.rb
46
+ - lib/domain-finder/domaintools.rb
47
+ - lib/domain-finder/google.rb
48
+ - lib/domain-finder/daterange.rb
49
+ - lib/domain-finder/moniker.rb
50
+ - lib/domain-finder/domain.rb
51
+ - lib/domain-finder/secure_post.rb
52
+ - domain-finder.gemspec
53
+ - Rakefile
54
+ - NOTES
55
+ - README
56
+ - tmp/specdoc.html
57
+ - spec/spec_helper.rb
58
+ - spec/google_spec.rb
59
+ - spec/moniker_spec.rb
60
+ - spec/daterange_spec.rb
61
+ - spec/html/google-1.html
62
+ - spec/html/moniker-1.html
63
+ - spec/html/domaintools-1.html
64
+ - spec/domaintools_spec.rb
65
+ has_rdoc: true
66
+ homepage: http://github.com/remi/domain-finder
67
+ post_install_message:
68
+ rdoc_options:
69
+ - --quiet
70
+ - --title
71
+ - domain-finder
72
+ - --opname
73
+ - index.html
74
+ - --line-numbers
75
+ - --main
76
+ - README
77
+ - --inline-source
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: "0"
85
+ version:
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
91
+ version:
92
+ requirements: []
93
+
94
+ rubyforge_project:
95
+ rubygems_version: 1.0.1
96
+ signing_key:
97
+ specification_version: 2
98
+ summary: Find available domains names
99
+ test_files: []
100
+