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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c925e79f51c5d48ea857f4860b963caac89391e
4
- data.tar.gz: c16c31aa5b6ea51f3be3d48a062af8f5ff590fd7
3
+ metadata.gz: 1b49cfde01e6503fa45ef0e8ab813086fc745a18
4
+ data.tar.gz: 877bccf297ac4d63e7a50fa5bb54809996bc338b
5
5
  SHA512:
6
- metadata.gz: 9c1346814b5b7fdab14b8350f6b1d10e78115fad00fa2bea1510ee64993ea235832c7bfb87fd20143fe5241fd9e087d1c577ccf39bdd6491a99f22008f2b1326
7
- data.tar.gz: 973fd94eb9e5894cfefbf8ebeba17edd408262d16e68f9b6a63b8d13a329e365586043a404d02830c8c808e5ee6e37b7cb933c9431efab33266f7c922bc2d000
6
+ metadata.gz: d21b5c9cc9be07a62b92e1cf1e049999bdcff85cee0d793989a0bd44a0e3090300430a0fdc6e9a5dfa7ce32bd02eac42a66cc701d623e881c60580662f85fbbd
7
+ data.tar.gz: 6f792450ab40422d7c2c0fe5e2503998225f3dd5e5699577b298f7866fa40575ae9ad22f37a10fdbef5120ffc5ca6eb44562f4980530fcc282de1f3b9c7d5506
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- telesignature (0.0.10)
4
+ telesignature (0.0.11)
5
5
  faraday
6
6
 
7
7
  GEM
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 Sintra app available.
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
 
@@ -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
- faraday.response :logger # log requests to STDOUT
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
 
@@ -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 11988
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)
@@ -1,3 +1,3 @@
1
1
  module Telesignature
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
@@ -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.10
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-03-19 00:00:00.000000000 Z
12
+ date: 2014-04-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: faraday