shoes-core 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.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shoes/arc.rb +10 -13
  3. data/lib/shoes/arrow.rb +1 -11
  4. data/lib/shoes/background.rb +0 -3
  5. data/lib/shoes/border.rb +0 -3
  6. data/lib/shoes/button.rb +4 -1
  7. data/lib/shoes/check_button.rb +0 -1
  8. data/lib/shoes/common/art_element.rb +21 -0
  9. data/lib/shoes/common/background_element.rb +10 -0
  10. data/lib/shoes/common/clickable.rb +2 -0
  11. data/lib/shoes/common/rotate.rb +1 -2
  12. data/lib/shoes/common/ui_element.rb +10 -1
  13. data/lib/shoes/core/version.rb +1 -1
  14. data/lib/shoes/download.rb +47 -29
  15. data/lib/shoes/dsl.rb +99 -40
  16. data/lib/shoes/font.rb +0 -4
  17. data/lib/shoes/http_request.rb +91 -0
  18. data/lib/shoes/image.rb +0 -1
  19. data/lib/shoes/input_box.rb +0 -1
  20. data/lib/shoes/internal_app.rb +1 -1
  21. data/lib/shoes/line.rb +25 -11
  22. data/lib/shoes/link.rb +10 -4
  23. data/lib/shoes/list_box.rb +0 -1
  24. data/lib/shoes/mock/app.rb +6 -0
  25. data/lib/shoes/mock/clickable.rb +3 -0
  26. data/lib/shoes/mock/font.rb +0 -4
  27. data/lib/shoes/oval.rb +3 -13
  28. data/lib/shoes/progress.rb +0 -1
  29. data/lib/shoes/rect.rb +1 -11
  30. data/lib/shoes/shape.rb +16 -8
  31. data/lib/shoes/slot.rb +2 -1
  32. data/lib/shoes/star.rb +8 -11
  33. data/lib/shoes/text_block.rb +0 -1
  34. data/lib/shoes/ui/picker.rb +29 -8
  35. data/lib/shoes/version.rb +1 -1
  36. metadata +8 -231
  37. data/Guardfile +0 -5
  38. data/Rakefile +0 -1
  39. data/bin/shoes-stub +0 -62
  40. data/ext/install/Rakefile +0 -39
  41. data/ext/install/shoes.bat +0 -17
  42. data/lib/rubygems_plugin.rb +0 -24
  43. data/shoes-core.gemspec +0 -22
  44. data/spec/shoes/animation_spec.rb +0 -71
  45. data/spec/shoes/app_spec.rb +0 -454
  46. data/spec/shoes/arc_spec.rb +0 -52
  47. data/spec/shoes/arrow_spec.rb +0 -28
  48. data/spec/shoes/background_spec.rb +0 -47
  49. data/spec/shoes/border_spec.rb +0 -46
  50. data/spec/shoes/builtin_methods_spec.rb +0 -122
  51. data/spec/shoes/button_spec.rb +0 -55
  52. data/spec/shoes/check_spec.rb +0 -36
  53. data/spec/shoes/color_spec.rb +0 -429
  54. data/spec/shoes/common/attachable_spec.rb +0 -32
  55. data/spec/shoes/common/inspect_spec.rb +0 -26
  56. data/spec/shoes/common/remove_spec.rb +0 -37
  57. data/spec/shoes/common/rotate_spec.rb +0 -13
  58. data/spec/shoes/common/style_normalizer_spec.rb +0 -28
  59. data/spec/shoes/common/style_spec.rb +0 -197
  60. data/spec/shoes/common/translate_spec.rb +0 -27
  61. data/spec/shoes/configuration_spec.rb +0 -51
  62. data/spec/shoes/constants_spec.rb +0 -39
  63. data/spec/shoes/dialog_spec.rb +0 -169
  64. data/spec/shoes/dimension_spec.rb +0 -451
  65. data/spec/shoes/dimensions_spec.rb +0 -868
  66. data/spec/shoes/download_spec.rb +0 -198
  67. data/spec/shoes/flow_spec.rb +0 -132
  68. data/spec/shoes/font_spec.rb +0 -36
  69. data/spec/shoes/framework_learning_spec.rb +0 -31
  70. data/spec/shoes/gradient_spec.rb +0 -31
  71. data/spec/shoes/helpers/fake_absolute_element.rb +0 -31
  72. data/spec/shoes/helpers/fake_element.rb +0 -25
  73. data/spec/shoes/helpers/inspect_helpers.rb +0 -5
  74. data/spec/shoes/helpers/sample17_helper.rb +0 -65
  75. data/spec/shoes/image_spec.rb +0 -69
  76. data/spec/shoes/images/shoe.jpg +0 -0
  77. data/spec/shoes/input_box_spec.rb +0 -80
  78. data/spec/shoes/integration_spec.rb +0 -19
  79. data/spec/shoes/internal_app_spec.rb +0 -148
  80. data/spec/shoes/keypress_spec.rb +0 -11
  81. data/spec/shoes/keyrelease_spec.rb +0 -11
  82. data/spec/shoes/line_spec.rb +0 -120
  83. data/spec/shoes/link_spec.rb +0 -149
  84. data/spec/shoes/list_box_spec.rb +0 -87
  85. data/spec/shoes/logger/ruby_spec.rb +0 -8
  86. data/spec/shoes/logger_spec.rb +0 -45
  87. data/spec/shoes/oval_spec.rb +0 -25
  88. data/spec/shoes/packager_spec.rb +0 -25
  89. data/spec/shoes/point_spec.rb +0 -99
  90. data/spec/shoes/progress_spec.rb +0 -54
  91. data/spec/shoes/radio_spec.rb +0 -32
  92. data/spec/shoes/rect_spec.rb +0 -40
  93. data/spec/shoes/renamed_delegate_spec.rb +0 -69
  94. data/spec/shoes/shape_spec.rb +0 -119
  95. data/spec/shoes/shared_examples/button.rb +0 -6
  96. data/spec/shoes/shared_examples/changeable.rb +0 -26
  97. data/spec/shoes/shared_examples/clickable.rb +0 -5
  98. data/spec/shoes/shared_examples/common_methods.rb +0 -35
  99. data/spec/shoes/shared_examples/dimensions.rb +0 -32
  100. data/spec/shoes/shared_examples/dsl.rb +0 -44
  101. data/spec/shoes/shared_examples/dsl/animate.rb +0 -29
  102. data/spec/shoes/shared_examples/dsl/arc.rb +0 -45
  103. data/spec/shoes/shared_examples/dsl/background.rb +0 -26
  104. data/spec/shoes/shared_examples/dsl/border.rb +0 -10
  105. data/spec/shoes/shared_examples/dsl/button.rb +0 -5
  106. data/spec/shoes/shared_examples/dsl/cap.rb +0 -6
  107. data/spec/shoes/shared_examples/dsl/check.rb +0 -11
  108. data/spec/shoes/shared_examples/dsl/edit_box.rb +0 -8
  109. data/spec/shoes/shared_examples/dsl/edit_line.rb +0 -8
  110. data/spec/shoes/shared_examples/dsl/editable_element.rb +0 -29
  111. data/spec/shoes/shared_examples/dsl/fill.rb +0 -27
  112. data/spec/shoes/shared_examples/dsl/flow.rb +0 -15
  113. data/spec/shoes/shared_examples/dsl/gradient.rb +0 -62
  114. data/spec/shoes/shared_examples/dsl/image.rb +0 -21
  115. data/spec/shoes/shared_examples/dsl/line.rb +0 -9
  116. data/spec/shoes/shared_examples/dsl/nofill.rb +0 -6
  117. data/spec/shoes/shared_examples/dsl/nostroke.rb +0 -6
  118. data/spec/shoes/shared_examples/dsl/oval.rb +0 -88
  119. data/spec/shoes/shared_examples/dsl/pattern.rb +0 -34
  120. data/spec/shoes/shared_examples/dsl/progress.rb +0 -7
  121. data/spec/shoes/shared_examples/dsl/rect.rb +0 -92
  122. data/spec/shoes/shared_examples/dsl/rgb.rb +0 -28
  123. data/spec/shoes/shared_examples/dsl/shape.rb +0 -61
  124. data/spec/shoes/shared_examples/dsl/star.rb +0 -110
  125. data/spec/shoes/shared_examples/dsl/stroke.rb +0 -30
  126. data/spec/shoes/shared_examples/dsl/strokewidth.rb +0 -19
  127. data/spec/shoes/shared_examples/dsl/style.rb +0 -32
  128. data/spec/shoes/shared_examples/dsl/text_elements.rb +0 -84
  129. data/spec/shoes/shared_examples/dsl/video.rb +0 -5
  130. data/spec/shoes/shared_examples/dsl_app_context.rb +0 -11
  131. data/spec/shoes/shared_examples/hover.rb +0 -78
  132. data/spec/shoes/shared_examples/parent.rb +0 -6
  133. data/spec/shoes/shared_examples/scroll.rb +0 -41
  134. data/spec/shoes/shared_examples/shared_element_method.rb +0 -60
  135. data/spec/shoes/shared_examples/slot.rb +0 -441
  136. data/spec/shoes/shared_examples/state.rb +0 -26
  137. data/spec/shoes/shared_examples/style.rb +0 -77
  138. data/spec/shoes/slot_spec.rb +0 -176
  139. data/spec/shoes/sound_spec.rb +0 -16
  140. data/spec/shoes/span_spec.rb +0 -112
  141. data/spec/shoes/spec_helper.rb +0 -24
  142. data/spec/shoes/stack_spec.rb +0 -79
  143. data/spec/shoes/star_spec.rb +0 -49
  144. data/spec/shoes/text_block_dimensions_spec.rb +0 -77
  145. data/spec/shoes/text_block_spec.rb +0 -314
  146. data/spec/shoes/text_spec.rb +0 -22
  147. data/spec/shoes/ui/picker_spec.rb +0 -69
  148. data/spec/shoes/url_spec.rb +0 -67
  149. data/spec/shoes/widget_spec.rb +0 -78
  150. data/spec/shoes_spec.rb +0 -41
  151. data/spec/spec_helper.rb +0 -27
