Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
version 0.1
  • Loading branch information
jnewland committed Mar 5, 2008
0 parents commit 00e9ce7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gemified
@@ -0,0 +1,7 @@
---
:author: Jesse Newland
:version: "0.1"
:name: boolean_web_service
:summary: BooleanWebService(:isitchristmas) => false. Well, unless it's christmas. Then it'd be true.
:email: jnewland@gmail.com
:homepage: http://github.com/jnewland/boolean_web_service
8 changes: 8 additions & 0 deletions lib/boolean_web_service.rb
@@ -0,0 +1,8 @@
require 'open-uri'

def BooleanWebService(address)
address = address.to_s
address += '.com' if address.split('.').size == 1
match = open("http://#{address}").read =~ /yes/i
!match.nil?
end

0 comments on commit 00e9ce7

Please sign in to comment.