netica 0.0.20-java → 0.0.21-java
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.
- data/README.md +4 -0
- data/lib/netica.rb +16 -1
- data/lib/netica/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
data/lib/netica.rb
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
require 'java'
|
2
|
-
|
2
|
+
|
3
|
+
loaded_netica_j = false
|
4
|
+
|
5
|
+
locations = ['/Library/Java/Extensions/NeticaJ.jar', '/System/Library/Java/Extensions/NeticaJ.jar', '/usr/lib/java/NeticaJ.jar', '/lib/NeticaJ.jar']
|
6
|
+
locations.each do |fname|
|
7
|
+
if !loaded_netica_j && File.exists?(fname)
|
8
|
+
begin
|
9
|
+
require fname
|
10
|
+
loaded_netica_j = true
|
11
|
+
rescue LoadError
|
12
|
+
puts "NeticaJ.jar not found at '#{fname}'"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
raise "NeticaJ library files not found in #{locations}. See https://github.com/disruptive/netica for installation instructions." unless loaded_netica_j
|
3
18
|
|
4
19
|
require "netica/version"
|
5
20
|
require "netica/environ"
|
data/lib/netica/version.rb
CHANGED
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: netica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.21
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Jerry Richardson
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|