Skip to content

Commit 76f01df

Browse files
authored
Merge pull request #7 from TA-Lib/dev
feat: add YARD documentation generation and insert
2 parents eb0d452 + ba2081b commit 76f01df

File tree

9 files changed

+303
-40
lines changed

9 files changed

+303
-40
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, macos-latest, windows-latest]
20-
ruby: ['3.2.3']
20+
ruby: ['3.1', '3.2']
2121

2222
runs-on: ${{ matrix.os }}
2323
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AllCops:
2-
TargetRubyVersion: 3.0
2+
TargetRubyVersion: 3.1.0
33

44
Style/StringLiterals:
55
Enabled: true

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Renamed main file from `lib/ta_lib.rb` to `lib/ta_lib_ffi.rb`
1616
- Updated require statements in specs and gemspec
1717

18-
## [0.1.0] - 2024-01-21
18+
## [0.1.0] - 2025-01-21
1919

2020
### Added
2121
- Initial release of ta_lib_ffi

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ GEM
6363
unicode-display_width (3.1.4)
6464
unicode-emoji (~> 4.0, >= 4.0.4)
6565
unicode-emoji (4.0.4)
66+
webrick (1.9.1)
67+
yard (0.9.37)
6668

6769
PLATFORMS
6870
ruby
@@ -74,6 +76,8 @@ DEPENDENCIES
7476
rubocop-rspec (~> 3.3)
7577
ruby-lsp-rspec (~> 0.1.20)
7678
ta_lib_ffi!
79+
webrick (~> 1.9)
80+
yard (~> 0.9)
7781

7882
BUNDLED WITH
7983
2.5.6

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# TALibFFI
22

33
![Tests](https://github.com/TA-Lib/ta-lib-ruby/actions/workflows/main.yml/badge.svg)
4+
![Gem Version](https://img.shields.io/gem/v/ta_lib_ffi.svg)
45

56
## Introduction
67

78
TALibFFI is a Ruby binding for [TA-Lib](https://ta-lib.org/) (Technical Analysis Library) using FFI (Foreign Function Interface). It provides a comprehensive set of functions for technical analysis of financial market data.
89

910
## Requirements
1011

11-
- Ruby >= 3.0.0
12+
- Ruby >= 3.1.0
1213
- TA-Lib >= 0.6.4
1314

1415
## Installation

Rakefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
require "bundler/gem_tasks"
44
require "rspec/core/rake_task"
5+
require "yard"
56

67
RSpec::Core::RakeTask.new(:spec)
78

@@ -10,3 +11,14 @@ require "rubocop/rake_task"
1011
RuboCop::RakeTask.new
1112

1213
task default: %i[spec rubocop]
14+
15+
YARD::Rake::YardocTask.new do |t|
16+
require_relative "lib/ta_lib_ffi"
17+
require_relative "lib/ta_lib_ffi/doc"
18+
TALibFFI::Doc.insert
19+
20+
t.files = ["lib/**/*.rb"]
21+
t.options = ["--exclude", "lib/ta_lib_ffi/doc.rb"]
22+
t.stats_options = ["--list-undoc"]
23+
t.after = -> { TALibFFI::Doc.remove }
24+
end

0 commit comments

Comments
 (0)