stellar_client 0.5.0 → 0.5.1

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
  SHA256:
3
- metadata.gz: 79d71440dc2875a2e29f9a50df5478925dab61648753cc4a8257334ccf86e2d9
4
- data.tar.gz: ec1015330484158f65d732518d595e83dcbd6234b4f37e6546c0dcaa00268056
3
+ metadata.gz: d098c45ca1586e4babfa594c3701e6bf7a8d6c68545b309ce18185ecde463cde
4
+ data.tar.gz: a000d93b730dfc3c07c26d6b5b152bd9d5bb3458ceb4008687ce2077322ded43
5
5
  SHA512:
6
- metadata.gz: 140263a3d7d20664ac647b559e4499244fc60499f61ad8b69d15ae113b9abcb51272dcdf17636b89ed4ec25f3ffadc13d53798a23157e7e78c743cce6daaaeb8
7
- data.tar.gz: ebbf27ebae0a9b63caff313dd33c26e7c7b26783229ed839a04a9c17250d1aef743eab6364d06c093b199aefe73d604ad348f60f4374fa0d8fb731a308509ce9
6
+ metadata.gz: 96a9b24b1d6162602980efd01bccdf04b2b46f29df1d376f22c6754611d590dd4936abef8bd9b51b9802347611d8511f464b2cc5d79590c5397dcf3cf97afaa5
7
+ data.tar.gz: f0eb890fb4e6032f08bd8fe82a78e06f488b7dbb3437960f7b3a76e54b74bd5752a4364e0431c1623f6b1c8d6f5487272efdc414488d48d3265aca80cb6da09a
data/CHANGELOG.md CHANGED
@@ -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.5.1] - 2018-09-04
8
+ ### Changed
9
+ - Append `/withdraw` to host/path for `WithdrawRequest`
10
+
7
11
  ## [0.5.0] - 2018-08-29
8
12
  ### Changed
9
13
  - Renamed from BridgeClient to StellarClient
data/README.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/bloom-solutions/stellar_client-ruby.svg?branch=master)](https://travis-ci.org/bloom-solutions/stellar_client-ruby)
4
4
 
5
- Ruby wrapper for Stellar's Bridge Server API
5
+ Ruby wrapper for Stellar's different APIs including:
6
+
7
+ - [TOML file / SEP 0001](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0001.md)
8
+ - [transfer server / SEP 0006](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md)
9
+ - [bridge API](https://github.com/stellar/bridge-server/blob/master/readme_bridge.md)
6
10
 
7
11
  ## Installation
8
12
 
@@ -26,11 +30,12 @@ Configure in an initializer:
26
30
 
27
31
  ```ruby
28
32
  StellarClient.configure do |c|
29
- c.bridge_host = ENV["BRIDGE_HOST"]
33
+ c.host = "https://domain.that.has.the.stellar.toml"
34
+ c.bridge_host = "https://bridge.com" # if you will be making calls to bridge
30
35
  end
31
36
  ```
32
37
 
33
- See `spec/acceptance` for detailed examples.
38
+ See `spec/acceptance` for detailed examples and what is supported.
34
39
 
35
40
  ## Development
36
41
 
@@ -14,6 +14,10 @@ module StellarClient
14
14
 
15
15
  private
16
16
 
17
+ def path
18
+ [Addressable::URI.parse(host).path, "/withdraw"].join
19
+ end
20
+
17
21
  def params
18
22
  BODY_ATTRS.each_with_object({}) do |attr, hash|
19
23
  hash[attr] = send(attr)
@@ -1,3 +1,3 @@
1
1
  module StellarClient
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -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", "~> 1.3"
34
+ spec.add_dependency "api_client_base", "~> 1.4"
35
35
  spec.add_dependency "activesupport", ">= 3.0.0"
36
36
  spec.add_dependency "addressable"
37
37
  spec.add_dependency "tomlrb", "~> 1.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-09-04 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: '1.3'
61
+ version: '1.4'
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: '1.3'
68
+ version: '1.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement