soapy_yandex 0.0.3 → 0.0.4

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: a7509842633573c24af65fbe4fd332aec5485b39
4
- data.tar.gz: f9f539a48f400cb7d0789d0965f7ebe047e58ef8
3
+ metadata.gz: 0296c3817f37f08fc6ee1117c60abd08d524005f
4
+ data.tar.gz: 95092eb556a1b33ebdd7042697df324f8e8087fa
5
5
  SHA512:
6
- metadata.gz: 93664d016025816a7b2c21ed4433a3b5ebad1500355c186df50f7a91ae1bbde4f755b3fb685aa2cff2bbd6940b6ab7b4991e79900ffb6089583f0631086a9f75
7
- data.tar.gz: 7e1a69cab3014c74bf48c19cb0ae02f7b9d9c1ba8b668285c1fbc2e68e2c68b1c815acb72a772a0033ae0a79b2d62168b8db74489927091caedf9797665fc81c
6
+ metadata.gz: 9630150a755b8deebda113eb3230c0d253db9eddc9f341afba169b3dbc74df32714449220ce073fd36477514982c96824211137633051c7e21daa5f70261fc17
7
+ data.tar.gz: b3d451deed45910d0733d8259d5a65a6d53f774fa62237ce327790d04b384e0350bcb4fb69ad5971fd413b982ed08c0d8fb16be6838309ae1038f17f5d93872f
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.2
data/Gemfile CHANGED
@@ -2,6 +2,8 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
+ gem 'rubocop-ci', github: 'ad2games/rubocop-ci', groups: %i(devlopment test)
6
+
5
7
  group :test do
6
8
  gem 'codeclimate-test-reporter', require: nil
7
9
  gem 'rspec_junit_formatter', github: 'circleci/rspec_junit_formatter'
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # SoapyYandex
2
2
 
3
- [![Circle CI](https://circleci.com/gh/ad2games/soapy_yandex/tree/master.svg?style=svg&circle-token=8be9c1e0316a8b902677fde68be9587af8926915)](https://circleci.com/gh/ad2games/soapy_yandex/tree/master)
4
- [![Code Climate](https://codeclimate.com/repos/54b7e4e9695680436f000d5d/badges/70ac279dcc117a7ea246/gpa.svg)](https://codeclimate.com/repos/54b7e4e9695680436f000d5d/feed)
5
- [![Test Coverage](https://codeclimate.com/repos/54b7e4e9695680436f000d5d/badges/70ac279dcc117a7ea246/coverage.svg)](https://codeclimate.com/repos/54b7e4e9695680436f000d5d/feed)
3
+ [![Circle CI](https://circleci.com/gh/ad2games/soapy_yandex.svg?style=svg)](https://circleci.com/gh/ad2games/soapy_yandex)
4
+ [![Code Climate](https://codeclimate.com/github/ad2games/soapy_yandex/badges/gpa.svg)](https://codeclimate.com/github/ad2games/soapy_yandex)
5
+ [![Test Coverage](https://codeclimate.com/github/ad2games/soapy_yandex/badges/coverage.svg)](https://codeclimate.com/github/ad2games/soapy_yandex/coverage)
6
6
 
7
7
  Client library for Yandex Money.
8
8
 
data/Rakefile CHANGED
@@ -1 +1,2 @@
1
1
  require 'bundler/gem_tasks'
2
+ require 'rubocop-ci'
data/circle.yml ADDED
@@ -0,0 +1,6 @@
1
+ dependencies:
2
+ post:
3
+ - bundle update
4
+ test:
5
+ pre:
6
+ - bundle exec rake rubocop
@@ -24,7 +24,7 @@ module SoapyYandex
24
24
  43 => 'Amount too big',
25
25
  44 => 'Too many transactions in timeframe',
26
26
  45 => 'Not enough funds',
27
- 46 => 'Amount too small',
27
+ 46 => 'Amount too small'
28
28
  }
29
29
 
30
30
  attr_reader :error_code
@@ -1,3 +1,3 @@
1
1
  module SoapyYandex
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
data/soapy_yandex.gemspec CHANGED
@@ -4,22 +4,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'soapy_yandex/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = 'soapy_yandex'
8
- spec.version = SoapyYandex::VERSION
9
- spec.authors = ['ad2games GmbH']
10
- spec.email = ['developers@ad2games.com']
11
- spec.summary = 'Client library for Yandex Money.'
12
- spec.description = 'Client library for Yandex Money.'
13
- spec.homepage = ''
14
- spec.license = 'MIT'
7
+ spec.name = 'soapy_yandex'
8
+ spec.version = SoapyYandex::VERSION
9
+ spec.authors = ['ad2games GmbH']
10
+ spec.email = ['developers@ad2games.com']
11
+ spec.summary = 'Client library for Yandex Money.'
12
+ spec.description = 'Client library for Yandex Money.'
13
+ spec.homepage = ''
14
+ spec.license = 'MIT'
15
15
 
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(/^(test|spec|features)\//)
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency 'ox', '~> 2.1'
22
- spec.add_runtime_dependency 'httparty', '~> 0.13'
21
+ spec.add_runtime_dependency 'ox'
22
+ spec.add_runtime_dependency 'httparty'
23
23
 
24
24
  spec.add_development_dependency 'bundler'
25
25
  spec.add_development_dependency 'rake'
data/spec/money_spec.rb CHANGED
@@ -14,10 +14,10 @@ RSpec.describe 'Yandex Money Requests', :vcr do
14
14
 
15
15
  SoapyYandex::MoneyClient.new(
16
16
  server: ENV['YANDEX_SERVER'],
17
- ssl_cert: File.read(File.expand_path(cert_file, __FILE__)),
17
+ ssl_cert: File.read(File.expand_path(cert_file, __FILE__)),
18
18
  ssl_key: File.read(File.expand_path(key_file, __FILE__)),
19
19
  remote_cert: File.read(File.expand_path('../fixtures/keys/remote_cert.pem', __FILE__)),
20
- ssl_key_passphrase: ENV['PASSPHRASE'],
20
+ ssl_key_passphrase: ENV['PASSPHRASE']
21
21
  )
22
22
  end
23
23
 
@@ -69,7 +69,7 @@ RSpec.describe 'Yandex Money Requests', :vcr do
69
69
  result = client.make_deposition(
70
70
  agentId: 200451,
71
71
  dstAccount: 4100322650604,
72
- amount: BigDecimal.new(10.0, 3),
72
+ amount: BigDecimal.new(10.0, 3),
73
73
  currency: SoapyYandex::CURRENCY_DEMO_RUBLES,
74
74
  contract: 'Test deposit'
75
75
  )
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapy_yandex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: httparty
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.13'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0.13'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,7 @@ files:
150
150
  - LICENSE.txt
151
151
  - README.md
152
152
  - Rakefile
153
+ - circle.yml
153
154
  - lib/soapy_yandex.rb
154
155
  - lib/soapy_yandex/client.rb
155
156
  - lib/soapy_yandex/error.rb
@@ -191,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
192
  version: '0'
192
193
  requirements: []
193
194
  rubyforge_project:
194
- rubygems_version: 2.4.5
195
+ rubygems_version: 2.4.8
195
196
  signing_key:
196
197
  specification_version: 4
197
198
  summary: Client library for Yandex Money.