hornetseye-linalg 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +5 -99
  3. data/config.rb +22 -0
  4. metadata +30 -53
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9f8f3da84b9c5d4dc1f0ab945df09c817b988fa7
4
+ data.tar.gz: dd5ad39f7a8ac1bfe191f5807ae69e49406c4446
5
+ SHA512:
6
+ metadata.gz: 4e294461728547295a8452e6f2de62b9b3df90ab61963359ea205d0e17ea7c52e07a130854eeaff28b9a894df17f9a267b7126e860518ab3993a84b61b276713
7
+ data.tar.gz: 265f84b11412f8ac157d81a81c08973e70eefa18c3d0ddeb521ab982f6f447950815d9f95f5625a7eacf77317b68bdc2bb3325568b644e3cc69f14f72c61326c
data/Rakefile CHANGED
@@ -5,33 +5,14 @@ require 'rake/testtask'
5
5
  require 'rake/packagetask'
6
6
  require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
-
9
- PKG_NAME = 'hornetseye-linalg'
10
- PKG_VERSION = '1.0.2'
11
- CFG = RbConfig::CONFIG
12
- CXX = ENV[ 'CXX' ] || 'g++'
13
- RB_FILES = FileList[ 'lib/**/*.rb' ]
14
- CC_FILES = FileList[ 'ext/*.cc' ]
15
- HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
16
- TC_FILES = FileList[ 'test/tc_*.rb' ]
17
- TS_FILES = FileList[ 'test/ts_*.rb' ]
18
- SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
19
- PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
20
- RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
21
- BIN_FILES = [ 'README.md', 'COPYING', '.document', SO_FILE ] +
22
- RB_FILES + TS_FILES + TC_FILES
23
- SUMMARY = %q{Linalg integration for Hornetseye}
24
- DESCRIPTION = %q{This Ruby extension provides conversion from Hornetseye::MultiArray to Linalg::DMatrix and vice versa.}
25
- LICENSE = 'GPL-3+'
26
- AUTHOR = %q{Jan Wedekind}
27
- EMAIL = %q{jan@wedesoft.de}
28
- HOMEPAGE = %q{http://wedesoft.github.com/hornetseye-linalg/}
8
+ require_relative 'config'
29
9
 
30
10
  OBJ = CC_FILES.ext 'o'
31
11
  $CXXFLAGS = "-DNDEBUG #{CFG[ 'CPPFLAGS' ]} #{CFG[ 'CFLAGS' ]}"
32
- if CFG[ 'rubyhdrdir' ]
33
- $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[ 'rubyhdrdir' ]} " +
34
- "-I#{CFG[ 'rubyhdrdir' ]}/#{CFG[ 'arch' ]}"
12
+ if CFG['rubyarchhdrdir']
13
+ $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG['rubyhdrdir']} -I#{CFG['rubyarchhdrdir']}"
14
+ elsif CFG['rubyhdrdir']
15
+ $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG['rubyhdrdir' ]} -I#{CFG['rubyhdrdir']}/#{CFG['arch']}"
35
16
  else
36
17
  $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[ 'archdir' ]}"
37
18
  end
@@ -93,81 +74,6 @@ Rake::PackageTask.new PKG_NAME, PKG_VERSION do |p|
93
74
  p.package_files = PKG_FILES
94
75
  end
95
76
 
