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 CHANGED
@@ -1,4 +1,3 @@
1
1
 
2
2
  require 'swt/minimal'
3
3
  require 'swt/full'
4
-
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
- '../vendor/swt_osx64'
12
+ '../../../vendor/swt_osx64'
9
13
  else
10
- '../vendor/swt_osx'
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
- '../vendor/swt_linux64'
18
+ '../../../vendor/swt_linux64'
15
19
  else
16
- '../vendor/swt_linux'
20
+ '../../../vendor/swt_linux'
17
21
  end
18
22
  when /windows|mswin/i
19
- '../vendor/swt_win32'
23
+ '../../../vendor/swt_win32'
20
24
  end
21
25
  end
22
26
 
23
- path = File.expand_path(File.dirname(__FILE__) + "/../" + Swt.jar_path)
24
- if File.exist?(path + ".jar")
25
- require path
27
+ if File.exist?(jar_path + ".jar")
28
+ require jar_path
26
29
  else
27
- raise "SWT jar file required: #{path}.jar"
30
+ raise "swt jar file required: #{jar_path}.jar"
28
31
  end
29
32
  end
data/lib/swt/minimal.rb CHANGED
@@ -4,7 +4,7 @@ require 'swt/event_loop'
4
4
  require 'swt/cucumber_runner'
5
5
 
6
6
  module Swt
7
- VERSION = "0.3"
7
+ VERSION = "0.4"
8
8
 
9
9
  import org.eclipse.swt.SWT
10
10
 
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.3"
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-06-12 00:00:00 +01:00
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