alfa_bank 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d8bf717dc0359ab23063ba081fbf945294f9a6c3
4
+ data.tar.gz: d2d1ed74da4e93be11e4c2c817bb977c0267615d
5
+ SHA512:
6
+ metadata.gz: e0b2151888f7e5829ba62f6b939a401d0865b7fe18b3fcc83030313ac8286820c59754a52caad7172afb84bc37c8b28c2991e87367dce5d38ad40481449ce2b6
7
+ data.tar.gz: f700c7e2e9adb30a0c50fde2cdd3b5af5f7695b516ed054ca18cfe906e29e93d0322fe3d7354469ce204f6ebc4bb94a4b3423c5d87718dfeffe47786285f8f0c
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1
5
+ - 2.2
6
+ - 2.3.0
7
+ before_install: gem update --remote bundler
8
+ install:
9
+ - bundle install --retry=3
10
+ script:
11
+ - bundle exec rspec
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in alfa_bank.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 lvl0nax
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # AlfaBank
2
+
3
+ [![Code Climate](https://codeclimate.com/github/lvl0nax/alfa_bank/badges/gpa.svg)](https://codeclimate.com/github/lvl0nax/alfa_bank)
4
+ [![Build Status](https://travis-ci.org/lvl0nax/alfa_bank.svg?branch=master)](https://travis-ci.org/lvl0nax/alfa_bank)
5
+
6
+ DESCRIPTION COMING SOON
7
+
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'alfa_bank'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install alfa_bank
24
+
25
+ ## Usage
26
+
27
+ ###Configuration(initializer):
28
+
29
+ ```ruby
30
+ AlfaBank.configure do |config|
31
+ config.user_name = ENV[:ALFA_BANK_USERNAME] # username alfa-bank api account
32
+ config.password = ENV[:ALFA_BANK_PASSWORD] # password from alfa-bank api account
33
+ config.base_link = 'https://test.paymentgate.ru/testpayment/rest/'
34
+ end
35
+ ```
36
+
37
+ ###usage
38
+
39
+ ```ruby
40
+ params =
41
+ { order_number: 1,
42
+ amount: 10043, # in cents
43
+ return_url: [YOUR_APP_RETURN_URL]}
44
+ AlfaBank::Client.register_order(params)
45
+ ```
46
+
47
+
48
+ ## Development
49
+
50
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
51
+
52
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
53
+
54
+ ## Contributing
55
+
56
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/alfa_bank. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
57
+
58
+
59
+ ## License
60
+
61
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
62
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/alfa_bank.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'alfa_bank/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'alfa_bank'
8
+ spec.version = AlfaBank::VERSION
9
+ spec.authors = ['lvl0nax']
10
+ spec.email = ['lvl0nax@gmail.com']
11
+
12
+ spec.summary = %q{AlfaBank api adapter.}
13
+ spec.description = %q{AlfaBank api adapter provide you friendly interface for comunicating wuth AlfaBank REST API.}
14
+ spec.homepage = 'https://github.com/lvl0nax/alfa_bank'
15
+ spec.license = 'MIT'
16
+
17
+ spec.required_ruby_version = '>= 2.0.0'
18
+
19
+ rails_versions = '>= 4.0'
20
+
21
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ spec.bindir = 'exe'
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.10'
27
+ spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'rspec'
29
+ spec.add_development_dependency 'activerecord', rails_versions
30
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "alfa_bank"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,85 @@
1
+ require 'singleton'
2
+ require File.join(File.dirname(__FILE__), 'request_sender')
3
+
4
+ module AlfaBank
5
+ class Client
6
+ include Singleton
7
+
8
+ class << self
9
+ def register_order(params)
10
+ send_request(:register_order , params)
11
+ end
12
+
13
+ def preauth_register_order(params)
14
+ send_request(:preauth_register_order , params)
15
+ end
16
+
17
+ def finish_order(params)
18
+ send_request(:finish_order , params)
19
+ end
20
+
21
+ def order_status(params)
22
+ send_request(:order_status , params)
23
+ end
24
+
25
+ def extend_request_order_status(params)
26
+ send_request(:extend_request_order_status , params)
27
+ end
28
+
29
+ def reverse_order_payment(params)
30
+ send_request(:reverse_order_payment , params)
31
+ end
32
+
33
+ def refund_order_sum(params)
34
+ send_request(:refund_order_sum , params)
35
+ end
36
+
37
+ def check_3ds(params)
38
+ send_request(:check_3ds , params)
39
+ end
40
+
41
+ def adds_params_to_order(params)
42
+ send_request(:adds_params_to_order , params)
43
+ end
44
+
45
+ def payment_statistic(params)
46
+ send_request(:payment_statistic , params)
47
+ end
48
+
49
+ def payment_to_otherway(params)
50
+ send_request(:payment_to_otherway , params)
51
+ end
52
+
53
+ def binding_payment(params)
54
+ send_request(:binding_payment , params)
55
+ end
56
+
57
+ def unbind_card(params)
58
+ send_request(:unbind_card , params)
59
+ end
60
+
61
+ def bind_card(params)
62
+ send_request(:bind_card , params)
63
+ end
64
+
65
+ def extend_binding(params)
66
+ send_request(:extend_binding , params)
67
+ end
68
+
69
+ def binding_list(params)
70
+ send_request(:binding_list , params)
71
+ end
72
+
73
+
74
+ private
75
+
76
+ def send_request(request_type, opts)
77
+ instance.send(:send_request, request_type, opts)
78
+ end
79
+ end
80
+
81
+ def send_request(request_type, opts)
82
+ RequestSender.new(request_type, opts).call
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,11 @@
1
+ module AlfaBank
2
+ class Configuration
3
+ attr_accessor :user_name, :password, :base_link
4
+
5
+ def initialize
6
+ @user_name = "user_name"
7
+ @password = "password"
8
+ @base_link = "http://alfa_bank_test_url.ru"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,216 @@
1
+ module AlfaBank
2
+ class Constants
3
+ ALFA_LINKS = {
4
+ register_order: 'register.do',
5
+ preauth_register_order: 'registerPreAuth.do',
6
+ finish_order: 'deposit.do',
7
+ order_status: 'getOrderStatus.do',
8
+ extend_request_order_status: 'getOrderStatusExtended.do',
9
+ reverse_order_payment: 'reverse.do',
10
+ refund_order_sum: 'refund.do',
11
+ check_3ds: 'verifyEnrollment.do',
12
+ adds_params_to_order: 'addParams.do',
13
+ payment_statistic: 'getLastOrdersForMerchants.do',
14
+ payment_to_otherway: 'paymentotherway.do',
15
+ binding_payment: 'paymentOrderBinding.do',
16
+ unbind_card: 'unBindCard.do',
17
+ bind_card: 'bindCard.do',
18
+ extend_binding: 'extendBinding.do',
19
+ binding_list: 'getBindings.do'
20
+ }.freeze
21
+
22
+ REQUIRED_FIELDS = {
23
+ register_order: [
24
+ :user_name, :password, :order_number, :amount, :return_url
25
+ ],
26
+ preauth_register_order: [
27
+ :user_name, :password, :order_number, :amount, :return_url
28
+ ],
29
+ finish_order: [
30
+ :user_name, :password, :order_id, :amount
31
+ ],
32
+ order_status: [
33
+ :user_name, :password, :order_id
34
+ ],
35
+ extend_request_order_status: [
36
+ :user_name, :password, :order_id
37
+ ],
38
+ reverse_order_payment: [
39
+ :user_name, :password, :order_id
40
+ ],
41
+ refund_order_sum: [
42
+ :user_name, :password, :order_id, :amount
43
+ ],
44
+ check_3ds: [
45
+ :user_name, :password, :pan
46
+ ],
47
+ adds_params_to_order: [
48
+ :user_name, :password, :order_id, :params
49
+ ],
50
+ payment_statistic: [
51
+ :user_name, :password, :size, :from, :to, :transaction_states, :merchants
52
+ ],
53
+ payment_to_otherway: [
54
+ :user_name, :password, :mdorder, :payment_way
55
+ ],
56
+ binding_payment: [
57
+ :user_name, :password, :order_id, :binding_id
58
+ ],
59
+ unbind_card: [
60
+ :user_name, :password, :binding_id
61
+ ],
62
+ bind_card: [
63
+ :user_name, :password, :binding_id
64
+ ],
65
+ extend_binding: [
66
+ :user_name, :password, :binding_id, :new_expiry
67
+ ],
68
+ binding_list: [
69
+ :user_name, :password, :client_id
70
+ ]
71
+ }.freeze
72
+
73
+ # TODO: adds dull list of fields
74
+ REGISTER_ORDER_FIELDS_MAP = {
75
+ order_number: :orderNumber,
76
+ user_name: :userName,
77
+ password: :password,
78
+ return_url: :returnUrl,
79
+ amount: :amount,
80
+ currency: :currency,
81
+ language: :language,
82
+ description: :description,
83
+ page_view: :pageView,
84
+ merchant_login: :merchantLogin,
85
+ json_params: :jsonParams,
86
+ session_timeout_secs: :sessionTimeoutSecs,
87
+ expiration_date: :expirationDate,
88
+ client_id: :clientId,
89
+ fail_url: :failUrl,
90
+ binding_id: :bindingId
91
+ }.freeze
92
+
93
+ PREAUTH_REGISTER_ORDER_FIELDS_MAP = {
94
+ order_number: :orderNumber,
95
+ user_name: :userName,
96
+ password: :password,
97
+ return_url: :returnUrl,
98
+ fail_url: :failUrl,
99
+ amount: :amount,
100
+ currency: :currency,
101
+ language: :language,
102
+ description: :description,
103
+ page_view: :pageView,
104
+ merchant_login: :merchantLogin,
105
+ json_params: :jsonParams,
106
+ session_timeout_secs: :sessionTimeoutSecs,
107
+ expiration_date: :expirationDate,
108
+ client_id: :clientId,
109
+ binding_id: :bindingId
110
+ }.freeze
111
+
112
+ FINISH_ORDER_FIELDS_MAP = {
113
+ order_id: :orderId,
114
+ user_name: :userName,
115
+ password: :password,
116
+ amount: :amount
117
+ }.freeze
118
+
119
+ ORDER_STATUS_FIELDS_MAP = {
120
+ order_id: :orderId,
121
+ user_name: :userName,
122
+ password: :password,
123
+ language: :language
124
+ }.freeze
125
+
126
+ EXTEND_REQUEST_ORDER_STATUS_FIELDS_MAP = {
127
+ order_number: :orderNumber,
128
+ order_id: :orderId,
129
+ user_name: :userName,
130
+ password: :password,
131
+ language: :language
132
+ }.freeze
133
+
134
+ REVERSE_ORDER_PAYMENT_FIELDS_MAP = {
135
+ order_id: :orderId,
136
+ user_name: :userName,
137
+ password: :password,
138
+ language: :language
139
+ }.freeze
140
+
141
+ REFUND_ORDER_SUM_FIELDS_MAP = {
142
+ order_id: :orderId,
143
+ user_name: :userName,
144
+ password: :password,
145
+ amount: :amount
146
+ }.freeze
147
+
148
+ CHECK_3DS_FIELDS_MAP = {
149
+ user_name: :userName,
150
+ pan: :pan,
151
+ password: :password
152
+ }.freeze
153
+
154
+ ADDS_PARAMS_TO_ORDER_FIELDS_MAP = {
155
+ order_id: :orderId,
156
+ user_name: :userName,
157
+ password: :password,
158
+ params: :params,
159
+ language: :language
160
+ }.freeze
161
+
162
+ PAYMENT_STATISTIC_FIELDS_MAP = {
163
+ user_name: :userName,
164
+ password: :password,
165
+ language: :language,
166
+ page: :page,
167
+ size: :size,
168
+ from: :from,
169
+ to: :to,
170
+ marchants: :marchants
171
+ }.freeze
172
+
173
+ PAYMENT_TO_OTHERWAY_FIELDS_MAP = {
174
+ order_number: :MDORDER,
175
+ user_name: :userName,
176
+ password: :password,
177
+ language: :language,
178
+ payment_way: :paymentWay
179
+ }.freeze
180
+
181
+ BINDING_PAYMENT_FIELDS_MAP = {
182
+ order_number: :mdOrder,
183
+ user_name: :userName,
184
+ password: :password,
185
+ cvc: :cvc,
186
+ language: :language,
187
+ binding_id: :bindingId
188
+ }.freeze
189
+
190
+ UNBIND_CARD_FIELDS_MAP = {
191
+ user_name: :userName,
192
+ password: :password,
193
+ binding_id: :bindingId
194
+ }.freeze
195
+
196
+ BIND_CARD_FIELDS_MAP = {
197
+ user_name: :userName,
198
+ password: :password,
199
+ binding_id: :bindingId
200
+ }.freeze
201
+
202
+ EXTEND_BINDING_FIELDS_MAP = {
203
+ user_name: :userName,
204
+ password: :password,
205
+ new_expiry: :newExpiry,
206
+ language: :language,
207
+ binding_id: :bindingId
208
+ }.freeze
209
+
210
+ BINDING_LIST_FIELDS_MAP = {
211
+ user_name: :userName,
212
+ password: :password,
213
+ client_id: :clientId
214
+ }.freeze
215
+ end
216
+ end
@@ -0,0 +1,51 @@
1
+ require File.join(File.dirname(__FILE__), 'constants')
2
+ require File.join(File.dirname(__FILE__), 'rest_data_builder')
3
+ require 'active_support/core_ext/hash/keys'
4
+
5
+ module AlfaBank
6
+ class DataBuilder
7
+ attr_accessor :request_type, :opts
8
+
9
+ def initialize(request_type, opts)
10
+ @request_type = request_type
11
+ @opts = opts.symbolize_keys!
12
+ end
13
+
14
+ def call
15
+ unless valid?
16
+ raise_custom_error
17
+ end
18
+ opts.merge!(user_name: user_name, password: password)
19
+ data_builder.build_params(request_type, opts)
20
+ end
21
+
22
+ def valid?
23
+ fields = Constants::REQUIRED_FIELDS[request_type]
24
+ opts.values_at(*fields).compact.size == fields.size
25
+ rescue
26
+ raise_custom_error
27
+ end
28
+
29
+ def link
30
+ "#{AlfaBank.configuration.base_link}/#{Constants::ALFA_LINKS[request_type]}"
31
+ end
32
+
33
+ def user_name
34
+ AlfaBank.configuration.user_name
35
+ end
36
+
37
+ def password
38
+ AlfaBank.configuration.password
39
+ end
40
+
41
+ # TODO: add depandency from config (soap|rest)
42
+ def data_builder
43
+ AlfaBank::RestDataBuilder
44
+ end
45
+
46
+ private
47
+ def raise_custom_error
48
+ raise StandardError, 'Please check that params are correct'
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,24 @@
1
+ require File.join(File.dirname(__FILE__), 'data_builder')
2
+ require 'uri'
3
+
4
+ module AlfaBank
5
+ class RequestSender
6
+ attr_accessor :data_builder
7
+
8
+ def initialize(request_type, params)
9
+ @data_builder = DataBuilder.new(request_type, params)
10
+ end
11
+
12
+ def call
13
+ uri = URI.parse(data_builder.link)
14
+ http = Net::HTTP.new(uri.host, uri.port)
15
+ http.use_ssl = true
16
+
17
+ request = Net::HTTP::Post.new(uri.path, {'Content-Type' =>'application/json'})
18
+ params = data_builder.call
19
+ request.set_form_data params
20
+
21
+ http.request(request)
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,16 @@
1
+ require File.join(File.dirname(__FILE__), "constants")
2
+
3
+ module AlfaBank
4
+ module RestDataBuilder
5
+ def self.build_params(key, args)
6
+ unless Constants::ALFA_LINKS.key?(key)
7
+ raise NoMethodError, "#{key} type of request does not supported by AlfaBank adapter"
8
+ end
9
+ params = {}
10
+ Constants.const_get("#{key.upcase}_FIELDS_MAP").each_pair do |arg, alfa_param|
11
+ params[alfa_param] = args[arg] if args[arg]
12
+ end
13
+ params
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module AlfaBank
2
+ VERSION = "0.1.0"
3
+ end
data/lib/alfa_bank.rb ADDED
@@ -0,0 +1,17 @@
1
+ require File.join(File.dirname(__FILE__), "alfa_bank", "client")
2
+ require File.join(File.dirname(__FILE__), "alfa_bank", "configuration")
3
+ require File.join(File.dirname(__FILE__), "alfa_bank", "version")
4
+
5
+ module AlfaBank
6
+ class << self
7
+ attr_writer :configuration
8
+ end
9
+
10
+ def self.configuration
11
+ @configuration ||= Configuration.new
12
+ end
13
+
14
+ def self.configure
15
+ yield(configuration)
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ require 'rails/generators/base'
2
+
3
+ module AlfaBank
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ source_root File.expand_path("../../templates", __FILE__)
7
+ desc "Creates alfa_bank_credentials initializer for your application"
8
+
9
+ def copy_initializer
10
+ template "alfa_bank_credentials.rb", "config/initializers/alfa_bank_credentials.rb"
11
+
12
+ puts "Install complete! Please, add credentials to config/initializers/alfa_bank_credentials.rb"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,6 @@
1
+ AlfaBank.configure do |config|
2
+ # credentials which were given you by alfa bank
3
+ # config.user_name = ENV[:ALFA_BANK_USERNAME]
4
+ # config.password = ENV[:ALFA_BANK_PASSWORD]
5
+ # config.base_link = 'https://test.paymentgate.ru/testpayment/rest/'
6
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alfa_bank
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - lvl0nax
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activerecord
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
69
+ description: AlfaBank api adapter provide you friendly interface for comunicating
70
+ wuth AlfaBank REST API.
71
+ email:
72
+ - lvl0nax@gmail.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".travis.yml"
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - alfa_bank.gemspec
85
+ - bin/console
86
+ - bin/setup
87
+ - lib/alfa_bank.rb
88
+ - lib/alfa_bank/client.rb
89
+ - lib/alfa_bank/configuration.rb
90
+ - lib/alfa_bank/constants.rb
91
+ - lib/alfa_bank/data_builder.rb
92
+ - lib/alfa_bank/request_sender.rb
93
+ - lib/alfa_bank/rest_data_builder.rb
94
+ - lib/alfa_bank/version.rb
95
+ - lib/generators/alfa_bank/install_generator.rb
96
+ - lib/generators/templates/alfa_bank_credentials.rb
97
+ homepage: https://github.com/lvl0nax/alfa_bank
98
+ licenses:
99
+ - MIT
100
+ metadata: {}
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: 2.0.0
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ requirements: []
116
+ rubyforge_project:
117
+ rubygems_version: 2.2.3
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: AlfaBank api adapter.
121
+ test_files: []
122
+ has_rdoc: