crossriverbank 0.16

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: 2bc723a8ec270d0845564fb4b035f2ea07cc93ac
4
+ data.tar.gz: 07df278773cf31923fe7f6ce316d8863218fe371
5
+ SHA512:
6
+ metadata.gz: 7b8e41ae1e3cec329a3fa428ced7dd472f8b2208130df51aaeff0f2c79defae590149da744f854bb74efa7b93517c2e9a1e663cab99e97084cec11aefde79fe2
7
+ data.tar.gz: 2644d139776866fb31ad7af3dce52e158bc3b9ad387e3ba632b8336d2bcd1032b64a75354babe298b159637575d49bc1506d920f934e283fe8538c71e7fb2b5d
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ /Gemfile.lock
2
+ *.gem
3
+ .report/
4
+ .idea/
5
+ .vcr/
6
+ .byebug_history
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ crossriverbank
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-1.9.3
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rake', '~> 10.4.2'
4
+
5
+ group :test do
6
+ gem 'minitest', '~> 5.10.1'
7
+ gem 'minitest-reporters', '~> 1.1.13'
8
+ gem 'vcr', '~> 3.0.3'
9
+ gem 'rspec', '~> 3.5.0'
10
+ end
11
+
12
+ gemspec
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # crossriverbank-ruby
2
+
3
+ [![CircleCI](https://circleci.com/gh/finix-payments/crb-ruby.svg?style=svg&circle-token=bc25e16ab2706de322934f64551ca5111fb9bda3)](https://circleci.com/gh/finix-payments/crb-ruby)
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ gem 'minitest'
2
+ require 'rake'
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
5
+ require_relative 'test/helper_test'
6
+
7
+ desc 'Run test suite'
8
+ Rake::TestTask.new do |t|
9
+ CrossRiverBank::Test.logger = Logger.new STDOUT
10
+ CrossRiverBank::Test.logger.level = Logger::ERROR
11
+ t.pattern ='test/**/test_*.rb'
12
+ end
data/circle.yml ADDED
@@ -0,0 +1,32 @@
1
+ machine:
2
+ ruby:
3
+ version: 1.9.3
4
+
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.sandbox.crb.finixpayments.com
8
+
9
+ dependencies:
10
+ override:
11
+ - rvm get head
12
+ - rvm install $RUBY_VERSIONS
13
+ - rvm $RUBY_VERSIONS --verbose do gem install bundler
14
+ - rvm $RUBY_VERSIONS --verbose do bundle install
15
+
16
+ test:
17
+ override:
18
+ - rvm $RUBY_VERSIONS --verbose do bundle exec rake test
19
+
20
+ post:
21
+ - cp -Rf .report/ $CIRCLE_ARTIFACTS
22
+
23
+ deployment:
24
+ release:
25
+ tag: /v[0-9]+(\.[0-9]+)*/
26
+ owner: CrossRiverBank
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
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'crossriverbank/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'crossriverbank'
8
+ spec.required_ruby_version = '>= 1.9'
9
+ spec.version = CrossRiverBank::VERSION
10
+ spec.authors = ['Cross River Bank']
11
+ spec.email = ['support@pcrossriverbank.com']
12
+
13
+ spec.summary = %q{CrossRiverBank Ruby Client}
14
+ spec.description = %q{CrossRiverBank Ruby Client}
15
+ spec.homepage = 'https://crossriverbank.com/'
16
+ spec.license = 'MIT'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features)/})
20
+ end
21
+ spec.bindir = 'bin'
22
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
+ spec.require_paths = ['lib']
24
+
25
+ spec.add_dependency('finix', CrossRiverBank::VERSION)
26
+ end
@@ -0,0 +1,22 @@
1
+ require 'crossriverbank/version' unless defined? CrossRiverBank::VERSION
2
+ require 'finix'
3
+ # require 'finix/client'
4
+ # require 'finix/errors'
5
+
6
+ module CrossRiverBank
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
+ [CrossRiverBank.errors_registry, CrossRiverBank.hypermedia_registry].each do |registry|
18
+ registry.each do |key, value|
19
+ registry[key] = CrossRiverBank.const_get value.name.split('::').last
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,3 @@
1
+ module CrossRiverBank
2
+ VERSION = '0.16'
3
+ end
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: crossriverbank
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.16'
5
+ platform: ruby
6
+ authors:
7
+ - Cross River Bank
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: finix
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: '0.16'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: '0.16'
27
+ description: CrossRiverBank Ruby Client
28
+ email:
29
+ - support@pcrossriverbank.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - ".ruby-gemset"
36
+ - ".ruby-version"
37
+ - Gemfile
38
+ - README.md
39
+ - Rakefile
40
+ - circle.yml
41
+ - crossriverbank-ruby.gemspec
42
+ - lib/crossriverbank.rb
43
+ - lib/crossriverbank/version.rb
44
+ homepage: https://crossriverbank.com/
45
+ licenses:
46
+ - MIT
47
+ metadata: {}
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '1.9'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubyforge_project:
64
+ rubygems_version: 2.5.1
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: CrossRiverBank Ruby Client
68
+ test_files: []