tinkoff 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7747a86f38e397679c217ba2636d8618ff425ba8
4
- data.tar.gz: d3b2bfb1ce43efb4488584b23599c0b9dfd4148e
3
+ metadata.gz: a4e41a7cb90dde1c23ea9e3b479421a0d0fc1770
4
+ data.tar.gz: e7b4a8cf46bd057ba0ced657bdc0ee96bad5c0c4
5
5
  SHA512:
6
- metadata.gz: f768be623f7e5efbbf3c83e65d0928dd53d60e39155777588864c618b6480f1b84e111a09b97866d8c9414bed29ad203d775171ddba79fa785d4dc98e5578cfc
7
- data.tar.gz: 34a5da792044f3bf47b4be7c9bf11b8a9b89bf2a832e0ddc19b916f2cd23cb50a1ba1e8c42415dd3322740b92d492ceeb6bd1720dabfc1a587f1a217c841fc73
6
+ metadata.gz: 9815634ecca48290a6490bf03d1b21d73e982a9d0072509ad5004dcc173d5979cdb1a1e52b4755b6363e88763e52870574060c4f44dc5647c368472d9c0d9b12
7
+ data.tar.gz: 04267e91dcdb309e04a1a05e1d02f1c04752723a17afad8eb62e49fcb6986d7225dc2de97c07b2ecd06ea32171a1d52b325956a3f31db9de4b6268c5107c1aa4
data/.travis.yml CHANGED
@@ -2,4 +2,4 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.3.1
5
- before_install: gem install bundler -v 1.12.5
5
+ before_install: gem install bundler -v 1.13.6
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Tinkoff
2
2
 
3
+ [![Build Status](http://img.shields.io/travis/dankimio/tinkoff.svg?style=flat)](https://travis-ci.org/dankimio/tinkoff)
4
+ [![Gem Version](http://img.shields.io/gem/v/tinkoff.svg?style=flat&color=brightgreen)](https://rubygems.org/gems/tinkoff)
5
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/dankimio/tinkoff/master/LICENSE.txt)
6
+
7
+
3
8
  This is a Ruby wrapper for Tinkoff Acquiring API. The API of this gem is not final and may change significantly before the 1.0 release.
4
9
 
5
10
  ## Installation
@@ -22,5 +22,13 @@ module Tinkoff
22
22
  @original_amount = response['OriginalAmount']
23
23
  @new_amount = response['NewAmount']
24
24
  end
25
+
26
+ def failure?
27
+ !@success
28
+ end
29
+
30
+ def success?
31
+ !failure?
32
+ end
25
33
  end
26
34
  end
@@ -29,7 +29,7 @@ module Tinkoff
29
29
  # Params signature
30
30
  def token
31
31
  values = @params.values.join
32
- Digest::SHA256.digest(values)
32
+ Digest::SHA256.hexdigest(values)
33
33
  end
34
34
 
35
35
  def default_params
@@ -1,3 +1,3 @@
1
1
  module Tinkoff
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: tinkoff
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
  - Dan Kim
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-29 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler