alfabank 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: f646bd7250e15f8c5c744f5bdea5428a24696168
4
- data.tar.gz: bbe7eb2ffb63737c3294b38976170673f001327c
3
+ metadata.gz: 4e6c6e5f5d9550953566f067027ee4ceeb8e9412
4
+ data.tar.gz: 468485f2510be403cc3652367a75b5af8b313012
5
5
  SHA512:
6
- metadata.gz: e9b26ba132561c9a50ae755da2631b399144a49756cd8434fc180a03e0c94a98c186a18fcf4f6cd383f5b5e24012590f5e38d907fa29e465df287f879aa301a8
7
- data.tar.gz: 6fe1dd0392d4839fa0068027e64870286ac10694dcc69a4787841564ee24d2fe0cb9c80ae6f0d1bce3340d19751b6ea619498d9959b2535164520fa3b67b0630
6
+ metadata.gz: bf28b7a9f4cbb0139a7905c2b824a4a9473ca858119bf6d62c15ec3def5665ba18df18682edebda61a0c8d317e9ef3cd6661997bff94c474e8e5804ccd070082
7
+ data.tar.gz: 544252c89201ac7d09b662a398f0c1359c11a483a64fac1134f18c69452ed35ffb159615fe887034060c91cf3f1f3965eb0092d095b01d372a586e99166281a9
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Alfabank
2
- [![Build Status](https://travis-ci.org/mendab1e/alfabank.svg)](https://travis-ci.org/mendab1e/alfabank)
2
+ [![Build Status](https://travis-ci.org/mendab1e/alfabank.svg)](https://travis-ci.org/mendab1e/alfabank) [![Gem Version](https://badge.fury.io/rb/alfabank.svg)](https://badge.fury.io/rb/alfabank)
3
3
 
4
4
  This gem provides support for the API of [Alfabank acquiring gateway](https://engine.paymentgate.ru/ecommerce/).
5
5
 
@@ -8,6 +8,8 @@ module Alfabank::Api
8
8
  @binding_id = binding_id
9
9
 
10
10
  process_response(make_request.parsed_response)
11
+ rescue
12
+ {error: 'Internal server error'}
11
13
  end
12
14
 
13
15
  private
@@ -15,6 +15,8 @@ module Alfabank::Api
15
15
  error_code: response["ErrorCode"].to_i,
16
16
  error_message: response["ErrorMessage"]
17
17
  }
18
+ rescue
19
+ {error_message: 'Internal server error'}
18
20
  end
19
21
 
20
22
  private
@@ -1,3 +1,3 @@
1
1
  module Alfabank
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: alfabank
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
  - Timur Yanberdin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler