cardinity 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1792daaf31ee88c7c270dc6e00bd625007923fe6
4
- data.tar.gz: e09efc856cd5332d1dadede05177006f5dda970e
2
+ SHA256:
3
+ metadata.gz: 89277a2f03c1fd84b02c4ccf81686059c0566d734e9f8b82ad0695a33c096f91
4
+ data.tar.gz: 2602f3ad85e8937a94b125e704bf10f9586c8dee9c6b2db0ecdbe8beb1617af8
5
5
  SHA512:
6
- metadata.gz: b031d6b90c243e431ca5a7e3d957d43f2fd002cce7c630bf15ced922cea8959a71897ab8861613c6afb39996089d4cfe4138f04c5751601872bae0064e55e7fc
7
- data.tar.gz: 165cfbd858971f0b65d7c89134224889a7cab3ee10fd4c24ce69d765437b69bcbf1f117018f376caf2c90089ecefefa1bcce39cad28fa9b7c4a7c2b5c02a80e7
6
+ metadata.gz: 60e1b3633a5df1ea4e226544e659cd87e45aac2f41a0275d066a36b8ccf48a9a9713166273307cdb731689adb4780a2626d32b7160bf87822d9e5c5d7f0af581
7
+ data.tar.gz: 93e4477d0dbd84e596b71921ebe6ad0ba3ed412d2af14d53cbef93de447c6982f2dacfc84bfbf94f15bf2890ae191d0fa014c17390eb07b86a208d1baaa4297d
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.0
3
+ - 2.5.0
4
4
  before_install: gem install bundler -v 1.11.2
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Cardinity
2
2
 
3
+ [![Build Status](https://travis-ci.com/honzasterba/cardinity.svg?branch=master)](https://travis-ci.com/honzasterba/cardinity)
4
+
3
5
  ## Installation
4
6
 
5
7
  Add this line to your application's Gemfile:
@@ -1,12 +1,11 @@
1
1
  require 'base64'
2
- require 'openssl/digest'
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.escape(string, RESERVED_CHARACTERS)
46
+ URI.encode_www_form_component(string)
48
47
  end
49
48
 
50
49
  def generate_base_string(method, url, params)
@@ -1,3 +1,3 @@
1
1
  module Cardinity
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2017-01-12 00:00:00.000000000 Z
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.5.1
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.