docheck 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8f7bf3c5c959d8f90649fc37b83fa1b41dbf548a233561db21a6f74ae8346613
4
+ data.tar.gz: 78a1e8780b9c83c76380646e89a6936cf18a3c97264a91529b261fbe979b0c4f
5
+ SHA512:
6
+ metadata.gz: 58de693d6de2cf0c16f9968eed20e638884db8f8f471bb392b5bbc9a1b899a9ffb55eef76af9bafbfc1173f340f5610f872349afe3d2d17920e482f9d03bcc3b
7
+ data.tar.gz: 7a3b94d469bc9afbf3ac3a4d68cb2b534ba62111451800c12162b708a56c903978189ff7ea4333a84045f2d61eacb5a70433eb7ae3634fbdd27b25f73e12ba73
data/Gemfile.lock ADDED
@@ -0,0 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ docheck (1.1.2)
5
+ whois (= 3.6.5)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ activesupport (5.2.3)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 0.7, < 2)
13
+ minitest (~> 5.1)
14
+ tzinfo (~> 1.1)
15
+ concurrent-ruby (1.1.5)
16
+ i18n (1.6.0)
17
+ concurrent-ruby (~> 1.0)
18
+ minitest (5.11.3)
19
+ shoulda (3.6.0)
20
+ shoulda-context (~> 1.0, >= 1.0.1)
21
+ shoulda-matchers (~> 3.0)
22
+ shoulda-context (1.2.2)
23
+ shoulda-matchers (3.1.3)
24
+ activesupport (>= 4.0.0)
25
+ thread_safe (0.3.6)
26
+ tzinfo (1.2.5)
27
+ thread_safe (~> 0.1)
28
+ whois (3.6.5)
29
+ activesupport (>= 3)
30
+
31
+ PLATFORMS
32
+ ruby
33
+
34
+ DEPENDENCIES
35
+ docheck!
36
+ shoulda (~> 3.6.0)
37
+
38
+ BUNDLED WITH
39
+ 1.17.2
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Kunto Aji Kristianto
1
+ Copyright (c) 2010-2019 Kunto Aji Kristianto
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/README.rdoc CHANGED
@@ -1,18 +1,13 @@
1
1
  = Docheck
2
- Domain name availability checker. By default, It will return all available and registered domains.
3
-
2
+ Domain name availability checker. By default, It will return all available and registered domains.
4
3
 
5
4
  == Requirements
6
-
7
- * Ruby >= 1.8.6
8
- * whois gem - http://github.com/weppos/whois
9
-
5
+ Ruby >= 1.9.2
10
6
 
11
7
  == Installation
12
8
 
13
9
  $ gem install docheck
14
10
 
15
-
16
11
  == Usage
17
12
  From the command line:
18
13
 
@@ -20,20 +15,21 @@ From the command line:
20
15
 
21
16
  From the Ruby file or IRB.
22
17
 
23
- require 'rubygems'
24
18
  require 'docheck'
25
19
 
26
- # Docheck only have two instance methods: print and fetch
27
- Docheck::Application.new('github').print
28
- # or
29
- Docheck::Application.new('github').fetch
20
+ docheck = Docheck::Application.new('github')
30
21
 
22
+ # returns two elements array. first array is available domains, last array is registered domains
23
+ docheck.fetch
31
24
 
32
- == Author
25
+ # returns all available domains
26
+ docheck.available_domains
33
27
 
