ruby-netcdf 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.ChangeLog.until20150117 +447 -0
- data/.gitignore +4 -6
- data/ChangeLog +392 -383
- data/LICENSE.txt +32 -57
- data/Rakefile +36 -1
- data/{extconf.rb → ext/numru/extconf.rb} +2 -2
- data/{netcdfraw.c → ext/numru/netcdfraw.c} +318 -320
- data/lib/numru/netcdf/version.rb +7 -0
- data/lib/numru/netcdf.rb +806 -0
- data/lib/{netcdf_miss.rb → numru/netcdf_miss.rb} +0 -0
- data/ruby-netcdf-bigmem.gemspec +29 -0
- data/ruby-netcdf.gemspec +8 -13
- data/test/aref_aset.rb +63 -33
- data/test/char_var.rb +32 -21
- data/test/clone.rb +46 -51
- data/test/create_tmp.rb +17 -13
- data/test/def_var_with_dim.rb +29 -11
- data/test/factor_offset.rb +77 -46
- data/test/putatt.rb +71 -49
- data/test/test.rb +197 -190
- data/test/type.rb +27 -11
- metadata +37 -24
- data/.rspec +0 -2
- data/.travis.yml +0 -3
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/lib/netcdf.rb +0 -808
- data/lib/version.rb +0 -5
data/LICENSE.txt
CHANGED
@@ -1,59 +1,34 @@
|
|
1
|
-
Ruby/NetCDF is copyrighted free software by Takeshi Horinouchi and
|
1
|
+
Ruby/NetCDF is copyrighted free software by Takeshi Horinouchi and
|
2
2
|
GFD Dennou Club.
|
3
|
-
You can redistribute it and/or modify it under either the terms of the
|
4
|
-
GPL, or the conditions below, which is idential to Ruby's license
|
5
|
-
(http://www.ruby-lang.org/en/LICENSE.txt):
|
6
3
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
instructions on where to get the original software distribution.
|
39
|
-
|
40
|
-
d) make other distribution arrangements with the author.
|
41
|
-
|
42
|
-
4. You may modify and include the part of the software into any other
|
43
|
-
software (possibly commercial). But some files in the distribution
|
44
|
-
are not written by the author, so that they are not under this terms.
|
45
|
-
|
46
|
-
They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
|
47
|
-
files under the ./missing directory. See each file for the copying
|
48
|
-
condition.
|
49
|
-
|
50
|
-
5. The scripts and library files supplied as input to or produced as
|
51
|
-
output from the software do not automatically fall under the
|
52
|
-
copyright of the software, but belong to whomever generated them,
|
53
|
-
and may be sold commercially, and may be aggregated with this
|
54
|
-
software.
|
55
|
-
|
56
|
-
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
57
|
-
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
58
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
59
|
-
PURPOSE.
|
4
|
+
Copyright 2003-2022 (C) GFD Dennou Club
|
5
|
+
(http://www.gfd-dennou.org/) All rights reserved.
|
6
|
+
|
7
|
+
Redistribution and use in source and binary forms, with or without
|
8
|
+
modification, are permitted provided that the following conditions are
|
9
|
+
met:
|
10
|
+
|
11
|
+
1. Redistributions of source code must retain the above copyright
|
12
|
+
notice, this list of conditions and the following disclaimer.
|
13
|
+
|
14
|
+
2. Redistributions in binary form must reproduce the above copyright
|
15
|
+
notice, this list of conditions and the following disclaimer in
|
16
|
+
the documentation and/or other materials provided with the
|
17
|
+
distribution.
|
18
|
+
|
19
|
+
THIS SOFTWARE IS PROVIDED BY GFD DENNOU CLUB AND CONTRIBUTORS ``AS IS''
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
21
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
22
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GFD DENNOU CLUB OR
|
23
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
24
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
25
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
26
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
27
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
28
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
29
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
+
|
31
|
+
The views and conclusions contained in the software and documentation
|
32
|
+
are those of the authors and should not be interpreted as representing
|
33
|
+
official policies, either expressed or implied, of Takeshi Horinouchi
|
34
|
+
and GFD Dennou Club.
|
data/Rakefile
CHANGED
@@ -1,2 +1,37 @@
|
|
1
|
-
|
1
|
+
# -* coding: utf-8 -*-
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rake/extensiontask'
|
4
|
+
require 'rake/packagetask'
|
5
|
+
begin
|
6
|
+
require 'bundler/gem_helper' # instead of 'bundler/gem_tasks' -> need manual
|
7
|
+
# calls of install_tasks (see below)
|
8
|
+
rescue LoadError
|
9
|
+
puts 'If you want to create gem, You must install Bundler'
|
10
|
+
end
|
2
11
|
|
12
|
+
# manual calls of install_tasks to support multiple gemspec files
|
13
|
+
Bundler::GemHelper.install_tasks(name: "ruby-netcdf")
|
14
|
+
#Bundler::GemHelper.install_tasks(name: "ruby-netcdf-bigmem")
|
15
|
+
|
16
|
+
require './lib/numru/netcdf/version'
|
17
|
+
def version
|
18
|
+
NumRu::NetCDF::VERSION
|
19
|
+
end
|
20
|
+
|
21
|
+
task :default => :test
|
22
|
+
task :test => :compile
|
23
|
+
Rake::TestTask.new do |t|
|
24
|
+
t.libs << 'lib' << 'test'
|
25
|
+
t.test_files = FileList['test/*.rb']
|
26
|
+
end
|
27
|
+
|
28
|
+
Rake::ExtensionTask.new do |ext|
|
29
|
+
ext.name = 'netcdfraw'
|
30
|
+
ext.ext_dir = 'ext/numru'
|
31
|
+
ext.lib_dir = 'lib/numru'
|
32
|
+
end
|
33
|
+
|
34
|
+
Rake::PackageTask.new('ruby-netcdf', "#{version}") do |t|
|
35
|
+
t.need_tar_gz = true
|
36
|
+
t.package_files.include `git ls-files`.split("\n")
|
37
|
+
end
|
@@ -8,14 +8,14 @@ else
|
|
8
8
|
ncversion = nil
|
9
9
|
end
|
10
10
|
|
11
|
-
if Gem.respond_to?(:find_files)
|
11
|
+
if Gem.respond_to?(:find_files) and Gem.find_files("narray.h").length > 0
|
12
12
|
require "rbconfig"
|
13
13
|
so = RbConfig::CONFIG["DLEXT"]
|
14
14
|
narray_include = File.expand_path(File.dirname(Gem.find_files("narray.h")[0]))
|
15
15
|
narray_lib = File.expand_path(File.dirname(Gem.find_files("narray." + so)[0]))
|
16
16
|
else
|
17
17
|
gem_home=(`gem environment GEM_HOME`).chomp
|
18
|
-
narray_dir = Dir.glob("#{gem_home}/gems/narray
|
18
|
+
narray_dir = Dir.glob("#{gem_home}/gems/narray-*/ext/narray").sort[-1]
|
19
19
|
if narray_dir
|
20
20
|
narray_include = narray_lib = narray_dir
|
21
21
|
else
|