simplify 1.0.0 → 1.0.1
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.
- data/lib/simplify/constants.rb +1 -1
- data/lib/simplify/paymentsapi.rb +5 -3
- metadata +65 -68
data/lib/simplify/constants.rb
CHANGED
data/lib/simplify/paymentsapi.rb
CHANGED
@@ -399,9 +399,11 @@ module Simplify
|
|
399
399
|
def self.urlsafe_decode64(s)
|
400
400
|
# Put back padding
|
401
401
|
case (s.size % 4)
|
402
|
-
when 0
|
403
|
-
when 2
|
404
|
-
|
402
|
+
when 0
|
403
|
+
when 2
|
404
|
+
s = s + "=="
|
405
|
+
when 3
|
406
|
+
s = s + "="
|
405
407
|
else raise ArgumentError.new("Webhook event data incorrectly formatted", nil, nil)
|
406
408
|
end
|
407
409
|
return Base64::decode64(s.gsub('-','+').gsub('_','/'))
|
metadata
CHANGED
@@ -1,67 +1,70 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplify
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
version: 1.0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Simplify Commerce
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rest-client
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 0
|
29
|
-
version: "0"
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
30
22
|
type: :runtime
|
31
|
-
version_requirements: *id001
|
32
|
-
- !ruby/object:Gem::Dependency
|
33
|
-
name: json
|
34
23
|
prerelease: false
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: json
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
42
38
|
type: :runtime
|
43
|
-
version_requirements: *id002
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
name: ruby-hmac
|
46
39
|
prerelease: false
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: ruby-hmac
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
54
|
type: :runtime
|
55
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
56
62
|
description: Ruby access to the Simplify Commerce API
|
57
63
|
email: support@simplify.com
|
58
64
|
executables: []
|
59
|
-
|
60
65
|
extensions: []
|
61
|
-
|
62
66
|
extra_rdoc_files: []
|
63
|
-
|
64
|
-
files:
|
67
|
+
files:
|
65
68
|
- lib/simplify/apiexception.rb
|
66
69
|
- lib/simplify/cardtoken.rb
|
67
70
|
- lib/simplify/chargeback.rb
|
@@ -79,35 +82,29 @@ files:
|
|
79
82
|
- lib/simplify/subscription.rb
|
80
83
|
- lib/simplify/webhook.rb
|
81
84
|
- lib/simplify.rb
|
82
|
-
has_rdoc: true
|
83
85
|
homepage: https://www.simplify.com/commerce
|
84
|
-
licenses:
|
86
|
+
licenses:
|
85
87
|
- BSD
|
86
88
|
post_install_message:
|
87
89
|
rdoc_options: []
|
88
|
-
|
89
|
-
require_paths:
|
90
|
+
require_paths:
|
90
91
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
|
103
|
-
- 0
|
104
|
-
version: "0"
|
92
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
105
104
|
requirements: []
|
106
|
-
|
107
105
|
rubyforge_project:
|
108
|
-
rubygems_version: 1.
|
106
|
+
rubygems_version: 1.8.23
|
109
107
|
signing_key:
|
110
108
|
specification_version: 3
|
111
109
|
summary: Simplify Commerce Ruby SDK
|
112
110
|
test_files: []
|
113
|
-
|