34
- Author:: {Kunto Aji Kristianto}[http://www.railsmine.net/] <kunto.aji.kr@gmail.com>
28
+ # returns all registered domains
29
+ docheck.registered_domains
35
30
 
31
+ # print all available and registered domains
32
+ docheck.print
36
33
 
37
34
  == License
38
-
39
- Copyright (c) 2010 Kunto Aji Kristianto, Docheck is released under the MIT license.
35
+ Copyright (c) 2010 - 2019 Kunto Aji Kristianto, Docheck is released under the MIT license.
data/docheck.gemspec CHANGED
@@ -7,26 +7,22 @@ Gem::Specification.new do |s|
7
7
  s.version = Docheck::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = "Kunto Aji Kristianto"
10
- s.email = "kunto.aji.kr@gmail.com"
10
+ s.email = 'kuntoaji@kaklabs.com'
11
11
  s.homepage = "http://github.com/kuntoaji/docheck"
12
12
  s.summary = 'Domain name availability checker'
13
13
  s.description = <<-EOF
14
14
  Domain name availability checker.
15
15
  EOF
16
16
 
17
- s.rubyforge_project = "docheck"
18
-
19
17
  s.files = `git ls-files`.split("\n")
20
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
21
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
20
  s.require_paths = ["lib"]
23
21
 
24
- s.has_rdoc = true
25
22
  s.rdoc_options = ['--main', 'README.rdoc']
26
23
  s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
27
24
 
28
- s.required_ruby_version = '>= 1.8.7'
29
- s.requirements << 'ruby-whois, v1.6.6 or greater'
30
- s.add_dependency('whois', '~> 1.6.6')
31
- s.add_development_dependency('shoulda')
25
+ s.required_ruby_version = '>= 1.9.2'
26
+ s.add_dependency('whois', '3.6.5')
27
+ s.add_development_dependency('shoulda', '~> 3.6.0')
32
28
  end
@@ -19,7 +19,7 @@ module Docheck
19
19
  # Print the fetch result.
20
20
  def print
21
21
  result = fetch
22
-
22
+
23
23
  puts "\nDocheck Result\n"
24
24
  puts "--------------\n"
25
25
  puts "Available Domains:"
@@ -27,10 +27,12 @@ module Docheck
27
27
  puts "\n"
28
28
  puts "Registered Domains:"
29
29
  result.last.map{|domain_name| puts "- #{domain_name}"}
30
+
31
+ true
30
32
  end
31
33
 
32
34
  # Check domain name availability
33
- # and return the result as array.
35
+ # and return the result as array.
34
36
  #
35
37
  # The first element of array will return all
36
38
  # available domains as array.
@@ -9,7 +9,7 @@ require 'optparse'
9
9
 
10
10
  begin
11
11
  OptionParser.new do |opts|
12
- opts.banner = "Usage: docheck [basename]. Example: docheck google"
12
+ opts.banner = "Usage: docheck -n [basename]. Example: docheck -n google"
13
13
 
14
14
  opts.on("-v", "--version", "Show version") do
15
15
  puts "Docheck #{Docheck::VERSION}"
@@ -1,3 +1,3 @@
1
1
  module Docheck
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
metadata CHANGED
@@ -1,65 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: docheck
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 1
10
- version: 1.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Kunto Aji Kristianto
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-01-24 00:00:00 +07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2019-10-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: whois
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 1
32
- - 6
33
- - 6
34
- version: 1.6.6
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.6.5
35
20
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: shoulda
39
21
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.6.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: shoulda
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.6.0
49
34
  type: :development
50
- version_requirements: *id002
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.6.0
51
41
  description: " Domain name availability checker.\n"
52
- email: kunto.aji.kr@gmail.com
53
- executables:
42
+ email: kuntoaji@kaklabs.com
43
+ executables:
54
44
  - docheck
55
45
  extensions: []
56
-
57
- extra_rdoc_files:
46
+ extra_rdoc_files:
58
47
  - README.rdoc
59
48
  - LICENSE
60
- files:
61
- - .gitignore
49
+ files:
50
+ - ".gitignore"
62
51
  - Gemfile
52
+ - Gemfile.lock
63
53
  - LICENSE
64
54
  - README.rdoc
65
55
  - Rakefile
@@ -71,43 +61,28 @@ files:
71
61
  - lib/docheck/version.rb
72
62
  - test/docheck_test.rb
73
63
  - test/helper.rb
74
- has_rdoc: true
75
64
  homepage: http://github.com/kuntoaji/docheck
76
65
  licenses: []
77
-
66
+ metadata: {}
78
67
  post_install_message:
79
- rdoc_options:
80
- - --main
68
+ rdoc_options:
69
+ - "--main"
81
70
  - README.rdoc
82
- require_paths:
71
+ require_paths:
83
72
  - lib
84
- required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
87
75
  - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 57
90
- segments:
91
- - 1
92
- - 8
93
- - 7
94
- version: 1.8.7
95
- required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
76
+ - !ruby/object:Gem::Version
77
+ version: 1.9.2
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
98
80
  - - ">="
99
- - !ruby/object:Gem::Version
100
- hash: 3
101
- segments:
102
- - 0
103
- version: "0"
104
- requirements:
105
- - ruby-whois, v1.6.6 or greater
106
- rubyforge_project: docheck
107
- rubygems_version: 1.4.2
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubygems_version: 3.0.3
108
85
  signing_key:
109
- specification_version: 3
86
+ specification_version: 4
110
87
  summary: Domain name availability checker
111
- test_files:
112
- - test/docheck_test.rb
113
- - test/helper.rb
88
+ test_files: []