data/lib/shoes/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Shoes
4
- VERSION = "4.0.0.pre7"
4
+ VERSION = "4.0.0.pre8"
5
5
  end
metadata CHANGED
@@ -1,36 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoes-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.pre7
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: 2016-12-11 00:00:00.000000000 Z
11
+ date: 2017-01-28 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:
15
- - shoes@librelist.com
15
+ - shoes@lists.mvmanila.com
16
16
  executables:
17
17
  - shoes-picker
18
- - shoes-stub
19
- extensions:
20
- - ext/install/Rakefile
18
+ extensions: []
21
19
  extra_rdoc_files: []
22
20
  files:
23
- - Guardfile
24
21
  - LICENSE
25
22
  - README.md
26
- - Rakefile
27
23
  - bin/shoes-picker
28
- - bin/shoes-stub
29
- - ext/install/Rakefile
30
- - ext/install/shoes.bat
31
24
  - fonts/Coolvetica.ttf
32
25
  - fonts/Lacuna.ttf
33
- - lib/rubygems_plugin.rb
34
26
  - lib/shoes.rb
35
27
  - lib/shoes/animation.rb
36
28
  - lib/shoes/app.rb
@@ -45,6 +37,7 @@ files:
45
37
  - lib/shoes/color/dsl.rb
