Skip to content

Commit e52ecc4

Browse files
committed
chore: extract Horizon client in separate gem (#194)
1 parent 51b0eac commit e52ecc4

51 files changed

Lines changed: 12601 additions & 13 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
* `stellar-base` changelog: [base/CHANGELOG.md](https://github.com/astroband/ruby-stellar-sdk/blob/main/base/CHANGELOG.md)
44
* `stellar-sdk` changelog: [sdk/CHANGELOG.md](https://github.com/astroband/ruby-stellar-sdk/blob/main/sdk/CHANGELOG.md)
5+
* `stellar-horizon` changelog: [sdk/CHANGELOG.md](https://github.com/astroband/ruby-stellar-sdk/blob/main/horizon/CHANGELOG.md)

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ source "https://rubygems.org"
22

33
gem "stellar-base", path: "./base"
44
gem "stellar-sdk", path: "./sdk"
5+
gem "stellar-horizon", path: "./horizon"
56
# gem "xdr", github: "astroband/ruby-xdr"
67

78
group :test do

Gemfile.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ PATH
88
rbnacl (>= 6.0.0, < 8.0)
99
xdr (>= 3.0.2, < 4.0)
1010

11+
PATH
12+
remote: horizon
13+
specs:
14+
stellar-horizon (0.28.0)
15+
excon (>= 0.71.0, < 1.0)
16+
hyperclient (>= 0.7.0, < 2.0)
17+
stellar-sdk (= 0.28.0)
18+
toml-rb (>= 1.1.1, < 3.0)
19+
1120
PATH
1221
remote: sdk
1322
specs:
@@ -237,6 +246,7 @@ DEPENDENCIES
237246
simplecov
238247
standard
239248
stellar-base!
249+
stellar-horizon!
240250
stellar-sdk!
241251
vcr
242252
webmock

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ task lint: %i[lint:all]
1212

1313
task default: %i[test lint]
1414

15-
rule(/^(base|sdk):.+$/) do |task|
15+
rule(/^(base|sdk|horizon):.+$/) do |task|
1616
gem_dir, task_name = task.name.split(":", 2)
1717
sh("cd #{gem_dir} && ../bin/rake #{task_name}")
1818
end
1919

2020
desc "Build all gems"
21-
task build: %i[base:build sdk:build]
21+
task build: %i[base:build sdk:build horizon:build]

base/lib/stellar/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Stellar
2-
VERSION = "0.28.0"
2+
VERSION = "0.28.0".freeze
33
end

horizon/.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

horizon/CHANGELOG.md

Whitespace-only changes.

horizon/LICENSE

Whitespace-only changes.

horizon/README.md

Whitespace-only changes.

horizon/Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
require "bundler/gem_tasks"
4+
require "rspec/core/rake_task"
5+
6+
RSpec::Core::RakeTask.new(:spec)
7+
8+
task default: :spec

0 commit comments

Comments
 (0)