multiarray 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +1 -87
  3. data/config.rb +18 -0
  4. data/lib/multiarray/gcccontext.rb +4 -1
  5. metadata +16 -34
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1cfd156f67cfd8322044cfd30950a8381cf56bdf
4
+ data.tar.gz: fc574eb265a18224775a659efbe594e09a39819b
5
+ SHA512:
6
+ metadata.gz: b6bd546bd8b669af8152733a58a5e6933c6b426e8086da346015d96e1a402a9ee75f4d4ea799f7b71aca1b86d4853cb962730b2ed8c4e1af5741840ef520d7da
7
+ data.tar.gz: 10d17c2e73f628ea628675e7e710803d0429f3a62456180cc1a449c75070f5b098961785d6b9b02f8a6ab90d0549b7a0a3f785bb7816051bc579ea13df316274
data/Rakefile CHANGED
@@ -4,22 +4,7 @@ require 'rake/clean'
4
4
  require 'rake/testtask'
5
5
  require 'rake/packagetask'
6
6
  require 'rbconfig'
7
-
8
- PKG_NAME = 'multiarray'
9
- PKG_VERSION = '1.0.3'
10
- RB_FILES = FileList[ 'lib/**/*.rb' ]
11
- TC_FILES = FileList[ 'test/tc_*.rb' ]
12
- TS_FILES = FileList[ 'test/ts_*.rb' ]
13
- PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
14
- RB_FILES + TS_FILES + TC_FILES
15
- BIN_FILES = [ 'README.md', 'COPYING', '.document' ] +
16
- RB_FILES + TS_FILES + TC_FILES
17
- SUMMARY = %q{Multi-dimensional and uniform Ruby arrays}
18
- DESCRIPTION = %q{This Ruby-extension defines Hornetseye::MultiArray and other native datatypes. Hornetseye::MultiArray provides multi-dimensional Ruby arrays with elements of same type. The extension is designed to be mostly compatible with Masahiro Tanaka's NArray. However it allows the definition of custom element types and operations on them. This work was also inspired by Ronald Garcia's boost::multi_array and by Todd Veldhuizen's Blitz++.}
19
- LICENSE = 'GPL-3+'
20
- AUTHOR = %q{Jan Wedekind}
21
- EMAIL = %q{jan@wedesoft.de}
22
- HOMEPAGE = %q{http://wedesoft.github.com/multiarray/}
7
+ require_relative 'config'
23
8
 
24
9
  $SITELIBDIR = RbConfig::CONFIG[ 'sitelibdir' ]
25
10
 
@@ -67,75 +52,4 @@ Rake::PackageTask.new PKG_NAME, PKG_VERSION do |p|
67
52
  p.package_files = PKG_FILES
68
53
  end
69
54
 
70
- begin
71
- require 'rubygems'
72
- require 'rubygems/builder'
73
- $SPEC = Gem::Specification.new do |s|
74
- s.name = PKG_NAME
75
- s.version = PKG_VERSION
76
- s.platform = Gem::Platform::RUBY
77
- s.date = Date.today.to_s
78
- s.summary = SUMMARY
79
- s.description = DESCRIPTION
80
- s.license = LICENSE
81
- s.author = AUTHOR
82
- s.email = EMAIL
83
- s.homepage = HOMEPAGE
84
- s.files = PKG_FILES
85
- s.test_files = TC_FILES
86
- s.require_paths = [ 'lib' ]
87
- s.rubyforge_project = %q{hornetseye}
88
- s.extensions = %w{Rakefile}
89
- s.has_rdoc = 'yard'
90
- s.extra_rdoc_files = []
91
- s.rdoc_options = %w{--no-private}
92
- s.add_dependency %q<malloc>, [ '~> 1.1' ]
93
- s.add_development_dependency %q{rake}
94
- end
95
- GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
96
- $BINSPEC = Gem::Specification.new do |s|
97
- s.name = PKG_NAME
98
- s.version = PKG_VERSION
99
- s.platform = Gem::Platform::CURRENT
100
- s.date = Date.today.to_s
101
- s.summary = SUMMARY
102
- s.description = DESCRIPTION
103
- s.license = LICENSE
104
- s.author = AUTHOR
105
- s.email = EMAIL
106
- s.homepage = HOMEPAGE
107
- s.files = BIN_FILES
108
- s.test_files = TC_FILES
109
- s.require_paths = [ 'lib' ]
110
- s.rubyforge_project = %q{hornetseye}
111
- s.has_rdoc = 'yard'
112
- s.extra_rdoc_files = []
113
- s.rdoc_options = %w{--no-private}
114
- s.add_dependency %q<malloc>, [ '~> 1.1' ]
115
- end
116
- GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
117
- desc "Build the gem file #{GEM_SOURCE}"
118
- task :gem => [ "pkg/#{GEM_SOURCE}" ]
119
- file "pkg/#{GEM_SOURCE}" => [ 'pkg' ] + $SPEC.files do
120
- when_writing 'Creating GEM' do
121
- Gem::Builder.new( $SPEC ).build
122
- verbose true do
123
- FileUtils.mv GEM_SOURCE, "pkg/#{GEM_SOURCE}"
124
- end
125
- end
126
- end
127
- desc "Build the gem file #{GEM_BINARY}"
128
- task :gem_binary => [ "pkg/#{GEM_BINARY}" ]
129
- file "pkg/#{GEM_BINARY}" => [ 'pkg' ] + $BINSPEC.files do
130
- when_writing 'Creating binary GEM' do
131
- Gem::Builder.new( $BINSPEC ).build
132
- verbose true do
133
- FileUtils.mv GEM_BINARY, "pkg/#{GEM_BINARY}"
134
- end
135
- end
136
- end
137
- rescue LoadError
138
- STDERR.puts 'Please install \'rubygems\' if you want to create Gem packages'
139
- end
140
-
141
55
  CLOBBER.include 'doc', '.yardoc'
@@ -0,0 +1,18 @@
1
+ require 'rake'
2
+
3
+ PKG_NAME = 'multiarray'
4
+ PKG_VERSION = '1.0.4'
5
+ RB_FILES = FileList[ 'config.rb', 'lib/**/*.rb' ]
6
+ TC_FILES = FileList[ 'test/tc_*.rb' ]
7
+ TS_FILES = FileList[ 'test/ts_*.rb' ]
8
+ PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
9
+ RB_FILES + TS_FILES + TC_FILES
10
+ BIN_FILES = [ 'README.md', 'COPYING', '.document' ] +
11
+ RB_FILES + TS_FILES + TC_FILES
12
+ SUMMARY = %q{Multi-dimensional and uniform Ruby arrays}
13
+ DESCRIPTION = %q{This Ruby-extension defines Hornetseye::MultiArray and other native datatypes. Hornetseye::MultiArray provides multi-dimensional Ruby arrays with elements of same type. The extension is designed to be mostly compatible with Masahiro Tanaka's NArray. However it allows the definition of custom element types and operations on them. This work was also inspired by Ronald Garcia's boost::multi_array and by Todd Veldhuizen's Blitz++.}
14
+ LICENSE = 'GPL-3+'
15
+ AUTHOR = %q{Jan Wedekind}
16
+ EMAIL = %q{jan@wedesoft.de}
17
+ HOMEPAGE = %q{http://wedesoft.github.com/multiarray/}
18
+
@@ -27,7 +27,10 @@ module Hornetseye
27
27
  # @private
28
28
  CFG = RbConfig::CONFIG
29
29
 
30
- if CFG[ 'rubyhdrdir' ]
30
+ if CFG['rubyarchhdrdir']
31
+ CFLAGS = "-DNDEBUG -Wno-unused-function #{CFG[ 'CFLAGS' ]} " +
32
+ "-I#{CFG['rubyhdrdir']} -I#{CFG['rubyarchhdrdir']}"
33
+ elsif CFG[ 'rubyhdrdir' ]
31
34
  # GCC compiler flags
32
35
  #
33
36
  # @private
metadata CHANGED
@@ -1,48 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiarray
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
5
- prerelease:
4
+ version: 1.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jan Wedekind
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: malloc
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.1'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.1'
30
- - !ruby/object:Gem::Dependency
31
- name: rake
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
27
  description: This Ruby-extension defines Hornetseye::MultiArray and other native datatypes.
47
28
  Hornetseye::MultiArray provides multi-dimensional Ruby arrays with elements of same
48
29
  type. The extension is designed to be mostly compatible with Masahiro Tanaka's NArray.
@@ -55,10 +36,11 @@ extensions:
55
36
  - Rakefile
56
37
  extra_rdoc_files: []
57
38
  files:
58
- - Rakefile
59
- - README.md
39
+ - ".document"
60
40
  - COPYING
61
- - .document
41
+ - README.md
42
+ - Rakefile
43
+ - config.rb
62
44
  - lib/multiarray.rb
63
45
  - lib/multiarray/argument.rb
64
46
  - lib/multiarray/bool.rb
@@ -99,7 +81,6 @@ files:
99
81
  - lib/multiarray/store.rb
100
82
  - lib/multiarray/unmask.rb
101
83
  - lib/multiarray/variable.rb
102
- - test/ts_multiarray.rb
103
84
  - test/tc_bool.rb
104
85
  - test/tc_compile.rb
105
86
  - test/tc_float.rb
@@ -109,31 +90,31 @@ files:
109
90
  - test/tc_object.rb
110
91
  - test/tc_rgb.rb
111
92
  - test/tc_sequence.rb
93
+ - test/ts_multiarray.rb
112
94
  homepage: http://wedesoft.github.com/multiarray/
113
95
  licenses:
114
96
  - GPL-3+
97
+ metadata: {}
115
98
  post_install_message:
116
99
  rdoc_options:
117
- - --no-private
100
+ - "--no-private"
118
101
  require_paths:
119
102
  - lib
120
103
  required_ruby_version: !ruby/object:Gem::Requirement
121
- none: false
122
104
  requirements:
123
- - - ! '>='
105
+ - - ">="
124
106
  - !ruby/object:Gem::Version
125
107
  version: '0'
126
108
  required_rubygems_version: !ruby/object:Gem::Requirement
127
- none: false
128
109
  requirements:
129
- - - ! '>='
110
+ - - ">="
130
111
  - !ruby/object:Gem::Version
131
112
  version: '0'
132
113
  requirements: []
133
114
  rubyforge_project: hornetseye
134
- rubygems_version: 1.8.23
115
+ rubygems_version: 2.4.6
135
116
  signing_key:
136
- specification_version: 3
117
+ specification_version: 4
137
118
  summary: Multi-dimensional and uniform Ruby arrays
138
119
  test_files:
139
120
  - test/tc_bool.rb
@@ -145,3 +126,4 @@ test_files:
145
126
  - test/tc_object.rb
146
127
  - test/tc_rgb.rb
147
128
  - test/tc_sequence.rb
129
+ has_rdoc: yard