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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b3599445e17b270ef62828929231b129d12bc263e8492a5b4b6c7768107cc63
4
- data.tar.gz: f902d9c0c471fd6a32b0e388292468357a2b9828dbe5c2837d5ecbace488351c
3
+ metadata.gz: ac58b88ae88791564ef1153354e10da361bc4145961d5b14aa7d58a0f7eb810f
4
+ data.tar.gz: c98b9b9ac97a1557f0497322d9eacfd9979a9a72949847b74448679bb5570aca
5
5
  SHA512:
6
- metadata.gz: 113dda84cc8bf37ee2013b1314a7a3aed1be8746481c6dae136026a376dd5c77c7698775757c2e07bf34a9b6fbf98f4fc7e569ed0085b2c8c6e215328f4958af
7
- data.tar.gz: e5a1dc3ed30d54dddef769cd9f98e790f2aae0ab781f8be599f46015335387f9afb6c79ab44f91d826119bd2dbc41ba070376784ea32a1d3d8cf25b1aff324a6
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
- Rake::ExtensionTask.new('numo/narray')
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]
@@ -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')
@@ -13,8 +13,8 @@ extern "C" {
13
13
  #endif
14
14
  #endif
15
15
 
16
- #define NARRAY_VERSION "0.9.8"
17
- #define NARRAY_VERSION_CODE 980
16
+ #define NARRAY_VERSION "0.9.9"
17
+ #define NARRAY_VERSION_CODE 990
18
18
 
19
19
  #include <math.h>
20
20
  #include "numo/compat.h"
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../narray'
data/lib/numo/narray.rb CHANGED
@@ -1,4 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "numo/narray.#{RUBY_PLATFORM.include?('darwin') ? 'bundle' : 'so'}"
4
- require 'numo/narray/extra'
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
@@ -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 = 'Numo::NArray Alternative is an experimental project forked from Numo::NArray.'
23
- spec.summary = 'Numo::NArray Alternative is an experimental project forked from Numo::NArray.'
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
- spec.metadata['rubygems_mfa_required'] = 'true'
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.8
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: Numo::NArray Alternative is an experimental project forked from Numo::NArray.
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.8/
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 an experimental project forked from Numo::NArray.
155
+ summary: Numo::NArray Alternative is a project forked from Numo::NArray.
145
156
  test_files: []