bridge_client 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38d23520f906a8a8e28fefb006d43f3fceed0e07
4
- data.tar.gz: 84e36b16bd24b558a682243c3362b97eb8c3e524
3
+ metadata.gz: 721ad5a24a0faa531d3e34082dbeef8d60f08e5a
4
+ data.tar.gz: 6bd706137b0ffa2352dd6f99434f404590a433bf
5
5
  SHA512:
6
- metadata.gz: 365cfbcd1eb869eef1af4e05ded469f5f185b63d50f989a4f7f58a5a1f682735b1faa03100058871a156efd526136d42b25da45fa3faa44f4db62e342b196de7
7
- data.tar.gz: 6c176c4292a57bb2a0890c3bd33404556ad3065b5ccf3a874791a12191c390f83ff2f49e8bd493cafdde4856a6c694be2d3ba66e0a910446cfb49e9ed0153d6a
6
+ metadata.gz: cea70d8eb81b773b332b5632da0f562bd518b13097c601193048ec7afe6212104796c4634946a1dc80d8a17d4d0b8fc6e458dfce83c7357dd652bced0d44a2d4
7
+ data.tar.gz: 91fa0a7cc9ec61e8b25f7d366468810798bb3f75267554e474003c4868999b138e8c654bf838b92e748b338d96618bf74c550117bc90814f788f9b7565bf6316
@@ -0,0 +1 @@
1
+ ruby-2.3.1
@@ -1,5 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
+ cache: bundler
3
4
  rvm:
4
- - 2.3.0
5
+ - 2.3.1
5
6
  before_install: gem install bundler -v 1.13.1
7
+ before_script:
8
+ - cp spec/config.yml{.sample,}
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [0.3.0] - 2017-03-31
8
+ ### Changed
9
+ - Use `api_client_base` `~> 1.0`
10
+
7
11
  ## [0.2.0]
8
12
  ### Added
9
13
  - Explicitly require ActiveSupport's hash with indifferent access
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # BridgeClient
2
2
 
3
+ [![Build Status](https://travis-ci.org/imacchiato/bridge_client-ruby.svg?branch=master)](https://travis-ci.org/imacchiato/bridge_client-ruby)
4
+
3
5
  Ruby wrapper for Stellar's Bridge Server API
4
6
 
5
7
  ## Installation
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "gem_config", "~> 0.3.1"
32
32
  spec.add_dependency "typhoeus", "~> 1.1"
33
33
  spec.add_dependency "virtus", "~> 1.0"
34
- spec.add_dependency "api_client_base", "~> 0.2.0"
34
+ spec.add_dependency "api_client_base", "~> 1.0"
35
35
  spec.add_dependency "activesupport", ">= 3.0.0"
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 1.13"
@@ -12,7 +12,7 @@ services:
12
12
  volumes:
13
13
  - ./spec/fixtures/bridge:/app
14
14
  bridge_db:
15
- image: postgres:9.5
15
+ image: postgres:9.6
16
16
  expose:
17
17
  - "5432"
18
18
  volumes:
@@ -1,12 +1,11 @@
1
1
  module BridgeClient
2
2
  class Client
3
3
 
4
- include Virtus.model
5
- attribute :host, String
6
-
7
4
  include APIClientBase::Client.module(default_opts: :default_opts)
8
5
  api_action :send_payment
9
6
 
7
+ attribute :host, String
8
+
10
9
  private
11
10
 
12
11
  def default_opts
@@ -2,6 +2,7 @@ module BridgeClient
2
2
  class SendPaymentRequest < BaseRequest
3
3
 
4
4
  BODY_ATTRS = %i[
5
+ source
5
6
  destination
6
7
  amount
7
8
  asset_code
@@ -9,6 +10,7 @@ module BridgeClient
9
10
  memo_type
10
11
  memo
11
12
  ]
13
+ attribute :source, String
12
14
  attribute :destination, String
13
15
  attribute :amount, Float
14
16
  attribute :asset_code, String
@@ -1,3 +1,3 @@
1
1
  module BridgeClient
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -7,9 +7,11 @@ RUN apt-get install -y build-essential libpq-dev nodejs postgresql-client
7
7
  RUN mkdir -p /app
8
8
  WORKDIR /app
9
9
 
10
- RUN curl -S -L -O https://github.com/stellar/bridge-server/releases/download/v0.0.14/bridge-v0.0.14-linux-amd64.tar.gz && \
11
- tar zxf bridge-v0.0.14-linux-amd64.tar.gz && \
12
- mv bridge-v0.0.14-linux-amd64 /bridge
10
+ ENV BRIDGE_VERSION=v0.0.19
11
+ RUN curl -S -L -O \
12
+ https://github.com/stellar/bridge-server/releases/download/$BRIDGE_VERSION/bridge-$BRIDGE_VERSION-linux-amd64.tar.gz && \
13
+ tar zxf bridge-$BRIDGE_VERSION-linux-amd64.tar.gz && \
14
+ mv bridge-$BRIDGE_VERSION-linux-amd64 /bridge
13
15
  RUN ln -ns /app/config_bridge.toml /bridge/config_bridge.toml
14
16
 
15
17
  ADD . /app
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-20 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.0
61
+ version: '1.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.0
68
+ version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +173,7 @@ extra_rdoc_files: []
173
173
  files:
174
174
  - ".gitignore"
175
175
  - ".rspec"
176
+ - ".ruby-version"
176
177
  - ".travis.yml"
177
178
  - CHANGELOG.md
178
179
  - CODE_OF_CONDUCT.md
@@ -214,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
215
  version: '0'
215
216
  requirements: []
216
217
  rubyforge_project:
217
- rubygems_version: 2.5.1
218
+ rubygems_version: 2.6.10
218
219
  signing_key:
219
220
  specification_version: 4
220
221
  summary: Ruby wrapper for Stellar's Bridge Server API