payline-data 0.8 → 0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +2 -1
- data/circle.yml +14 -3
- data/lib/payline.rb +17 -1
- data/lib/payline/version.rb +1 -1
- data/payline-ruby.gemspec +0 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzllNjg5OTkxMTlkMjc4ZjZjMWRmY2M2Yzg3ZjU4OWU4YzUzYjk5MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjE1MmRhZWJkYjU2YzQ4Y2U4ZjYwOWMyZmIyY2JjYjY1MjgxYzBmMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2NhZjNiMzRhZjg3OTAwYWZjNjFhM2EyMzVjYTM5NDkyNTkxNmFhYjQ2ZDU1
|
10
|
+
N2Q1NDEzYmQ4ZGZkNTgwMGY0MTVkMTcwOWVkMmU5MjM1YzFmZTllM2FhNjNm
|
11
|
+
M2UwODQ4OTYzMmZkZDFiMmY4MDFmMTQxZDgwNDMwNDcxNWVkNmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGFjNjljYzA1NGUzZmVkN2M3NTEyNjFiY2ViZTRjOTI3M2FjNmZmODVlMmJj
|
14
|
+
MmQ3MmUyOGEyYmQ1ZmYzYWYyMmQxNTlmYjg5ZGM2ODU3MWMwNjEyZGY3N2M0
|
15
|
+
NWQyZjQwOTc3ZjE2MzU1ODVlYzE5YWE5YjNlYjg0MmMyMDE3Yjk=
|
data/.gitignore
CHANGED
data/circle.yml
CHANGED
@@ -3,8 +3,8 @@ machine:
|
|
3
3
|
version: 1.9.3
|
4
4
|
|
5
5
|
environment:
|
6
|
-
RUBY_VERSIONS: 1.9.3,2.0.0,2.1.10,2.2.5,2.2.6,2.3.1
|
7
|
-
PROCESSING_URL: https://api-
|
6
|
+
RUBY_VERSIONS: 1.9.3,2.0.0,2.1.10,2.2.5,2.2.6,2.3.1
|
7
|
+
PROCESSING_URL: https://api-test.payline.io/
|
8
8
|
|
9
9
|
dependencies:
|
10
10
|
override:
|
@@ -18,4 +18,15 @@ test:
|
|
18
18
|
- rvm $RUBY_VERSIONS --verbose do bundle exec rake test
|
19
19
|
|
20
20
|
post:
|
21
|
-
- cp -Rf .report/ $CIRCLE_ARTIFACTS
|
21
|
+
- cp -Rf .report/ $CIRCLE_ARTIFACTS
|
22
|
+
|
23
|
+
deployment:
|
24
|
+
release:
|
25
|
+
tag: /v[0-9]+(\.[0-9]+)*/
|
26
|
+
owner: Payline
|
27
|
+
commands:
|
28
|
+
- |
|
29
|
+
curl -u ${rubygems_user}:${rubygems_password} https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
|
30
|
+
- chmod 0600 ~/.gem/credentials
|
31
|
+
- gem build *.gemspec
|
32
|
+
- gem push *.gem
|
data/lib/payline.rb
CHANGED
@@ -3,4 +3,20 @@ require 'finix'
|
|
3
3
|
require 'finix/client'
|
4
4
|
require 'finix/error'
|
5
5
|
|
6
|
-
Payline
|
6
|
+
module Payline
|
7
|
+
Finix.singleton_methods.each do |m|
|
8
|
+
(class << self; self; end).send :define_method, m, Finix.method(m).to_proc
|
9
|
+
end
|
10
|
+
|
11
|
+
classes = Finix.constants.find_all {|m| (Finix.const_get m).kind_of? Class}
|
12
|
+
classes.each do |cls|
|
13
|
+
clz = Class.new Finix.const_get cls
|
14
|
+
self.const_set(cls, clz)
|
15
|
+
end
|
16
|
+
|
17
|
+
[Payline.errors_registry, Payline.hypermedia_registry].each do |registry|
|
18
|
+
registry.each do |key, value|
|
19
|
+
registry[key] = Payline.const_get value.name.split('::').last
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/payline/version.rb
CHANGED
data/payline-ruby.gemspec
CHANGED
@@ -23,8 +23,5 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
25
|
spec.add_dependency('finix', Payline::VERSION)
|
26
|
-
# spec.add_dependency('faraday_middleware', '~> 0.10.1')
|
27
|
-
# spec.add_dependency('addressable', '~> 2.3')
|
28
|
-
# spec.add_dependency('json', '~> 1.8')
|
29
26
|
end
|
30
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payline-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.12'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Payline Data
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
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: '0.
|
26
|
+
version: '0.12'
|
27
27
|
description: Payline Ruby Client
|
28
28
|
email:
|
29
29
|
- support@paylinedata.com
|