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
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
ruby:
# - '3.0'
# - '3.1'
- '3.2'
- '3.3'
- '3.4'
- '4.0'


name: RSpec tests ruby ${{ matrix.ruby }}
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inherit_gem:
relaxed-rubocop: .rubocop.yml

AllCops:
TargetRubyVersion: 3.2
TargetRubyVersion: 3.3
Exclude:
- 'spec/performance/*.rb'

Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0
4.0.4
173 changes: 99 additions & 74 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
PATH
remote: .
specs:
quantitative (0.3.3)
quantitative (0.4.0)
csv
oj (~> 3.10)
zeitwerk (~> 2.6)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
benchmark-ips (2.13.0)
bigdecimal (3.1.6)
ast (2.4.3)
base64 (0.3.0)
benchmark-ips (2.14.0)
bigdecimal (4.1.2)
coderay (1.1.3)
debug (1.8.0)
irb (>= 1.5.0)
reline (>= 0.3.1)
diff-lcs (1.5.0)
docile (1.4.0)
ffi (1.16.3)
formatador (1.1.0)
guard (2.18.1)
csv (3.3.5)
date (3.5.1)
debug (1.11.1)
irb (~> 1.10)
reline (>= 0.3.8)
diff-lcs (1.6.2)
docile (1.4.1)
erb (6.0.4)
ffi (1.17.4-arm64-darwin)
ffi (1.17.4-x86_64-linux-gnu)
formatador (1.2.3)
reline
guard (2.20.1)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
logger (~> 1.6)
lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1)
notiffany (~> 0.0)
Expand All @@ -33,104 +41,121 @@ GEM
guard (~> 2.1)
guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0)
io-console (0.6.0)
irb (1.9.1)
rdoc
reline (>= 0.3.8)
json (2.7.1)
language_server-protocol (3.17.0.3)
listen (3.8.0)
io-console (0.8.2)
irb (1.18.0)
pp (>= 0.6.0)
prism (>= 1.3.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.19.5)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
listen (3.10.0)
logger
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
lumberjack (1.2.9)
method_source (1.0.0)
logger (1.7.0)
lumberjack (1.4.2)
method_source (1.1.0)
nenv (0.3.0)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
oj (3.16.3)
oj (3.17.0)
bigdecimal (>= 3.0)
parallel (1.24.0)
parser (3.3.0.4)
ostruct (>= 0.2)
ostruct (0.6.3)
parallel (2.1.0)
parser (3.3.11.1)
ast (~> 2.4.1)
racc
pry (0.14.2)
pp (0.6.3)
prettyprint
prettyprint (0.2.0)
prism (1.9.0)
pry (0.16.0)
coderay (~> 1.1)
method_source (~> 1.0)
psych (5.1.2)
reline (>= 0.6.0)
psych (5.3.1)
date
stringio
racc (1.7.3)
racc (1.8.1)
rainbow (3.1.1)
rake (13.1.0)
rake (13.4.2)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
rb-inotify (0.11.1)
ffi (~> 1.0)
rdoc (6.6.2)
rdoc (7.2.0)
erb
psych (>= 4.0.0)
regexp_parser (2.9.0)
tsort
regexp_parser (2.12.0)
relaxed-rubocop (2.5)
reline (0.4.1)
reline (0.6.3)
io-console (~> 0.5)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rexml (3.4.4)
rspec (3.13.2)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.6)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-github (2.4.0)
rspec-support (~> 3.13.0)
rspec-github (3.0.0)
rspec-core (~> 3.0)
rspec-mocks (3.12.6)
rspec-mocks (3.13.8)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rubocop (1.60.1)
rspec-support (~> 3.13.0)
rspec-support (3.13.7)
rubocop (1.86.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (>= 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-rspec (2.26.1)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-prof (1.7.0)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.1)
parser (>= 3.3.7.2)
prism (~> 1.7)
rubocop-rspec (3.9.0)
lint_roller (~> 1.1)
rubocop (~> 1.81)
ruby-prof (2.0.4)
base64
ostruct
ruby-progressbar (1.13.0)
shellany (0.0.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
simplecov-cobertura (3.1.0)
rexml
simplecov (~> 0.19)
simplecov-html (0.12.3)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
stackprof (0.2.26)
stringio (3.1.0)
test-prof (1.3.2)
thor (1.3.0)
unicode-display_width (2.5.0)
vernier (0.5.1)
yard (0.9.34)
zeitwerk (2.6.15)
stackprof (0.2.28)
stringio (3.2.0)
test-prof (1.6.1)
thor (1.5.0)
tsort (0.2.0)
unicode-display_width (3.2.0)
unicode-emoji (~> 4.1)
unicode-emoji (4.2.0)
vernier (1.10.1)
yard (0.9.43)
zeitwerk (2.7.5)

PLATFORMS
arm64-darwin-22
arm64-darwin-25
x86_64-linux

DEPENDENCIES
Expand All @@ -153,4 +178,4 @@ DEPENDENCIES
yard (~> 0.9)

BUNDLED WITH
2.3.13
4.0.10
2 changes: 1 addition & 1 deletion lib/quant/experimental.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def experimental(message)

Experimental.tracker[caller.first] = message

calling_method = caller.first.scan(/`([^']*)/)[0][0]
calling_method = caller.first[/in ["`'](.+?)[`']/, 1] || "unknown"
full_message = "EXPERIMENTAL: #{calling_method.inspect}: #{message}\nsource location: #{caller.first}"
puts full_message
end
Expand Down
2 changes: 1 addition & 1 deletion lib/quant/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Quant
VERSION = "0.3.3"
VERSION = "0.4.0"
end
5 changes: 3 additions & 2 deletions quantitative.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Gem::Specification.new do |spec|
spec.authors = ["Michael Lang"]
spec.email = ["mwlang@cybrains.net"]

spec.summary = "Quantitative and statistical tools written for Ruby 3.2+ for trading and finance."
spec.summary = "Quantitative and statistical tools written for Ruby for trading and finance."
spec.description = spec.summary
spec.homepage = "https://github.com/mwlang/quantitative"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.2"
spec.required_ruby_version = ">= 3.3"

spec.metadata["allowed_push_host"] = "https://rubygems.org"

Expand All @@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

# Uncomment to register a new dependency of your gem
spec.add_dependency "csv"
spec.add_dependency "oj", "~> 3.10"
spec.add_dependency "zeitwerk", "~> 2.6"

Expand Down
Loading