shoes 4.0.0.pre2 → 4.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -21
  3. metadata +18 -337
  4. data/CHANGELOG +0 -84
  5. data/Gemfile +0 -24
  6. data/Guardfile +0 -11
  7. data/Rakefile +0 -14
  8. data/app.yaml +0 -60
  9. data/benchmark/app_clear.rb +0 -21
  10. data/benchmark/clear.rb +0 -69
  11. data/benchmark/memory/text_dispose.rb +0 -9
  12. data/benchmark/para_creator.rb +0 -9
  13. data/benchmark/paras.rb +0 -52
  14. data/benchmark/urls.rb +0 -40
  15. data/bin/ruby-shoes +0 -6
  16. data/bin/shoes-guard +0 -8
  17. data/bin/shoes-stub +0 -59
  18. data/ext/install/Rakefile +0 -29
  19. data/ext/install/shoes.bat +0 -9
  20. data/lib/shoes.rb +0 -5
  21. data/lib/shoes/ui/cli.rb +0 -102
  22. data/lib/shoes/ui/help.rb +0 -535
  23. data/lib/shoes/ui/manual.rb +0 -6
  24. data/lib/shoes/version.rb +0 -3
  25. data/manifests/common.rb +0 -34
  26. data/manifests/shoes.rb +0 -44
  27. data/samples/Gemfile +0 -3
  28. data/samples/Gemfile.lock +0 -35
  29. data/samples/README +0 -97
  30. data/samples/boom.rb +0 -239
  31. data/samples/class-book-adjusted.rb +0 -45
  32. data/samples/class-book.rb +0 -43
  33. data/samples/class-book.yaml +0 -387
  34. data/samples/clicky.rb +0 -24
  35. data/samples/cy.png +0 -0
  36. data/samples/expert-definr.rb +0 -23
  37. data/samples/expert-funnies.rb +0 -60
  38. data/samples/expert-game-of-life-adjusted.rb +0 -249
  39. data/samples/expert-game-of-life.rb +0 -243
  40. data/samples/expert-irb-adjusted.rb +0 -110
  41. data/samples/expert-irb.rb +0 -112
  42. data/samples/expert-minesweeper-adjusted.rb +0 -272
  43. data/samples/expert-minesweeper.rb +0 -267
  44. data/samples/expert-othello-adjusted.rb +0 -325
  45. data/samples/expert-othello.rb +0 -318
  46. data/samples/expert-pong.rb +0 -62
  47. data/samples/expert-snake.rb +0 -78
  48. data/samples/expert-tankspank.rb +0 -385
  49. data/samples/flow.rb +0 -63
  50. data/samples/good-arc.rb +0 -45
  51. data/samples/good-clock.rb +0 -51
  52. data/samples/good-displace.rb +0 -98
  53. data/samples/good-follow.rb +0 -26
  54. data/samples/good-potato-chopping.rb +0 -22
  55. data/samples/good-reminder.rb +0 -174
  56. data/samples/good-vjot.rb +0 -58
  57. data/samples/gray.rb +0 -11
  58. data/samples/loogink.png +0 -0
  59. data/samples/nks_booklist.rb +0 -24
  60. data/samples/nks_breadsticks.rb +0 -7
  61. data/samples/nks_dancing_circle.rb +0 -13
  62. data/samples/nks_dictionary.rb +0 -23
  63. data/samples/nks_edit_box.rb +0 -4
  64. data/samples/nks_edit_line.rb +0 -6
  65. data/samples/nks_notes.rb +0 -16
  66. data/samples/nks_poem.rb +0 -22
  67. data/samples/nks_self.rb +0 -6
  68. data/samples/nks_text_sizes.rb +0 -10
  69. data/samples/nks_trurl.rb +0 -5
  70. data/samples/original-manual-adjusted.rb +0 -475
  71. data/samples/original-manual.rb +0 -472
  72. data/samples/packaging/package_me.rb +0 -6
  73. data/samples/potato_chopping/1258_s001.gif +0 -0
  74. data/samples/potato_chopping/1258_s002.gif +0 -0
  75. data/samples/potato_chopping/1258_s003.gif +0 -0
  76. data/samples/potato_chopping/1258_s004.gif +0 -0
  77. data/samples/potato_chopping/1258_s005.gif +0 -0
  78. data/samples/potato_chopping/1258_s006.gif +0 -0
  79. data/samples/potato_chopping/1258_s007.gif +0 -0
  80. data/samples/potato_chopping/1258_s008.gif +0 -0
  81. data/samples/potato_chopping/1258_s009.gif +0 -0
  82. data/samples/potato_chopping/1258_s010.gif +0 -0
  83. data/samples/potato_chopping/1258_s011.gif +0 -0
  84. data/samples/potato_chopping/1258_s012.gif +0 -0
  85. data/samples/potato_chopping/1258_s013.gif +0 -0
  86. data/samples/potato_chopping/1258_s014.gif +0 -0
  87. data/samples/potato_chopping/1258_s015.gif +0 -0
  88. data/samples/potato_chopping/1258_s016.gif +0 -0
  89. data/samples/potato_chopping/1258_s017.gif +0 -0
  90. data/samples/potato_chopping/1258_s018.gif +0 -0
  91. data/samples/potato_chopping/1258_s019.gif +0 -0
  92. data/samples/potato_chopping/1258_s020.gif +0 -0
  93. data/samples/potato_chopping/1258_s021.gif +0 -0
  94. data/samples/potato_chopping/1258_s022.gif +0 -0
  95. data/samples/potato_chopping/1258_s023.gif +0 -0
  96. data/samples/potato_chopping/1258_s024.gif +0 -0
  97. data/samples/potato_chopping/1258_s025.gif +0 -0
  98. data/samples/potato_chopping/1258_s026.gif +0 -0
  99. data/samples/potato_chopping/1258_s027.gif +0 -0
  100. data/samples/potato_chopping/1258_s028.gif +0 -0
  101. data/samples/potato_chopping/1258_s029.gif +0 -0
  102. data/samples/potato_chopping/1258_s030.gif +0 -0
  103. data/samples/potato_chopping/1258_s031.gif +0 -0
  104. data/samples/potato_chopping/1258_s032.gif +0 -0
  105. data/samples/potato_chopping/1258_s033.gif +0 -0
  106. data/samples/potato_chopping/1258_s034.gif +0 -0
  107. data/samples/potato_chopping/1258_s035.gif +0 -0
  108. data/samples/potato_chopping/1258_s036.gif +0 -0
  109. data/samples/potato_chopping/1258_s037.gif +0 -0
  110. data/samples/potato_chopping/1258_s038.gif +0 -0
  111. data/samples/potato_chopping/1258_s039.gif +0 -0
  112. data/samples/potato_chopping/1258_s040.gif +0 -0
  113. data/samples/potato_chopping/1258_s041.gif +0 -0
  114. data/samples/potato_chopping/1258_s042.gif +0 -0
  115. data/samples/potato_chopping/1258_s043.gif +0 -0
  116. data/samples/potato_chopping/1258_s044.gif +0 -0
  117. data/samples/potato_chopping/1258_s045.gif +0 -0
  118. data/samples/potato_chopping/1258_s046.gif +0 -0
  119. data/samples/potato_chopping/1258_s047.gif +0 -0
  120. data/samples/potato_chopping/1258_s048.gif +0 -0
  121. data/samples/potato_chopping/1258_s049.gif +0 -0
  122. data/samples/potato_chopping/1258_s050.gif +0 -0
  123. data/samples/potato_chopping/1258_s051.gif +0 -0
  124. data/samples/potato_chopping/1258_s052.gif +0 -0
  125. data/samples/potato_chopping/1258_s053.gif +0 -0
  126. data/samples/potato_chopping/1258_s054.gif +0 -0
  127. data/samples/potato_chopping/1258_s055.gif +0 -0
  128. data/samples/potato_chopping/1258_s056.gif +0 -0
  129. data/samples/potato_chopping/1258_s057.gif +0 -0
  130. data/samples/potato_chopping/1258_s058.gif +0 -0
  131. data/samples/potato_chopping/1258_s059.gif +0 -0
  132. data/samples/present.rb +0 -27
  133. data/samples/progress.rb +0 -10
  134. data/samples/sample1.rb +0 -30
  135. data/samples/sample12.rb +0 -21
  136. data/samples/sample13.rb +0 -13
  137. data/samples/sample14.rb +0 -64
  138. data/samples/sample15.rb +0 -18
  139. data/samples/sample16.rb +0 -10
  140. data/samples/sample17.rb +0 -10
  141. data/samples/sample2.rb +0 -14
  142. data/samples/sample21.rb +0 -5
  143. data/samples/sample23.rb +0 -8
  144. data/samples/sample24.rb +0 -21
  145. data/samples/sample27.rb +0 -18
  146. data/samples/sample3.rb +0 -14
  147. data/samples/sample31.rb +0 -22
  148. data/samples/sample34.rb +0 -27
  149. data/samples/sample35.rb +0 -32
  150. data/samples/sample37.rb +0 -8
  151. data/samples/sample4.rb +0 -7
  152. data/samples/sample42.rb +0 -14
  153. data/samples/sample45.rb +0 -11
  154. data/samples/sample56.rb +0 -10
  155. data/samples/sample6.rb +0 -9
  156. data/samples/sample7.rb +0 -3
  157. data/samples/sample8.rb +0 -7
  158. data/samples/sample9.rb +0 -10
  159. data/samples/simple-accordion.rb +0 -75
  160. data/samples/simple-anim-shapes.rb +0 -17
  161. data/samples/simple-anim-text.rb +0 -13
  162. data/samples/simple-animate.rb +0 -12
  163. data/samples/simple-arc.rb +0 -23
  164. data/samples/simple-bounce.rb +0 -24
  165. data/samples/simple-brightness-transitions.rb +0 -8
  166. data/samples/simple-button-animate.rb +0 -16
  167. data/samples/simple-calc-2.rb +0 -34
  168. data/samples/simple-calc.rb +0 -70
  169. data/samples/simple-color-selector.rb +0 -10
  170. data/samples/simple-color-transitions.rb +0 -11
  171. data/samples/simple-control-sizes.rb +0 -24
  172. data/samples/simple-curve.rb +0 -26
  173. data/samples/simple-dialogs-outside.rb +0 -12
  174. data/samples/simple-dialogs.rb +0 -32
  175. data/samples/simple-displace.rb +0 -15
  176. data/samples/simple-downloader.rb +0 -27
  177. data/samples/simple-draw.rb +0 -13
  178. data/samples/simple-editor.rb +0 -28
  179. data/samples/simple-face.rb +0 -14
  180. data/samples/simple-flow-wrap.rb +0 -11
  181. data/samples/simple-font.rb +0 -17
  182. data/samples/simple-form.rb +0 -29
  183. data/samples/simple-form.shy +0 -0
  184. data/samples/simple-fullscreen.rb +0 -4
  185. data/samples/simple-guess-game.rb +0 -28
  186. data/samples/simple-keypress.rb +0 -14
  187. data/samples/simple-manual.rb +0 -2
  188. data/samples/simple-mask.rb +0 -21
  189. data/samples/simple-menu.rb +0 -47
  190. data/samples/simple-mouse-follow.rb +0 -8
  191. data/samples/simple-move.rb +0 -13
  192. data/samples/simple-oval.rb +0 -3
  193. data/samples/simple-sample-executor.rb +0 -6
  194. data/samples/simple-shoes-intro.rb +0 -22
  195. data/samples/simple-slide.rb +0 -56
  196. data/samples/simple-sound.rb +0 -30
  197. data/samples/simple-sphere.rb +0 -28
  198. data/samples/simple-stripes.rb +0 -8
  199. data/samples/simple-tictactoe.rb +0 -238
  200. data/samples/simple-timer.rb +0 -15
  201. data/samples/simple-video.rb +0 -13
  202. data/samples/simple-visibility.rb +0 -11
  203. data/samples/simple-widget.rb +0 -9
  204. data/samples/sounds/102719__sarge4267__explosion.mp3 +0 -0
  205. data/samples/sounds/145622__andybrannan__train-fog-horn-long-wyomming.aiff +0 -0
  206. data/samples/sounds/46492__phreaksaccount__shields1.ogg +0 -0
  207. data/samples/sounds/61847__simon-rue__boink-v3.wav +0 -0
  208. data/samples/swt-raw.rb +0 -20
  209. data/samples/troll.rb +0 -22
  210. data/shoes.gemspec +0 -29
  211. data/snapshots/sample1.png +0 -0
  212. data/snapshots/sample10.png +0 -0
  213. data/snapshots/sample11.png +0 -0
  214. data/snapshots/sample12.png +0 -0
  215. data/snapshots/sample13.png +0 -0
  216. data/snapshots/sample14.png +0 -0
  217. data/snapshots/sample15.png +0 -0
  218. data/snapshots/sample16.png +0 -0
  219. data/snapshots/sample17.png +0 -0
  220. data/snapshots/sample18.png +0 -0
  221. data/snapshots/sample19.png +0 -0
  222. data/snapshots/sample2.png +0 -0
  223. data/snapshots/sample20.png +0 -0
  224. data/snapshots/sample21.png +0 -0
  225. data/snapshots/sample22.png +0 -0
  226. data/snapshots/sample23.png +0 -0
  227. data/snapshots/sample24.png +0 -0
  228. data/snapshots/sample27.png +0 -0
  229. data/snapshots/sample28.png +0 -0
  230. data/snapshots/sample29.png +0 -0
  231. data/snapshots/sample3.png +0 -0
  232. data/snapshots/sample30.png +0 -0
  233. data/snapshots/sample31.png +0 -0
  234. data/snapshots/sample34.png +0 -0
  235. data/snapshots/sample35.png +0 -0
  236. data/snapshots/sample36.png +0 -0
  237. data/snapshots/sample37.png +0 -0
  238. data/snapshots/sample4.png +0 -0
  239. data/snapshots/sample42.png +0 -0
  240. data/snapshots/sample44.png +0 -0
  241. data/snapshots/sample45.png +0 -0
  242. data/snapshots/sample46.png +0 -0
  243. data/snapshots/sample5.png +0 -0
  244. data/snapshots/sample56.png +0 -0
  245. data/snapshots/sample6.png +0 -0
  246. data/snapshots/sample7.png +0 -0
  247. data/snapshots/sample8.png +0 -0
  248. data/snapshots/sample9.png +0 -0
  249. data/snapshots/sample99.png +0 -0
  250. data/static/PKGBUILD +0 -47
  251. data/static/Shoes.icns +0 -0
  252. data/static/avatar.png +0 -0
  253. data/static/code_highlighter.js +0 -188
  254. data/static/code_highlighter_ruby.js +0 -26
  255. data/static/downloading.png +0 -0
  256. data/static/icon-debug.png +0 -0
  257. data/static/icon-error.png +0 -0
  258. data/static/icon-info.png +0 -0
  259. data/static/icon-warn.png +0 -0
  260. data/static/listbox_button1.png +0 -0
  261. data/static/listbox_button2.png +0 -0
  262. data/static/man-app.png +0 -0
  263. data/static/man-builds.png +0 -0
  264. data/static/man-builds1.png +0 -0
  265. data/static/man-editor-notepad.png +0 -0
  266. data/static/man-editor-osx.png +0 -0
  267. data/static/man-ele-background.png +0 -0
  268. data/static/man-ele-border.png +0 -0
  269. data/static/man-ele-button.png +0 -0
  270. data/static/man-ele-check.png +0 -0
  271. data/static/man-ele-editbox.png +0 -0
  272. data/static/man-ele-editline.png +0 -0
  273. data/static/man-ele-image.png +0 -0
  274. data/static/man-ele-listbox.png +0 -0
  275. data/static/man-ele-progress.png +0 -0
  276. data/static/man-ele-radio.png +0 -0
  277. data/static/man-ele-shape.png +0 -0
  278. data/static/man-ele-textblock.png +0 -0
  279. data/static/man-ele-video.png +0 -0
  280. data/static/man-intro-dmg.png +0 -0
  281. data/static/man-intro-exe.png +0 -0
  282. data/static/man-look-tiger.png +0 -0
  283. data/static/man-look-ubuntu.png +0 -0
  284. data/static/man-look-vista.png +0 -0
  285. data/static/man-run-osx.png +0 -0
  286. data/static/man-run-vista.png +0 -0
  287. data/static/man-run-xp.png +0 -0
  288. data/static/man-shot1.png +0 -0
  289. data/static/manual-en.txt +0 -3531
  290. data/static/manual-ja.txt +0 -2829
  291. data/static/manual.css +0 -184
  292. data/static/menu-corner1.png +0 -0
  293. data/static/menu-corner2.png +0 -0
  294. data/static/menu-gray.png +0 -0
  295. data/static/menu-left.png +0 -0
  296. data/static/menu-right.png +0 -0
  297. data/static/menu-top.png +0 -0
  298. data/static/shoes-dmg.jpg +0 -0
  299. data/static/shoes-icon-blue.png +0 -0
  300. data/static/shoes-icon-brown.png +0 -0
  301. data/static/shoes-icon.png +0 -0
  302. data/static/shoes-manual-apps.gif +0 -0
  303. data/static/shoes-manual-apps.png +0 -0
  304. data/static/shoes_main_window.png +0 -0
  305. data/static/stripe.png +0 -0
  306. data/static/tutor-back.png +0 -0
  307. data/tasks/changelog.rb +0 -92
  308. data/tasks/gem.rb +0 -38
  309. data/tasks/rspec.rb +0 -106
  310. data/tasks/sample.rb +0 -66
  311. data/tasks/yard.rb +0 -13