46
38
  - lib/shoes/color/dsl_helpers.rb
47
39
  - lib/shoes/color/hex_converter.rb
40
+ - lib/shoes/common/art_element.rb
48
41
  - lib/shoes/common/attachable.rb
49
42
  - lib/shoes/common/background_element.rb
50
43
  - lib/shoes/common/changeable.rb
@@ -76,6 +69,7 @@ files:
76
69
  - lib/shoes/file_not_found_error.rb
77
70
  - lib/shoes/font.rb
78
71
  - lib/shoes/gradient.rb
72
+ - lib/shoes/http_request.rb
79
73
  - lib/shoes/image.rb
80
74
  - lib/shoes/image_pattern.rb
81
75
  - lib/shoes/input_box.rb
@@ -143,115 +137,6 @@ files:
143
137
  - lib/shoes/version.rb
144
138
  - lib/shoes/widget.rb
145
139
  - lib/shoes/window.rb
146
- - shoes-core.gemspec
147
- - spec/shoes/animation_spec.rb
148
- - spec/shoes/app_spec.rb
149
- - spec/shoes/arc_spec.rb
150
- - spec/shoes/arrow_spec.rb
151
- - spec/shoes/background_spec.rb
152
- - spec/shoes/border_spec.rb
153
- - spec/shoes/builtin_methods_spec.rb
154
- - spec/shoes/button_spec.rb
155
- - spec/shoes/check_spec.rb
156
- - spec/shoes/color_spec.rb
157
- - spec/shoes/common/attachable_spec.rb
158
- - spec/shoes/common/inspect_spec.rb
159
- - spec/shoes/common/remove_spec.rb
160
- - spec/shoes/common/rotate_spec.rb
161
- - spec/shoes/common/style_normalizer_spec.rb
162
- - spec/shoes/common/style_spec.rb
163
- - spec/shoes/common/translate_spec.rb
164
- - spec/shoes/configuration_spec.rb
165
- - spec/shoes/constants_spec.rb
166
- - spec/shoes/dialog_spec.rb
167
- - spec/shoes/dimension_spec.rb
168
- - spec/shoes/dimensions_spec.rb
169
- - spec/shoes/download_spec.rb
170
- - spec/shoes/flow_spec.rb
171
- - spec/shoes/font_spec.rb
172
- - spec/shoes/framework_learning_spec.rb
173
- - spec/shoes/gradient_spec.rb
174
- - spec/shoes/helpers/fake_absolute_element.rb
175
- - spec/shoes/helpers/fake_element.rb
176
- - spec/shoes/helpers/inspect_helpers.rb
177
- - spec/shoes/helpers/sample17_helper.rb
178
- - spec/shoes/image_spec.rb
179
- - spec/shoes/images/shoe.jpg
180
- - spec/shoes/input_box_spec.rb
181
- - spec/shoes/integration_spec.rb
182
- - spec/shoes/internal_app_spec.rb
183
- - spec/shoes/keypress_spec.rb
184
- - spec/shoes/keyrelease_spec.rb
185
- - spec/shoes/line_spec.rb
186
- - spec/shoes/link_spec.rb
187
- - spec/shoes/list_box_spec.rb
188
- - spec/shoes/logger/ruby_spec.rb
189
- - spec/shoes/logger_spec.rb
190
- - spec/shoes/oval_spec.rb
191
- - spec/shoes/packager_spec.rb
192
- - spec/shoes/point_spec.rb
193
- - spec/shoes/progress_spec.rb
194
- - spec/shoes/radio_spec.rb
195
- - spec/shoes/rect_spec.rb
196
- - spec/shoes/renamed_delegate_spec.rb
197
- - spec/shoes/shape_spec.rb
198
- - spec/shoes/shared_examples/button.rb
199
- - spec/shoes/shared_examples/changeable.rb
200
- - spec/shoes/shared_examples/clickable.rb
201
- - spec/shoes/shared_examples/common_methods.rb
202
- - spec/shoes/shared_examples/dimensions.rb
203
- - spec/shoes/shared_examples/dsl.rb
204
- - spec/shoes/shared_examples/dsl/animate.rb
205
- - spec/shoes/shared_examples/dsl/arc.rb
206
- - spec/shoes/shared_examples/dsl/background.rb
207
- - spec/shoes/shared_examples/dsl/border.rb
208
- - spec/shoes/shared_examples/dsl/button.rb
209
- - spec/shoes/shared_examples/dsl/cap.rb
210
- - spec/shoes/shared_examples/dsl/check.rb
211
- - spec/shoes/shared_examples/dsl/edit_box.rb
212
- - spec/shoes/shared_examples/dsl/edit_line.rb
213
- - spec/shoes/shared_examples/dsl/editable_element.rb
214
- - spec/shoes/shared_examples/dsl/fill.rb
215
- - spec/shoes/shared_examples/dsl/flow.rb
216
- - spec/shoes/shared_examples/dsl/gradient.rb
217
- - spec/shoes/shared_examples/dsl/image.rb
218
- - spec/shoes/shared_examples/dsl/line.rb
219
- - spec/shoes/shared_examples/dsl/nofill.rb
220
- - spec/shoes/shared_examples/dsl/nostroke.rb
221
- - spec/shoes/shared_examples/dsl/oval.rb
222
- - spec/shoes/shared_examples/dsl/pattern.rb
223
- - spec/shoes/shared_examples/dsl/progress.rb
224
- - spec/shoes/shared_examples/dsl/rect.rb
225
- - spec/shoes/shared_examples/dsl/rgb.rb
226
- - spec/shoes/shared_examples/dsl/shape.rb
227
- - spec/shoes/shared_examples/dsl/star.rb
228
- - spec/shoes/shared_examples/dsl/stroke.rb
229
- - spec/shoes/shared_examples/dsl/strokewidth.rb
230
- - spec/shoes/shared_examples/dsl/style.rb
231
- - spec/shoes/shared_examples/dsl/text_elements.rb
232
- - spec/shoes/shared_examples/dsl/video.rb
233
- - spec/shoes/shared_examples/dsl_app_context.rb
234
- - spec/shoes/shared_examples/hover.rb
235
- - spec/shoes/shared_examples/parent.rb
236
- - spec/shoes/shared_examples/scroll.rb
237
- - spec/shoes/shared_examples/shared_element_method.rb
238
- - spec/shoes/shared_examples/slot.rb
239
- - spec/shoes/shared_examples/state.rb
240
- - spec/shoes/shared_examples/style.rb
241
- - spec/shoes/slot_spec.rb
242
- - spec/shoes/sound_spec.rb
243
- - spec/shoes/span_spec.rb
244
- - spec/shoes/spec_helper.rb
245
- - spec/shoes/stack_spec.rb
246
- - spec/shoes/star_spec.rb
247
- - spec/shoes/text_block_dimensions_spec.rb
248
- - spec/shoes/text_block_spec.rb
249
- - spec/shoes/text_spec.rb
250
- - spec/shoes/ui/picker_spec.rb
251
- - spec/shoes/url_spec.rb
252
- - spec/shoes/widget_spec.rb
253
- - spec/shoes_spec.rb
254
- - spec/spec_helper.rb
255
140
  - static/downloading.png
