telesignature 0.0.10 → 0.0.11
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/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/telesignature/api.rb +5 -3
- data/lib/telesignature/auth.rb +3 -3
- data/lib/telesignature/mock_service/spin_up.rb +1 -1
- data/lib/telesignature/version.rb +1 -1
- data/telesignature.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b49cfde01e6503fa45ef0e8ab813086fc745a18
|
|
4
|
+
data.tar.gz: 877bccf297ac4d63e7a50fa5bb54809996bc338b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d21b5c9cc9be07a62b92e1cf1e049999bdcff85cee0d793989a0bd44a0e3090300430a0fdc6e9a5dfa7ce32bd02eac42a66cc701d623e881c60580662f85fbbd
|
|
7
|
+
data.tar.gz: 6f792450ab40422d7c2c0fe5e2503998225f3dd5e5699577b298f7866fa40575ae9ad22f37a10fdbef5120ffc5ca6eb44562f4980530fcc282de1f3b9c7d5506
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -82,7 +82,7 @@ p "##################"
|
|
|
82
82
|
|
|
83
83
|
stubs mode
|
|
84
84
|
=============
|
|
85
|
-
If you're running this in a Rails app, there is a stubs mode
|
|
85
|
+
If you're running this in a Rails app, there is a stubs mode Sinatra app available.
|
|
86
86
|
|
|
87
87
|
Enable it by setting ENV['TELESIGN_STUBBED'] to something truthy.
|
|
88
88
|
|
data/lib/telesignature/api.rb
CHANGED
|
@@ -21,8 +21,6 @@ module Telesignature
|
|
|
21
21
|
# You can obtain both your Customer ID and Secret Key from the
|
|
22
22
|
# TeleSign Customer Portal <https://portal.telesign.com/account_profile_api_auth.php>
|
|
23
23
|
|
|
24
|
-
# """
|
|
25
|
-
|
|
26
24
|
attr_accessor :verify, :phone_id
|
|
27
25
|
|
|
28
26
|
def initialize opts = {}
|
|
@@ -38,7 +36,11 @@ module Telesignature
|
|
|
38
36
|
|
|
39
37
|
@conn = Faraday.new(url: url) do |faraday|
|
|
40
38
|
faraday.request :url_encoded
|
|
41
|
-
|
|
39
|
+
if defined? Rails
|
|
40
|
+
faraday.response :logger, Rails.logger
|
|
41
|
+
else
|
|
42
|
+
faraday.response :logger # log requests to STDOUT
|
|
43
|
+
end
|
|
42
44
|
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
|
|
43
45
|
end
|
|
44
46
|
|
data/lib/telesignature/auth.rb
CHANGED
|
@@ -5,13 +5,13 @@ require 'base64'
|
|
|
5
5
|
require 'uri'
|
|
6
6
|
require 'openssl'
|
|
7
7
|
|
|
8
|
+
# NOTE: the following is the Telesign crew who made the python version
|
|
9
|
+
# from which this codes was inspired
|
|
10
|
+
|
|
8
11
|
# __author__ = "Jeremy Cunningham, Michael Fox, and Radu Maierean"
|
|
9
12
|
# __copyright__ = "Copyright 2012, TeleSign Corp."
|
|
10
13
|
# __credits__ = ["Jeremy Cunningham", "Radu Maierean", "Michael Fox", "Nancy Vitug", "Humberto Morales"]
|
|
11
14
|
# __license__ = "MIT"
|
|
12
|
-
# __maintainer__ = "Jeremy Cunningham"
|
|
13
|
-
# __email__ = "support@telesign.com"
|
|
14
|
-
# __status__ = ""
|
|
15
15
|
|
|
16
16
|
AUTH_METHOD = {
|
|
17
17
|
sha1: {hash: OpenSSL::Digest::SHA1, name: 'HMAC-SHA1'},
|
|
@@ -3,7 +3,7 @@ module Telesignature
|
|
|
3
3
|
module SpinUp
|
|
4
4
|
if ENV['TELESIGN_STUBBED']
|
|
5
5
|
port = (ENV['TELESIGN_PORT'].to_i || 11989)
|
|
6
|
-
if `lsof -i :#{port}`.blank? # no process running on
|
|
6
|
+
if `lsof -i :#{port}`.blank? # no process running on #port
|
|
7
7
|
Process.detach(pid = Process.fork do
|
|
8
8
|
require 'telesignature/mock_service/fake_server'
|
|
9
9
|
end)
|
data/telesignature.gemspec
CHANGED
|
@@ -6,7 +6,7 @@ require 'telesignature/version'
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'telesignature'
|
|
8
8
|
spec.version = Telesignature::VERSION
|
|
9
|
-
spec.authors = ['Andy Koch']
|
|
9
|
+
spec.authors = ['Practice Fusion', 'Andy Koch']
|
|
10
10
|
spec.email = ['akoch@practicefusion.com']
|
|
11
11
|
spec.description = %q{Client gem for Telesign REST API}
|
|
12
12
|
spec.summary = %q{Client gem for Telesign REST API}
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: telesignature
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
+
- Practice Fusion
|
|
7
8
|
- Andy Koch
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
12
|
+
date: 2014-04-04 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: faraday
|