naughty_or_nice 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/Rakefile +13 -0
  4. metadata +73 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc80dcfb26cbb5c4c7eac6db2ac75d5a753c8b67
4
- data.tar.gz: 3ca21738914b3859ce1cf48feeeb92ee83cc9372
3
+ metadata.gz: 1601cf878e59395204ade494185fa82513f2049e
4
+ data.tar.gz: ca062dc603e6d0ffabb0930682ec63a2fdac6e91
5
5
  SHA512:
6
- metadata.gz: b63b245920688a8b36b6b33bd2fd5d5bc18b558d5ca066882625da05aeb703dcaca9a1754a42cb30ead40f763b2425f9c40b2409934d3e27516946f5ea2f5cdc
7
- data.tar.gz: b43c3c6c18074c5341c4d9185245580c276182ae845bc052c5587c6bfbe81aaed9a21c6ecb606f9245bc3366c455815ca3b6942ccc799ed09c1280889ab92b71
6
+ metadata.gz: 1cfa96abd19588ff06176561d4f459d26bd4a53c93afe0f2e8a44e74743a7e92e5b8e47d9275b48c1dbf1956c17d79879abd627baffbe4114800b2c1c414affc
7
+ data.tar.gz: e75e61661e7de3240eb5bc6d569759bb0df51f21c5d326d83799e4429f9329aa8ece07cfc5a05590029231fcf148aea69ad1b397dd62f1a6e22ef6d61e0d1ab1
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # Naughty or Nice
2
2
 
3
+ [![Build Status](https://travis-ci.org/benbalter/naughty_or_nice.svg)](https://travis-ci.org/benbalter/naughty_or_nice) [![Gem Version](https://badge.fury.io/rb/naughty_or_nice.svg)](http://badge.fury.io/rb/naughty_or_nice)
4
+
3
5
  Naughty or Nice simplifies the process of extracting domain information from a domain-like string (an email, a URL, etc.) and checking whether it meets criteria you specify.
4
6
 
5
7
  ## Usage
6
8
 
7
- Naughty or Nice doesn't do too much on its own. Out of the box, it can extract a domain from a domain-like string, and can verify that it is, in fact, a valid domain. It does this by leveraging the power of the [Public Suffix List](http://publicsuffix.org/), and the associated [Ruby Gem](https://github.com/weppos/publicsuffix-ruby).
9
+ Naughty or Nice doesn't do too much on its own. Out of the box, it can extract a domain from a domain-like string, and can verify that it is, in fact, a valid domain. It does this by leveraging the power of [Addressable](https://github.com/sporkmonger/addressable), the [Public Suffix List](http://publicsuffix.org/), and the associated [Ruby Gem](https://github.com/weppos/publicsuffix-ruby).
8
10
 
9
11
  The true power of Naughty or Nice comes when you extended it into a child class.
10
12
 
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new(:test) do |test|
5
+ test.libs << 'lib' << 'test'
6
+ test.pattern = 'test/**/test_naughty_or_nice*.rb'
7
+ test.verbose = true
8
+ end
9
+
10
+ desc "Open console with Naughty Or Nice loaded"
11
+ task :console do
12
+ exec "pry -r ./lib/naughty_or_nice.rb"
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naughty_or_nice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
@@ -9,7 +9,77 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-09-18 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: public_suffix
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: addressable
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: shoulda
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.5'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.3'
13
83
  description: Naughty or Nice simplifies the process of extracting domain information
14
84
  from a domain-like string (an email, a URL, etc.) and checking whether it meets
15
85
  criteria you specify.
@@ -20,6 +90,7 @@ extra_rdoc_files: []
20
90
  files:
21
91
  - LICENSE.md
22
92
  - README.md
93
+ - Rakefile
23
94
  - lib/naughty_or_nice.rb
24
95
  homepage: http://github.com/benbalter/naughty_or_nice
25
96
  licenses: