Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Apr 14, 2014
2 parents 23a4a47 + 0784ba5 commit d3f11f6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Gman.valid? "foo.gov" #true
Gman.valid? "foo.biz" #false
```

### Get a domain name from an arbitrary domainy string
### Get a domain name from an arbitrary domain string

```ruby
Gman.get_domain "http://foo.bar.gov" # foo.bar.gov
Expand All @@ -53,4 +53,4 @@ Contributions welcome! Please see [the contribution guidelines](CONTRIBUTING.md)

## Credits

Heavily inspired by [swot](https://github.com/leereilly/swot). Thanks @leereily!
Heavily inspired by [swot](https://github.com/leereilly/swot). Thanks [@leereilly](https://github.com/leereilly)!
4 changes: 2 additions & 2 deletions lib/gman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module Gman

class << self

# Normalizes and checks if a given string represents a governemnt domain
# Normalizes and checks if a given string represents a government domain
# Possible strings to test:
# ".gov"
# "foo.gov"
Expand Down Expand Up @@ -105,7 +105,7 @@ def get_domain(text)

# Helper function to return the public suffix domain object
#
# Supports all domainy strings (URLs, emails)
# Supports all domain strings (URLs, emails)
#
# Returns the domain object or nil, but no errors, never an error
def domain_parts(text)
Expand Down
2 changes: 1 addition & 1 deletion lib/gman/parser.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Utility functions for parsing and manipulating public-suffix formated domain lists
# Utility functions for parsing and manipulating public-suffix formatted domain lists
require 'net/dns'
require 'net/dns/resolver'

Expand Down
2 changes: 1 addition & 1 deletion script/build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby
# Propegates an initial list of best-guess government domains
# Propagates an initial list of best-guess government domains

require "public_suffix"
require "yaml"
Expand Down
2 changes: 1 addition & 1 deletion script/vendor-us
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ FileUtils.rm_rf TMP_DIR
FileUtils.mkdir_p TMP_DIR
Dir.chdir TMP_DIR

# Clone down the lastest version of the list
# Clone down the latest version of the list
system "git clone --depth 1 #{REPO} #{TMP_DIR}"
domains = Gman::Parser.file_to_array(TXT_FILE)
puts "Parsing #{domains.size} domains... normalizing"
Expand Down

0 comments on commit d3f11f6

Please sign in to comment.