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.
- checksums.yaml +4 -4
- data/README.md +32 -21
- metadata +18 -337
- data/CHANGELOG +0 -84
- data/Gemfile +0 -24
- data/Guardfile +0 -11
- data/Rakefile +0 -14
- data/app.yaml +0 -60
- data/benchmark/app_clear.rb +0 -21
- data/benchmark/clear.rb +0 -69
- data/benchmark/memory/text_dispose.rb +0 -9
- data/benchmark/para_creator.rb +0 -9
- data/benchmark/paras.rb +0 -52
- data/benchmark/urls.rb +0 -40
- data/bin/ruby-shoes +0 -6
- data/bin/shoes-guard +0 -8
- data/bin/shoes-stub +0 -59
- data/ext/install/Rakefile +0 -29
- data/ext/install/shoes.bat +0 -9
- data/lib/shoes.rb +0 -5
- data/lib/shoes/ui/cli.rb +0 -102
- data/lib/shoes/ui/help.rb +0 -535
- data/lib/shoes/ui/manual.rb +0 -6
- data/lib/shoes/version.rb +0 -3
- data/manifests/common.rb +0 -34
- data/manifests/shoes.rb +0 -44
- data/samples/Gemfile +0 -3
- data/samples/Gemfile.lock +0 -35
- data/samples/README +0 -97
- data/samples/boom.rb +0 -239
- data/samples/class-book-adjusted.rb +0 -45
- data/samples/class-book.rb +0 -43
- data/samples/class-book.yaml +0 -387
- data/samples/clicky.rb +0 -24
- data/samples/cy.png +0 -0
- data/samples/expert-definr.rb +0 -23
- data/samples/expert-funnies.rb +0 -60
- data/samples/expert-game-of-life-adjusted.rb +0 -249
- data/samples/expert-game-of-life.rb +0 -243
- data/samples/expert-irb-adjusted.rb +0 -110
- data/samples/expert-irb.rb +0 -112
- data/samples/expert-minesweeper-adjusted.rb +0 -272
- data/samples/expert-minesweeper.rb +0 -267
- data/samples/expert-othello-adjusted.rb +0 -325
- data/samples/expert-othello.rb +0 -318
- data/samples/expert-pong.rb +0 -62
- data/samples/expert-snake.rb +0 -78
- data/samples/expert-tankspank.rb +0 -385
- data/samples/flow.rb +0 -63
- data/samples/good-arc.rb +0 -45
- data/samples/good-clock.rb +0 -51
- data/samples/good-displace.rb +0 -98
- data/samples/good-follow.rb +0 -26
- data/samples/good-potato-chopping.rb +0 -22
- data/samples/good-reminder.rb +0 -174
- data/samples/good-vjot.rb +0 -58
- data/samples/gray.rb +0 -11
- data/samples/loogink.png +0 -0
- data/samples/nks_booklist.rb +0 -24
- data/samples/nks_breadsticks.rb +0 -7
- data/samples/nks_dancing_circle.rb +0 -13
- data/samples/nks_dictionary.rb +0 -23
- data/samples/nks_edit_box.rb +0 -4
- data/samples/nks_edit_line.rb +0 -6
- data/samples/nks_notes.rb +0 -16
- data/samples/nks_poem.rb +0 -22
- data/samples/nks_self.rb +0 -6
- data/samples/nks_text_sizes.rb +0 -10
- data/samples/nks_trurl.rb +0 -5
- data/samples/original-manual-adjusted.rb +0 -475
- data/samples/original-manual.rb +0 -472
- data/samples/packaging/package_me.rb +0 -6
- data/samples/potato_chopping/1258_s001.gif +0 -0
- data/samples/potato_chopping/1258_s002.gif +0 -0
- data/samples/potato_chopping/1258_s003.gif +0 -0
- data/samples/potato_chopping/1258_s004.gif +0 -0
- data/samples/potato_chopping/1258_s005.gif +0 -0
- data/samples/potato_chopping/1258_s006.gif +0 -0
- data/samples/potato_chopping/1258_s007.gif +0 -0
- data/samples/potato_chopping/1258_s008.gif +0 -0
- data/samples/potato_chopping/1258_s009.gif +0 -0
- data/samples/potato_chopping/1258_s010.gif +0 -0
- data/samples/potato_chopping/1258_s011.gif +0 -0
- data/samples/potato_chopping/1258_s012.gif +0 -0
- data/samples/potato_chopping/1258_s013.gif +0 -0
- data/samples/potato_chopping/1258_s014.gif +0 -0
- data/samples/potato_chopping/1258_s015.gif +0 -0
- data/samples/potato_chopping/1258_s016.gif +0 -0
- data/samples/potato_chopping/1258_s017.gif +0 -0
- data/samples/potato_chopping/1258_s018.gif +0 -0
- data/samples/potato_chopping/1258_s019.gif +0 -0
- data/samples/potato_chopping/1258_s020.gif +0 -0
- data/samples/potato_chopping/1258_s021.gif +0 -0
- data/samples/potato_chopping/1258_s022.gif +0 -0
- data/samples/potato_chopping/1258_s023.gif +0 -0
- data/samples/potato_chopping/1258_s024.gif +0 -0
- data/samples/potato_chopping/1258_s025.gif +0 -0
- data/samples/potato_chopping/1258_s026.gif +0 -0
- data/samples/potato_chopping/1258_s027.gif +0 -0
- data/samples/potato_chopping/1258_s028.gif +0 -0
- data/samples/potato_chopping/1258_s029.gif +0 -0
- data/samples/potato_chopping/1258_s030.gif +0 -0
- data/samples/potato_chopping/1258_s031.gif +0 -0
- data/samples/potato_chopping/1258_s032.gif +0 -0
- data/samples/potato_chopping/1258_s033.gif +0 -0
- data/samples/potato_chopping/1258_s034.gif +0 -0
- data/samples/potato_chopping/1258_s035.gif +0 -0
- data/samples/potato_chopping/1258_s036.gif +0 -0
- data/samples/potato_chopping/1258_s037.gif +0 -0
- data/samples/potato_chopping/1258_s038.gif +0 -0
- data/samples/potato_chopping/1258_s039.gif +0 -0
- data/samples/potato_chopping/1258_s040.gif +0 -0
- data/samples/potato_chopping/1258_s041.gif +0 -0
- data/samples/potato_chopping/1258_s042.gif +0 -0
- data/samples/potato_chopping/1258_s043.gif +0 -0
- data/samples/potato_chopping/1258_s044.gif +0 -0
- data/samples/potato_chopping/1258_s045.gif +0 -0
- data/samples/potato_chopping/1258_s046.gif +0 -0
- data/samples/potato_chopping/1258_s047.gif +0 -0
- data/samples/potato_chopping/1258_s048.gif +0 -0
- data/samples/potato_chopping/1258_s049.gif +0 -0
- data/samples/potato_chopping/1258_s050.gif +0 -0
- data/samples/potato_chopping/1258_s051.gif +0 -0
- data/samples/potato_chopping/1258_s052.gif +0 -0
- data/samples/potato_chopping/1258_s053.gif +0 -0
- data/samples/potato_chopping/1258_s054.gif +0 -0
- data/samples/potato_chopping/1258_s055.gif +0 -0
- data/samples/potato_chopping/1258_s056.gif +0 -0
- data/samples/potato_chopping/1258_s057.gif +0 -0
- data/samples/potato_chopping/1258_s058.gif +0 -0
- data/samples/potato_chopping/1258_s059.gif +0 -0
- data/samples/present.rb +0 -27
- data/samples/progress.rb +0 -10
- data/samples/sample1.rb +0 -30
- data/samples/sample12.rb +0 -21
- data/samples/sample13.rb +0 -13
- data/samples/sample14.rb +0 -64
- data/samples/sample15.rb +0 -18
- data/samples/sample16.rb +0 -10
- data/samples/sample17.rb +0 -10
- data/samples/sample2.rb +0 -14
- data/samples/sample21.rb +0 -5
- data/samples/sample23.rb +0 -8
- data/samples/sample24.rb +0 -21
- data/samples/sample27.rb +0 -18
- data/samples/sample3.rb +0 -14
- data/samples/sample31.rb +0 -22
- data/samples/sample34.rb +0 -27
- data/samples/sample35.rb +0 -32
- data/samples/sample37.rb +0 -8
- data/samples/sample4.rb +0 -7
- data/samples/sample42.rb +0 -14
- data/samples/sample45.rb +0 -11
- data/samples/sample56.rb +0 -10
- data/samples/sample6.rb +0 -9
- data/samples/sample7.rb +0 -3
- data/samples/sample8.rb +0 -7
- data/samples/sample9.rb +0 -10
- data/samples/simple-accordion.rb +0 -75
- data/samples/simple-anim-shapes.rb +0 -17
- data/samples/simple-anim-text.rb +0 -13
- data/samples/simple-animate.rb +0 -12
- data/samples/simple-arc.rb +0 -23
- data/samples/simple-bounce.rb +0 -24
- data/samples/simple-brightness-transitions.rb +0 -8
- data/samples/simple-button-animate.rb +0 -16
- data/samples/simple-calc-2.rb +0 -34
- data/samples/simple-calc.rb +0 -70
- data/samples/simple-color-selector.rb +0 -10
- data/samples/simple-color-transitions.rb +0 -11
- data/samples/simple-control-sizes.rb +0 -24
- data/samples/simple-curve.rb +0 -26
- data/samples/simple-dialogs-outside.rb +0 -12
- data/samples/simple-dialogs.rb +0 -32
- data/samples/simple-displace.rb +0 -15
- data/samples/simple-downloader.rb +0 -27
- data/samples/simple-draw.rb +0 -13
- data/samples/simple-editor.rb +0 -28
- data/samples/simple-face.rb +0 -14
- data/samples/simple-flow-wrap.rb +0 -11
- data/samples/simple-font.rb +0 -17
- data/samples/simple-form.rb +0 -29
- data/samples/simple-form.shy +0 -0
- data/samples/simple-fullscreen.rb +0 -4
- data/samples/simple-guess-game.rb +0 -28
- data/samples/simple-keypress.rb +0 -14
- data/samples/simple-manual.rb +0 -2
- data/samples/simple-mask.rb +0 -21
- data/samples/simple-menu.rb +0 -47
- data/samples/simple-mouse-follow.rb +0 -8
- data/samples/simple-move.rb +0 -13
- data/samples/simple-oval.rb +0 -3
- data/samples/simple-sample-executor.rb +0 -6
- data/samples/simple-shoes-intro.rb +0 -22
- data/samples/simple-slide.rb +0 -56
- data/samples/simple-sound.rb +0 -30
- data/samples/simple-sphere.rb +0 -28
- data/samples/simple-stripes.rb +0 -8
- data/samples/simple-tictactoe.rb +0 -238
- data/samples/simple-timer.rb +0 -15
- data/samples/simple-video.rb +0 -13
- data/samples/simple-visibility.rb +0 -11
- data/samples/simple-widget.rb +0 -9
- data/samples/sounds/102719__sarge4267__explosion.mp3 +0 -0
- data/samples/sounds/145622__andybrannan__train-fog-horn-long-wyomming.aiff +0 -0
- data/samples/sounds/46492__phreaksaccount__shields1.ogg +0 -0
- data/samples/sounds/61847__simon-rue__boink-v3.wav +0 -0
- data/samples/swt-raw.rb +0 -20
- data/samples/troll.rb +0 -22
- data/shoes.gemspec +0 -29
- data/snapshots/sample1.png +0 -0
- data/snapshots/sample10.png +0 -0
- data/snapshots/sample11.png +0 -0
- data/snapshots/sample12.png +0 -0
- data/snapshots/sample13.png +0 -0
- data/snapshots/sample14.png +0 -0
- data/snapshots/sample15.png +0 -0
- data/snapshots/sample16.png +0 -0
- data/snapshots/sample17.png +0 -0
- data/snapshots/sample18.png +0 -0
- data/snapshots/sample19.png +0 -0
- data/snapshots/sample2.png +0 -0
- data/snapshots/sample20.png +0 -0
- data/snapshots/sample21.png +0 -0
- data/snapshots/sample22.png +0 -0
- data/snapshots/sample23.png +0 -0
- data/snapshots/sample24.png +0 -0
- data/snapshots/sample27.png +0 -0
- data/snapshots/sample28.png +0 -0
- data/snapshots/sample29.png +0 -0
- data/snapshots/sample3.png +0 -0
- data/snapshots/sample30.png +0 -0
- data/snapshots/sample31.png +0 -0
- data/snapshots/sample34.png +0 -0
- data/snapshots/sample35.png +0 -0
- data/snapshots/sample36.png +0 -0
- data/snapshots/sample37.png +0 -0
- data/snapshots/sample4.png +0 -0
- data/snapshots/sample42.png +0 -0
- data/snapshots/sample44.png +0 -0
- data/snapshots/sample45.png +0 -0
- data/snapshots/sample46.png +0 -0
- data/snapshots/sample5.png +0 -0
- data/snapshots/sample56.png +0 -0
- data/snapshots/sample6.png +0 -0
- data/snapshots/sample7.png +0 -0
- data/snapshots/sample8.png +0 -0
- data/snapshots/sample9.png +0 -0
- data/snapshots/sample99.png +0 -0
- data/static/PKGBUILD +0 -47
- data/static/Shoes.icns +0 -0
- data/static/avatar.png +0 -0
- data/static/code_highlighter.js +0 -188
- data/static/code_highlighter_ruby.js +0 -26
- data/static/downloading.png +0 -0
- data/static/icon-debug.png +0 -0
- data/static/icon-error.png +0 -0
- data/static/icon-info.png +0 -0
- data/static/icon-warn.png +0 -0
- data/static/listbox_button1.png +0 -0
- data/static/listbox_button2.png +0 -0
- data/static/man-app.png +0 -0
- data/static/man-builds.png +0 -0
- data/static/man-builds1.png +0 -0
- data/static/man-editor-notepad.png +0 -0
- data/static/man-editor-osx.png +0 -0
- data/static/man-ele-background.png +0 -0
- data/static/man-ele-border.png +0 -0
- data/static/man-ele-button.png +0 -0
- data/static/man-ele-check.png +0 -0
- data/static/man-ele-editbox.png +0 -0
- data/static/man-ele-editline.png +0 -0
- data/static/man-ele-image.png +0 -0
- data/static/man-ele-listbox.png +0 -0
- data/static/man-ele-progress.png +0 -0
- data/static/man-ele-radio.png +0 -0
- data/static/man-ele-shape.png +0 -0
- data/static/man-ele-textblock.png +0 -0
- data/static/man-ele-video.png +0 -0
- data/static/man-intro-dmg.png +0 -0
- data/static/man-intro-exe.png +0 -0
- data/static/man-look-tiger.png +0 -0
- data/static/man-look-ubuntu.png +0 -0
- data/static/man-look-vista.png +0 -0
- data/static/man-run-osx.png +0 -0
- data/static/man-run-vista.png +0 -0
- data/static/man-run-xp.png +0 -0
- data/static/man-shot1.png +0 -0
- data/static/manual-en.txt +0 -3531
- data/static/manual-ja.txt +0 -2829
- data/static/manual.css +0 -184
- data/static/menu-corner1.png +0 -0
- data/static/menu-corner2.png +0 -0
- data/static/menu-gray.png +0 -0
- data/static/menu-left.png +0 -0
- data/static/menu-right.png +0 -0
- data/static/menu-top.png +0 -0
- data/static/shoes-dmg.jpg +0 -0
- data/static/shoes-icon-blue.png +0 -0
- data/static/shoes-icon-brown.png +0 -0
- data/static/shoes-icon.png +0 -0
- data/static/shoes-manual-apps.gif +0 -0
- data/static/shoes-manual-apps.png +0 -0
- data/static/shoes_main_window.png +0 -0
- data/static/stripe.png +0 -0
- data/static/tutor-back.png +0 -0
- data/tasks/changelog.rb +0 -92
- data/tasks/gem.rb +0 -38
- data/tasks/rspec.rb +0 -106
- data/tasks/sample.rb +0 -66
- 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
|
-
|
data/benchmark/app_clear.rb
DELETED
@@ -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
|
data/benchmark/para_creator.rb
DELETED
@@ -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
data/bin/shoes-guard
DELETED
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
|