96
- begin
97
- require 'rubygems'
98
- require 'rubygems/builder'
99
- $SPEC = Gem::Specification.new do |s|
100
- s.name = PKG_NAME
101
- s.version = PKG_VERSION
102
- s.platform = Gem::Platform::RUBY
103
- s.date = Date.today.to_s
104
- s.summary = SUMMARY
105
- s.description = DESCRIPTION
106
- s.license = LICENSE
107
- s.author = AUTHOR
108
- s.email = EMAIL
109
- s.homepage = HOMEPAGE
110
- s.files = PKG_FILES
111
- s.test_files = TC_FILES
112
- s.require_paths = [ 'lib', 'ext' ]
113
- s.rubyforge_project = %q{hornetseye}
114
- s.extensions = %w{Rakefile}
115
- s.has_rdoc = 'yard'
116
- s.extra_rdoc_files = []
117
- s.rdoc_options = %w{--no-private}
118
- s.add_dependency %<malloc>, [ '~> 1.1' ]
119
- s.add_dependency %<multiarray>, [ '~> 1.0' ]
120
- s.add_dependency %<hornetseye-frame>, [ '~> 1.0' ]
121
- s.add_development_dependency %q{rake}
122
- end
123
- GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
124
- $BINSPEC = Gem::Specification.new do |s|
125
- s.name = PKG_NAME
126
- s.version = PKG_VERSION
127
- s.platform = Gem::Platform::CURRENT
128
- s.date = Date.today.to_s
129
- s.summary = SUMMARY
130
- s.description = DESCRIPTION
131
- s.license = LICENSE
132
- s.author = AUTHOR
133
- s.email = EMAIL
134
- s.homepage = HOMEPAGE
135
- s.files = BIN_FILES
136
- s.test_files = TC_FILES
137
- s.require_paths = [ 'lib', 'ext' ]
138
- s.rubyforge_project = %q{hornetseye}
139
- s.has_rdoc = 'yard'
140
- s.extra_rdoc_files = []
141
- s.rdoc_options = %w{--no-private}
142
- s.add_dependency %<malloc>, [ '~> 1.1' ]
143
- s.add_dependency %<multiarray>, [ '~> 1.0' ]
144
- s.add_dependency %<hornetseye-frame>, [ '~> 1.0' ]
145
- end
146
- GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
147
- desc "Build the gem file #{GEM_SOURCE}"
148
- task :gem => [ "pkg/#{GEM_SOURCE}" ]
149
- file "pkg/#{GEM_SOURCE}" => [ 'pkg' ] + $SPEC.files do
150
- when_writing 'Creating GEM' do
151
- Gem::Builder.new( $SPEC ).build
152
- verbose true do
153
- FileUtils.mv GEM_SOURCE, "pkg/#{GEM_SOURCE}"
154
- end
155
- end
156
- end
157
- desc "Build the gem file #{GEM_BINARY}"
158
- task :gem_binary => [ "pkg/#{GEM_BINARY}" ]
159
- file "pkg/#{GEM_BINARY}" => [ 'pkg' ] + $BINSPEC.files do
160
- when_writing 'Creating binary GEM' do
161
- Gem::Builder.new( $BINSPEC ).build
162
- verbose true do
163
- FileUtils.mv GEM_BINARY, "pkg/#{GEM_BINARY}"
164
- end
165
- end
166
- end
167
- rescue LoadError
168
- STDERR.puts 'Please install \'rubygems\' if you want to create Gem packages'
169
- end
170
-
171
77
  rule '.o' => '.cc' do |t|
172
78
  sh "#{CXX} #{$CXXFLAGS} -c -o #{t.name} #{t.source}"
173
79
  end