data/CHANGELOG DELETED
@@ -1,84 +0,0 @@
1
- 4.0.0.pre2 (438 commits)
2
- ----------------
3
-
4
- New features (1)
5
- ----------------
6
-
7
- * Shoes 4.0.0.pre1 was a single gem. Now we ship as as three gems [e16a0c4]:
8
-
9
- * shoes -- Home to the shoes executable. Declares dependencies on other
10
- shoes gems for ease of installation.
11
- * shoes-dsl -- Code for the Shoes DSL. No direct UI rendering and will be
12
- reused with all future backends.
13
- * shoes-swt -- The first Shoes backend, implemented in JRuby on the SWT
14
- library via the swt gem.
15
-
16
- * Full style-setting functionality (element#style, setters, hash, app level) [56d91f8]
17
-
18
- Improvements (36)
19
- -----------------
20
-
21
- * Update SWT to 4.4 [536ffae]
22
- * Update packaging dependency to 0.2.0 now supporting rubyzip > 1.0 [c3dd289]
23
- * Update all elements to use new style methods [1b76aa3, 29498d1, d569a77, e6eec90, 54e5edf, 1238977, 2dc222f, dbeffff, 25b2ec6, cb865a6, 49fa0a1]
24
- * Update list of app level styles and partially fix rotate angle issues [2affdbb]
25
- * Shoes application context improved to avoid conflicts between user-defined and shoes-defined methods. [732108a]
26
- * Builtin methods are also available from the Shoes class [de37d59]
27
- * #gray, #rgb and #gradient builtin methods [8f7ee92]
28
- * Removed redrawing triggers after Dimension methods [61a55ba]
29
- * Apply fraction from progress initialize [b241240]
30
- * Trigger redraw on hover/leave for slot and image update [ae5dfb5]
31
- * Nobody Knows Shoes samples added [68e84e6]
32
- * Add sample56 snapshot [e7eb0d3]
33
- * Add scroll* methods to slots. Scrolling functionality not implemented yet. [6fb0e79]
34
- * Click passes element, not coordinates to most blocks [78ecb23]
35
- * Allow button calls without a button name [a315ef4]
36
- * Add common #to_s and #inspect methods for DSL objects [350c4dc]
37
- * Disposal for Images and Patterns. [ddcd9fb]
38
- * Move Swt::TextBlock related classes to subdirectory. [226e03f]
39
- * Revise TextBlock cursor to be more like other text functionality. [f016ee7]
40
- * Updated manual to show correct syntax for rect. [2fee530]
41
- * App#parent method to show the parent of the slot currently evaled [48e811f]
42
- * Add keypress to close app cleanly when running leak hunter and dispose of app-level resources. [af4d6bb]
43
-
44
- Bug Fixes (32)
45
- --------------
46
-
47
- * Fix running bin/shoes.bat from source [fe47075]
48
- * Move shoes executable from shoes-dsl to shoes [92583e6]
49
- * Fix for crash on empty link text [3da3159]
50
- * Hide only the elements of a slot, not its parent contents [f2ea17c]
51
- * Fix crash for Border when hiding [1c2ab74]
52
- * Methods defined in widgets are available in URL instances [3a94afb]
53
- * Make texts know their TextBlock and hence their visibility [7b4ea24]
54
- * Non resizable apps can not be maximized (fixes resizable on mac) #872 [b08b215]
55
- * Keypress#remove removes the keys listener and does not blow up [498588c]
56
- * Run shape blocks with app as self [dbb0a46]
57
- * When an element is removed or removed, cursor shouldn't change shape over that location. [918288f, 7fcd93a]
58
- * Removing children from slot should trigger redraw [be35743]
59
- * Fix for allowing widgets to use widget DSL methods [99d22e1]
60
- * Fix for secret on edit lines [79c4c98]
61
- * Fix crash computing height with hidden elements [41ebafe]
62
- * Fix for unbounded height crash on centering [11fc3ae]
63
- * Windows build requires shoes.bat from ext/install [232ec68]
64
- * Reuse created fonts in the factory [7959bd8]
65
- * Disposal of Shape SWT resources. [650365b]
66
- * Fix for offsetting of second text segments [97fe79b]
67
- * Consider relatively positioned elements for slot height [3e71126]
68
- * Fix fatal exceptions in samples/simple-calc.rb [d53d588]
69
- * Fix slot clearing [3697802]
70
- * Don't clear top_slot when clear is called, clear current_slot [a57778c]
71
- * Handling for text centering [87405f5]
72
- * Fix common remove to allow removal of slots [c25df7e]
73
- * Clear transform after painting each object, to avoid side effects on other painters [5a57ce3]
74
- * Fix off by one error in slot positioning. [baee69a]
75
- * Dispose of transform resources. [265600c]
76
- * Only report start/end relative to the parent if there is one [c82e763]
77
- * Links must be cleared on TextBlock#replace [4b90786]
78
-
79
- Contributors (16)
80
- -----------------
81
-
82
- Jason R. Clark, Eric Watson, Tobias Pfeiffer, KC Erb, Charles Chamberlain,
83
- George, Marcell Monteiro Cruz, Glenn Murray, Jason Clark, Tim Krajcar,
84
- glenn-murray-bse, KCErb, PeterWAWood, Suirtimed, ashbb, Carlos R Tirado
data/Gemfile DELETED
@@ -1,24 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec :name => 'shoes'
4
- gemspec :name => 'shoes-dsl'
5
- gemspec :name => 'shoes-swt'
6
-
7
- group :development do
8
- gem "guard"
9
- gem "guard-rspec"
10
- gem "pry"
11
-
12
- gem "rspec", "~>3.0.0"
13
- gem "rspec-its", "~>1.0.1"
14
- gem "rake"
15
-
16
- gem "yard"
17
- gem "kramdown"
18
- gem 'simplecov'
19
- gem 'coveralls'
20
- gem "codeclimate-test-reporter"
21
- gem 'jruby-lint'
22
- gem 'webmock'
23
- gem 'hometown'
24
- end
data/Guardfile DELETED
@@ -1,11 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- guard 'rspec' do
5
- watch(%r{^spec/.+_spec\.rb$})
6
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7
- watch(%r{^lib/shoes/mock/(.+)\.rb$}) { |m| "spec/shoes/#{m[1]}_spec.rb" }
8
- watch(%r{^lib/shoes/swt/(.+)\.rb$}) { |m| "spec/swt_shoes/#{m[1]}_spec.rb" }
9
- watch('lib/shoes/dsl.rb') { |m| "spec/swt_shoes/dsl_spec.rb" }
10
- end
11
-
data/Rakefile DELETED
@@ -1,14 +0,0 @@
1
- require 'rake'
2
- require 'rake/clean'
3
-
4
- require 'rspec/core/rake_task'
5
-
6
- require_relative 'tasks/changelog'
7
- require_relative 'tasks/gem'
8
- require_relative 'tasks/rspec'
9
- require_relative 'tasks/sample'
10
- require_relative 'tasks/yard'
11
-
12
- PACKAGE_DIR = 'pkg'
13
-
14
- CLEAN.include FileList[PACKAGE_DIR, 'doc', 'coverage', "spec/test_app/#{PACKAGE_DIR}"]
data/app.yaml DELETED
@@ -1,60 +0,0 @@
1
- # app.yaml
2
-
3
- # -----------------------------------------------------------------------------
4
- # This is a sample configuration file for a Shoes app. Edit at will.
5
- # -----------------------------------------------------------------------------
6
-
7
- # The app's full name, intended for humans. This will be the name of the thing
8
- # you double-click.
9
- name: Shoes App
10
-
11
- # A short version of the name, simplified for under-the-hood use. Defaults to
12
- # lowercased name, with non-word characters removed.
13
- shortname: shoesapp
14
-
15
- # Files to ignore when bundling the app. Should be an array.
16
- ignore:
17
- - 'vendor'
18
- - 'lib'
19
- - 'static'
20
- - '*.app'
21
- - 'spec'
22
-
23
- # How to run the app
24
- run: bin/hello_from_warbler
25
-
26
- # -----------------------------------------------------------------------------
27
- # The following options are new in Shoes 4. They don't work in Shoes 3.
28
- # -----------------------------------------------------------------------------
29
-
30
- # Installed gems to bundle with the app
31
- gems:
32
-
33
- # -----------------------------------------------------------------------------
34
- # The following options are only available for Shoes 3. They won't work (yet)
35
- # in Shoes 4.
36
- # -----------------------------------------------------------------------------
37
-
38
- # The app's version number
39
- version: 0.0.1
40
-
41
- # The name of this release
42
- release: Mindfully
43
-
44
- # App icons for various platforms
45
- icons:
46
- osx: static/Shoes.icns
47
- gtk: path/to/app.png
48
- win32: path/to/App.ico
49
-
50
- # Artwork for a DMG
51
- dmg:
52
- ds_store: path/to/.DS_Store
53
- background: path/to/background.png
54
-
55
- # The command to clone the app using git. Note that the prefix included here is
56
- # an in-package prefix, so unless you know what the inside of your package
57
- # looks like, this is not a recommended option. This sample is for a Shoes 3 app
58
- # and WILL NOT WORK on Shoes 4
59
- #clone: git checkout-index --prefix=dist/app/ -a
60
-
@@ -1,21 +0,0 @@
1
- require 'benchmark'
2
-
3
- Shoes.app do
4
- background green
5
-
6
- button 'start repeated app clear benchmark' do
7
- Benchmark.bm do |benchmark|
8
- benchmark.report do
9
- 200.times do
10
- clear do
11
- background green
12
- rect 200, 300, 50, 60
13
- rect 100, 200, 100, 200
14
- oval left: 22, top: 40, radius: 50
15
- oval left: 350, top: 250, radius: 100
16
- end
17
- end
18
- end
19
- end
20
- end
21
- end
data/benchmark/clear.rb DELETED
@@ -1,69 +0,0 @@
1
- require 'benchmark'
2
- require File.dirname(__FILE__) + '/para_creator'
3
-
4
- Shoes.app do
5
- extend ParaCreator
6
-
7
- # no this code does not make any sense, it just piles up a lot of objects
8
- # onto the application
9
- # paras are commented out due to #322
10
- def fill_up_app_with_senseless_stuff
11
- stack do
12
- #create_paras 4
13
- #flow do create_paras 2 end
14
- oval 0, 0, 20, 20, fill: forestgreen, stroke: nil
15
- rect 0, 0, 75, 4, curve: 3
16
- rect 0, 396, 75, 4, curve: 3
17
- end
18
- stack do
19
- path = 'static/shoes-icon.png'
20
- image path
21
- flow do
22
- 15.times do
23
- edit_line
24
- end
25
- 50.times do
26
- flow do
27
- image path
28
- image path
29
- end
30
- end
31
- stack do
32
- star 56, 77
33
- end
34
- end
35
- stack do
36
- image path
37
- #para ' ' * 20 + 'Powered by JRuby and SWT!'
38
- 24.times do
39
- flow do
40
- #create_paras 12
41
- button 'Hello I am a button!' do alert 'hi you all' end
42
- end
43
- end
44
- end
45
- stack do
46
- 30.times do
47
- rect 400, 596, 75, 30,fill: green
48
- rect 500, 696, 75, 30,fill: red
49
- rect 600, 796, 75, 30,fill: blue
50
- end
51
- end
52
- end
53
- end
54
-
55
- button 'start repeated clear benchmark' do
56
- Benchmark.bm do |benchmark|
57
- 3.times do |i|
58
- benchmark.report "#{i + 1}. fill app" do
59
- fill_up_app_with_senseless_stuff
60
- end
61
-
62
- benchmark.report "#{i + 1}. clear app" do
63
- clear
64
- end
65
- end
66
- end
67
- end
68
-
69
- end
@@ -1,9 +0,0 @@
1
- Shoes.app do
2
- every(1) do
3
- print "!"
4
- clear
5
- 100.times do
6
- para "j"
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module ParaCreator
2
-
3
- LOREM_IPSUM = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est"
4
-
5
- def create_paras(count)
6
- count.times do para LOREM_IPSUM end
7
- end
8
-
9
- end
data/benchmark/paras.rb DELETED
@@ -1,52 +0,0 @@
1
- require 'benchmark'
2
- require File.dirname(__FILE__) + '/para_creator'
3
-
4
- Shoes.app do
5
- extend ParaCreator
6
-
7
- def benchmark_paras
8
- Benchmark.bm do |benchmark|
9
- benchmark.report '100' do
10
- create_paras 100
11
- end
12
-
13
- # this already hangs on shoes 3
14
- benchmark.report '1000' do
15
- create_paras 1000
16
- end
17
- end
18
- end
19
-
20
- def benchmark_paras_stacks_flows
21
- Benchmark.bm do |benchmark|
22
- benchmark.report '100' do
23
- create_stack_flows 100
24
- end
25
-
26
- benchmark.report '500' do
27
- create_stack_flows 500
28
- end
29
- end
30
- end
31
-
32
- def create_stack_flows(count)
33
- count.times do
34
- stack do
35
- flow do
36
- para ParaCreator::LOREM_IPSUM
37
- end
38
- flow do
39
- para ParaCreator::LOREM_IPSUM
40
- end
41
- end
42
- end
43
- end
44
-
45
- button 'benchmark paras' do
46
- benchmark_paras
47
- end
48
-
49
- button 'benchmark paras with some stacks and flows' do
50
- benchmark_paras_stacks_flows
51
- end
52
- end
data/benchmark/urls.rb DELETED
@@ -1,40 +0,0 @@
1
- require 'benchmark'
2
- require File.dirname(__FILE__) + '/para_creator'
3
-
4
-
5
- class UrlBenachmark < Shoes
6
- include ParaCreator
7
- url '/', :index
8
- url '/first', :first
9
- url '/second', :second
10
-
11
- def index
12
- button 'Start benchmark' do
13
- Benchmark.bm do |benchmark|
14
-
15
- benchmark.report '10 switches' do
16
- 10.times do visit_both end
17
- end
18
-
19
- benchmark.report ' 30 switches' do
20
- 30.times do visit_both end
21
- end
22
- end
23
- end
24
- end
25
-
26
- def first
27
- create_paras 4
28
- end
29
-
30
- def second
31
- create_paras 5
32
- end
33
-
34
- def visit_both
35
- visit '/first'
36
- visit '/second'
37
- end
38
- end
39
-
40
- Shoes.app
data/bin/ruby-shoes DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env jruby
2
- lib_directory = File.expand_path('../../lib', __FILE__)
3
- $LOAD_PATH << lib_directory
4
-
5
- require 'shoes/ui/cli'
6
- Shoes::CLI.new.run ARGV
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"
data/bin/shoes-stub DELETED
@@ -1,59 +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:-}" in
46
- (*darwin*)
47
- swt_opt="-J-XstartOnFirstThread"
48
- SCRIPT=$(mac_readlink_f $0);;
49
- (*)
50
- # see http://stackoverflow.com/a/1638397/1810896
51
- SCRIPT=$(readlink -f "$0");;
52
- esac
53
-
54
- SCRIPTPATH=$(dirname "$SCRIPT")
55
-
56
- RUBYSHOES="$SCRIPTPATH/ruby-shoes"
57
-
58
- cmd="jruby --1.9 ${swt_opt:-} $RUBYSHOES $@"
59
- exec $cmd