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.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/Guardfile +5 -0
  3. data/bin/shoes +1 -1
  4. data/bin/shoes-stub +1 -1
  5. data/ext/install/Rakefile +15 -5
  6. data/ext/install/shoes.bat +1 -1
  7. data/lib/shoes/animation.rb +2 -2
  8. data/lib/shoes/arc.rb +1 -0
  9. data/lib/shoes/builtin_methods.rb +5 -18
  10. data/lib/shoes/button.rb +1 -5
  11. data/lib/shoes/check_button.rb +1 -5
  12. data/lib/shoes/color.rb +5 -274
  13. data/lib/shoes/color/dsl.rb +166 -0
  14. data/lib/shoes/color/dsl_helpers.rb +84 -0
  15. data/lib/shoes/color/hex_converter.rb +32 -0
  16. data/lib/shoes/common/background_element.rb +5 -0
  17. data/lib/shoes/common/hover.rb +87 -0
  18. data/lib/shoes/common/initialization.rb +21 -8
  19. data/lib/shoes/common/remove.rb +2 -0
  20. data/lib/shoes/common/state.rb +17 -3
  21. data/lib/shoes/common/style.rb +8 -0
  22. data/lib/shoes/configuration.rb +18 -15
  23. data/lib/shoes/core/version.rb +1 -1
  24. data/lib/shoes/dimension.rb +6 -19
  25. data/lib/shoes/dimensions.rb +8 -0
  26. data/lib/shoes/download.rb +5 -3
  27. data/lib/shoes/dsl.rb +3 -3
  28. data/lib/shoes/image.rb +1 -0
  29. data/lib/shoes/image_pattern.rb +1 -1
  30. data/lib/shoes/input_box.rb +2 -5
  31. data/lib/shoes/internal_app.rb +13 -2
  32. data/lib/shoes/line.rb +1 -0
  33. data/lib/shoes/link.rb +8 -0
  34. data/lib/shoes/list_box.rb +2 -5
  35. data/lib/shoes/mock/check.rb +3 -0
  36. data/lib/shoes/mock/image.rb +6 -0
  37. data/lib/shoes/mock/progress.rb +6 -0
  38. data/lib/shoes/mock/radio.rb +3 -0
  39. data/lib/shoes/mock/sound.rb +1 -1
  40. data/lib/shoes/oval.rb +1 -0
  41. data/lib/shoes/packager.rb +1 -1
  42. data/lib/shoes/rect.rb +1 -0
  43. data/lib/shoes/shape.rb +4 -0
  44. data/lib/shoes/slot.rb +75 -38
  45. data/lib/shoes/slot_contents.rb +4 -0
  46. data/lib/shoes/sound.rb +3 -2
  47. data/lib/shoes/star.rb +1 -0
  48. data/lib/shoes/text_block.rb +18 -2
  49. data/lib/shoes/text_block_dimensions.rb +19 -3
  50. data/lib/shoes/timer.rb +2 -2
  51. data/lib/shoes/ui/picker.rb +4 -4
  52. data/lib/shoes/version.rb +1 -1
  53. data/shoes-core.gemspec +1 -1
  54. data/spec/shoes/animation_spec.rb +2 -2
  55. data/spec/shoes/app_spec.rb +6 -17
  56. data/spec/shoes/arc_spec.rb +2 -1
  57. data/spec/shoes/background_spec.rb +2 -2
  58. data/spec/shoes/border_spec.rb +2 -2
  59. data/spec/shoes/builtin_methods_spec.rb +68 -56
  60. data/spec/shoes/button_spec.rb +3 -3
  61. data/spec/shoes/check_spec.rb +3 -2
  62. data/spec/shoes/color_spec.rb +9 -3
  63. data/spec/shoes/common/remove_spec.rb +0 -1
  64. data/spec/shoes/common/rotate_spec.rb +13 -0
  65. data/spec/shoes/common/style_spec.rb +12 -3
  66. data/spec/shoes/configuration_spec.rb +18 -3
  67. data/spec/shoes/constants_spec.rb +1 -0
  68. data/spec/shoes/dialog_spec.rb +1 -3
  69. data/spec/shoes/dimension_spec.rb +33 -24
  70. data/spec/shoes/dimensions_spec.rb +21 -31
  71. data/spec/shoes/download_spec.rb +14 -3
  72. data/spec/shoes/flow_spec.rb +6 -7
  73. data/spec/shoes/font_spec.rb +2 -3
  74. data/spec/shoes/framework_learning_spec.rb +1 -2
  75. data/spec/shoes/gradient_spec.rb +1 -2
  76. data/spec/shoes/helpers/fake_absolute_element.rb +30 -0
  77. data/spec/shoes/helpers/sample17_helper.rb +0 -1
  78. data/spec/shoes/image_spec.rb +2 -1
  79. data/spec/shoes/input_box_spec.rb +2 -2
  80. data/spec/shoes/integration_spec.rb +0 -1
  81. data/spec/shoes/internal_app_spec.rb +4 -5
  82. data/spec/shoes/keypress_spec.rb +1 -1
  83. data/spec/shoes/keyrelease_spec.rb +1 -2
  84. data/spec/shoes/line_spec.rb +3 -2
  85. data/spec/shoes/link_spec.rb +26 -6
  86. data/spec/shoes/list_box_spec.rb +2 -2
  87. data/spec/shoes/oval_spec.rb +2 -1
  88. data/spec/shoes/packager_spec.rb +1 -1
  89. data/spec/shoes/point_spec.rb +1 -1
  90. data/spec/shoes/progress_spec.rb +1 -1
  91. data/spec/shoes/radio_spec.rb +1 -1
  92. data/spec/shoes/rect_spec.rb +2 -1
  93. data/spec/shoes/renamed_delegate_spec.rb +0 -1
  94. data/spec/shoes/shape_spec.rb +1 -1
  95. data/spec/shoes/shared_examples/common_methods.rb +1 -1
  96. data/spec/shoes/shared_examples/dsl/animate.rb +1 -1
  97. data/spec/shoes/shared_examples/dsl/background.rb +2 -2
  98. data/spec/shoes/shared_examples/dsl/rgb.rb +4 -2
  99. data/spec/shoes/shared_examples/dsl/star.rb +0 -1
  100. data/spec/shoes/shared_examples/dsl/style.rb +1 -1
  101. data/spec/shoes/shared_examples/dsl/text_elements.rb +2 -2
  102. data/spec/shoes/shared_examples/dsl/video.rb +1 -1
  103. data/spec/shoes/shared_examples/dsl_app_context.rb +4 -1
  104. data/spec/shoes/shared_examples/hover.rb +78 -0
  105. data/spec/shoes/shared_examples/slot.rb +34 -4
  106. data/spec/shoes/shared_examples/state.rb +9 -2
  107. data/spec/shoes/shared_examples/style.rb +0 -5
  108. data/spec/shoes/slot_spec.rb +11 -38
  109. data/spec/shoes/sound_spec.rb +3 -2
  110. data/spec/shoes/span_spec.rb +2 -2
  111. data/spec/shoes/spec_helper.rb +1 -1
  112. data/spec/shoes/stack_spec.rb +6 -6
  113. data/spec/shoes/star_spec.rb +2 -1
  114. data/spec/shoes/text_block_dimensions_spec.rb +3 -4
  115. data/spec/shoes/text_block_spec.rb +16 -11
  116. data/spec/shoes/ui/picker_spec.rb +5 -6
  117. data/spec/shoes/url_spec.rb +1 -2
  118. data/spec/shoes/widget_spec.rb +11 -3
  119. data/spec/shoes_spec.rb +1 -4
  120. data/spec/spec_helper.rb +2 -1
  121. metadata +16 -9
  122. data/bin/shoes-guard +0 -8
  123. data/lib/shoes/link_hover.rb +0 -5
  124. 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.pre4
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-05-16 00:00:00.000000000 Z
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/hover_leave.rb
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.2
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/hover_leave.rb
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
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env sh
2
- case "${MACHTYPE:-}" in
3
- (*darwin*)
4
- swt_opt="-J-XstartOnFirstThread"
5
- ;;
6
- esac
7
-
8
- eval "JRUBY_OPTS=${swt_opt:-} bundle exec guard"
@@ -1,5 +0,0 @@
1
- class Shoes
2
- class LinkHover
3
- # Just a placeholder for now until we get this implemented
4
- end
5
- end
@@ -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