tulirb 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rubocop.yml +22 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +24 -0
- data/ext/tulirb/extconf.rb +9 -0
- data/ext/tulirb/tiamalgamation.c +5565 -0
- data/ext/tulirb/tulirb.c +751 -0
- data/ext/tulirb/tulirb.h +1435 -0
- data/lib/tulirb/version.rb +5 -0
- data/lib/tulirb.rb +17 -0
- data/sig/tulirb.rbs +4 -0
- data/tulirb.gemspec +41 -0
- metadata +63 -0
data/lib/tulirb.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative("tulirb/version")
|
4
|
+
require_relative("tulirb/tulirb")
|
5
|
+
|
6
|
+
module Tulirb
|
7
|
+
class Error < StandardError; end
|
8
|
+
extend(Ext)
|
9
|
+
# Your code goes here...
|
10
|
+
|
11
|
+
INDICATORS_INFO.each do |k, v|
|
12
|
+
define_singleton_method(k) do |inputs, **options|
|
13
|
+
opts = v[:options].map { |o| options[o.to_sym] || raise(ArgumentError, "missing keyword: :#{o}") }
|
14
|
+
super(inputs, opts)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/sig/tulirb.rbs
ADDED
data/tulirb.gemspec
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative("lib/tulirb/version")
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "tulirb"
|
7
|
+
spec.version = Tulirb::VERSION
|
8
|
+
spec.authors = ["Ezenwa Ogbonna"]
|
9
|
+
spec.email = ["ezenwaogbonna1@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Ruby bindings for the TulipIndicators technical analysis indicator library"
|
12
|
+
spec.description = <<-DESCRIPTION
|
13
|
+
Robust technical analysis indicator library for Ruby.#{" "}
|
14
|
+
Build tools for financial trading, data analytics, e.t.c in Ruby
|
15
|
+
DESCRIPTION
|
16
|
+
spec.homepage = "https://github.com/ozone4real/tulirb"
|
17
|
+
spec.license = "MIT"
|
18
|
+
spec.required_ruby_version = ">= 2.6.0"
|
19
|
+
|
20
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
+
spec.metadata["source_code_uri"] = "https://github.com/ozone4real/tulirb"
|
22
|
+
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
+
spec.files = Dir.chdir(__dir__) do
|
26
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
|
28
|
+
end
|
29
|
+
end
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
spec.extensions = ["ext/tulirb/extconf.rb"]
|
34
|
+
|
35
|
+
# Uncomment to register a new dependency of your gem
|
36
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
37
|
+
|
38
|
+
# For more information and examples about making a new gem, check out our
|
39
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
40
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tulirb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ezenwa Ogbonna
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-01-07 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: " Robust technical analysis indicator library for Ruby. \n Build
|
14
|
+
tools for financial trading, data analytics, e.t.c in Ruby\n"
|
15
|
+
email:
|
16
|
+
- ezenwaogbonna1@gmail.com
|
17
|
+
executables: []
|
18
|
+
extensions:
|
19
|
+
- ext/tulirb/extconf.rb
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- ".rubocop.yml"
|
23
|
+
- CHANGELOG.md
|
24
|
+
- CODE_OF_CONDUCT.md
|
25
|
+
- Gemfile
|
26
|
+
- LICENSE.txt
|
27
|
+
- README.md
|
28
|
+
- Rakefile
|
29
|
+
- ext/tulirb/extconf.rb
|
30
|
+
- ext/tulirb/tiamalgamation.c
|
31
|
+
- ext/tulirb/tulirb.c
|
32
|
+
- ext/tulirb/tulirb.h
|
33
|
+
- lib/tulirb.rb
|
34
|
+
- lib/tulirb/version.rb
|
35
|
+
- sig/tulirb.rbs
|
36
|
+
- tulirb.gemspec
|
37
|
+
homepage: https://github.com/ozone4real/tulirb
|
38
|
+
licenses:
|
39
|
+
- MIT
|
40
|
+
metadata:
|
41
|
+
homepage_uri: https://github.com/ozone4real/tulirb
|
42
|
+
source_code_uri: https://github.com/ozone4real/tulirb
|
43
|
+
rubygems_mfa_required: 'true'
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.6.0
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubygems_version: 3.4.3
|
60
|
+
signing_key:
|
61
|
+
specification_version: 4
|
62
|
+
summary: Ruby bindings for the TulipIndicators technical analysis indicator library
|
63
|
+
test_files: []
|