diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml index 397bc3b..cc7eb70 100644 --- a/.github/workflows/test_suite.yml +++ b/.github/workflows/test_suite.yml @@ -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 }} diff --git a/.ruby-version b/.ruby-version index 460b6fd..b532f3d 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.5 \ No newline at end of file +3.1.4 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..925fb07 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog +## 1.0.0 +* Initial release + +## 2.0.0 +* Update ruby to v3.1.4 and bump gems versions \ No newline at end of file diff --git a/Gemfile b/Gemfile index 5940ee6..7fbbec6 100644 --- a/Gemfile +++ b/Gemfile @@ -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" \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 8fd70eb..c54346b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -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 diff --git a/README.md b/README.md index 53be917..ad5155a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/demo.rb b/demo.rb index d39838b..5a60961 100644 --- a/demo.rb +++ b/demo.rb @@ -4,4 +4,4 @@ client = ValidatorsAppRuby.new("token") -puts client.getting_ping +puts client.get_ping diff --git a/lib/validators_app_ruby.rb b/lib/validators_app_ruby.rb index 5a31288..0a0136f 100644 --- a/lib/validators_app_ruby.rb +++ b/lib/validators_app_ruby.rb @@ -3,6 +3,7 @@ require 'httparty' require_relative "validators_app_ruby/version" + class ValidatorsAppRuby class Error < StandardError; end diff --git a/lib/validators_app_ruby/version.rb b/lib/validators_app_ruby/version.rb index eb5e2a1..2a4802b 100644 --- a/lib/validators_app_ruby/version.rb +++ b/lib/validators_app_ruby/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ValidatorsAppRubyVersion - VERSION = "1.0.0" + VERSION = "2.0.0" end diff --git a/test/test_helper.rb b/test/test_helper.rb index 6fcbe22..309d3e2 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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" diff --git a/validators_app_ruby.gemspec b/validators_app_ruby.gemspec index 0fd34e0..abca5b1 100644 --- a/validators_app_ruby.gemspec +++ b/validators_app_ruby.gemspec @@ -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