diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b81b806..91cbf3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - ruby: ['3.2.3'] + ruby: ['3.1', '3.2'] runs-on: ${{ matrix.os }} name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} diff --git a/.rubocop.yml b/.rubocop.yml index 7e89518..dc7450a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.1.0 Style/StringLiterals: Enabled: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 727b2b0..af099af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Renamed main file from `lib/ta_lib.rb` to `lib/ta_lib_ffi.rb` - Updated require statements in specs and gemspec -## [0.1.0] - 2024-01-21 +## [0.1.0] - 2025-01-21 ### Added - Initial release of ta_lib_ffi diff --git a/Gemfile.lock b/Gemfile.lock index 0ac6945..6696320 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -63,6 +63,7 @@ GEM unicode-display_width (3.1.4) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) + webrick (1.9.1) PLATFORMS ruby @@ -74,6 +75,7 @@ DEPENDENCIES rubocop-rspec (~> 3.3) ruby-lsp-rspec (~> 0.1.20) ta_lib_ffi! + webrick (~> 1.9) BUNDLED WITH 2.5.6 diff --git a/README.md b/README.md index 266d61b..0422c96 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ TALibFFI is a Ruby binding for [TA-Lib](https://ta-lib.org/) (Technical Analysis ## Requirements -- Ruby >= 3.0.0 +- Ruby >= 3.1.0 - TA-Lib >= 0.6.4 ## Installation diff --git a/Rakefile b/Rakefile index cca7175..e2f6742 100644 --- a/Rakefile +++ b/Rakefile @@ -10,3 +10,22 @@ require "rubocop/rake_task" RuboCop::RakeTask.new task default: %i[spec rubocop] + +namespace :doc do + desc "Start a local server to view RDoc documentation" + task :server do + require "webrick" + server = WEBrick::HTTPServer.new( + Port: 8808, + DocumentRoot: File.expand_path("./doc"), + AccessLog: [], + Logger: WEBrick::Log.new(File::NULL) + ) + + puts "Documentation server started at http://localhost:8808" + puts "Press Ctrl+C to stop" + + trap("INT") { server.shutdown } + server.start + end +end diff --git a/ta_lib_ffi.gemspec b/ta_lib_ffi.gemspec index fa9c52f..ea36821 100644 --- a/ta_lib_ffi.gemspec +++ b/ta_lib_ffi.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.description = "A Ruby wrapper for TA-Lib using FFI, providing technical analysis functions for financial market data" spec.homepage = "https://github.com/TA-Lib/ta-lib-ruby" spec.license = "MIT" - spec.required_ruby_version = ">= 3.0.0" + spec.required_ruby_version = ">= 3.1.0" spec.metadata["allowed_push_host"] = "https://rubygems.org" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/TA-Lib/ta-lib-ruby" @@ -34,6 +34,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rspec", "~> 3.13" spec.add_development_dependency "rubocop-rspec", "~> 3.3" spec.add_development_dependency "ruby-lsp-rspec", "~> 0.1.20" + spec.add_development_dependency "webrick", "~> 1.9" # For more information and examples about making a new gem, check out our # guide at: https://bundler.io/guides/creating_gem.html