roomorama-validates_email 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5801aced312e207f9f56aedd4a4dcfc2fa7ad07
4
- data.tar.gz: fd00a557f953cbcb4d1b6c6cbe625b02f107db53
3
+ metadata.gz: 8cd43db3113b5ab8f9c035c40b2886e0da05cd0f
4
+ data.tar.gz: 8fb2eeaacef748f54681bac5365bc2154f00778e
5
5
  SHA512:
6
- metadata.gz: 8af7390de00af9fa02806d95ade37b07303dedb8fafc2f0f3f451ae3dd233527b1bf6003726997668525ba1a4ad18427be793990146539020cbf53e5e7a2986e
7
- data.tar.gz: 83bb1913f023b9352fae69bc069a22fe3122a63188ad87dcda2c1775783d87b85ac6b6fc01b89666136ccc1a97acb89c9c265e82472579dd7292671f9726de28
6
+ metadata.gz: 569ab3af9b4820d7648cb952f33d001ba24bac798bd90767ca22cf39fc554e5c54046cb50c6ab70867701f2d0e38672c2e11de29ae9d6bcf593c3a3df641682d
7
+ data.tar.gz: a351233100109c9dc82c60271fc5172947877bd5c991dad45235006d7f8028679834bc3ae483f02cecf50e1339d7fb7c15395615bcf85117c8f585c001cfe413
@@ -81,7 +81,7 @@ class EmailValidator < ActiveModel::EachValidator
81
81
 
82
82
  def validates_email_with_mailgun(email)
83
83
  require 'rest_client'
84
- res = RestClient.get "https://api:#{ENV['MAILGUN_PUBLIC_KEY']}@api.mailgun.net/v2/address/validate", {params: {address: value}}
84
+ res = RestClient.get "https://api:#{ENV['MAILGUN_PUBLIC_KEY']}@api.mailgun.net/v2/address/validate", {params: {address: email}}
85
85
  parsed = JSON.parse(res)
86
86
  is_valid = !parsed["is_valid"].nil? ? parsed["is_valid"] : false
87
87
  is_valid
@@ -1,3 +1,3 @@
1
1
  module ValidatesEmail
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roomorama-validates_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Piret
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-24 00:00:00.000000000 Z
11
+ date: 2014-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel