green_shoes 1.0.337 → 1.1.348
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/gshoes +57 -0
- data/bin/gshoes.bat +2 -0
- data/bin/gshoes.ico +0 -0
- data/lib/green_shoes.rb +2 -0
- data/lib/shoes/app.rb +1 -1
- data/lib/shoes/help.rb +1 -1
- data/lib/shoes/helper_methods.rb +2 -2
- data/lib/shoes/minitar.rb +986 -0
- data/lib/shoes/shy.rb +130 -0
- data/samples/sample1.rb +2 -2
- data/samples/sample10.rb +1 -1
- data/samples/sample11.rb +1 -1
- data/samples/sample12.rb +1 -1
- data/samples/sample13.rb +1 -1
- data/samples/sample14-1.rb +1 -1
- data/samples/sample14.rb +1 -1
- data/samples/sample15.rb +2 -2
- data/samples/sample16.rb +1 -1
- data/samples/sample17.rb +1 -1
- data/samples/sample18.rb +2 -2
- data/samples/sample19.rb +1 -1
- data/samples/sample2.rb +6 -5
- data/samples/sample20.rb +5 -5
- data/samples/sample21.rb +2 -2
- data/samples/sample22.rb +1 -1
- data/samples/sample23.rb +2 -2
- data/samples/sample24.rb +2 -2
- data/samples/sample25.rb +2 -2
- data/samples/sample26.rb +1 -1
- data/samples/sample27.rb +1 -1
- data/samples/sample28.rb +1 -1
- data/samples/sample29.rb +1 -1
- data/samples/sample3.rb +1 -1
- data/samples/sample30.rb +2 -2
- data/samples/sample31.rb +1 -1
- data/samples/sample32.rb +1 -1
- data/samples/sample33.rb +1 -1
- data/samples/sample34.rb +1 -1
- data/samples/sample35.rb +3 -3
- data/samples/sample36.rb +2 -2
- data/samples/sample37.rb +1 -1
- data/samples/sample38.rb +1 -1
- data/samples/sample39.rb +2 -2
- data/samples/sample4.rb +1 -1
- data/samples/sample40.rb +1 -1
- data/samples/sample41.rb +1 -1
- data/samples/sample42.rb +1 -1
- data/samples/sample43.rb +1 -1
- data/samples/sample44.rb +1 -1
- data/samples/sample45.rb +1 -1
- data/samples/sample46.rb +1 -1
- data/samples/sample47.rb +2 -2
- data/samples/sample48.rb +1 -1
- data/samples/sample49.rb +1 -1
- data/samples/sample5.rb +2 -2
- data/samples/sample50.rb +1 -1
- data/samples/sample51.rb +2 -2
- data/samples/sample52.rb +1 -1
- data/samples/sample53.rb +1 -1
- data/samples/sample54.rb +2 -2
- data/samples/sample55.rb +1 -1
- data/samples/sample56.rb +1 -1
- data/samples/sample57.rb +1 -1
- data/samples/sample58.rb +2 -2
- data/samples/sample6.rb +1 -1
- data/samples/sample7.rb +1 -1
- data/samples/sample8.rb +2 -2
- data/samples/sample9.rb +2 -2
- data/samples/sample99.rb +1 -1
- data/static/manual-en.txt +27 -2
- data/static/manual-ja.txt +26 -2
- metadata +11 -6
- data/samples/potato_chopping/1258_s060.gif +0 -0
data/samples/sample35.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# original code is http://shoes-tutorial-note.heroku.com/html/00409_No.9_Shoes.url.html
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'green_shoes'
|
4
4
|
|
5
5
|
class PhotoFrame < Shoes
|
6
6
|
url '/', :index
|
@@ -13,7 +13,7 @@ class PhotoFrame < Shoes
|
|
13
13
|
|
14
14
|
def loogink
|
15
15
|
background tomato
|
16
|
-
image '
|
16
|
+
image File.join(DIR, '../samples/loogink.png'), margin: [70, 10, 0, 0]
|
17
17
|
para fg(strong('She is Loogink.'), white),
|
18
18
|
'->', link(strong('Cy')){visit '/cy'},
|
19
19
|
margin: 10
|
@@ -22,7 +22,7 @@ class PhotoFrame < Shoes
|
|
22
22
|
|
23
23
|
def cy
|
24
24
|
background paleturquoise
|
25
|
-
image '
|
25
|
+
image File.join(DIR, '../samples/cy.png'), margin: [70, 10, 0, 0]
|
26
26
|
para fg(strong('He is Cy.'), gray), ' ->',
|
27
27
|
link(strong('loogink')){visit '/loogink'},
|
28
28
|
margin: 10
|
data/samples/sample36.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# original code is Red Shoes class-book.rb by _why
|
2
|
-
require '
|
2
|
+
require 'green_shoes'
|
3
3
|
require 'yaml'
|
4
4
|
|
5
5
|
class Book < Shoes
|
@@ -10,7 +10,7 @@ class Book < Shoes
|
|
10
10
|
incident 0
|
11
11
|
end
|
12
12
|
|
13
|
-
INCIDENTS = YAML.load_file('
|
13
|
+
INCIDENTS = YAML.load_file File.join(DIR, '../samples/class-book.yaml')
|
14
14
|
|
15
15
|
def table_of_contents
|
16
16
|
toc = []
|
data/samples/sample37.rb
CHANGED
data/samples/sample38.rb
CHANGED
data/samples/sample39.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# An imitation of Hackety Hack opening demo.
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'green_shoes'
|
4
4
|
|
5
5
|
Shoes.app width: 420, height: 420 do
|
6
6
|
nostroke
|
@@ -9,7 +9,7 @@ Shoes.app width: 420, height: 420 do
|
|
9
9
|
|
10
10
|
stack do
|
11
11
|
@m = mask{star -284, -174, 130, 500, 90}
|
12
|
-
image "
|
12
|
+
image File.join(DIR, "../samples/splash-hand.png") , top: 204, left: 84
|
13
13
|
end
|
14
14
|
|
15
15
|
animate 2 do |i|
|
data/samples/sample4.rb
CHANGED
data/samples/sample40.rb
CHANGED
data/samples/sample41.rb
CHANGED
data/samples/sample42.rb
CHANGED
data/samples/sample43.rb
CHANGED
data/samples/sample44.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# Original code for Red Shoes is: https://github.com/shoes/shoes/blob/master/samples/good-clock.rb
|
5
5
|
# The following is a little bit modified snippet for Green Shoes, using show and hide instead of clear.
|
6
6
|
#
|
7
|
-
require '
|
7
|
+
require 'green_shoes'
|
8
8
|
|
9
9
|
Shoes.app height: 260, width: 250 do
|
10
10
|
def draw_background
|
data/samples/sample45.rb
CHANGED
data/samples/sample46.rb
CHANGED
data/samples/sample47.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'green_shoes'
|
2
2
|
|
3
3
|
Shoes.app do
|
4
4
|
flow width: 0.3, height: 0.5 do
|
@@ -17,4 +17,4 @@ Shoes.app do
|
|
17
17
|
background plum
|
18
18
|
list_box items: %w[edit_box edit_line list_box button], width: 0.5 , margin: 20, choose: 'list_box'
|
19
19
|
end
|
20
|
-
end
|
20
|
+
end
|
data/samples/sample48.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Original code was written by Cecil Coupe
|
2
2
|
# He shared that in Shoes ML: http://librelist.com/browser//shoes/2011/2/17/radio-checked-method-broken/#1197b650c7dfdae2bc7c76bd9dad7e0e
|
3
3
|
|
4
|
-
require '
|
4
|
+
require 'green_shoes'
|
5
5
|
|
6
6
|
Shoes.app width: 300, height: 300 do
|
7
7
|
background gold..deeppink, angle: 45
|
data/samples/sample49.rb
CHANGED
data/samples/sample5.rb
CHANGED
data/samples/sample50.rb
CHANGED
data/samples/sample51.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'green_shoes'
|
2
2
|
|
3
3
|
# The same as gallery2 : http://shoes-tutorial-note.heroku.com/html/01110_Fancy_Gallery_1-5.html
|
4
4
|
# But revised for Green Shoes
|
@@ -7,7 +7,7 @@ Shoes.app width: 200, height: 200 do
|
|
7
7
|
background mintcream
|
8
8
|
flow margin: 5 do
|
9
9
|
flow height: 190 do
|
10
|
-
background '
|
10
|
+
background File.join(DIR, '../samples/shell.png'), curve: 5
|
11
11
|
@line = para ' '
|
12
12
|
@line.cursor = -1
|
13
13
|
end
|
data/samples/sample52.rb
CHANGED
data/samples/sample53.rb
CHANGED
data/samples/sample54.rb
CHANGED
@@ -12,7 +12,7 @@ $config=[
|
|
12
12
|
ENV.delete('proxy_http')
|
13
13
|
|
14
14
|
##__EEND__##################################################################################
|
15
|
-
require '
|
15
|
+
require 'green_shoes'
|
16
16
|
#require 'green_shoes'
|
17
17
|
|
18
18
|
require 'tmpdir'
|
@@ -224,4 +224,4 @@ $h=(($config.size+1)*24)
|
|
224
224
|
|
225
225
|
edit_conf if $toBeFirstEdit
|
226
226
|
update(true)
|
227
|
-
end
|
227
|
+
end
|
data/samples/sample55.rb
CHANGED
data/samples/sample56.rb
CHANGED
data/samples/sample57.rb
CHANGED
data/samples/sample58.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'green_shoes'
|
2
2
|
|
3
3
|
Shoes.app width: 300, height: 100, title: 'Teeny-weeny MP3 player' do
|
4
4
|
space = ' '
|
@@ -16,7 +16,7 @@ Shoes.app width: 300, height: 100, title: 'Teeny-weeny MP3 player' do
|
|
16
16
|
end
|
17
17
|
}, space, link('play'){v.play}, space, link('pause'){v.pause}, space, link('stop'){v.stop}
|
18
18
|
|
19
|
-
img = image
|
19
|
+
img = image File.join(DIR, '../samples/loogink.png')
|
20
20
|
n = 0
|
21
21
|
animate 5 do
|
22
22
|
img.move (n+=1) % 300 , 40 - rand(10) if file && v.playing?
|
data/samples/sample6.rb
CHANGED
data/samples/sample7.rb
CHANGED
data/samples/sample8.rb
CHANGED
data/samples/sample9.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'green_shoes'
|
2
2
|
|
3
3
|
Shoes.app do
|
4
4
|
flow(width: 300){3.times{|i| button "hello#{i}"}}
|
@@ -7,6 +7,6 @@ Shoes.app do
|
|
7
7
|
flow(width: 0.5){2.times{|i| flow(width: 0.5){2.times{|j| button "Yayyyy#{j}"}}}}
|
8
8
|
flow(width: 0.3){button 'go go go go go'}
|
9
9
|
stack(width: 0.3){edit_line; 3.times{para 'hello'}}
|
10
|
-
flow(width: 0.3){image '../static/gshoes-icon.png'}
|
10
|
+
flow(width: 0.3){image File.join(DIR, '../static/gshoes-icon.png')}
|
11
11
|
button 'bye bye2'
|
12
12
|
end
|
data/samples/sample99.rb
CHANGED
data/static/manual-en.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
1
2
|
= Hello! =
|
2
3
|
|
3
4
|
Shoes is a tiny graphics toolkit. It's simple and straightforward. Shoes was
|
@@ -77,7 +78,7 @@ We'll talk through all the steps.
|
|
77
78
|
|
78
79
|
At first, install Ruby. On '''Windows''',
|
79
80
|
visit the site of [[http://rubyinstaller.org/ RubyInstaller for Windows]] to
|
80
|
-
download the latest '''RubyInstaller 1.9.2'''.
|
81
|
+
download the latest '''RubyInstaller 1.9.2 or 1.9.3'''.
|
81
82
|
|
82
83
|
Then just do the following one line.
|
83
84
|
|
@@ -1502,7 +1503,7 @@ whether there is a scrollbar or not.
|
|
1502
1503
|
s = stack left: 100, top: 50, width: 300,
|
1503
1504
|
height: 100, scroll: true do
|
1504
1505
|
background gold
|
1505
|
-
image '
|
1506
|
+
image File.join(DIR, '../samples/loogink.png')
|
1506
1507
|
10.times{para 'hello'}
|
1507
1508
|
flush
|
1508
1509
|
end
|
@@ -3941,3 +3942,27 @@ If you don't specify the `:width` size, Green Shoes makes a TextBlock object wit
|
|
3941
3942
|
the `parent.width`.
|
3942
3943
|
|
3943
3944
|
For more information, go to [[http://ashbb.github.com/green_shoes/Red_Shoes_and_Green_Shoes.html Red Shoes and Green Shoes]].
|
3945
|
+
|
3946
|
+
== gshoes ==
|
3947
|
+
|
3948
|
+
'''gshoes''' is a gem executable command which has some options. Just open console window and try to run `gshoes (options or app.rb or app.gsy)`.
|
3949
|
+
|
3950
|
+
=== -m, -men ===
|
3951
|
+
|
3952
|
+
Open the built-in English manual.
|
3953
|
+
|
3954
|
+
=== -mjp ===
|
3955
|
+
|
3956
|
+
Open the built-in Japanese manual.
|
3957
|
+
|
3958
|
+
=== -p ===
|
3959
|
+
|
3960
|
+
Package a Green Shoes app as a .gsy file. GSY, which stands for Green Shoes YAML.
|
3961
|
+
|
3962
|
+
=== -v ===
|
3963
|
+
|
3964
|
+
Display the version info.
|
3965
|
+
|
3966
|
+
=== -h ===
|
3967
|
+
|
3968
|
+
Show the help message.
|
data/static/manual-ja.txt
CHANGED
@@ -79,7 +79,7 @@ Rubyのインストールは必要ですか?なにも解凍しなくてもい
|
|
79
79
|
|
80
80
|
まず最初にRubyをインストールします。
|
81
81
|
Windowsの場合はこのサイト[[http://rubyinstaller.org/ RubyInstaller for Windows]]
|
82
|
-
にアクセスして、最新の'''RubyInstaller 1.9.2'''をインストールして下さい。
|
82
|
+
にアクセスして、最新の'''RubyInstaller 1.9.2 or 1.9.3'''をインストールして下さい。
|
83
83
|
|
84
84
|
そして、以下のコマンドを実行してください。
|
85
85
|
|
@@ -1434,7 +1434,7 @@ strong, sub, sup, subtitle, tagline, title''で利用できます。
|
|
1434
1434
|
s = stack left: 100, top: 50, width: 300,
|
1435
1435
|
height: 100, scroll: true do
|
1436
1436
|
background gold
|
1437
|
-
image '
|
1437
|
+
image File.join(DIR, '../samples/loogink.png')
|
1438
1438
|
10.times{para 'hello'}
|
1439
1439
|
flush
|
1440
1440
|
end
|
@@ -3855,3 +3855,27 @@ Green ShoesはRed Shoesに従っていますが、完全互換ではありませ
|
|
3855
3855
|
|
3856
3856
|
詳細は、[[http://ashbb.github.com/green_shoes/Red_Shoes_and_Green_Shoes.html Red Shoes and Green Shoes]]を
|
3857
3857
|
参照下さい。
|
3858
|
+
|
3859
|
+
== gshoes ==
|
3860
|
+
|
3861
|
+
'''gshoes''' は、実行可能なgem コマンドです。いつくかのオプションを持っています。コンソールウィンドウを開いて `gshoes (options or app.rb or app.gsy)` と実行します。
|
3862
|
+
|
3863
|
+
=== -m, -men ===
|
3864
|
+
|
3865
|
+
英語マニュアルを表示します。
|
3866
|
+
|
3867
|
+
=== -mjp ===
|
3868
|
+
|
3869
|
+
日本語マニュアルを表示します。
|
3870
|
+
|
3871
|
+
=== -p ===
|
3872
|
+
|
3873
|
+
あなたのGreen Shoesアプリケーションを .gsy ファイルにします。GSYはGreen Shoes YAMLの略です。
|
3874
|
+
|
3875
|
+
=== -v ===
|
3876
|
+
|
3877
|
+
バージョンを表示します。
|
3878
|
+
|
3879
|
+
=== -h ===
|
3880
|
+
|
3881
|
+
ヘルプメッセージを表示します。
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: green_shoes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.348
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gtk2
|
16
|
-
requirement: &
|
16
|
+
requirement: &14175360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,16 +21,20 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *14175360
|
25
25
|
description: Green Shoes is one of colorful Shoes, written in pure Ruby with Ruby/GTK2.
|
26
26
|
email: ashbbb@gmail.com
|
27
|
-
executables:
|
27
|
+
executables:
|
28
|
+
- gshoes
|
28
29
|
extensions: []
|
29
30
|
extra_rdoc_files:
|
30
31
|
- LICENSE
|
31
32
|
- README.md
|
32
33
|
files:
|
33
34
|
- VERSION
|
35
|
+
- bin/gshoes
|
36
|
+
- bin/gshoes.bat
|
37
|
+
- bin/gshoes.ico
|
34
38
|
- lib/ext/bloops.rb
|
35
39
|
- lib/ext/bloops/bloops.so
|
36
40
|
- lib/ext/bloops/libportaudio-2.dll
|
@@ -77,8 +81,10 @@ files:
|
|
77
81
|
- lib/shoes/main.rb
|
78
82
|
- lib/shoes/manual.rb
|
79
83
|
- lib/shoes/mask.rb
|
84
|
+
- lib/shoes/minitar.rb
|
80
85
|
- lib/shoes/projector.rb
|
81
86
|
- lib/shoes/ruby.rb
|
87
|
+
- lib/shoes/shy.rb
|
82
88
|
- lib/shoes/slot.rb
|
83
89
|
- lib/shoes/style.rb
|
84
90
|
- lib/shoes/text.rb
|
@@ -149,7 +155,6 @@ files:
|
|
149
155
|
- samples/potato_chopping/1258_s057.gif
|
150
156
|
- samples/potato_chopping/1258_s058.gif
|
151
157
|
- samples/potato_chopping/1258_s059.gif
|
152
|
-
- samples/potato_chopping/1258_s060.gif
|
153
158
|
- samples/sample1.rb
|
154
159
|
- samples/sample10.rb
|
155
160
|
- samples/sample11.rb
|