numo-pocketfft 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7986980a5b77d766c150702aec5f6913e1538bc6
4
- data.tar.gz: 3e5385df4c518b9c477fbc909dcb3ea6810347a3
2
+ SHA256:
3
+ metadata.gz: 4bd70edeb6b4247e01c8cc7cf439830a158518550f3c95c4ca5b502ae6ef7c2d
4
+ data.tar.gz: 2ff73865a15805b7e8e69d55ac87f892d3d0e4aea9b0e2af7cd129b3fa489d63
5
5
  SHA512:
6
- metadata.gz: 1d18ee2d9d4eaf35bceb671d7364f4d9b3017fa1b1006387b1cc6d98fba421676eebf5a7ff7904a236f2f3ec2f11c042b66d70554d8f5bfba11f505783fe03a6
7
- data.tar.gz: 63c3541af48456568502e6c3f94419d45289979476e6b7747620f651293555d7bc0e02149dc6bf957fbf5a5ee3f1e32cc77127b97e1bed63982c149b123469db
6
+ metadata.gz: ef1cfc56b929763495695a28855217292a65126cdbf7134aaa208334722b75456724e0196719932c7fedbcad2dc010e8d34d937c65554429992b623ed6bfdf9f
7
+ data.tar.gz: '08917a93b37b1c81519a5ad11fde74585077eee3d80761b17a2cbac24b8a67b01ae48f1afdedf8aee8a872af28eaf3df48a6c06006a6b53f2ab0381941bd5573'
@@ -1 +1 @@
1
- service_name: travis-ci
1
+ service_name: github-ci
@@ -0,0 +1,27 @@
1
+ name: build
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-20.04
8
+ strategy:
9
+ matrix:
10
+ ruby: [ '2.5', '2.6', '2.7' ]
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Checkout submodule
14
+ shell: bash
15
+ run: |
16
+ auth_header="$(git config --local --get http.https://github.com/.extraheader)"
17
+ git submodule sync --recursive
18
+ git submodule update --init --force --recursive
19
+ - name: Set up Ruby ${{ matrix.ruby }}
20
+ uses: actions/setup-ruby@v1
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ - name: Build and test with Rake
24
+ run: |
25
+ gem install bundler
26
+ bundle install --jobs 4 --retry 3
27
+ bundle exec rake
@@ -0,0 +1,32 @@
1
+ name: coverage
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ coverage:
11
+ runs-on: ubuntu-20.04
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Checkout submodule
15
+ shell: bash
16
+ run: |
17
+ auth_header="$(git config --local --get http.https://github.com/.extraheader)"
18
+ git submodule sync --recursive
19
+ git submodule update --init --force --recursive
20
+ - name: Set up Ruby 2.7
21
+ uses: actions/setup-ruby@v1
22
+ with:
23
+ ruby-version: '2.7'
24
+ - name: Build and test with Rake
25
+ run: |
26
+ gem install bundler
27
+ bundle install
28
+ bundle exec rake
29
+ - name: Coveralls GitHub Action
30
+ uses: coverallsapp/github-action@v1.1.2
31
+ with:
32
+ github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,3 +1,7 @@
1
+ # 0.2.2
2
+ - Fix bug that caused segmentation fault due to garbage collection ([#4](https://github.com/yoshoku/numo-pocketfft/pull/4)).
3
+ - Fix some configuration files.
4
+
1
5
  # 0.2.1
2
6
  - Fix the link to the document.
3
7
  - Several documentation improvements.
data/Gemfile CHANGED
@@ -2,3 +2,9 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in numo-pocketfft.gemspec
4
4
  gemspec
5
+
6
+ gem 'rake', '~> 12.0'
7
+ gem 'rake-compiler', '~> 1.0'
8
+ gem 'rspec', '~> 3.0'
9
+ gem 'simplecov', '~> 0.19'
10
+ gem 'simplecov-lcov', '~> 0.8'
@@ -1,4 +1,4 @@
1
- Copyright (c) 2019 Atsushi Tatsuma
1
+ Copyright (c) 2019-2021 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Numo::Pocketfft
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/numo-pocketfft.svg)](https://badge.fury.io/rb/numo-pocketfft)
4
- [![Build Status](https://travis-ci.org/yoshoku/numo-pocketfft.svg?branch=master)](https://travis-ci.org/yoshoku/numo-pocketfft)
3
+ [![Build Status](https://github.com/yoshoku/numo-pocketfft/workflows/build/badge.svg)](https://github.com/yoshoku/numo-pocketfft/actions?query=workflow%3Abuild)
5
4
  [![Coverage Status](https://coveralls.io/repos/github/yoshoku/numo-pocketfft/badge.svg?branch=master)](https://coveralls.io/github/yoshoku/numo-pocketfft?branch=master)
6
- [![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/numo-liblinear/blob/master/LICENSE.txt)
5
+ [![Gem Version](https://badge.fury.io/rb/numo-pocketfft.svg)](https://badge.fury.io/rb/numo-pocketfft)
6
+ [![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/numo-pocketfft/blob/main/LICENSE.txt)
7
7
  [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](https://yoshoku.github.io/numo-pocketfft/doc/)
8
8
 
9
9
  Numo::Pocketfft provides functions for performing descrete Fourier Transform with
@@ -75,4 +75,4 @@ The gem is available as open source under the terms of the [BSD-3-Clause License
75
75
 
76
76
  ## Code of Conduct
77
77
 
78
- Everyone interacting in the Numo::Pocketfft project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yoshoku/numo-pocketfft/blob/master/CODE_OF_CONDUCT.md).
78
+ Everyone interacting in the Numo::Pocketfft project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yoshoku/numo-pocketfft/blob/main/CODE_OF_CONDUCT.md).
@@ -60,6 +60,8 @@ VALUE numo_pocketfft_fft(VALUE x_val, int is_forward)
60
60
  destroy_cfft_plan(plan);
61
61
  }
62
62
 
63
+ RB_GC_GUARD(x_val);
64
+
63
65
  if (fail) {
64
66
  rb_raise(rb_eNoMemError, "Failed to allocate memory in function of pocketfft.");
65
67
  rb_funcall(z_val, rb_intern("free"), 0);
@@ -152,6 +154,8 @@ static VALUE numo_pocketfft_rfft(VALUE self, VALUE x_val)
152
154
  destroy_rfft_plan(plan);
153
155
  }
154
156
 
157
+ RB_GC_GUARD(x_val);
158
+
155
159
  if (fail) {
156
160
  rb_raise(rb_eNoMemError, "Failed to allocate memory in function of pocketfft.");
157
161
  rb_funcall(z_val, rb_intern("free"), 0);
@@ -226,6 +230,8 @@ static VALUE numo_pocketfft_irfft(VALUE self, VALUE x_val)
226
230
  destroy_rfft_plan(plan);
227
231
  }
228
232
 
233
+ RB_GC_GUARD(x_val);
234
+
229
235
  if (fail) {
230
236
  rb_raise(rb_eNoMemError, "Failed to allocate memory in function of pocketfft.");
231
237
  rb_funcall(z_val, rb_intern("free"), 0);
@@ -5,6 +5,6 @@ module Numo
5
5
  # Numo::Pocketfft is the module that has functions for Fourier transform.
6
6
  module Pocketfft
7
7
  # The version of Numo::Pocketfft you are using.
8
- VERSION = '0.2.1'
8
+ VERSION = '0.2.2'
9
9
  end
10
10
  end
@@ -39,17 +39,11 @@ Gem::Specification.new do |spec|
39
39
 
40
40
  spec.metadata = {
41
41
  'homepage_uri' => 'https://github.com/yoshoku/numo-pocketfft',
42
- 'changelog_uri' => 'https://github.com/yoshoku/numo-pocketfft/blob/master/CHANGELOG.md',
42
+ 'changelog_uri' => 'https://github.com/yoshoku/numo-pocketfft/blob/main/CHANGELOG.md',
43
43
  'source_code_uri' => 'https://github.com/yoshoku/numo-pocketfft',
44
44
  'documentation_uri' => 'https://yoshoku.github.io/numo-pocketfft/doc/',
45
45
  'bug_tracker_uri' => 'https://github.com/yoshoku/numo-pocketfft/issues'
46
46
  }
47
47
 
48
48
  spec.add_runtime_dependency 'numo-narray', '~> 0.9.1'
49
-
50
- spec.add_development_dependency 'bundler', '~> 2.0'
51
- spec.add_development_dependency 'coveralls', '~> 0.8'
52
- spec.add_development_dependency 'rake', '~> 10.0'
53
- spec.add_development_dependency 'rake-compiler', '~> 1.0'
54
- spec.add_development_dependency 'rspec', '~> 3.0'
55
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-pocketfft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-06 00:00:00.000000000 Z
11
+ date: 2021-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-narray
@@ -24,80 +24,10 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.9.1
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
- - !ruby/object:Gem::Dependency
42
- name: coveralls
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.8'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.8'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '10.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '10.0'
69
- - !ruby/object:Gem::Dependency
70
- name: rake-compiler
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '3.0'
97
27
  description: 'Numo::Pocketfft provides functions for descrete Fourier Transform based
98
28
  on pocketfft.
99
29
 
100
- '
30
+ '
101
31
  email:
102
32
  - yoshoku@outlook.com
103
33
  executables: []
@@ -106,18 +36,17 @@ extensions:
106
36
  extra_rdoc_files: []
107
37
  files:
108
38
  - ".coveralls.yml"
39
+ - ".github/workflows/build.yml"
40
+ - ".github/workflows/coverage.yml"
109
41
  - ".gitignore"
110
42
  - ".gitmodules"
111
43
  - ".rspec"
112
- - ".travis.yml"
113
44
  - CHANGELOG.md
114
45
  - CODE_OF_CONDUCT.md
115
46
  - Gemfile
116
47
  - LICENSE.txt
117
48
  - README.md
118
49
  - Rakefile
119
- - bin/console
120
- - bin/setup
121
50
  - ext/numo/pocketfft/extconf.rb
122
51
  - ext/numo/pocketfft/pocketfft/.gitlab-ci.yml
123
52
  - ext/numo/pocketfft/pocketfft/LICENSE.md
@@ -136,11 +65,11 @@ licenses:
136
65
  - BSD-3-Clause
137
66
  metadata:
138
67
  homepage_uri: https://github.com/yoshoku/numo-pocketfft
139
- changelog_uri: https://github.com/yoshoku/numo-pocketfft/blob/master/CHANGELOG.md
68
+ changelog_uri: https://github.com/yoshoku/numo-pocketfft/blob/main/CHANGELOG.md
140
69
  source_code_uri: https://github.com/yoshoku/numo-pocketfft
141
70
  documentation_uri: https://yoshoku.github.io/numo-pocketfft/doc/
142
71
  bug_tracker_uri: https://github.com/yoshoku/numo-pocketfft/issues
143
- post_install_message:
72
+ post_install_message:
144
73
  rdoc_options: []
145
74
  require_paths:
146
75
  - lib
@@ -155,9 +84,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
84
  - !ruby/object:Gem::Version
156
85
  version: '0'
157
86
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 2.6.14.4
160
- signing_key:
87
+ rubygems_version: 3.1.4
88
+ signing_key:
161
89
  specification_version: 4
162
90
  summary: Numo::Pocketfft provides functions for descrete Fourier Transform based on
163
91
  pocketfft.
@@ -1,13 +0,0 @@
1
- ---
2
- sudo: true
3
- os: linux
4
- dist: bionic
5
- language: ruby
6
- cache: bundler
7
- rvm:
8
- - '2.4'
9
- - '2.5'
10
- - '2.6'
11
- before_install:
12
- - sudo apt-get install -y gcc
13
- - gem install bundler -v 2.0.2