FoneFinder 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'FoneFinder'
3
3
 
4
- puts "Please enter a phone number"
4
+ puts "Please enter a phone number!"
5
5
  object = FoneFinder.new(STDIN.gets.chomp)
6
6
 
7
7
  unless object.invalid
@@ -74,8 +74,10 @@ class FoneFinder
74
74
  start = html.index(start)
75
75
  if (start == nil)
76
76
  puts "Error invalid query"
77
+ @invalid = true
77
78
  return
78
79
  end
80
+ @invalid = false
79
81
  startAreaIndex = html.index("<A HREF='findareacode")
80
82
  html = html[startAreaIndex, html.size - startAreaIndex]
81
83
  start = "cityname="
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 3
9
+ version: 1.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Evin Ugur