swt 0.3-java → 0.5-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/swt.rb +0 -1
- data/lib/swt/jar.rb +12 -9
- data/lib/swt/minimal.rb +1 -1
- data/vendor/swt_osx_3_7.jar +0 -0
- metadata +3 -3
- data/vendor/swt_osx.jar +0 -0
data/lib/swt.rb
CHANGED
data/lib/swt/jar.rb
CHANGED
@@ -2,28 +2,31 @@ require 'rbconfig'
|
|
2
2
|
|
3
3
|
module Swt
|
4
4
|
def self.jar_path
|
5
|
+
File.expand_path(relative_jar_path, __FILE__)
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.relative_jar_path
|
5
9
|
case Config::CONFIG["host_os"]
|
6
10
|
when /darwin/i
|
7
11
|
if Config::CONFIG["host_cpu"] == "x86_64"
|
8
|
-
'
|
12
|
+
'../../../vendor/swt_osx64'
|
9
13
|
else
|
10
|
-
'
|
14
|
+
'../../../vendor/swt_osx_3_7'
|
11
15
|
end
|
12
16
|
when /linux/i
|
13
17
|
if %w(amd64 x84_64).include? Config::CONFIG["host_cpu"]
|
14
|
-
'
|
18
|
+
'../../../vendor/swt_linux64'
|
15
19
|
else
|
16
|
-
'
|
20
|
+
'../../../vendor/swt_linux'
|
17
21
|
end
|
18
22
|
when /windows|mswin/i
|
19
|
-
'
|
23
|
+
'../../../vendor/swt_win32'
|
20
24
|
end
|
21
25
|
end
|
22
26
|
|
23
|
-
|
24
|
-
|
25
|
-
require path
|
27
|
+
if File.exist?(jar_path + ".jar")
|
28
|
+
require jar_path
|
26
29
|
else
|
27
|
-
raise "
|
30
|
+
raise "swt jar file required: #{jar_path}.jar"
|
28
31
|
end
|
29
32
|
end
|
data/lib/swt/minimal.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: swt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: "0.
|
5
|
+
version: "0.5"
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Daniel Lucraft
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-08-03 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -46,8 +46,8 @@ files:
|
|
46
46
|
- vendor/jface/org.eclipse.text_3.5.0.v20090513-2000.jar
|
47
47
|
- vendor/swt_linux.jar
|
48
48
|
- vendor/swt_linux64.jar
|
49
|
-
- vendor/swt_osx.jar
|
50
49
|
- vendor/swt_osx64.jar
|
50
|
+
- vendor/swt_osx_3_7.jar
|
51
51
|
- vendor/swt_win32.jar
|
52
52
|
has_rdoc: true
|
53
53
|
homepage: http://github.com/danlucraft/swt
|
data/vendor/swt_osx.jar
DELETED
Binary file
|