shoes-swt 4.0.0.pre7 → 4.0.0.pre8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shoes/swt/app.rb +38 -2
- data/lib/shoes/swt/arc_painter.rb +36 -8
- data/lib/shoes/swt/common/painter.rb +9 -2
- data/lib/shoes/swt/common/update_position.rb +4 -0
- data/lib/shoes/swt/download.rb +7 -2
- data/lib/shoes/swt/font.rb +13 -5
- data/lib/shoes/swt/generate_backend.rb +34 -3
- data/lib/shoes/swt/line.rb +1 -0
- data/lib/shoes/swt/list_box.rb +1 -1
- data/lib/shoes/swt/redrawing_aspect.rb +4 -7
- data/lib/shoes/swt/text_block/text_segment.rb +10 -1
- data/lib/shoes/swt/version.rb +1 -1
- data/lib/shoes/swt.rb +2 -5
- metadata +11 -148
- data/Guardfile +0 -4
- data/Rakefile +0 -1
- data/shoes-swt.gemspec +0 -25
- data/spec/shoes/cli_spec.rb +0 -15
- data/spec/shoes/swt/animation_spec.rb +0 -86
- data/spec/shoes/swt/app_spec.rb +0 -166
- data/spec/shoes/swt/arc_painter_spec.rb +0 -80
- data/spec/shoes/swt/arc_spec.rb +0 -42
- data/spec/shoes/swt/arrow_painter_spec.rb +0 -37
- data/spec/shoes/swt/arrow_spec.rb +0 -27
- data/spec/shoes/swt/background_spec.rb +0 -69
- data/spec/shoes/swt/border_spec.rb +0 -55
- data/spec/shoes/swt/button_spec.rb +0 -104
- data/spec/shoes/swt/check_spec.rb +0 -39
- data/spec/shoes/swt/click_listener_spec.rb +0 -162
- data/spec/shoes/swt/color_factory_spec.rb +0 -49
- data/spec/shoes/swt/color_spec.rb +0 -68
- data/spec/shoes/swt/common/painter_spec.rb +0 -99
- data/spec/shoes/swt/common/remove_spec.rb +0 -46
- data/spec/shoes/swt/configuration_spec.rb +0 -11
- data/spec/shoes/swt/dialog_spec.rb +0 -97
- data/spec/shoes/swt/disposed_protection_spec.rb +0 -48
- data/spec/shoes/swt/flow_spec.rb +0 -38
- data/spec/shoes/swt/font_spec.rb +0 -31
- data/spec/shoes/swt/gradient_spec.rb +0 -37
- data/spec/shoes/swt/image_pattern_spec.rb +0 -45
- data/spec/shoes/swt/image_spec.rb +0 -100
- data/spec/shoes/swt/input_box_spec.rb +0 -119
- data/spec/shoes/swt/integration_spec.rb +0 -27
- data/spec/shoes/swt/key_listener_spec.rb +0 -353
- data/spec/shoes/swt/line_painter_spec.rb +0 -26
- data/spec/shoes/swt/line_spec.rb +0 -22
- data/spec/shoes/swt/link_segment_spec.rb +0 -121
- data/spec/shoes/swt/link_spec.rb +0 -49
- data/spec/shoes/swt/list_box_spec.rb +0 -81
- data/spec/shoes/swt/minimal.png +0 -0
- data/spec/shoes/swt/mouse_move_listener_spec.rb +0 -139
- data/spec/shoes/swt/oval_painter_spec.rb +0 -40
- data/spec/shoes/swt/oval_spec.rb +0 -19
- data/spec/shoes/swt/progress_spec.rb +0 -43
- data/spec/shoes/swt/radio_group_spec.rb +0 -72
- data/spec/shoes/swt/radio_spec.rb +0 -59
- data/spec/shoes/swt/rect_painter_spec.rb +0 -50
- data/spec/shoes/swt/rect_spec.rb +0 -17
- data/spec/shoes/swt/shape_painter_spec.rb +0 -27
- data/spec/shoes/swt/shape_spec.rb +0 -73
- data/spec/shoes/swt/shared_examples/button.rb +0 -19
- data/spec/shoes/swt/shared_examples/clickable.rb +0 -13
- data/spec/shoes/swt/shared_examples/movable.rb +0 -35
- data/spec/shoes/swt/shared_examples/paintable.rb +0 -6
- data/spec/shoes/swt/shared_examples/painter.rb +0 -82
- data/spec/shoes/swt/shared_examples/pattern.rb +0 -28
- data/spec/shoes/swt/shared_examples/removable.rb +0 -39
- data/spec/shoes/swt/shared_examples/swt_app_context.rb +0 -41
- data/spec/shoes/swt/shared_examples/visibility.rb +0 -15
- data/spec/shoes/swt/shell_control_listener_spec.rb +0 -23
- data/spec/shoes/swt/shoes_layout_spec.rb +0 -88
- data/spec/shoes/swt/slot_spec.rb +0 -41
- data/spec/shoes/swt/spec_helper.rb +0 -43
- data/spec/shoes/swt/star_painter_spec.rb +0 -36
- data/spec/shoes/swt/star_spec.rb +0 -22
- data/spec/shoes/swt/text_block/centered_text_segment_spec.rb +0 -16
- data/spec/shoes/swt/text_block/cursor_painter_spec.rb +0 -128
- data/spec/shoes/swt/text_block/fitter_spec.rb +0 -234
- data/spec/shoes/swt/text_block/painter_spec.rb +0 -52
- data/spec/shoes/swt/text_block/text_font_factory_spec.rb +0 -40
- data/spec/shoes/swt/text_block/text_segment_collection_spec.rb +0 -272
- data/spec/shoes/swt/text_block/text_segment_spec.rb +0 -138
- data/spec/shoes/swt/text_block_spec.rb +0 -213
- data/spec/spec_helper.rb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f857f636ae3d254b4bc33dc881d6281a69c65dab
|
4
|
+
data.tar.gz: '09f34a3c6d3a2fe356b126e6cc2db7e9bd501bf8'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc0254f5edc8dfa3333b87963abc996751a6fa76e97a2a438d7e6db719af632866f3c854e35c92bdf31c68dd5eeee2436c28ae1a39e20a87d969d0325120bcc8
|
7
|
+
data.tar.gz: f19a2d0779b77e942c2aad9bbad7f4dd16fa4b4dc868dfe8091008e618c95d73e5f72f76ed71afa073a56e103f0a21cd5b1b316a741fe203c3579bf7fa6a3690
|
data/lib/shoes/swt/app.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class Shoes
|
2
2
|
module Swt
|
3
3
|
shoes_icon = ::Shoes::ICON
|
4
|
-
if shoes_icon.include? '
|
4
|
+
if shoes_icon.include? 'uri:classloader'
|
5
5
|
ICON = File.join(Dir.tmpdir, 'shoes-icon.png').freeze
|
6
6
|
open ICON, 'wb' do |fw|
|
7
7
|
open shoes_icon, 'rb' do |fr|
|
@@ -22,8 +22,28 @@ class Shoes
|
|
22
22
|
attr_reader :dsl, :real, :shell, :click_listener
|
23
23
|
|
24
24
|
def initialize(dsl)
|
25
|
+
if self.class.main_app_closed?
|
26
|
+
Shoes.logger.error <<-EOS
|
27
|
+
Sorry! You can't start another Shoes.app at after the main one has already
|
28
|
+
finished like that! If you need multiple windows, try it more like this:
|
29
|
+
|
30
|
+
Shoes.app do
|
31
|
+
para "first!"
|
32
|
+
Shoes.app do
|
33
|
+
para "second!"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
EOS
|
37
|
+
exit 1
|
38
|
+
end
|
39
|
+
|
25
40
|
@dsl = dsl
|
41
|
+
|
26
42
|
::Swt::Widgets::Display.app_name = @dsl.app_title
|
43
|
+
|
44
|
+
::Shoes::Swt::App.setup_system_colors
|
45
|
+
::Shoes::Swt::Font.setup_fonts
|
46
|
+
|
27
47
|
@background = Color.new(@dsl.opts[:background] ||
|
28
48
|
::Shoes::COLORS.fetch(:system_background))
|
29
49
|
@started = false
|
@@ -32,6 +52,7 @@ class Shoes
|
|
32
52
|
::Shoes::Swt.register self
|
33
53
|
attach_event_listeners
|
34
54
|
initialize_scroll_bar
|
55
|
+
|
35
56
|
@redrawing_aspect = RedrawingAspect.new self, Shoes.display
|
36
57
|
end
|
37
58
|
|
@@ -152,13 +173,27 @@ class Shoes
|
|
152
173
|
end
|
153
174
|
|
154
175
|
def self.setup_system_colors
|
176
|
+
# Skip it if we've already loaded the color!
|
177
|
+
return if ::Shoes::COLORS[:system_background]
|
178
|
+
|
155
179
|
# just one color for now
|
156
180
|
background_color = Shoes.display.getSystemColor(::Swt::SWT::COLOR_WIDGET_BACKGROUND)
|
157
|
-
::Shoes::DSL.define_shoes_color(:system_background,
|
181
|
+
::Shoes::DSL.define_shoes_color(:system_background,
|
182
|
+
background_color.red,
|
158
183
|
background_color.green,
|
159
184
|
background_color.blue)
|
160
185
|
end
|
161
186
|
|
187
|
+
# Because SWT shutdown is hard to reverse, we only let you do it once
|
188
|
+
# and warn you if you try to run again afterward.
|
189
|
+
def self.main_app_closed?
|
190
|
+
@main_app_closed
|
191
|
+
end
|
192
|
+
|
193
|
+
def self.mark_main_app_closed
|
194
|
+
@main_app_closed = true
|
195
|
+
end
|
196
|
+
|
162
197
|
private
|
163
198
|
|
164
199
|
def initialize_scroll_bar
|
@@ -189,6 +224,7 @@ class Shoes
|
|
189
224
|
def main_window_on_close
|
190
225
|
lambda do |_event|
|
191
226
|
::Swt.display.dispose
|
227
|
+
::Shoes::Swt::App.mark_main_app_closed
|
192
228
|
Dir[File.join(Dir.tmpdir, "__shoes4_*.png")].each { |f| File.delete f }
|
193
229
|
end
|
194
230
|
end
|
@@ -1,32 +1,60 @@
|
|
1
1
|
class Shoes
|
2
2
|
module Swt
|
3
3
|
class ArcPainter < Common::Painter
|
4
|
+
FULL_CIRCLE_DEGREES = 360
|
5
|
+
|
4
6
|
def fill(graphics_context)
|
5
7
|
if @obj.wedge?
|
6
8
|
graphics_context.fill_arc(@obj.translate_left + @obj.element_left,
|
7
9
|
@obj.translate_top + @obj.element_top,
|
8
10
|
@obj.element_width,
|
9
11
|
@obj.element_height,
|
10
|
-
|
12
|
+
start_angle, sweep)
|
11
13
|
else
|
12
14
|
path = ::Swt::Path.new(::Swt.display)
|
13
15
|
path.add_arc(@obj.translate_left + @obj.element_left,
|
14
16
|
@obj.translate_top + @obj.element_top,
|
15
17
|
@obj.element_width,
|
16
18
|
@obj.element_height,
|
17
|
-
|
19
|
+
start_angle, sweep)
|
18
20
|
graphics_context.fill_path(path)
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
22
24
|
def draw(graphics_context)
|
23
|
-
|
25
|
+
line_width = graphics_context.get_line_width
|
24
26
|
if @obj.element_left && @obj.element_top && @obj.element_width && @obj.element_height
|
25
|
-
graphics_context.draw_arc(@obj.translate_left + @obj.element_left +
|
26
|
-
@obj.translate_top + @obj.element_top +
|
27
|
-
@obj.element_width -
|
28
|
-
@obj.element_height -
|
29
|
-
|
27
|
+
graphics_context.draw_arc(@obj.translate_left + @obj.element_left + line_width / 2,
|
28
|
+
@obj.translate_top + @obj.element_top + line_width / 2,
|
29
|
+
@obj.element_width - line_width,
|
30
|
+
@obj.element_height - line_width,
|
31
|
+
start_angle, sweep)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# Shoes angles to run clockwise, with 0 at the 3 o'clock position. SWT
|
36
|
+
# instead runs counter-clockwise from 3 o'clock, hence we negate the
|
37
|
+
# start angle to translate from Shoes -> SWT
|
38
|
+
def start_angle
|
39
|
+
-@obj.angle1
|
40
|
+
end
|
41
|
+
|
42
|
+
# Shoes represents via a start and end angle, with the fill running
|
43
|
+
# clockwise from start to end. If start is greater than end, this just
|
44
|
+
# means that we wrap around the 3 o'clock-0 radians point as we run
|
45
|
+
# clockwise.
|
46
|
+
#
|
47
|
+
# SWT instead is start angle plus a sweep, and runs counter-clockwise.
|
48
|
+
# Hence we end up calculating a negative (clockwise) sweep. There's a
|
49
|
+
# small case difference depending on if we're crossing over the 0 point.
|
50
|
+
#
|
51
|
+
# See the specs for lots of good examples, with pictures, of this logic.
|
52
|
+
#
|
53
|
+
def sweep
|
54
|
+
if @obj.angle1 <= @obj.angle2
|
55
|
+
@obj.angle1 - @obj.angle2
|
56
|
+
else
|
57
|
+
@obj.angle1 - @obj.angle2 - FULL_CIRCLE_DEGREES
|
30
58
|
end
|
31
59
|
end
|
32
60
|
end
|
@@ -22,6 +22,8 @@ class Shoes
|
|
22
22
|
paint_object graphics_context
|
23
23
|
end
|
24
24
|
rescue => e
|
25
|
+
raise e if ENV['SHOES_ENV'] == 'test'
|
26
|
+
|
25
27
|
# Really important to rescue here. Failures that escape this method
|
26
28
|
# cause odd-ball hangs with no backtraces. See #559 for an example.
|
27
29
|
#
|
@@ -78,9 +80,14 @@ class Shoes
|
|
78
80
|
if block_given?
|
79
81
|
begin
|
80
82
|
transform = ::Swt::Transform.new Shoes.display
|
81
|
-
|
82
|
-
|
83
|
+
|
84
|
+
# Why the negative angle? Older shoes rotated from the middle
|
85
|
+
# right running counter clockwise (as seen on this web page:
|
86
|
+
# https://www.mathsisfun.com/geometry/degrees.html). To get the
|
87
|
+
# same effect, we have to negate the value passed in.
|
83
88
|
reset_rotate transform, graphics_context, -angle, left, top
|
89
|
+
yield
|
90
|
+
reset_rotate transform, graphics_context, angle, left, top
|
84
91
|
ensure
|
85
92
|
transform.dispose unless transform.nil? || transform.disposed?
|
86
93
|
end
|
@@ -7,6 +7,10 @@ class Shoes
|
|
7
7
|
def update_position
|
8
8
|
unless @real.disposed?
|
9
9
|
@real.set_location dsl.element_left, dsl.element_top
|
10
|
+
|
11
|
+
# Why update size too? On Mac, SWT snaps sizing to defaults after
|
12
|
+
# setting location for reasons I've yet to understand. #1323
|
13
|
+
@real.set_size dsl.element_width, dsl.element_height
|
10
14
|
end
|
11
15
|
end
|
12
16
|
end
|
data/lib/shoes/swt/download.rb
CHANGED
@@ -10,11 +10,16 @@ class Shoes
|
|
10
10
|
# executes on the main UI thread. Without it we get thread access errors.
|
11
11
|
def eval_block(blk, result)
|
12
12
|
::Swt.display.asyncExec do
|
13
|
-
blk
|
14
|
-
@busy = false
|
13
|
+
actually_run_block(blk, result)
|
15
14
|
end
|
16
15
|
end
|
17
16
|
|
17
|
+
# Why a separate method? So RedrawingAspect can target it!
|
18
|
+
def actually_run_block(blk, result)
|
19
|
+
blk.call result
|
20
|
+
@busy = false
|
21
|
+
end
|
22
|
+
|
18
23
|
def busy?
|
19
24
|
@busy
|
20
25
|
end
|
data/lib/shoes/swt/font.rb
CHANGED
@@ -8,9 +8,13 @@ class Shoes
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
12
|
-
|
13
|
-
::
|
11
|
+
def setup_fonts
|
12
|
+
# If we've already loaded fonts previously, bail
|
13
|
+
return if ::Shoes::FONTS.any?
|
14
|
+
|
15
|
+
load_shoes_fonts
|
16
|
+
load_system_fonts
|
17
|
+
::Shoes::FONTS.uniq!
|
14
18
|
end
|
15
19
|
|
16
20
|
private
|
@@ -24,9 +28,13 @@ class Shoes
|
|
24
28
|
add_font font_path
|
25
29
|
end
|
26
30
|
end
|
31
|
+
|
32
|
+
def load_system_fonts
|
33
|
+
::Swt.display.get_font_list(nil, true).each do |font|
|
34
|
+
::Shoes::FONTS << font
|
35
|
+
end
|
36
|
+
end
|
27
37
|
end
|
28
38
|
end
|
29
39
|
end
|
30
|
-
|
31
|
-
::Shoes::Font.initial_fonts.each { |font| Shoes::FONTS << font }
|
32
40
|
end
|
@@ -1,7 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rbconfig'
|
2
4
|
|
3
|
-
|
4
|
-
|
5
|
+
class Shoes
|
6
|
+
module SelectedBackend
|
7
|
+
class << self
|
8
|
+
def validate
|
9
|
+
if RUBY_ENGINE != "jruby"
|
10
|
+
puts <<-EOS
|
11
|
+
|
12
|
+
*******************************************************************************
|
13
|
+
The shoes-swt backend requires a 9.X version of JRuby.
|
14
|
+
|
15
|
+
You are running the following Ruby instead:
|
16
|
+
|
17
|
+
#{RUBY_DESCRIPTION}
|
18
|
+
|
19
|
+
Please download JRuby from http://jruby.org (or your favorite Ruby version
|
20
|
+
manager), then check our https://github.com/shoes/shoes4#installing-shoes-4 to
|
21
|
+
get Shoes installed.
|
22
|
+
|
23
|
+
Sorry for the inconvenience!
|
24
|
+
*******************************************************************************
|
25
|
+
|
26
|
+
EOS
|
27
|
+
exit 1
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def generate(path)
|
32
|
+
options = "-J-XstartOnFirstThread" if RbConfig::CONFIG["host_os"] =~ /darwin/
|
5
33
|
|
6
|
-
|
34
|
+
"jruby #{options} #{path}/shoes-swt"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
7
38
|
end
|
data/lib/shoes/swt/line.rb
CHANGED
data/lib/shoes/swt/list_box.rb
CHANGED
@@ -14,6 +14,7 @@ class Shoes
|
|
14
14
|
Animation => [:eval_block],
|
15
15
|
Button => [:eval_block],
|
16
16
|
ClickListener => [:eval_block],
|
17
|
+
Download => [:actually_run_block],
|
17
18
|
::Shoes::InternalApp => [:execute_block],
|
18
19
|
Keypress => [:eval_block],
|
19
20
|
Keyrelease => [:eval_block],
|
@@ -23,9 +24,6 @@ class Shoes
|
|
23
24
|
::Shoes::Common::Changeable => [:call_change_listeners]
|
24
25
|
}.freeze
|
25
26
|
|
26
|
-
# only the main thread may draw
|
27
|
-
NEED_TO_ASYNC_UPDATE_GUI = { ::Shoes::Download => [:eval_block] }.freeze
|
28
|
-
|
29
27
|
# These need to trigger a redraw
|
30
28
|
SAME_POSITION = { Common::Visibility => [:update_visibility],
|
31
29
|
Image => [:create_image],
|
@@ -60,7 +58,6 @@ class Shoes
|
|
60
58
|
|
61
59
|
def affected_classes
|
62
60
|
classes = NEED_TO_UPDATE.keys +
|
63
|
-
NEED_TO_ASYNC_UPDATE_GUI.keys +
|
64
61
|
SAME_POSITION.keys +
|
65
62
|
CHANGED_POSITION.keys
|
66
63
|
classes.uniq
|
@@ -70,9 +67,6 @@ class Shoes
|
|
70
67
|
after_every NEED_TO_UPDATE do
|
71
68
|
update_gui
|
72
69
|
end
|
73
|
-
after_every NEED_TO_ASYNC_UPDATE_GUI do
|
74
|
-
@display.asyncExec { update_gui }
|
75
|
-
end
|
76
70
|
after_every SAME_POSITION do |*_args, element|
|
77
71
|
element = element.dsl if element.respond_to? :dsl
|
78
72
|
redraw_element element, false
|
@@ -101,6 +95,9 @@ class Shoes
|
|
101
95
|
end
|
102
96
|
|
103
97
|
def redraw_target(element)
|
98
|
+
# During DSL initialization element.gui is nil, so if a SWT backend
|
99
|
+
# object causes a redraw in its initailize (like Shoes::Swt::Image),
|
100
|
+
# we won't have gui set yet. Annoying, but fine.
|
104
101
|
if element.gui
|
105
102
|
element.gui.redraw_target
|
106
103
|
else
|
@@ -84,8 +84,17 @@ class Shoes
|
|
84
84
|
}
|
85
85
|
end
|
86
86
|
|
87
|
+
# Why not just use layout.bounds? Recent versions of SWT have shown
|
88
|
+
# platform dependent behavior about whether spacing is included in
|
89
|
+
# bounds, leading to unpredictable placement. Doing it more directly
|
90
|
+
# per-line in this fashion insulates us from the regression. #1295
|
87
91
|
def height
|
88
|
-
|
92
|
+
line_count = layout.line_count
|
93
|
+
h = (line_count - 1) * layout.spacing
|
94
|
+
line_count.times do |i|
|
95
|
+
h += layout.get_line_bounds(i).height
|
96
|
+
end
|
97
|
+
h
|
89
98
|
end
|
90
99
|
|
91
100
|
def last_line_height
|
data/lib/shoes/swt/version.rb
CHANGED
data/lib/shoes/swt.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'java'
|
2
|
-
require 'swt'
|
2
|
+
require 'swt/minimal'
|
3
|
+
require 'swt/core'
|
3
4
|
require 'after_do'
|
4
5
|
require 'shoes'
|
5
6
|
|
@@ -47,9 +48,6 @@ class Shoes
|
|
47
48
|
return if @initialized
|
48
49
|
@initialized = true
|
49
50
|
|
50
|
-
::Swt::Widgets::Display.new.getFontList(nil, true).each { |f| ::Shoes::FONTS << f.getName }
|
51
|
-
::Shoes::FONTS.uniq!
|
52
|
-
|
53
51
|
::Shoes.configuration.backend = :swt
|
54
52
|
|
55
53
|
require 'shoes/swt/disposed_protection'
|
@@ -129,7 +127,6 @@ class Shoes
|
|
129
127
|
# redrawing aspect needs to know all the classes
|
130
128
|
require 'shoes/swt/redrawing_aspect'
|
131
129
|
|
132
|
-
::Shoes::Swt::App.setup_system_colors
|
133
130
|
@initialized = true
|
134
131
|
rescue Java::OrgEclipseSwt::SWTException => e
|
135
132
|
if e.message == "Invalid thread access"
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoes-swt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.pre8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Shoes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 4.
|
18
|
+
version: 4.6.1.1
|
19
19
|
name: swt
|
20
20
|
prerelease: false
|
21
21
|
type: :runtime
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
26
|
+
version: 4.6.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - '='
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 4.0.0.
|
46
|
+
version: 4.0.0.pre8
|
47
47
|
name: shoes-core
|
48
48
|
prerelease: false
|
49
49
|
type: :runtime
|
@@ -51,13 +51,13 @@ dependencies:
|
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 4.0.0.
|
54
|
+
version: 4.0.0.pre8
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - '='
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 4.0.0.
|
60
|
+
version: 4.0.0.pre8
|
61
61
|
name: shoes-package
|
62
62
|
prerelease: false
|
63
63
|
type: :runtime
|
@@ -65,19 +65,17 @@ dependencies:
|
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.0.0.
|
68
|
+
version: 4.0.0.pre8
|
69
69
|
description: A JRuby and Swt backend for Shoes, the best little GUI toolkit for Ruby. Shoes makes building for Mac, Windows, and Linux super simple.
|
70
70
|
email:
|
71
|
-
- shoes@
|
71
|
+
- shoes@lists.mvmanila.com
|
72
72
|
executables:
|
73
73
|
- shoes-swt
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
-
- Guardfile
|
78
77
|
- LICENSE
|
79
78
|
- README.md
|
80
|
-
- Rakefile
|
81
79
|
- bin/shoes-swt
|
82
80
|
- lib/shoes/swt.rb
|
83
81
|
- lib/shoes/swt/animation.rb
|
@@ -158,74 +156,6 @@ files:
|
|
158
156
|
- lib/shoes/swt/timer.rb
|
159
157
|
- lib/shoes/swt/tooling/leak_hunter.rb
|
160
158
|
- lib/shoes/swt/version.rb
|
161
|
-
- shoes-swt.gemspec
|
162
|
-
- spec/shoes/cli_spec.rb
|
163
|
-
- spec/shoes/swt/animation_spec.rb
|
164
|
-
- spec/shoes/swt/app_spec.rb
|
165
|
-
- spec/shoes/swt/arc_painter_spec.rb
|
166
|
-
- spec/shoes/swt/arc_spec.rb
|
167
|
-
- spec/shoes/swt/arrow_painter_spec.rb
|
168
|
-
- spec/shoes/swt/arrow_spec.rb
|
169
|
-
- spec/shoes/swt/background_spec.rb
|
170
|
-
- spec/shoes/swt/border_spec.rb
|
171
|
-
- spec/shoes/swt/button_spec.rb
|
172
|
-
- spec/shoes/swt/check_spec.rb
|
173
|
-
- spec/shoes/swt/click_listener_spec.rb
|
174
|
-
- spec/shoes/swt/color_factory_spec.rb
|
175
|
-
- spec/shoes/swt/color_spec.rb
|
176
|
-
- spec/shoes/swt/common/painter_spec.rb
|
177
|
-
- spec/shoes/swt/common/remove_spec.rb
|
178
|
-
- spec/shoes/swt/configuration_spec.rb
|
179
|
-
- spec/shoes/swt/dialog_spec.rb
|
180
|
-
- spec/shoes/swt/disposed_protection_spec.rb
|
181
|
-
- spec/shoes/swt/flow_spec.rb
|
182
|
-
- spec/shoes/swt/font_spec.rb
|
183
|
-
- spec/shoes/swt/gradient_spec.rb
|
184
|
-
- spec/shoes/swt/image_pattern_spec.rb
|
185
|
-
- spec/shoes/swt/image_spec.rb
|
186
|
-
- spec/shoes/swt/input_box_spec.rb
|
187
|
-
- spec/shoes/swt/integration_spec.rb
|
188
|
-
- spec/shoes/swt/key_listener_spec.rb
|
189
|
-
- spec/shoes/swt/line_painter_spec.rb
|
190
|
-
- spec/shoes/swt/line_spec.rb
|
191
|
-
- spec/shoes/swt/link_segment_spec.rb
|
192
|
-
- spec/shoes/swt/link_spec.rb
|
193
|
-
- spec/shoes/swt/list_box_spec.rb
|
194
|
-
- spec/shoes/swt/minimal.png
|
195
|
-
- spec/shoes/swt/mouse_move_listener_spec.rb
|
196
|
-
- spec/shoes/swt/oval_painter_spec.rb
|
197
|
-
- spec/shoes/swt/oval_spec.rb
|
198
|
-
- spec/shoes/swt/progress_spec.rb
|
199
|
-
- spec/shoes/swt/radio_group_spec.rb
|
200
|
-
- spec/shoes/swt/radio_spec.rb
|
201
|
-
- spec/shoes/swt/rect_painter_spec.rb
|
202
|
-
- spec/shoes/swt/rect_spec.rb
|
203
|
-
- spec/shoes/swt/shape_painter_spec.rb
|
204
|
-
- spec/shoes/swt/shape_spec.rb
|
205
|
-
- spec/shoes/swt/shared_examples/button.rb
|
206
|
-
- spec/shoes/swt/shared_examples/clickable.rb
|
207
|
-
- spec/shoes/swt/shared_examples/movable.rb
|
208
|
-
- spec/shoes/swt/shared_examples/paintable.rb
|
209
|
-
- spec/shoes/swt/shared_examples/painter.rb
|
210
|
-
- spec/shoes/swt/shared_examples/pattern.rb
|
211
|
-
- spec/shoes/swt/shared_examples/removable.rb
|
212
|
-
- spec/shoes/swt/shared_examples/swt_app_context.rb
|
213
|
-
- spec/shoes/swt/shared_examples/visibility.rb
|
214
|
-
- spec/shoes/swt/shell_control_listener_spec.rb
|
215
|
-
- spec/shoes/swt/shoes_layout_spec.rb
|
216
|
-
- spec/shoes/swt/slot_spec.rb
|
217
|
-
- spec/shoes/swt/spec_helper.rb
|
218
|
-
- spec/shoes/swt/star_painter_spec.rb
|
219
|
-
- spec/shoes/swt/star_spec.rb
|
220
|
-
- spec/shoes/swt/text_block/centered_text_segment_spec.rb
|
221
|
-
- spec/shoes/swt/text_block/cursor_painter_spec.rb
|
222
|
-
- spec/shoes/swt/text_block/fitter_spec.rb
|
223
|
-
- spec/shoes/swt/text_block/painter_spec.rb
|
224
|
-
- spec/shoes/swt/text_block/text_font_factory_spec.rb
|
225
|
-
- spec/shoes/swt/text_block/text_segment_collection_spec.rb
|
226
|
-
- spec/shoes/swt/text_block/text_segment_spec.rb
|
227
|
-
- spec/shoes/swt/text_block_spec.rb
|
228
|
-
- spec/spec_helper.rb
|
229
159
|
homepage: https://github.com/shoes/shoes4
|
230
160
|
licenses:
|
231
161
|
- MIT
|
@@ -246,75 +176,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
176
|
version: 1.3.1
|
247
177
|
requirements: []
|
248
178
|
rubyforge_project:
|
249
|
-
rubygems_version: 2.6.
|
179
|
+
rubygems_version: 2.6.10
|
250
180
|
signing_key:
|
251
181
|
specification_version: 4
|
252
182
|
summary: A JRuby and Swt backend for Shoes, the best little GUI toolkit for Ruby.
|
253
|
-
test_files:
|
254
|
-
- spec/shoes/cli_spec.rb
|
255
|
-
- spec/shoes/swt/animation_spec.rb
|
256
|
-
- spec/shoes/swt/app_spec.rb
|
257
|
-
- spec/shoes/swt/arc_painter_spec.rb
|
258
|
-
- spec/shoes/swt/arc_spec.rb
|
259
|
-
- spec/shoes/swt/arrow_painter_spec.rb
|
260
|
-
- spec/shoes/swt/arrow_spec.rb
|
261
|
-
- spec/shoes/swt/background_spec.rb
|
262
|
-
- spec/shoes/swt/border_spec.rb
|
263
|
-
- spec/shoes/swt/button_spec.rb
|
264
|
-
- spec/shoes/swt/check_spec.rb
|
265
|
-
- spec/shoes/swt/click_listener_spec.rb
|
266
|
-
- spec/shoes/swt/color_factory_spec.rb
|
267
|
-
- spec/shoes/swt/color_spec.rb
|
268
|
-
- spec/shoes/swt/common/painter_spec.rb
|
269
|
-
- spec/shoes/swt/common/remove_spec.rb
|
270
|
-
- spec/shoes/swt/configuration_spec.rb
|
271
|
-
- spec/shoes/swt/dialog_spec.rb
|
272
|
-
- spec/shoes/swt/disposed_protection_spec.rb
|
273
|
-
- spec/shoes/swt/flow_spec.rb
|
274
|
-
- spec/shoes/swt/font_spec.rb
|
275
|
-
- spec/shoes/swt/gradient_spec.rb
|
276
|
-
- spec/shoes/swt/image_pattern_spec.rb
|
277
|
-
- spec/shoes/swt/image_spec.rb
|
278
|
-
- spec/shoes/swt/input_box_spec.rb
|
279
|
-
- spec/shoes/swt/integration_spec.rb
|
280
|
-
- spec/shoes/swt/key_listener_spec.rb
|
281
|
-
- spec/shoes/swt/line_painter_spec.rb
|
282
|
-
- spec/shoes/swt/line_spec.rb
|
283
|
-
- spec/shoes/swt/link_segment_spec.rb
|
284
|
-
- spec/shoes/swt/link_spec.rb
|
285
|
-
- spec/shoes/swt/list_box_spec.rb
|
286
|
-
- spec/shoes/swt/minimal.png
|
287
|
-
- spec/shoes/swt/mouse_move_listener_spec.rb
|
288
|
-
- spec/shoes/swt/oval_painter_spec.rb
|
289
|
-
- spec/shoes/swt/oval_spec.rb
|
290
|
-
- spec/shoes/swt/progress_spec.rb
|
291
|
-
- spec/shoes/swt/radio_group_spec.rb
|
292
|
-
- spec/shoes/swt/radio_spec.rb
|
293
|
-
- spec/shoes/swt/rect_painter_spec.rb
|
294
|
-
- spec/shoes/swt/rect_spec.rb
|
295
|
-
- spec/shoes/swt/shape_painter_spec.rb
|
296
|
-
- spec/shoes/swt/shape_spec.rb
|
297
|
-
- spec/shoes/swt/shared_examples/button.rb
|
298
|
-
- spec/shoes/swt/shared_examples/clickable.rb
|
299
|
-
- spec/shoes/swt/shared_examples/movable.rb
|
300
|
-
- spec/shoes/swt/shared_examples/paintable.rb
|
301
|
-
- spec/shoes/swt/shared_examples/painter.rb
|
302
|
-
- spec/shoes/swt/shared_examples/pattern.rb
|
303
|
-
- spec/shoes/swt/shared_examples/removable.rb
|
304
|
-
- spec/shoes/swt/shared_examples/swt_app_context.rb
|
305
|
-
- spec/shoes/swt/shared_examples/visibility.rb
|
306
|
-
- spec/shoes/swt/shell_control_listener_spec.rb
|
307
|
-
- spec/shoes/swt/shoes_layout_spec.rb
|
308
|
-
- spec/shoes/swt/slot_spec.rb
|
309
|
-
- spec/shoes/swt/spec_helper.rb
|
310
|
-
- spec/shoes/swt/star_painter_spec.rb
|
311
|
-
- spec/shoes/swt/star_spec.rb
|
312
|
-
- spec/shoes/swt/text_block/centered_text_segment_spec.rb
|
313
|
-
- spec/shoes/swt/text_block/cursor_painter_spec.rb
|
314
|
-
- spec/shoes/swt/text_block/fitter_spec.rb
|
315
|
-
- spec/shoes/swt/text_block/painter_spec.rb
|
316
|
-
- spec/shoes/swt/text_block/text_font_factory_spec.rb
|
317
|
-
- spec/shoes/swt/text_block/text_segment_collection_spec.rb
|
318
|
-
- spec/shoes/swt/text_block/text_segment_spec.rb
|
319
|
-
- spec/shoes/swt/text_block_spec.rb
|
320
|
-
- spec/spec_helper.rb
|
183
|
+
test_files: []
|
data/Guardfile
DELETED
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|