256
141
  - static/shoes-icon-blue.png
257
142
  - static/shoes-icon-brown.png
@@ -276,116 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
161
  version: 1.3.1
277
162
  requirements: []
278
163
  rubyforge_project:
279
- rubygems_version: 2.6.8
164
+ rubygems_version: 2.6.10
280
165
  signing_key:
281
166
  specification_version: 4
282
167
  summary: The best little DSL for the best little GUI toolkit for Ruby.
283
- test_files:
284
- - spec/shoes/animation_spec.rb
285
- - spec/shoes/app_spec.rb
286
- - spec/shoes/arc_spec.rb
287
- - spec/shoes/arrow_spec.rb
288
- - spec/shoes/background_spec.rb
289
- - spec/shoes/border_spec.rb
290
- - spec/shoes/builtin_methods_spec.rb
291
- - spec/shoes/button_spec.rb
292
- - spec/shoes/check_spec.rb
293
- - spec/shoes/color_spec.rb
294
- - spec/shoes/common/attachable_spec.rb
295
- - spec/shoes/common/inspect_spec.rb
296
- - spec/shoes/common/remove_spec.rb
297
- - spec/shoes/common/rotate_spec.rb
298
- - spec/shoes/common/style_normalizer_spec.rb
299
- - spec/shoes/common/style_spec.rb
300
- - spec/shoes/common/translate_spec.rb
301
- - spec/shoes/configuration_spec.rb
302
- - spec/shoes/constants_spec.rb
303
- - spec/shoes/dialog_spec.rb
304
- - spec/shoes/dimension_spec.rb
305
- - spec/shoes/dimensions_spec.rb
306
- - spec/shoes/download_spec.rb
307
- - spec/shoes/flow_spec.rb
308
- - spec/shoes/font_spec.rb
309
- - spec/shoes/framework_learning_spec.rb
310
- - spec/shoes/gradient_spec.rb
311
- - spec/shoes/helpers/fake_absolute_element.rb
312
- - spec/shoes/helpers/fake_element.rb
313
- - spec/shoes/helpers/inspect_helpers.rb
314
- - spec/shoes/helpers/sample17_helper.rb
315
- - spec/shoes/image_spec.rb
316
- - spec/shoes/images/shoe.jpg
317
- - spec/shoes/input_box_spec.rb
318
- - spec/shoes/integration_spec.rb
319
- - spec/shoes/internal_app_spec.rb
320
- - spec/shoes/keypress_spec.rb
321
- - spec/shoes/keyrelease_spec.rb
322
- - spec/shoes/line_spec.rb
323
- - spec/shoes/link_spec.rb
324
- - spec/shoes/list_box_spec.rb
325
- - spec/shoes/logger/ruby_spec.rb
326
- - spec/shoes/logger_spec.rb
327
- - spec/shoes/oval_spec.rb
328
- - spec/shoes/packager_spec.rb
329
- - spec/shoes/point_spec.rb
330
- - spec/shoes/progress_spec.rb
331
- - spec/shoes/radio_spec.rb
332
- - spec/shoes/rect_spec.rb
333
- - spec/shoes/renamed_delegate_spec.rb
334
- - spec/shoes/shape_spec.rb
335
- - spec/shoes/shared_examples/button.rb
336
- - spec/shoes/shared_examples/changeable.rb
337
- - spec/shoes/shared_examples/clickable.rb
338
- - spec/shoes/shared_examples/common_methods.rb
339
- - spec/shoes/shared_examples/dimensions.rb
340
- - spec/shoes/shared_examples/dsl.rb
341
- - spec/shoes/shared_examples/dsl/animate.rb
342
- - spec/shoes/shared_examples/dsl/arc.rb
343
- - spec/shoes/shared_examples/dsl/background.rb
344
- - spec/shoes/shared_examples/dsl/border.rb
345
- - spec/shoes/shared_examples/dsl/button.rb
346
- - spec/shoes/shared_examples/dsl/cap.rb
347
- - spec/shoes/shared_examples/dsl/check.rb
348
- - spec/shoes/shared_examples/dsl/edit_box.rb
349
- - spec/shoes/shared_examples/dsl/edit_line.rb
350
- - spec/shoes/shared_examples/dsl/editable_element.rb
351
- - spec/shoes/shared_examples/dsl/fill.rb
352
- - spec/shoes/shared_examples/dsl/flow.rb
353
- - spec/shoes/shared_examples/dsl/gradient.rb
354
- - spec/shoes/shared_examples/dsl/image.rb
355
- - spec/shoes/shared_examples/dsl/line.rb
356
- - spec/shoes/shared_examples/dsl/nofill.rb
357
- - spec/shoes/shared_examples/dsl/nostroke.rb
358
- - spec/shoes/shared_examples/dsl/oval.rb
359
- - spec/shoes/shared_examples/dsl/pattern.rb
360
- - spec/shoes/shared_examples/dsl/progress.rb
361
- - spec/shoes/shared_examples/dsl/rect.rb
362
- - spec/shoes/shared_examples/dsl/rgb.rb
363
- - spec/shoes/shared_examples/dsl/shape.rb
364
- - spec/shoes/shared_examples/dsl/star.rb
365
- - spec/shoes/shared_examples/dsl/stroke.rb
366
- - spec/shoes/shared_examples/dsl/strokewidth.rb
367
- - spec/shoes/shared_examples/dsl/style.rb
368
- - spec/shoes/shared_examples/dsl/text_elements.rb
369
- - spec/shoes/shared_examples/dsl/video.rb
370
- - spec/shoes/shared_examples/dsl_app_context.rb
371
- - spec/shoes/shared_examples/hover.rb
372
- - spec/shoes/shared_examples/parent.rb
373
- - spec/shoes/shared_examples/scroll.rb
374
- - spec/shoes/shared_examples/shared_element_method.rb
375
- - spec/shoes/shared_examples/slot.rb
376
- - spec/shoes/shared_examples/state.rb
377
- - spec/shoes/shared_examples/style.rb
378
- - spec/shoes/slot_spec.rb
379
- - spec/shoes/sound_spec.rb
380
- - spec/shoes/span_spec.rb
381
- - spec/shoes/spec_helper.rb
382
- - spec/shoes/stack_spec.rb
383
- - spec/shoes/star_spec.rb
384
- - spec/shoes/text_block_dimensions_spec.rb
385
- - spec/shoes/text_block_spec.rb
386
- - spec/shoes/text_spec.rb
387
- - spec/shoes/ui/picker_spec.rb
388
- - spec/shoes/url_spec.rb
389
- - spec/shoes/widget_spec.rb
390
- - spec/shoes_spec.rb
391
- - spec/spec_helper.rb
168
+ test_files: []
data/Guardfile DELETED
@@ -1,5 +0,0 @@
1
- guard 'rspec', cmd: 'rspec' do
2
- watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
- watch(%r{^lib/shoes/mock/(.+)\.rb$}) { |m| "spec/shoes/#{m[1]}_spec.rb" }
5
- end
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require 'bundler/gem_tasks'
data/bin/shoes-stub DELETED
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env sh
2
-
3
- # This script is symlinked to be present as both bin/shoes and bin/shoes-stub
4
- # See ext/install/Rakefile for the full explanation of why we do that.
5
-
6
- # Don't try to cd on an empty $NEXT_DIR (link in same directory)
7
- mac_move_to_link_dir () {
8
- # Skip if already in link directory
9
- NEXT_DIR=$(dirname $1)
10
- if [[ -n "$NEXT_DIR" ]]; then
11
- cd $NEXT_DIR
12
- fi
13
- }
14
-
15
- mac_readlink_f () {
16
- # based on http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac
17
-
18
- # A relative or absolute path to a file, potentially a symlink
19
- LINK=$1
20
-
21
- if [ ! -L "$LINK" ] ; then
22
- # Not a link, all good
23
- echo $LINK
24
- return
25
- fi
26
-
27
- # http://bosker.wordpress.com/2012/02/12/bash-scripters-beware-of-the-cdpath/
28
- unset CDPATH
29
-
30
- # Look up links until we find something that is not a symlink
31
- while [ -L "$LINK" ] ; do
32
- mac_move_to_link_dir $LINK
33
- RELATIVE_LINK=$(basename $LINK)
34
- LINK=$(readlink $RELATIVE_LINK)
35
- done
36
-
37
- # Now PATH is an unqualified file name, but we're in its directory, so turn
38
- # it into an absolute path by prefixing with the current working directory.
39
-
40
- PHYS_DIR=`pwd -P`
41
- RESULT=$PHYS_DIR/$LINK
42
- echo $RESULT
43
- }
44
-
45
- case "${MACHTYPE:-}${OSTYPE:-}" in
46
- (*darwin*)
47
- SCRIPT=$(mac_readlink_f $0);;
48
- (*)
49
- # see http://stackoverflow.com/a/1638397/1810896
50
- SCRIPT=$(readlink -f "$0");;
51
- esac
52
-
53
- SCRIPTPATH=$(dirname "$SCRIPT")
54
-
55
- BACKEND_FILE="$SCRIPTPATH/shoes-backend"
56
- if [ ! -e "$BACKEND_FILE" ]
57
- then
58
- $SCRIPTPATH/shoes-picker $SCRIPTPATH
59
- fi
60
-
61
- BACKEND_COMMAND=$(cat $BACKEND_FILE)
62
- SHOES_BIN_DIR=$SCRIPTPATH $BACKEND_COMMAND $@
data/ext/install/Rakefile DELETED
@@ -1,39 +0,0 @@
1
- require 'rubygems'
2
- require 'fileutils'
3
-
4
- # Running JRuby on OS X requires options passed at the start. To pass those
5
- # options and avoid double JVM startup, we want 'shoes' to be a bash script on
6
- # Unix systems, but Rubygems only supports installing Ruby to the bin.
7
-
8
- # We work around this by installing our script as shoes-stub, then acting like
9
- # a "native extension" via this Rakefile, we manually generate the right script
10
- # (a copy of shoes-stub) in the Gem.bindir.
11
-
12
- # Because we don't actually declare shoes as an executable, we also have to
13
- # copy our shoes.bat into place as well on Windows systems.
14
-
15
- # We also provide a Rubygems plugin to clean up our manual file on uninstall.
16
- # Post-install hooks didn't seem to work, though, hence the extension trick.
17
-
18
- task default: ['install_script']
19
-
20
- task :install_script do
21
- # If we're run via jruby-complete.jar, bindir is within the jar itself so
22
- # look for bin based on user directory. Otherwise, prefer Gem.bindir.
23
- dest_dir = if Gem.bindir.start_with?("uri:classloader")
24
- Gem.bindir(Gem.user_dir)
25
- else
26
- Gem.bindir
27
- end
28
-
29
- if Gem.win_platform?
30
- source_path = File.join(Dir.pwd, "shoes.bat")
31
- dest_path = File.join(dest_dir, "shoes.bat")
32
- else
33
- source_path = File.join(Dir.pwd, "..", "..", "bin", "shoes-stub")
34
- dest_path = File.join(dest_dir, "shoes")
35
- end
36
-
37
- FileUtils.mkdir_p(dest_dir)
38
- FileUtils.cp(source_path, dest_path)
39
- end
@@ -1,17 +0,0 @@
1
- @setlocal enableextensions enabledelayedexpansion
2
- @echo off
3
-
4
- REM If we're running from source, bin/shoes.bat will have set bin_dir already.
5
- if not defined bin_dir set bin_dir=%~dp0
6
-
7
- if not exist !bin_dir!\shoes-backend (
8
- REM TODO: Can we get rid of jruby in some way here? My Windows box didn't
9
- REM have a global ruby installed by just installing jruby :(
10
- jruby !bin_dir!\shoes-picker !bin_dir!
11
- )
12
-
13
- set shoes_bin_dir=!bin_dir!
14
- set /p command=<!bin_dir!/shoes-backend
15
-
16
- call !command! %*
17
- endlocal
@@ -1,24 +0,0 @@
1
- require 'rubygems'
2
- require 'fileutils'
3
-
4
- # See ext/install/Rakefile for why this cleanup is our responsibility.
5
- # Decide if user uninstalled executables based on our actual Ruby script.
6
- Gem.post_uninstall do |gem|
7
- uninstalling_shoes = gem.spec.name == "shoes-core"
8
- missing_executable = !File.exist?(File.join(Gem.bindir, "shoes-picker")) &&
9
- !File.exist?(File.join(Gem.bindir, "shoes-picker.bat"))
10
-
11
- if uninstalling_shoes && missing_executable
12
- puts "Removing shoes"
13
- if Gem.win_platform?
14
- FileUtils.rm(File.join(Gem.bindir, "shoes.bat"))
15
- else
16
- FileUtils.rm(File.join(Gem.bindir, "shoes"))
17
- end
18
-
19
- # Everybody potentially has a generated backend file in their bin
20
- puts "Removing shoes-backend"
21
- backend = File.join(Gem.bindir, "shoes-backend")
22
- FileUtils.rm(backend) if File.exist?(backend)
23
- end
24
- end