Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on: [push]

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
ruby-version: ['3.0', '2.7', '2.6']
ruby-version: ['3.1.4', '3.2']
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.5
3.1.4
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog
## 1.0.0
* Initial release

## 2.0.0
* Update ruby to v3.1.4 and bump gems versions
8 changes: 5 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ gemspec

gem "rake", "~> 13.0"

gem "minitest", "~> 5.0"
gem "minitest", "~> 5.25"

gem "rubocop", "~> 0.80"
gem "rubocop", "~> 0.81"

gem "httparty", "~> 0.20"
gem "httparty", "~> 0.23"

gem "concurrent-ruby", "1.3.4"
75 changes: 40 additions & 35 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,41 +1,43 @@
PATH
remote: .
specs:
validators_app_ruby (1.0.0)
validators_app_ruby (2.0.0)
httparty (~> 0.20)

GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
ast (2.4.2)
crack (0.4.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
ast (2.4.3)
base64 (0.3.0)
bigdecimal (3.2.3)
concurrent-ruby (1.3.4)
crack (1.0.0)
bigdecimal
rexml
csv (3.3.5)
dotenv (2.7.6)
hashdiff (1.0.1)
httparty (0.20.0)
mime-types (~> 3.0)
hashdiff (1.2.1)
httparty (0.23.1)
csv
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
minispec-metadata (2.0.0)
minitest
minitest (5.15.0)
minitest-vcr (1.4.0)
minispec-metadata (~> 2.0)
minitest (>= 4.7.5)
vcr (>= 2.9)
multi_xml (0.6.0)
parallel (1.22.1)
parser (3.1.1.0)
mini_mime (1.1.5)
minitest (5.25.5)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
parallel (1.27.0)
parser (3.3.9.0)
ast (~> 2.4.1)
public_suffix (4.0.6)
racc
prism (1.5.1)
public_suffix (6.0.2)
racc (1.8.1)
rainbow (3.1.1)
rake (13.0.6)
regexp_parser (2.2.1)
rexml (3.2.5)
rake (13.3.0)
regexp_parser (2.11.3)
rexml (3.4.4)
rubocop (0.93.1)
parallel (~> 1.10)
parser (>= 2.7.1.5)
Expand All @@ -45,29 +47,32 @@ GEM
rubocop-ast (>= 0.6.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (1.16.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
rubocop-ast (1.47.1)
parser (>= 3.3.7.2)
prism (~> 1.4)
ruby-progressbar (1.13.0)
unicode-display_width (1.8.0)
vcr (6.1.0)
vcr (6.3.1)
base64
webmock (3.14.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
x86_64-darwin-20
arm64-darwin-24
x86_64-linux

DEPENDENCIES
concurrent-ruby (= 1.3.4)
dotenv (~> 2.7.6)
httparty (~> 0.20)
minitest (~> 5.0)
minitest-vcr (~> 1.4.0)
httparty (~> 0.23)
minitest (~> 5.25)
rake (~> 13.0)
rubocop (~> 0.80)
rubocop (~> 0.81)
validators_app_ruby!
vcr (~> 6.0)
webmock (~> 3.14.0)

BUNDLED WITH
2.3.5
2.3.26
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ client.get_stake_accounts(
)


# Stake Explorer
# The Explorer Stake Accounts endpoint will return all the stake accounts according to provided criteria. Only mainnet network is available for this query.

client.get_stake_explorer(
network: "mainnet"
staker: "DDnAqxJVFo2GVTujibHt5cjevHMSE9bo8HJaydHoshdp"
)


# Ping Thing Post
# The Ping Thing Post endpoint allows you to push information about transaction times.

Expand Down
2 changes: 1 addition & 1 deletion demo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

client = ValidatorsAppRuby.new("token")

puts client.getting_ping
puts client.get_ping
1 change: 1 addition & 0 deletions lib/validators_app_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'httparty'
require_relative "validators_app_ruby/version"


class ValidatorsAppRuby
class Error < StandardError; end

Expand Down
2 changes: 1 addition & 1 deletion lib/validators_app_ruby/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ValidatorsAppRubyVersion
VERSION = "1.0.0"
VERSION = "2.0.0"
end
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "dotenv/load"
require "minitest/autorun"
require "webmock/minitest"
require "minitest-vcr"
require "vcr"

VCR.configure do |c|
c.cassette_library_dir = "test/cassettes"
Expand Down
2 changes: 1 addition & 1 deletion validators_app_ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "httparty", "~> 0.20"

spec.add_development_dependency "dotenv", "~> 2.7.6"
spec.add_development_dependency "minitest-vcr", "~> 1.4.0"
spec.add_development_dependency "vcr", "~> 6.0"
spec.add_development_dependency "webmock", "~> 3.14.0"

# Uncomment to register a new dependency of your gem
Expand Down