NeverBounce 0.1.2 → 0.1.3
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 +4 -4
- data/{NeverBounce → libs/NeverBounce}/Errors.rb +0 -0
- data/{NeverBounce → libs/NeverBounce}/Single.rb +0 -0
- data/{NeverBounce.rb → libs/Neverbounce.rb} +3 -3
- data/spec/VerifiedEmail_spec.rb +2 -2
- metadata +5 -12
- data/.gitignore +0 -95
- data/.rspec +0 -2
- data/.travis.yml +0 -7
- data/Gemfile +0 -6
- data/NeverBounce.gemspec +0 -21
- data/README.md +0 -37
- data/Rakefile +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7df5001a06e3c64a647fea326a5347dc4e7f2681
|
4
|
+
data.tar.gz: 1423475ac732f45c5028583e72af0dc491889148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e7b734c4ce793c3ca732845b725b0486a00866519716c66469fd78a303da57b9e97524ed0548028aca4d50d99028f64b2c8894c26e5549f896b2a95984f7a22
|
7
|
+
data.tar.gz: 9d52725191b51eee22e844ae65b8d321347c8d12e3f09576fe43162de34db6cc111b4ffde35c2bbebae808b0ef04bdd080b106d8a5f1c76536bc3ff33e54f766
|
File without changes
|
File without changes
|
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'HTTParty'
|
2
2
|
require 'json';
|
3
3
|
|
4
|
-
require '
|
5
|
-
require '
|
4
|
+
require __FILE__ + '/../NeverBounce/Errors'
|
5
|
+
require __FILE__ + '/../NeverBounce/Single'
|
6
6
|
|
7
7
|
module NeverBounce
|
8
8
|
|
9
|
-
VERSION = "0.1.
|
9
|
+
VERSION = "0.1.3"
|
10
10
|
|
11
11
|
class API
|
12
12
|
include HTTParty
|
data/spec/VerifiedEmail_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require './NeverBounce/Single'
|
1
|
+
require './libs/NeverBounce/Single'
|
2
2
|
require 'spec_helper'
|
3
3
|
|
4
4
|
|
@@ -11,7 +11,7 @@ describe "VerifiedEmail" do
|
|
11
11
|
'result_details' => 0,
|
12
12
|
'execution_time' => 0.22115206718445
|
13
13
|
})
|
14
|
-
|
14
|
+
|
15
15
|
it "and getResultCode will return 0" do
|
16
16
|
expect(x.getResultCode).to eq 0
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: NeverBounce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Mollick
|
@@ -59,16 +59,9 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .
|
63
|
-
- .
|
64
|
-
- .
|
65
|
-
- Gemfile
|
66
|
-
- NeverBounce.gemspec
|
67
|
-
- NeverBounce.rb
|
68
|
-
- NeverBounce/Errors.rb
|
69
|
-
- NeverBounce/Single.rb
|
70
|
-
- README.md
|
71
|
-
- Rakefile
|
62
|
+
- libs/NeverBounce/Errors.rb
|
63
|
+
- libs/NeverBounce/Single.rb
|
64
|
+
- libs/Neverbounce.rb
|
72
65
|
- spec/VerifiedEmail_spec.rb
|
73
66
|
- spec/spec_helper.rb
|
74
67
|
homepage: https://neverbounce.com
|
@@ -78,7 +71,7 @@ metadata: {}
|
|
78
71
|
post_install_message:
|
79
72
|
rdoc_options: []
|
80
73
|
require_paths:
|
81
|
-
-
|
74
|
+
- libs
|
82
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
76
|
requirements:
|
84
77
|
- - '>='
|
data/.gitignore
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
# Created by .ignore support plugin (hsz.mobi)
|
2
|
-
### Node template
|
3
|
-
# Logs
|
4
|
-
logs
|
5
|
-
*.log
|
6
|
-
npm-debug.log*
|
7
|
-
|
8
|
-
# Runtime data
|
9
|
-
pids
|
10
|
-
*.pid
|
11
|
-
*.seed
|
12
|
-
|
13
|
-
# Directory for instrumented libs generated by jscoverage/JSCover
|
14
|
-
lib-cov
|
15
|
-
|
16
|
-
# Coverage directory used by tools like istanbul
|
17
|
-
coverage
|
18
|
-
|
19
|
-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
20
|
-
.grunt
|
21
|
-
|
22
|
-
# node-waf configuration
|
23
|
-
.lock-wscript
|
24
|
-
|
25
|
-
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
26
|
-
build/Release
|
27
|
-
|
28
|
-
# Dependency directory
|
29
|
-
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
|
30
|
-
node_modules
|
31
|
-
### SublimeText template
|
32
|
-
# cache files for sublime text
|
33
|
-
*.tmlanguage.cache
|
34
|
-
*.tmPreferences.cache
|
35
|
-
*.stTheme.cache
|
36
|
-
|
37
|
-
# workspace files are user-specific
|
38
|
-
*.sublime-workspace
|
39
|
-
|
40
|
-
# project files should be checked into the repository, unless a significant
|
41
|
-
# proportion of contributors will probably not be using SublimeText
|
42
|
-
# *.sublime-project
|
43
|
-
|
44
|
-
# sftp configuration file
|
45
|
-
sftp-config.json
|
46
|
-
### JetBrains template
|
47
|
-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
|
48
|
-
|
49
|
-
*.iml
|
50
|
-
|
51
|
-
## Directory-based project format:
|
52
|
-
.idea/
|
53
|
-
# if you remove the above rule, at least ignore the following:
|
54
|
-
|
55
|
-
# User-specific stuff:
|
56
|
-
# .idea/workspace.xml
|
57
|
-
# .idea/tasks.xml
|
58
|
-
# .idea/dictionaries
|
59
|
-
|
60
|
-
# Sensitive or high-churn files:
|
61
|
-
# .idea/dataSources.ids
|
62
|
-
# .idea/dataSources.xml
|
63
|
-
# .idea/sqlDataSources.xml
|
64
|
-
# .idea/dynamic.xml
|
65
|
-
# .idea/uiDesigner.xml
|
66
|
-
|
67
|
-
# Gradle:
|
68
|
-
# .idea/gradle.xml
|
69
|
-
# .idea/libraries
|
70
|
-
|
71
|
-
# Mongo Explorer plugin:
|
72
|
-
# .idea/mongoSettings.xml
|
73
|
-
|
74
|
-
## File-based project format:
|
75
|
-
*.ipr
|
76
|
-
*.iws
|
77
|
-
|
78
|
-
## Plugin-specific files:
|
79
|
-
|
80
|
-
# IntelliJ
|
81
|
-
/out/
|
82
|
-
|
83
|
-
# mpeltonen/sbt-idea plugin
|
84
|
-
.idea_modules/
|
85
|
-
|
86
|
-
# JIRA plugin
|
87
|
-
atlassian-ide-plugin.xml
|
88
|
-
|
89
|
-
# Crashlytics plugin (for Android Studio and IntelliJ)
|
90
|
-
com_crashlytics_export_strings.xml
|
91
|
-
crashlytics.properties
|
92
|
-
crashlytics-build.properties
|
93
|
-
|
94
|
-
examples/
|
95
|
-
*.gem
|
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/NeverBounce.gemspec
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require './NeverBounce'
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = 'NeverBounce'
|
5
|
-
s.version = NeverBounce::VERSION
|
6
|
-
s.date = '2016-02-22'
|
7
|
-
s.summary = "The official NeverBounce API library for Ruby"
|
8
|
-
s.description = "The official NeverBounce API library for Ruby"
|
9
|
-
s.authors = ["Mike Mollick"]
|
10
|
-
s.email = ['mike@neverbounce.com']
|
11
|
-
s.homepage = 'https://neverbounce.com'
|
12
|
-
s.license = 'MIT'
|
13
|
-
s.files = `git ls-files`.split("\n")
|
14
|
-
s.test_files = `git ls-files -- spec/*`.split("\n")
|
15
|
-
s.required_ruby_version = '>= 1.9.3'
|
16
|
-
|
17
|
-
s.add_dependency('httparty', '~> 0.13.7')
|
18
|
-
|
19
|
-
s.add_development_dependency('rspec', '~> 3.4.0')
|
20
|
-
s.add_development_dependency('rake')
|
21
|
-
end
|
data/README.md
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
NeverBounce API Ruby Wrapper
|
2
|
-
---
|
3
|
-
|
4
|
-
This is the official NeverBounce API Ruby wrapper. It provides helpful methods to quickly implement our API in your Ruby applications.
|
5
|
-
|
6
|
-
Installation
|
7
|
-
===
|
8
|
-
|
9
|
-
>TODO: Make into a gem
|
10
|
-
|
11
|
-
Usage
|
12
|
-
===
|
13
|
-
|
14
|
-
To start using the wrapper sign up for an account [here](https://app.neverbounce.com/register) and get your api keys [here](https://app.neverbounce.com/settings/api).
|
15
|
-
|
16
|
-
To initialize the wrapper use the following snippet, substituting in your `api key` and `api secret key`...
|
17
|
-
|
18
|
-
```
|
19
|
-
neverbounce = NeverBounce::API.new(API_KEY, API_SECRET_KEY)
|
20
|
-
```
|
21
|
-
|
22
|
-
You can now access the verify method from this class. To validate a single email use the following...
|
23
|
-
|
24
|
-
```
|
25
|
-
result = neverbounce.single.verify(EMAIL)
|
26
|
-
```
|
27
|
-
|
28
|
-
The `result` will contain a VerificationResult class instance. It provides several helper methods documented below...
|
29
|
-
|
30
|
-
```
|
31
|
-
result.getResultCode # Numeric result code; ex: 0, 1, 2, 3, 4
|
32
|
-
result.getResultTextCode # Textual result code; ex: valid, invalid, disposable, catchall, unknown
|
33
|
-
result.is(0) # Returns true if result is valid
|
34
|
-
result.is([0,3,4]) # Returns true if result is valid, catchall, or unknown
|
35
|
-
result.not(1) # Returns true if result is not invalid
|
36
|
-
result.not([1,2]) # Returns true if result is not invalid or disposable
|
37
|
-
```
|