shoes-core 4.0.0.pre4 → 4.0.0.pre5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Guardfile +5 -0
- data/bin/shoes +1 -1
- data/bin/shoes-stub +1 -1
- data/ext/install/Rakefile +15 -5
- data/ext/install/shoes.bat +1 -1
- data/lib/shoes/animation.rb +2 -2
- data/lib/shoes/arc.rb +1 -0
- data/lib/shoes/builtin_methods.rb +5 -18
- data/lib/shoes/button.rb +1 -5
- data/lib/shoes/check_button.rb +1 -5
- data/lib/shoes/color.rb +5 -274
- data/lib/shoes/color/dsl.rb +166 -0
- data/lib/shoes/color/dsl_helpers.rb +84 -0
- data/lib/shoes/color/hex_converter.rb +32 -0
- data/lib/shoes/common/background_element.rb +5 -0
- data/lib/shoes/common/hover.rb +87 -0
- data/lib/shoes/common/initialization.rb +21 -8
- data/lib/shoes/common/remove.rb +2 -0
- data/lib/shoes/common/state.rb +17 -3
- data/lib/shoes/common/style.rb +8 -0
- data/lib/shoes/configuration.rb +18 -15
- data/lib/shoes/core/version.rb +1 -1
- data/lib/shoes/dimension.rb +6 -19
- data/lib/shoes/dimensions.rb +8 -0
- data/lib/shoes/download.rb +5 -3
- data/lib/shoes/dsl.rb +3 -3
- data/lib/shoes/image.rb +1 -0
- data/lib/shoes/image_pattern.rb +1 -1
- data/lib/shoes/input_box.rb +2 -5
- data/lib/shoes/internal_app.rb +13 -2
- data/lib/shoes/line.rb +1 -0
- data/lib/shoes/link.rb +8 -0
- data/lib/shoes/list_box.rb +2 -5
- data/lib/shoes/mock/check.rb +3 -0
- data/lib/shoes/mock/image.rb +6 -0
- data/lib/shoes/mock/progress.rb +6 -0
- data/lib/shoes/mock/radio.rb +3 -0
- data/lib/shoes/mock/sound.rb +1 -1
- data/lib/shoes/oval.rb +1 -0
- data/lib/shoes/packager.rb +1 -1
- data/lib/shoes/rect.rb +1 -0
- data/lib/shoes/shape.rb +4 -0
- data/lib/shoes/slot.rb +75 -38
- data/lib/shoes/slot_contents.rb +4 -0
- data/lib/shoes/sound.rb +3 -2
- data/lib/shoes/star.rb +1 -0
- data/lib/shoes/text_block.rb +18 -2
- data/lib/shoes/text_block_dimensions.rb +19 -3
- data/lib/shoes/timer.rb +2 -2
- data/lib/shoes/ui/picker.rb +4 -4
- data/lib/shoes/version.rb +1 -1
- data/shoes-core.gemspec +1 -1
- data/spec/shoes/animation_spec.rb +2 -2
- data/spec/shoes/app_spec.rb +6 -17
- data/spec/shoes/arc_spec.rb +2 -1
- data/spec/shoes/background_spec.rb +2 -2
- data/spec/shoes/border_spec.rb +2 -2
- data/spec/shoes/builtin_methods_spec.rb +68 -56
- data/spec/shoes/button_spec.rb +3 -3
- data/spec/shoes/check_spec.rb +3 -2
- data/spec/shoes/color_spec.rb +9 -3
- data/spec/shoes/common/remove_spec.rb +0 -1
- data/spec/shoes/common/rotate_spec.rb +13 -0
- data/spec/shoes/common/style_spec.rb +12 -3
- data/spec/shoes/configuration_spec.rb +18 -3
- data/spec/shoes/constants_spec.rb +1 -0
- data/spec/shoes/dialog_spec.rb +1 -3
- data/spec/shoes/dimension_spec.rb +33 -24
- data/spec/shoes/dimensions_spec.rb +21 -31
- data/spec/shoes/download_spec.rb +14 -3
- data/spec/shoes/flow_spec.rb +6 -7
- data/spec/shoes/font_spec.rb +2 -3
- data/spec/shoes/framework_learning_spec.rb +1 -2
- data/spec/shoes/gradient_spec.rb +1 -2
- data/spec/shoes/helpers/fake_absolute_element.rb +30 -0
- data/spec/shoes/helpers/sample17_helper.rb +0 -1
- data/spec/shoes/image_spec.rb +2 -1
- data/spec/shoes/input_box_spec.rb +2 -2
- data/spec/shoes/integration_spec.rb +0 -1
- data/spec/shoes/internal_app_spec.rb +4 -5
- data/spec/shoes/keypress_spec.rb +1 -1
- data/spec/shoes/keyrelease_spec.rb +1 -2
- data/spec/shoes/line_spec.rb +3 -2
- data/spec/shoes/link_spec.rb +26 -6
- data/spec/shoes/list_box_spec.rb +2 -2
- data/spec/shoes/oval_spec.rb +2 -1
- data/spec/shoes/packager_spec.rb +1 -1
- data/spec/shoes/point_spec.rb +1 -1
- data/spec/shoes/progress_spec.rb +1 -1
- data/spec/shoes/radio_spec.rb +1 -1
- data/spec/shoes/rect_spec.rb +2 -1
- data/spec/shoes/renamed_delegate_spec.rb +0 -1
- data/spec/shoes/shape_spec.rb +1 -1
- data/spec/shoes/shared_examples/common_methods.rb +1 -1
- data/spec/shoes/shared_examples/dsl/animate.rb +1 -1
- data/spec/shoes/shared_examples/dsl/background.rb +2 -2
- data/spec/shoes/shared_examples/dsl/rgb.rb +4 -2
- data/spec/shoes/shared_examples/dsl/star.rb +0 -1
- data/spec/shoes/shared_examples/dsl/style.rb +1 -1
- data/spec/shoes/shared_examples/dsl/text_elements.rb +2 -2
- data/spec/shoes/shared_examples/dsl/video.rb +1 -1
- data/spec/shoes/shared_examples/dsl_app_context.rb +4 -1
- data/spec/shoes/shared_examples/hover.rb +78 -0
- data/spec/shoes/shared_examples/slot.rb +34 -4
- data/spec/shoes/shared_examples/state.rb +9 -2
- data/spec/shoes/shared_examples/style.rb +0 -5
- data/spec/shoes/slot_spec.rb +11 -38
- data/spec/shoes/sound_spec.rb +3 -2
- data/spec/shoes/span_spec.rb +2 -2
- data/spec/shoes/spec_helper.rb +1 -1
- data/spec/shoes/stack_spec.rb +6 -6
- data/spec/shoes/star_spec.rb +2 -1
- data/spec/shoes/text_block_dimensions_spec.rb +3 -4
- data/spec/shoes/text_block_spec.rb +16 -11
- data/spec/shoes/ui/picker_spec.rb +5 -6
- data/spec/shoes/url_spec.rb +1 -2
- data/spec/shoes/widget_spec.rb +11 -3
- data/spec/shoes_spec.rb +1 -4
- data/spec/spec_helper.rb +2 -1
- metadata +16 -9
- data/bin/shoes-guard +0 -8
- data/lib/shoes/link_hover.rb +0 -5
- data/spec/shoes/shared_examples/hover_leave.rb +0 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoes-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.pre5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Team Shoes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Shoes is the best little GUI toolkit for Ruby. Shoes makes building for Mac, Windows, and Linux super simple. This is the DSL for writing your app. You'll need a backend to run it.
|
14
14
|
email:
|
@@ -20,11 +20,11 @@ extensions:
|
|
20
20
|
- ext/install/Rakefile
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
|
+
- Guardfile
|
23
24
|
- LICENSE
|
24
25
|
- README.md
|
25
26
|
- Rakefile
|
26
27
|
- bin/shoes
|
27
|
-
- bin/shoes-guard
|
28
28
|
- bin/shoes-picker
|
29
29
|
- bin/shoes-stub
|
30
30
|
- ext/install/Rakefile
|
@@ -42,10 +42,14 @@ files:
|
|
42
42
|
- lib/shoes/button.rb
|
43
43
|
- lib/shoes/check_button.rb
|
44
44
|
- lib/shoes/color.rb
|
45
|
+
- lib/shoes/color/dsl.rb
|
46
|
+
- lib/shoes/color/dsl_helpers.rb
|
47
|
+
- lib/shoes/color/hex_converter.rb
|
45
48
|
- lib/shoes/common/background_element.rb
|
46
49
|
- lib/shoes/common/changeable.rb
|
47
50
|
- lib/shoes/common/clickable.rb
|
48
51
|
- lib/shoes/common/fill.rb
|
52
|
+
- lib/shoes/common/hover.rb
|
49
53
|
- lib/shoes/common/initialization.rb
|
50
54
|
- lib/shoes/common/inspect.rb
|
51
55
|
- lib/shoes/common/positioning.rb
|
@@ -76,7 +80,6 @@ files:
|
|
76
80
|
- lib/shoes/key_event.rb
|
77
81
|
- lib/shoes/line.rb
|
78
82
|
- lib/shoes/link.rb
|
79
|
-
- lib/shoes/link_hover.rb
|
80
83
|
- lib/shoes/list_box.rb
|
81
84
|
- lib/shoes/logger.rb
|
82
85
|
- lib/shoes/logger/ruby.rb
|
@@ -147,6 +150,7 @@ files:
|
|
147
150
|
- spec/shoes/color_spec.rb
|
148
151
|
- spec/shoes/common/inspect_spec.rb
|
149
152
|
- spec/shoes/common/remove_spec.rb
|
153
|
+
- spec/shoes/common/rotate_spec.rb
|
150
154
|
- spec/shoes/common/style_normalizer_spec.rb
|
151
155
|
- spec/shoes/common/style_spec.rb
|
152
156
|
- spec/shoes/configuration_spec.rb
|
@@ -159,6 +163,7 @@ files:
|
|
159
163
|
- spec/shoes/font_spec.rb
|
160
164
|
- spec/shoes/framework_learning_spec.rb
|
161
165
|
- spec/shoes/gradient_spec.rb
|
166
|
+
- spec/shoes/helpers/fake_absolute_element.rb
|
162
167
|
- spec/shoes/helpers/fake_element.rb
|
163
168
|
- spec/shoes/helpers/inspect_helpers.rb
|
164
169
|
- spec/shoes/helpers/sample17_helper.rb
|
@@ -218,7 +223,7 @@ files:
|
|
218
223
|
- spec/shoes/shared_examples/dsl/text_elements.rb
|
219
224
|
- spec/shoes/shared_examples/dsl/video.rb
|
220
225
|
- spec/shoes/shared_examples/dsl_app_context.rb
|
221
|
-
- spec/shoes/shared_examples/
|
226
|
+
- spec/shoes/shared_examples/hover.rb
|
222
227
|
- spec/shoes/shared_examples/parent.rb
|
223
228
|
- spec/shoes/shared_examples/scroll.rb
|
224
229
|
- spec/shoes/shared_examples/shared_element_method.rb
|
@@ -252,17 +257,17 @@ require_paths:
|
|
252
257
|
- lib
|
253
258
|
required_ruby_version: !ruby/object:Gem::Requirement
|
254
259
|
requirements:
|
255
|
-
- -
|
260
|
+
- - ">="
|
256
261
|
- !ruby/object:Gem::Version
|
257
262
|
version: '0'
|
258
263
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
264
|
requirements:
|
260
|
-
- -
|
265
|
+
- - ">"
|
261
266
|
- !ruby/object:Gem::Version
|
262
267
|
version: 1.3.1
|
263
268
|
requirements: []
|
264
269
|
rubyforge_project:
|
265
|
-
rubygems_version: 2.4.
|
270
|
+
rubygems_version: 2.4.8
|
266
271
|
signing_key:
|
267
272
|
specification_version: 4
|
268
273
|
summary: The best little DSL for the best little GUI toolkit for Ruby.
|
@@ -278,6 +283,7 @@ test_files:
|
|
278
283
|
- spec/shoes/color_spec.rb
|
279
284
|
- spec/shoes/common/inspect_spec.rb
|
280
285
|
- spec/shoes/common/remove_spec.rb
|
286
|
+
- spec/shoes/common/rotate_spec.rb
|
281
287
|
- spec/shoes/common/style_normalizer_spec.rb
|
282
288
|
- spec/shoes/common/style_spec.rb
|
283
289
|
- spec/shoes/configuration_spec.rb
|
@@ -290,6 +296,7 @@ test_files:
|
|
290
296
|
- spec/shoes/font_spec.rb
|
291
297
|
- spec/shoes/framework_learning_spec.rb
|
292
298
|
- spec/shoes/gradient_spec.rb
|
299
|
+
- spec/shoes/helpers/fake_absolute_element.rb
|
293
300
|
- spec/shoes/helpers/fake_element.rb
|
294
301
|
- spec/shoes/helpers/inspect_helpers.rb
|
295
302
|
- spec/shoes/helpers/sample17_helper.rb
|
@@ -349,7 +356,7 @@ test_files:
|
|
349
356
|
- spec/shoes/shared_examples/dsl/text_elements.rb
|
350
357
|
- spec/shoes/shared_examples/dsl/video.rb
|
351
358
|
- spec/shoes/shared_examples/dsl_app_context.rb
|
352
|
-
- spec/shoes/shared_examples/
|
359
|
+
- spec/shoes/shared_examples/hover.rb
|
353
360
|
- spec/shoes/shared_examples/parent.rb
|
354
361
|
- spec/shoes/shared_examples/scroll.rb
|
355
362
|
- spec/shoes/shared_examples/shared_element_method.rb
|
data/bin/shoes-guard
DELETED
data/lib/shoes/link_hover.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
shared_examples "hover and leave events" do
|
2
|
-
let(:proc) {Proc.new do end}
|
3
|
-
|
4
|
-
it 'can execute hover without raising an error' do
|
5
|
-
expect{subject.hover proc}.not_to raise_error
|
6
|
-
end
|
7
|
-
|
8
|
-
it 'can execute leave without raising an error' do
|
9
|
-
expect{subject.leave proc}.not_to raise_error
|
10
|
-
end
|
11
|
-
end
|