narray_miss 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/narray_miss/narray_miss.rb +27 -14
- data/lib/narray_miss/version.rb +1 -1
- data/test/test_narray_miss.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba546505f2e55434b587a016d19ba1759bee49af
|
4
|
+
data.tar.gz: 517dd6b8cf3a9d7a4ef2449671db93c6ecffe457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 600ee611c355467360f8f4ca2ebddb671e19b3c23dbcc448e23475b1bb5b3278f9bc85071f4986bfc8073c78402a0411e7b6f097a860ec47fe6f16dd7a0f684a
|
7
|
+
data.tar.gz: 4970cbc162ebc0b97e26d001eb2db65798fe646da14c85724b05ab96bcb99671cc0a8635bf1404bfa468ccfae4dfd3c13b45e0f09e5894f79c66ceacf3e3e64c
|
@@ -34,26 +34,39 @@ To use NArrayMiss class, you need invoking "require 'narray_miss.rb'" in your sc
|
|
34
34
|
|
35
35
|
=end
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
case ENV["NARRAY_TYPE"]
|
38
|
+
when "narray"
|
39
|
+
require 'narray'
|
40
40
|
NARRAY = NArray
|
41
|
-
|
41
|
+
when "numru-narray"
|
42
|
+
require 'numru/narray'
|
43
|
+
NARRAY = NumRu::NArray
|
44
|
+
when nil
|
42
45
|
|
43
|
-
|
44
|
-
|
46
|
+
if defined?(NumRu::NArray)
|
47
|
+
NARRAY = NumRu::NArray
|
48
|
+
elsif defined?(NArray)
|
45
49
|
NARRAY = NArray
|
46
|
-
|
47
|
-
|
50
|
+
else
|
51
|
+
|
48
52
|
begin
|
49
|
-
require '
|
50
|
-
NARRAY =
|
53
|
+
require 'narray'
|
54
|
+
NARRAY = NArray
|
51
55
|
rescue LoadError
|
52
|
-
|
53
|
-
|
56
|
+
err = $!
|
57
|
+
begin
|
58
|
+
require 'numru/narray'
|
59
|
+
NARRAY = NumRu::NArray
|
60
|
+
rescue LoadError
|
61
|
+
STDERR.puts "You should install numru-narray or narray"
|
62
|
+
raise err
|
63
|
+
end
|
54
64
|
end
|
65
|
+
|
55
66
|
end
|
56
67
|
|
68
|
+
else
|
69
|
+
raise "NARRAY_TYPE (#{ENV["NARRAY_TYPE"]}) is invalid"
|
57
70
|
end
|
58
71
|
|
59
72
|
|
@@ -1020,12 +1033,12 @@ go back to ((<Index>))
|
|
1020
1033
|
=== Mask and missing value
|
1021
1034
|
--- NArrayMiss#set_valid(index)
|
1022
1035
|
validate element at ((|index|)).
|
1023
|
-
((|index|)) must be (({Integer, Range, Array, or
|
1036
|
+
((|index|)) must be (({Integer, Range, Array, or true})).
|
1024
1037
|
--- NArrayMiss#validation(index)
|
1025
1038
|
alias to set_valid
|
1026
1039
|
--- NArrayMiss#set_invalid(index)
|
1027
1040
|
invaliadate element at ((|index|)).
|
1028
|
-
((|index|)) must be (({Integer, Range, Array, or
|
1041
|
+
((|index|)) must be (({Integer, Range, Array, or true})).
|
1029
1042
|
--- NArrayMiss#invalidation(index)
|
1030
1043
|
alias to set_invalid
|
1031
1044
|
--- NArrayMiss#all_valid
|
data/lib/narray_miss/version.rb
CHANGED
data/test/test_narray_miss.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: narray_miss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seiya Nishizawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|