data/config.rb ADDED
@@ -0,0 +1,22 @@
1
+ require 'rake'
2
+
3
+ PKG_NAME = 'hornetseye-linalg'
4
+ PKG_VERSION = '1.0.3'
5
+ CFG = RbConfig::CONFIG
6
+ CXX = ENV[ 'CXX' ] || 'g++'
7
+ RB_FILES = ['config.rb'] + FileList[ 'lib/**/*.rb' ]
8
+ CC_FILES = FileList[ 'ext/*.cc' ]
9
+ HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
10
+ TC_FILES = FileList[ 'test/tc_*.rb' ]
11
+ TS_FILES = FileList[ 'test/ts_*.rb' ]
12
+ SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
13
+ PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
14
+ RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
15
+ BIN_FILES = [ 'README.md', 'COPYING', '.document', SO_FILE ] +
16
+ RB_FILES + TS_FILES + TC_FILES
17
+ SUMMARY = %q{Linalg integration for Hornetseye}
18
+ DESCRIPTION = %q{This Ruby extension provides conversion from Hornetseye::MultiArray to Linalg::DMatrix and vice versa.}
19
+ LICENSE = 'GPL-3+'
20
+ AUTHOR = %q{Jan Wedekind}
21
+ EMAIL = %q{jan@wedesoft.de}
22
+ HOMEPAGE = %q{http://wedesoft.github.com/hornetseye-linalg/}
metadata CHANGED
@@ -1,80 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hornetseye-linalg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jan Wedekind
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-30 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
27
  - !ruby/object:Gem::Dependency
31
28
  name: multiarray
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: hornetseye-frame
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.0'
62
- - !ruby/object:Gem::Dependency
63
- name: rake
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
55
  description: This Ruby extension provides conversion from Hornetseye::MultiArray to
79
56
  Linalg::DMatrix and vice versa.
80
57
  email: jan@wedesoft.de
@@ -83,53 +60,53 @@ extensions:
83
60
  - Rakefile
84
61
  extra_rdoc_files: []
85
62
  files:
86
- - Rakefile
87
- - README.md
63
+ - ".document"
88
64
  - COPYING
89
- - .document
90
- - lib/hornetseye_linalg_ext.rb
91
- - lib/hornetseye-linalg/node.rb
92
- - lib/hornetseye-linalg/dmatrix.rb
93
- - lib/hornetseye-linalg/smatrix.rb
94
- - ext/init.cc
95
- - ext/smatrix.cc
65
+ - README.md
66
+ - Rakefile
67
+ - config.rb
96
68
  - ext/dmatrix.cc
69
+ - ext/dmatrix.hh
70
+ - ext/error.hh
71
+ - ext/init.cc
97
72
  - ext/node.cc
98
- - ext/smatrix.hh
99
73
  - ext/node.hh
100
- - ext/rubytools.hh
101
- - ext/error.hh
102
74
  - ext/rubyinc.hh
103
- - ext/dmatrix.hh
75
+ - ext/rubytools.hh
104
76
  - ext/rubytools.tcc
105
- - test/ts_hornetseye_linalg.rb
77
+ - ext/smatrix.cc
78
+ - ext/smatrix.hh
79
+ - lib/hornetseye-linalg/dmatrix.rb
80
+ - lib/hornetseye-linalg/node.rb
81
+ - lib/hornetseye-linalg/smatrix.rb
82
+ - lib/hornetseye_linalg_ext.rb
106
83
  - test/tc_hornetseye_linalg.rb
84
+ - test/ts_hornetseye_linalg.rb
107
85
  homepage: http://wedesoft.github.com/hornetseye-linalg/
108
86
  licenses:
109
87
  - GPL-3+
88
+ metadata: {}
110
89
  post_install_message:
111
- rdoc_options:
112
- - --no-private
90
+ rdoc_options: []
113
91
  require_paths:
114
92
  - lib
115
93
  - ext
116
94
  required_ruby_version: !ruby/object:Gem::Requirement
117
- none: false
118
95
  requirements:
119
- - - ! '>='
96
+ - - ">="
120
97
  - !ruby/object:Gem::Version
121
98
  version: '0'
122
99
  required_rubygems_version: !ruby/object:Gem::Requirement
123
- none: false
124
100
  requirements:
125
- - - ! '>='
101
+ - - ">="
126
102
  - !ruby/object:Gem::Version
127
103
  version: '0'
128
104
  requirements: []
129
105
  rubyforge_project: hornetseye
130
- rubygems_version: 1.8.23
106
+ rubygems_version: 2.4.6
131
107
  signing_key:
132
- specification_version: 3
108
+ specification_version: 4
133
109
  summary: Linalg integration for Hornetseye
134
110
  test_files:
135
111
  - test/tc_hornetseye_linalg.rb
112
+ has_rdoc: yard