numo-narray-alt 0.9.8 → 0.9.9
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 +4 -4
- data/Rakefile +7 -1
- data/ext/numo/narray/extconf.rb +3 -3
- data/ext/numo/narray/numo/narray.h +2 -2
- data/lib/numo/narray/alt.rb +3 -0
- data/lib/numo/narray.rb +15 -2
- data/numo-narray-alt.gemspec +18 -5
- metadata +16 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac58b88ae88791564ef1153354e10da361bc4145961d5b14aa7d58a0f7eb810f
|
|
4
|
+
data.tar.gz: c98b9b9ac97a1557f0497322d9eacfd9979a9a72949847b74448679bb5570aca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b62119454ea0c21d7ac79f5f24ade6fff1201ce1d91148856ab0a017d9d63acb1755d4c9aa1a159942d99b13a19b7f2d13611ec16ba039defb6498f0656f3264
|
|
7
|
+
data.tar.gz: 154b2cc17b24d753e81f4f98b910bec75b698272463351dc0a38071037c420f565164231f94e270bfc41bbbb12829d7154632f3821dc89ce1c821e66b27e891f
|
data/Rakefile
CHANGED
|
@@ -39,6 +39,12 @@ else
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
require 'rake/extensiontask'
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
GEMSPEC = Gem::Specification.load('numo-narray-alt.gemspec')
|
|
44
|
+
|
|
45
|
+
Rake::ExtensionTask.new('numo/narray', GEMSPEC) do |ext|
|
|
46
|
+
ext.ext_dir = 'ext/numo/narray'
|
|
47
|
+
ext.lib_dir = 'lib/numo/narray'
|
|
48
|
+
end
|
|
43
49
|
|
|
44
50
|
task default: %i[clobber compile test]
|
data/ext/numo/narray/extconf.rb
CHANGED
|
@@ -17,8 +17,8 @@ rm_f d('numo/extconf.h')
|
|
|
17
17
|
$INCFLAGS = "-Itypes #{$INCFLAGS}"
|
|
18
18
|
$VPATH << '$(srcdir)/src'
|
|
19
19
|
|
|
20
|
-
$INSTALLFILES = Dir.glob(%w[numo/*.h numo/types/*.h]).map { |x| [x, '$(archdir)'] }
|
|
21
|
-
$INSTALLFILES << ['numo/extconf.h', '$(archdir)']
|
|
20
|
+
$INSTALLFILES = Dir.glob(%w[numo/*.h numo/types/*.h]).map { |x| [x, '$(archdir)/../'] }
|
|
21
|
+
$INSTALLFILES << ['numo/extconf.h', '$(archdir)/../']
|
|
22
22
|
if /cygwin|mingw/.match?(RUBY_PLATFORM)
|
|
23
23
|
$DLDFLAGS << ' -Wl,--export-all,--out-implib=libnarray.a'
|
|
24
24
|
$INSTALLFILES << ['./libnarray.a', '$(archdir)']
|
|
@@ -81,4 +81,4 @@ $objs = srcs.collect { |i| "#{i}.o" }
|
|
|
81
81
|
|
|
82
82
|
create_header d('numo/extconf.h')
|
|
83
83
|
|
|
84
|
-
create_makefile('numo/narray')
|
|
84
|
+
create_makefile('numo/narray/narray')
|
data/lib/numo/narray.rb
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
require_relative 'narray/narray'
|
|
4
|
+
require_relative 'narray/extra'
|
|
5
|
+
|
|
6
|
+
module Numo
|
|
7
|
+
class NArray
|
|
8
|
+
# Constant to indicate whether it is numo-narray-alt.
|
|
9
|
+
ALTERNATIVE = true
|
|
10
|
+
|
|
11
|
+
# Returns true if this is numo-narray-alt.
|
|
12
|
+
# @return [Boolean]
|
|
13
|
+
def self.alternative?
|
|
14
|
+
ALTERNATIVE
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/numo-narray-alt.gemspec
CHANGED
|
@@ -14,25 +14,38 @@ open('ext/numo/narray/numo/narray.h') do |f|
|
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
Gem::Specification.new do |spec|
|
|
17
|
+
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
18
18
|
spec.name = 'numo-narray-alt'
|
|
19
19
|
spec.version = NARRAY_VERSION
|
|
20
20
|
spec.authors = ['yoshoku']
|
|
21
21
|
spec.email = ['yoshoku@outlook.com']
|
|
22
|
-
spec.description =
|
|
23
|
-
|
|
22
|
+
spec.description = <<~DESC
|
|
23
|
+
Numo::NArray Alternative is a project forked from Numo::NArray.
|
|
24
|
+
The project aims to support the latest Ruby features,
|
|
25
|
+
release bug fixes as quickly as possible, and adopt modern development practices.
|
|
26
|
+
DESC
|
|
27
|
+
spec.summary = 'Numo::NArray Alternative is a project forked from Numo::NArray.'
|
|
24
28
|
spec.homepage = 'https://github.com/yoshoku/numo-narray-alt'
|
|
25
29
|
spec.license = 'BSD-3-Clause'
|
|
26
30
|
spec.required_ruby_version = '>= 2.2'
|
|
27
31
|
|
|
28
32
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
29
|
-
spec.metadata['source_code_uri'] = spec.homepage
|
|
30
33
|
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
|
31
34
|
spec.metadata['documentation_uri'] = "https://gemdocs.org/gems/#{spec.name}/#{spec.version}/"
|
|
35
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
32
36
|
|
|
33
37
|
spec.files = `git ls-files Gemfile LICENSE README.md Rakefile lib ext numo-narray-alt.gemspec`.split($INPUT_RECORD_SEPARATOR) # rubocop:disable Layout/LineLength
|
|
34
38
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
35
39
|
spec.require_paths = ['lib']
|
|
36
40
|
spec.extensions = ['ext/numo/narray/extconf.rb']
|
|
37
|
-
|
|
41
|
+
|
|
42
|
+
spec.post_install_message = <<~MESSAGE
|
|
43
|
+
===
|
|
44
|
+
Thank you for installing 'numo-narray-alt'.
|
|
45
|
+
|
|
46
|
+
NOTICE: 'numo-narray-alt' is an alternative implementation of 'numo-narray'.
|
|
47
|
+
Having both gems installed may lead to conflicts and unexpected behavior.
|
|
48
|
+
If you encounter any issues, please consider uninstalling one of them.
|
|
49
|
+
===
|
|
50
|
+
MESSAGE
|
|
38
51
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: numo-narray-alt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yoshoku
|
|
@@ -9,7 +9,10 @@ bindir: bin
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
|
-
description:
|
|
12
|
+
description: |
|
|
13
|
+
Numo::NArray Alternative is a project forked from Numo::NArray.
|
|
14
|
+
The project aims to support the latest Ruby features,
|
|
15
|
+
release bug fixes as quickly as possible, and adopt modern development practices.
|
|
13
16
|
email:
|
|
14
17
|
- yoshoku@outlook.com
|
|
15
18
|
executables: []
|
|
@@ -114,6 +117,7 @@ files:
|
|
|
114
117
|
- ext/numo/narray/step.c
|
|
115
118
|
- ext/numo/narray/struct.c
|
|
116
119
|
- lib/numo/narray.rb
|
|
120
|
+
- lib/numo/narray/alt.rb
|
|
117
121
|
- lib/numo/narray/extra.rb
|
|
118
122
|
- numo-narray-alt.gemspec
|
|
119
123
|
homepage: https://github.com/yoshoku/numo-narray-alt
|
|
@@ -121,10 +125,17 @@ licenses:
|
|
|
121
125
|
- BSD-3-Clause
|
|
122
126
|
metadata:
|
|
123
127
|
homepage_uri: https://github.com/yoshoku/numo-narray-alt
|
|
124
|
-
source_code_uri: https://github.com/yoshoku/numo-narray-alt
|
|
125
128
|
changelog_uri: https://github.com/yoshoku/numo-narray-alt/blob/main/CHANGELOG.md
|
|
126
|
-
documentation_uri: https://gemdocs.org/gems/numo-narray-alt/0.9.
|
|
129
|
+
documentation_uri: https://gemdocs.org/gems/numo-narray-alt/0.9.9/
|
|
127
130
|
rubygems_mfa_required: 'true'
|
|
131
|
+
post_install_message: |
|
|
132
|
+
===
|
|
133
|
+
Thank you for installing 'numo-narray-alt'.
|
|
134
|
+
|
|
135
|
+
NOTICE: 'numo-narray-alt' is an alternative implementation of 'numo-narray'.
|
|
136
|
+
Having both gems installed may lead to conflicts and unexpected behavior.
|
|
137
|
+
If you encounter any issues, please consider uninstalling one of them.
|
|
138
|
+
===
|
|
128
139
|
rdoc_options: []
|
|
129
140
|
require_paths:
|
|
130
141
|
- lib
|
|
@@ -141,5 +152,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
152
|
requirements: []
|
|
142
153
|
rubygems_version: 3.7.2
|
|
143
154
|
specification_version: 4
|
|
144
|
-
summary: Numo::NArray Alternative is
|
|
155
|
+
summary: Numo::NArray Alternative is a project forked from Numo::NArray.
|
|
145
156
|
test_files: []
|