swt 4.4 → 4.6.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1a43db2ba86cf16ee099b703e45509fc0218e71
4
- data.tar.gz: a370e682396c81e7453e8a7c88e75741260ca5b8
3
+ metadata.gz: c421327d9e62d299c7bb588cc43613c590f923b9
4
+ data.tar.gz: 6530619b334b11dbd58c9095d1298e4740c185b1
5
5
  SHA512:
6
- metadata.gz: 418263b540b578951945ad88a54e8fa99684837449f85a8dc837fbe03124db7d95334c8ab93c7aeff10359cc68377941b869e98c9a0eba36857809c55a219cea
7
- data.tar.gz: 30186ea075a55e5949a8aeea18daadc6b33e0bc61833fbcf38f5e83e6716f4b067bd1ca4e2dcc03b3281b25a9dfb4ecb5a52967260747d467e5b198574287af2
6
+ metadata.gz: f36622782e546604b1ef4e3df108065ac12a91094bfb26d318e32c6627fbe24d64aa64100e3f7b3043f38427e9d32d62362d08f7ebc6c9b588ccdb0c98761960
7
+ data.tar.gz: 9ac5d0b37527851b568b6077b5b5ba3eb83101c02ff0b0baa747078432da1266b1a3885a3e0d8f2a7a436c5b444b9b4eae324407914c5fffc1a765d186684fa8
data/README.md CHANGED
@@ -34,3 +34,6 @@ On OSX:
34
34
 
35
35
  jruby -J-XstartOnFirstThread examples/button.rb
36
36
 
37
+ ## History
38
+
39
+ **4.6** Removed MacOS 32 bit support (SWT project doesn't seem to support it any more)
@@ -14,7 +14,7 @@ module Swt
14
14
  if x64_bit_cpu?
15
15
  '../../../vendor/swt/swt-osx64'
16
16
  else
17
- '../../../vendor/swt/swt-osx32'
17
+ raise 'No 32 bit Mac OSX SWT jar available :('
18
18
  end
19
19
  when /linux/i
20
20
  if x64_bit_cpu?
@@ -4,36 +4,36 @@ require 'swt/event_loop'
4
4
  require 'swt/cucumber_runner'
5
5
 
6
6
  module Swt
7
- VERSION = "4.4" # also change in swt.gemspec
8
-
7
+ VERSION = "4.6.1" # also change in swt.gemspec
8
+
9
9
  import org.eclipse.swt.SWT
10
-
10
+
11
11
  module Widgets
12
12
  import org.eclipse.swt.widgets.Display
13
13
  import org.eclipse.swt.widgets.Label
14
14
  import org.eclipse.swt.widgets.ProgressBar
15
15
  import org.eclipse.swt.widgets.Shell
16
16
  end
17
-
17
+
18
18
  module Custom
19
19
  end
20
-
20
+
21
21
  module DND
22
22
  end
23
-
23
+
24
24
  module Layout
25
25
  import org.eclipse.swt.layout.FormAttachment
26
26
  import org.eclipse.swt.layout.FormData
27
27
  import org.eclipse.swt.layout.FormLayout
28
28
  end
29
-
29
+
30
30
  module Graphics
31
31
  import org.eclipse.swt.graphics.Image
32
32
  end
33
-
33
+
34
34
  module Events
35
35
  end
36
-
36
+
37
37
  class RRunnable
38
38
  include java.lang.Runnable
39
39
 
@@ -66,7 +66,7 @@ module Swt
66
66
  end
67
67
  result
68
68
  end
69
-
69
+
70
70
  # Runs the given block in the SWT Event thread after
71
71
  # the given number of milliseconds
72
72
  def self.timer_exec(ms, &block)
@@ -80,7 +80,7 @@ module Swt
80
80
  Swt::Widgets::Display.app_name = SWT_APP_NAME
81
81
  end
82
82
  display ||= (Swt::Widgets::Display.getCurrent || Swt::Widgets::Display.new)
83
-
83
+
84
84
  # clipboard class must be imported after the display is created
85
85
  Swt::DND.send(:import, org.eclipse.swt.dnd.Clipboard)
86
86
  display
@@ -91,29 +91,26 @@ module Swt
91
91
  stop_conditions << stop_condition
92
92
  run_event_loop
93
93
  end
94
-
94
+
95
95
  def self.stop_conditions
96
96
  @stop_conditions ||= []
97
97
  end
98
-
98
+
99
99
  def self.event_loop_running?
100
100
  @event_loop_running
101
101
  end
102
-
102
+
103
103
  def self.run_event_loop
104
104
  return if event_loop_running?
105
105
  @event_loop_running = true
106
106
  this_display = display
107
-
107
+
108
108
  until stop_conditions.any? {|c| c[] }
109
109
  unless this_display.read_and_dispatch
110
110
  this_display.sleep
111
111
  end
112
112
  end
113
-
113
+
114
114
  this_display.dispose
115
115
  end
116
116
  end
117
-
118
-
119
-
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swt
3
3
  version: !ruby/object:Gem::Version
4
- version: '4.4'
4
+ version: 4.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lucraft
8
- autorequire:
8
+ - Tobias Pfeiffer
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-09-02 00:00:00.000000000 Z
12
+ date: 2016-11-23 00:00:00.000000000 Z
12
13
  dependencies: []
13
- description: Contains everything required to write cross-platform desktop applications
14
- with JRuby and SWT.
14
+ description: Contains everything required to write cross-platform desktop applications with JRuby and SWT.
15
15
  email:
16
- - dan@fluentradical.com
16
+ - dan@lucraft.me
17
+ - pragtob@gmail.com
17
18
  executables:
18
19
  - swt_cucumber
19
20
  extensions: []
@@ -43,7 +44,6 @@ files:
43
44
  - vendor/jface/org.eclipse.text_3.5.0.v20090513-2000.jar
44
45
  - vendor/swt/swt-linux32.jar
45
46
  - vendor/swt/swt-linux64.jar
46
- - vendor/swt/swt-osx32.jar
47
47
  - vendor/swt/swt-osx64.jar
48
48
  - vendor/swt/swt-win32.jar
49
49
  - vendor/swt/swt-win64.jar
@@ -59,7 +59,7 @@ homepage: http://github.com/danlucraft/swt
59
59
  licenses:
60
60
  - See https://github.com/danlucraft/swt/blob/master/LICENSE
61
61
  metadata: {}
62
- post_install_message:
62
+ post_install_message:
63
63
  rdoc_options: []
64
64
  require_paths:
65
65
  - lib
@@ -74,9 +74,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
- rubyforge_project:
78
- rubygems_version: 2.2.2
79
- signing_key:
77
+ rubyforge_project:
78
+ rubygems_version: 2.6.8
79
+ signing_key:
80
80
  specification_version: 4
81
81
  summary: The SWT toolkit for JRuby.
82
82
  test_files: []
Binary file