ruby_dsp 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2302dab136b64de0880e5d512095d28e7730803a76bee8dc4f97b284be76fffb
4
- data.tar.gz: b3831519ba0a0997c09bfe285c5ec70a683172a6da645faf9df61e3ff79c3d71
3
+ metadata.gz: d8e97fbe60fdad6b1c32094042d18d5e8ef350fee5eb3c3806fd1acefdf30d20
4
+ data.tar.gz: d5b9fa0d531f9c82d448513aeebaf23f1bdd598487371f2224d17c2557b7c10a
5
5
  SHA512:
6
- metadata.gz: 1210548618a8e94e1f80cc014802bfd257595c677301bd8980d6db0e3e1751a2a0dc5a58dd5b16426515f5054e00cdb95ebce10e647a86891d17fcb6e99b3364
7
- data.tar.gz: 6edb77f271deed7670a19afda00bf0f8aa1d255dddbde4a269d5a483dff101bcac17f000f7e6ace1ab19a06f8327101f1a0160ec9b529606f0896ab3e6a021c8
6
+ metadata.gz: 4bf040c46e365162b7b5d1d0bae39c53fc4d1ba62c5b449127005d33569a9fc940d85ab5fced54ca550fc68a862429b6e552cafdfb4bbc1ef86e220350b67109
7
+ data.tar.gz: 388d2bcf61a705ac2167cc483f141e726ba702fbc60ab45899ba1048779496ac60cab21d240feba9a6e0fb8a3fc9ed66103db14919fe69431aca3fb79285bf58
@@ -0,0 +1,24 @@
1
+ name: Ruby CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main", "dev_pipelines" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
+
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: '3.2'
21
+ bundler-cache: true
22
+
23
+ - name: Run tests
24
+ run: bundle exec rake test
data/README.md CHANGED
@@ -1,7 +1,13 @@
1
- # RubyDSP
1
+ # RubyDSP | [Documentation](https://www.rubydoc.info/gems/ruby_dsp/0.0.4)
2
+
3
+ [![Ruby CI](https://github.com/cichrrad/rubyDSP/actions/workflows/test.yml/badge.svg)](https://github.com/cichrrad/rubyDSP/actions/workflows/test.yml)
4
+
5
+ ---
2
6
 
3
7
  > 🚧 **Status:** This project is currently in early development. It is hopefully functional, but API changes are expected. There is no warranty.
4
8
 
9
+ ---
10
+
5
11
  **RubyDSP** is an audio processing and DSP Ruby gem. Ultimately, it aims to be `librosa`-wannabe for Ruby. It uses C++ under the hood, utilizing [miniaudio](https://miniaud.io/) and [Rice](https://github.com/jasonroelofs/rice)
6
12
 
7
13
  ## Features
@@ -13,12 +19,10 @@
13
19
 
14
20
  ## Installation
15
21
 
16
- Since the gem is currently in pre-release, you can install it directly from GitHub by adding this line to your application's `Gemfile`:
22
+ Add this line to your application's `Gemfile`:
17
23
 
18
24
  ```ruby
19
- source "https://rubygems.org"
20
-
21
- gem 'ruby_dsp', github: 'cichrrad/rubyDSP'
25
+ gem 'ruby_dsp'
22
26
  ```
23
27
 
24
28
  And then execute:
@@ -27,13 +31,12 @@ And then execute:
27
31
  $ bundle install
28
32
  ```
29
33
 
30
- *(Note: Installing this gem requires a modern C++ compiler, as it builds the native extensions directly on your machine upon installation. It requires Ruby 3.0+).*
31
-
32
- After this, you can run your scripts with
34
+ Or install it yourself directly via:
33
35
 
34
36
  ```bash
35
- $ bundle exec ruby script.rb
37
+ $ gem install ruby_dsp
36
38
  ```
39
+ *(Note: Installing this gem requires a modern C++ compiler, as it builds the native extensions directly on your machine upon installation. It requires Ruby 3.0+).*
37
40
 
38
41
  ## Quick Start
39
42
 
@@ -69,7 +72,7 @@ track.save_track("processed_vocals.wav")
69
72
 
70
73
  ## Development
71
74
 
72
- If you want to clone the repo and hack on the C++ guts, we have fully automated the compilation and testing steps.
75
+ If you want to clone the repo and work on C++ guts, start with:
73
76
 
74
77
  1. Clone the repo and run `bundle install` to grab the development dependencies.
75
78
  2. Run `rake test` — this will automatically compile the C++ `extconf.rb` and run the Minitest suite.
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module RubyDSP
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.4'
6
6
  end
data/ruby_dsp.gemspec CHANGED
@@ -21,8 +21,10 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_dependency 'rice', '~> 4.11.2'
23
23
 
24
+ s.add_development_dependency 'minitest', '~> 6.0'
24
25
  s.add_development_dependency 'rack', '~> 3.2'
25
26
  s.add_development_dependency 'rackup', '~> 2.3'
27
+ s.add_development_dependency 'rake', '~> 13.0'
26
28
  s.add_development_dependency 'rake-compiler', '~> 1.3'
27
29
  s.add_development_dependency 'webrick', '~> 1.9'
28
30
  s.add_development_dependency 'yard', '~> 0.9'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_dsp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radek C.
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.11.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '6.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '6.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rack
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +66,20 @@ dependencies:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: '2.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '13.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '13.0'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: rake-compiler
57
85
  requirement: !ruby/object:Gem::Requirement
@@ -101,6 +129,7 @@ extensions:
101
129
  - ext/ruby_dsp/extconf.rb
102
130
  extra_rdoc_files: []
103
131
  files:
132
+ - ".github/workflows/test.yml"
104
133
  - ".gitignore"
105
134
  - ".yardopts"
106
135
  - Gemfile