freemail 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d78ce45f967fa7e2228baf55dca71a1b98abcb3
4
- data.tar.gz: ec428a0035339318b6c4d89e21f9c230fb0bf00c
3
+ metadata.gz: 980fa7d9b1c9a78f4624c80568a7a5aa497ab896
4
+ data.tar.gz: 6f8aec44134e96699f1700af8de032d4d9148df0
5
5
  SHA512:
6
- metadata.gz: 7c88e5b563a75f28edb87c764a4a9e04fe838dd36480026d4f6ecf0b5c820fc015e86dfb37ff07ce65ad605bae77dddc3e3580110a379d45b9fdb9c31c29dc17
7
- data.tar.gz: 92b47fe46bec2ebd216f0233c991386678b86cf1dd32830ad92f74566370b8000f6e30ee0bb73114ef9cbe868c21cdfb6da22c8e58722b9b309039bd48b04a0e
6
+ metadata.gz: 7ea7acb81bf6127cfa4817d22fdfa0794a9b3630cf3f397d9777402d5689dee8c04f02aba3bbbc49522073592154269e71242f70964b615ae14cf77201280808
7
+ data.tar.gz: 60c759f34edcbb418b48c0e04d992cab429b446cade5d739ae94051c3e96d3e1f0e19358b287bb695f1124a3bdc7eca350564d999ff885c570d9dc209b065850
@@ -1,8 +1,9 @@
1
1
  require 'freemail/version'
2
2
 
3
3
  module Freemail
4
- DISPOSABLE = Hash[File.readlines('data/disposable.txt').map { |d| [d.strip.downcase] }]
5
- FREE = Hash[File.readlines('data/free.txt').map { |d| [d.strip.downcase] }]
4
+ ROOT = File.join(File.dirname(File.expand_path(__FILE__)), '../')
5
+ DISPOSABLE = Hash[File.readlines("#{ROOT}/data/disposable.txt").map { |d| [d.strip.downcase] }]
6
+ FREE = Hash[File.readlines("#{ROOT}/data/free.txt").map { |d| [d.strip.downcase] }]
6
7
 
7
8
  def self.free?(email)
8
9
  FREE.key?(get_domain(email))
@@ -1,3 +1,3 @@
1
1
  module Freemail
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freemail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - smudge