-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename from BridgeClient to StellarClient
- Loading branch information
1 parent
8fedf49
commit da8a80c
Showing
21 changed files
with
64 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in bridge_client.gemspec | ||
# Specify your gem's dependencies in stellar_client.gemspec | ||
gemspec | ||
|
||
gem "pry-byebug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
require "active_support/core_ext/hash/indifferent_access" | ||
require "api_client_base" | ||
require "gem_config" | ||
require "virtus" | ||
require "stellar_client/version" | ||
require "stellar_client/client" | ||
require "stellar_client/coercers/indifferent_hash" | ||
require "stellar_client/requests/base_request" | ||
require "stellar_client/requests/send_payment_request" | ||
require "stellar_client/responses/base_response" | ||
require "stellar_client/responses/send_payment_response" | ||
|
||
module StellarClient | ||
|
||
include GemConfig::Base | ||
|
||
with_configuration do | ||
has :host, classes: String | ||
end | ||
|
||
def self.new(options={}) | ||
Client.new( | ||
host: options[:host] || StellarClient.configuration.host, | ||
) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ridge_client/coercers/indifferent_hash.rb → ...ellar_client/coercers/indifferent_hash.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module BridgeClient | ||
module StellarClient | ||
module Coercers | ||
class IndifferentHash < Virtus::Attribute | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
lib/bridge_client/requests/base_request.rb → lib/stellar_client/requests/base_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e_client/requests/send_payment_request.rb → ...r_client/requests/send_payment_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module BridgeClient | ||
module StellarClient | ||
class SendPaymentRequest < BaseRequest | ||
|
||
BODY_ATTRS = %i[ | ||
|
2 changes: 1 addition & 1 deletion
2
lib/bridge_client/responses/base_response.rb → ...stellar_client/responses/base_response.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module BridgeClient | ||
module StellarClient | ||
class BaseResponse | ||
|
||
include APIClientBase::Response.module | ||
|
2 changes: 1 addition & 1 deletion
2
...client/responses/send_payment_response.rb → ...client/responses/send_payment_response.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module BridgeClient | ||
module StellarClient | ||
VERSION = "0.4.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/lib/bridge_client/client_spec.rb → spec/lib/stellar_client/client_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ent/requests/send_payment_request_spec.rb → ...ent/requests/send_payment_request_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t/responses/send_payment_response_spec.rb → ...t/responses/send_payment_response_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
spec/lib/bridge_client_spec.rb → spec/lib/stellar_client_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'bridge_client/version' | ||
require 'stellar_client/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "bridge_client" | ||
spec.version = BridgeClient::VERSION | ||
spec.name = "stellar_client" | ||
spec.version = StellarClient::VERSION | ||
spec.authors = ["Ramon Tayag"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = %q{Ruby wrapper for Stellar's Bridge Server API} | ||
spec.description = %q{Ruby wrapper for Stellar's Bridge Server API} | ||
spec.homepage = "https://github.com/imacchiato/bridge_client-ruby" | ||
spec.summary = %q{Ruby wrapper for Stellar's Stellar Server API} | ||
spec.description = %q{Ruby wrapper for Stellar's Stellar Server API} | ||
spec.homepage = "https://github.com/imacchiato/stellar_client-ruby" | ||
spec.license = "MIT" | ||
|
||
if spec.respond_to?(:metadata) | ||
|