cardinity 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -1
- data/README.md +2 -0
- data/lib/cardinity/auth.rb +2 -3
- data/lib/cardinity/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 89277a2f03c1fd84b02c4ccf81686059c0566d734e9f8b82ad0695a33c096f91
|
4
|
+
data.tar.gz: 2602f3ad85e8937a94b125e704bf10f9586c8dee9c6b2db0ecdbe8beb1617af8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60e1b3633a5df1ea4e226544e659cd87e45aac2f41a0275d066a36b8ccf48a9a9713166273307cdb731689adb4780a2626d32b7160bf87822d9e5c5d7f0af581
|
7
|
+
data.tar.gz: 93e4477d0dbd84e596b71921ebe6ad0ba3ed412d2af14d53cbef93de447c6982f2dacfc84bfbf94f15bf2890ae191d0fa014c17390eb07b86a208d1baaa4297d
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/lib/cardinity/auth.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
require 'base64'
|
2
|
-
require 'openssl
|
2
|
+
require 'openssl'
|
3
3
|
require 'uri'
|
4
4
|
require 'cgi'
|
5
5
|
|
6
6
|
class Cardinity::Auth
|
7
7
|
|
8
8
|
OAUTH_VERSION = '1.0'
|
9
|
-
RESERVED_CHARACTERS = /[^a-zA-Z0-9\-._~]/
|
10
9
|
SIGNATURE_METHOD = 'HMAC-SHA1'
|
11
10
|
|
12
11
|
def initialize(config)
|
@@ -44,7 +43,7 @@ class Cardinity::Auth
|
|
44
43
|
end
|
45
44
|
|
46
45
|
def escape(string)
|
47
|
-
URI.
|
46
|
+
URI.encode_www_form_component(string)
|
48
47
|
end
|
49
48
|
|
50
49
|
def generate_base_string(method, url, params)
|
data/lib/cardinity/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cardinity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Sterba
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.7.7
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Wrapper for Cardinity's HTTP payment API.
|