Hi all, I've uploaded Green Shoes gem into RubyGems.org. http://rubygems.org/gems/green_shoes If you have time, please try to install and run sample snippets. Now, you can play them from on built-in manual. http://vgoff.posterous.com/green-shoes-47-sample-apps The manual is not finished rewriting for Green Shoes yet. After finished rewriting, I'd like to call that v1.0. This will also require some more implementation, though. ;-) Have a good weekend, ashbb
I forgot to mention the following: $ irb --simple-prompt >> RUBY_PLATFORM => "x86_64-linux" >> RUBY_VERSION => "1.9.2" Prasad 2011/2/5 ashbb <ashbbb@gmail.com> > Hi all, > > I've uploaded Green Shoes gem into RubyGems.org. > http://rubygems.org/gems/green_shoes > > If you have time, please try to install and run sample snippets. > Now, you can play them from on built-in manual. > http://vgoff.posterous.com/green-shoes-47-sample-apps > > The manual is not finished rewriting for Green Shoes yet. > After finished rewriting, I'd like to call that v1.0. > This will also require some more implementation, though. ;-) > > Have a good weekend, > ashbb >
Hi Prasad,
Wow, Green Shoes is running on 64-linux. Cool!
> Elements, common, displace example gives the following errors:
Ah, sorry. I've not rewrite those sections yet.
So, the examples on those sections are not for Green Shoes but still for Red
Shoes. :-P
Click `Samples` link at bottom side links.
`Sample Apps` page will be appeared.
Then click a thumbnail. You can play the sample green shoes app. ;-)
Cheers,
ashbb
ps. Note, sample32 and 33 are available on Windows only.
Because using binary libraries.
Congrats Satoshi! I'll give it a shot over the weekend, cant' wait to see all the new progress! On Sat, Feb 5, 2011 at 1:47 PM, ashbb <ashbbb@gmail.com> wrote: > Hi Prasad, > > Wow, Green Shoes is running on 64-linux. Cool! > >> Elements, common, displace example gives the following errors: > Ah, sorry. I've not rewrite those sections yet. > So, the examples on those sections are not for Green Shoes but still for Red > Shoes. :-P > > Click `Samples` link at bottom side links. > `Sample Apps` page will be appeared. > Then click a thumbnail. You can play the sample green shoes app. ;-) > > Cheers, > ashbb > > ps. Note, sample32 and 33 are available on Windows only. > Because using binary libraries. > -- Zachary Scott
Updated Green Shoes gem to v0.139.0 Added "# Not yet available" comment in example code to avert a crash of built-in manual. So, there will be no crash when you run any example code from on built-in manual. Try it out, please. :) ashbb
Looks really great.
Maybe you can add the gtk2 dependency in the gemfile. In jeweler it
should be something along the lines of
gem.add_dependency('gtk2')
in the Rake task.
greetings
gunther
Am 06.02.2011 09:56, schrieb ashbb:
> Updated Green Shoes gem to v0.139.0
>
> Added "# Not yet available" comment in example code to avert
> a crash of built-in manual.
>
> So, there will be no crash when you run any example code from on
> built-in manual. Try it out, please. :)
>
> ashbb
>
Hi Gunther, Cool! This is the commit: https://github.com/ashbb/green_shoes/commit/8db248b388a03df26d4f81ac6b2b073e8a2b788e Thank you so much for the good suggestion. It worked very well on my Windows 7 laptop. :) Cheers, ashbb
First of all,
Green Shoes is really cool! Very easy to install and nice to use.
I was writting a sample app and got a problem. Maybe someone can help me.
When I run my app like this (below) the window appears fine with the
caption and inscription.
require 'green_shoes'
class Testing < Shoes
#url '/', :index
#url '/settings', :settings
url '/', :settings
def index
visit "/settings"
end
def settings
stack do
caption "Settings"
inscription "Lorem ipsum dolor sit amet, consectetur adipiscing
elit."
end
end
end
Shoes.app :width => 600
But when I run like this (below) nothing appears on the window space.
require 'green_shoes'
class Testing < Shoes
url '/', :index
url '/settings', :settings
#url '/', :settings
def index
visit "/settings"
end
def settings
stack do
caption "Settings"
inscription "Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Fusce sit amet justo augue, id suscipit turpis. Maecenas convallis
fringilla sagittis. Suspendisse iaculis faucibus posuere. Vivamus orci
lacus, molestie nec interdum et, blandit eu risus. Mauris ipsum lorem,
ultrices sit amet posuere a, volutpat et magna. Nunc et justo justo.
Aenean sit amet turpis nulla, non placer"
end
end
end
Shoes.app :width => 600
Anyone knows why?
Thanks,
Edu
On 2/7/2011 2:57 PM, ashbb wrote:
> Hi Gunther,
>
> Cool!
> This is the commit:
>
https://github.com/ashbb/green_shoes/commit/8db248b388a03df26d4f81ac6b2b073e8a2b788e
>
> Thank you so much for the good suggestion.
> It worked very well on my Windows 7 laptop. :)
>
> Cheers,
> ashbb
>
>
>
FWIW. Red Shoes runs Eduardo's second example just as he expected so it - it shoes the settings text. On Wed, 2011-02-09 at 17:53 +0100, Eduardo Argollo wrote: > First of all, > > Green Shoes is really cool! Very easy to install and nice to use. > > I was writting a sample app and got a problem. Maybe someone can help me. > > When I run my app like this (below) the window appears fine with the > caption and inscription. > > require 'green_shoes' > > class Testing < Shoes > #url '/', :index > #url '/settings', :settings > url '/', :settings > > def index > visit "/settings" > end > > def settings > stack do > caption "Settings" > inscription "Lorem ipsum dolor sit amet, consectetur adipiscing > elit." > end > end > > end > > Shoes.app :width => 600 > > > But when I run like this (below) nothing appears on the window space. > > require 'green_shoes' > > class Testing < Shoes > url '/', :index > url '/settings', :settings > #url '/', :settings > > def index > visit "/settings" > end > > def settings > stack do > caption "Settings" > inscription "Lorem ipsum dolor sit amet, consectetur adipiscing > elit. Fusce sit amet justo augue, id suscipit turpis. Maecenas convallis > fringilla sagittis. Suspendisse iaculis faucibus posuere. Vivamus orci > lacus, molestie nec interdum et, blandit eu risus. Mauris ipsum lorem, > ultrices sit amet posuere a, volutpat et magna. Nunc et justo justo. > Aenean sit amet turpis nulla, non placer" > end > end > > end > > Shoes.app :width => 600 > > > Anyone knows why? > > Thanks, > Edu > > On 2/7/2011 2:57 PM, ashbb wrote: > > Hi Gunther, > > > > Cool! > > This is the commit: > > https://github.com/ashbb/green_shoes/commit/8db248b388a03df26d4f81ac6b2b073e8a2b788e > > > > Thank you so much for the good suggestion. > > It worked very well on my Windows 7 laptop. :) > > > > Cheers, > > ashbb > > > > > >
Hi Edu, Cecil at al, > Green Shoes is really cool! Very easy to install and nice to use. Thanks! :) About this issue you found. Sorry, I didn't know that way. :-P If you replace `index` method like this: def index settings end or def index para link('go setting'){visit "/settings"} end Green Shoes will run your app as you expected. > Red Shoes runs Eduardo's second example just as he expected Yeah, Red Shoes is great. :) So, I've added a little patch for Green Shoes. Try out the latest gem, green_shoes 0.150.0, please. ;-) http://rubygems.org/gems/green_shoes ashbb
I just updated the gem and it works like a charm.
Thanks ashbb
I am actually porting an old red shoes application of mine into green
shoes. So I am finding some issues.
I don't know if this list is the right place to put them.
But anyway, I just found what might be a new one :-)
In the example below, the edit box does not get 70% of the stack width.
It stays quite small actualy. I tested with absolute numbers, and they
work fine.
require 'green_shoes'
class Testing < Shoes
url '/', :index
url '/settings', :settings
#url '/', :settings
def index
visit "/settings"
end
def settings
stack do
caption "Settings"
inscription "Lorem ipsum dolor sit amet"
@el = edit_line :width => 0.70
end
end
end
Shoes.app :width => 600
I checked out the edit_line code inside of green shoes app.rb
def edit_line args={}
args = basic_attributes args
args[:width] = 200 if args[:width].zero?
el = Gtk::Entry.new
el.text = args[:text].to_s
el.width_chars = args[:width] / 6
el.signal_connect "changed" do
yield el
end if block_given?
@canvas.put el, args[:left], args[:top]
el.show_now
args[:real], args[:app] = el, self
EditLine.new args
end
It initializes at 200 when it is zero. No checking for float numbers.
How do I get the container currently in use so that I can get its width
and set it with percentage?
Once again, thanks,
Eduardo.
On 2/10/2011 2:18 PM, ashbb wrote:
> Hi Edu, Cecil at al,
>
> > Green Shoes is really cool! Very easy to install and nice to use.
> Thanks! :)
>
> About this issue you found. Sorry, I didn't know that way. :-P
>
> If you replace `index` method like this:
>
> def index
> settings
> end
>
> or
>
> def index
> para link('go setting'){visit "/settings"}
> end
>
> Green Shoes will run your app as you expected.
>
> > Red Shoes runs Eduardo's second example just as he expected
> Yeah, Red Shoes is great. :)
>
> So, I've added a little patch for Green Shoes.
> Try out the latest gem, green_shoes 0.150.0, please. ;-)
>
> http://rubygems.org/gems/green_shoes
>
> ashbb
Ok. I did navigate a bit through green shoes code and changed the
helper_methods.rb basic_attributes method to:
def basic_attributes args={}
default = {left: 0, top: 0, width: 0, height: 0, angle: 0, curve: 0}
default.merge!({nocontrol: true}) if @nolayout
args[:width] = (@cslot.width * args[:width]).to_i if
args[:width].instance_of?(Float)
default.merge args
end
Now it works fine.
Just an idea.
Regards,
Eduardo
On 2/10/2011 3:52 PM, Eduardo Argollo wrote:
> I just updated the gem and it works like a charm.
>
> Thanks ashbb
>
> I am actually porting an old red shoes application of mine into green
> shoes. So I am finding some issues.
>
> I don't know if this list is the right place to put them.
>
> But anyway, I just found what might be a new one :-)
>
> In the example below, the edit box does not get 70% of the stack
> width. It stays quite small actualy. I tested with absolute numbers,
> and they work fine.
>
> require 'green_shoes'
>
> class Testing < Shoes
> url '/', :index
> url '/settings', :settings
> #url '/', :settings
>
> def index
> visit "/settings"
> end
>
> def settings
> stack do
> caption "Settings"
> inscription "Lorem ipsum dolor sit amet"
> @el = edit_line :width => 0.70
> end
> end
>
> end
>
> Shoes.app :width => 600
>
> I checked out the edit_line code inside of green shoes app.rb
>
> def edit_line args={}
> args = basic_attributes args
> args[:width] = 200 if args[:width].zero?
> el = Gtk::Entry.new
> el.text = args[:text].to_s
> el.width_chars = args[:width] / 6
> el.signal_connect "changed" do
> yield el
> end if block_given?
> @canvas.put el, args[:left], args[:top]
> el.show_now
> args[:real], args[:app] = el, self
> EditLine.new args
> end
>
>
> It initializes at 200 when it is zero. No checking for float numbers.
> How do I get the container currently in use so that I can get its
> width and set it with percentage?
>
>
> Once again, thanks,
> Eduardo.
>
>
> On 2/10/2011 2:18 PM, ashbb wrote:
>> Hi Edu, Cecil at al,
>>
>> > Green Shoes is really cool! Very easy to install and nice to use.
>> Thanks! :)
>>
>> About this issue you found. Sorry, I didn't know that way. :-P
>>
>> If you replace `index` method like this:
>>
>> def index
>> settings
>> end
>>
>> or
>>
>> def index
>> para link('go setting'){visit "/settings"}
>> end
>>
>> Green Shoes will run your app as you expected.
>>
>> > Red Shoes runs Eduardo's second example just as he expected
>> Yeah, Red Shoes is great. :)
>>
>> So, I've added a little patch for Green Shoes.
>> Try out the latest gem, green_shoes 0.150.0, please. ;-)
>>
>> http://rubygems.org/gems/green_shoes
>>
>> ashbb
Me again and sorry to bother. There I go with the float width.
I realized the slot does not initialize its width in pixels. Just after
positioning. This puts the problem if I set relative size to the slot
(stack or flow), my edit_line will have a initial value very small and
paint wrongly.
Not it all seems to work but aditionally to that change I did also alter:
main.rb ( first flow has whole width)
@apps.push app
app.top_slot = Flow.new app.slot_attributes(app: app, left: 0, top:
0, width: args[:width])
win = Gtk::Window.new
slot.rb
(@parent.contents << self) unless @nocontrol
#Set width pixels initial value
@width = (@parent.width * @initials[:width]).to_i if
@initials[:width].is_a? Float
@width = (@parent.width + @initials[:width]) if @initials[:width] < 0
if block_given?
By the way. I am sorry to be messing around with your guy's code. It is
just... just... that this is kinda fun.
Anyway, I will stop bothering or follow any procedure your guys tell me to.
Thanks,
Eduardo.
PS.: I would have added a width getter method that does all the
calculation at any given time (margins included).
2) If it is of any help, I could get the repository, and commit the
changes (maybe that is kinda too much).
On 2/10/2011 5:40 PM, Eduardo Argollo wrote:
> Ok. I did navigate a bit through green shoes code and changed the
> helper_methods.rb basic_attributes method to:
>
> def basic_attributes args={}
> default = {left: 0, top: 0, width: 0, height: 0, angle: 0, curve: 0}
> default.merge!({nocontrol: true}) if @nolayout
> args[:width] = (@cslot.width * args[:width]).to_i if
> args[:width].instance_of?(Float)
> default.merge args
> end
>
> Now it works fine.
>
> Just an idea.
>
> Regards,
> Eduardo
>
> On 2/10/2011 3:52 PM, Eduardo Argollo wrote:
>> I just updated the gem and it works like a charm.
>>
>> Thanks ashbb
>>
>> I am actually porting an old red shoes application of mine into green
>> shoes. So I am finding some issues.
>>
>> I don't know if this list is the right place to put them.
>>
>> But anyway, I just found what might be a new one :-)
>>
>> In the example below, the edit box does not get 70% of the stack
>> width. It stays quite small actualy. I tested with absolute numbers,
>> and they work fine.
>>
>> require 'green_shoes'
>>
>> class Testing < Shoes
>> url '/', :index
>> url '/settings', :settings
>> #url '/', :settings
>>
>> def index
>> visit "/settings"
>> end
>>
>> def settings
>> stack do
>> caption "Settings"
>> inscription "Lorem ipsum dolor sit amet"
>> @el = edit_line :width => 0.70
>> end
>> end
>>
>> end
>>
>> Shoes.app :width => 600
>>
>> I checked out the edit_line code inside of green shoes app.rb
>>
>> def edit_line args={}
>> args = basic_attributes args
>> args[:width] = 200 if args[:width].zero?
>> el = Gtk::Entry.new
>> el.text = args[:text].to_s
>> el.width_chars = args[:width] / 6
>> el.signal_connect "changed" do
>> yield el
>> end if block_given?
>> @canvas.put el, args[:left], args[:top]
>> el.show_now
>> args[:real], args[:app] = el, self
>> EditLine.new args
>> end
>>
>>
>> It initializes at 200 when it is zero. No checking for float numbers.
>> How do I get the container currently in use so that I can get its
>> width and set it with percentage?
>>
>>
>> Once again, thanks,
>> Eduardo.
>>
>>
>> On 2/10/2011 2:18 PM, ashbb wrote:
>>> Hi Edu, Cecil at al,
>>>
>>> > Green Shoes is really cool! Very easy to install and nice to use.
>>> Thanks! :)
>>>
>>> About this issue you found. Sorry, I didn't know that way. :-P
>>>
>>> If you replace `index` method like this:
>>>
>>> def index
>>> settings
>>> end
>>>
>>> or
>>>
>>> def index
>>> para link('go setting'){visit "/settings"}
>>> end
>>>
>>> Green Shoes will run your app as you expected.
>>>
>>> > Red Shoes runs Eduardo's second example just as he expected
>>> Yeah, Red Shoes is great. :)
>>>
>>> So, I've added a little patch for Green Shoes.
>>> Try out the latest gem, green_shoes 0.150.0, please. ;-)
>>>
>>> http://rubygems.org/gems/green_shoes
>>>
>>> ashbb
On Thu, Feb 10, 2011 at 9:05 AM, Eduardo Argollo <eargollo@gmail.com> wrote: > Me again and sorry to bother. There I go with the float width. > > I realized the slot does not initialize its width in pixels. Just after > positioning. This puts the problem if I set relative size to the slot (stack > or flow), my edit_line will have a initial value very small and paint > wrongly. > > Not it all seems to work but aditionally to that change I did also alter: > main.rb ( first flow has whole width) > @apps.push app > > app.top_slot = Flow.new app.slot_attributes(app: app, left: 0, top: 0, > width: args[:width]) > > win = Gtk::Window.new > > slot.rb > (@parent.contents << self) unless @nocontrol > > #Set width pixels initial value > @width = (@parent.width * @initials[:width]).to_i if > @initials[:width].is_a? Float > @width = (@parent.width + @initials[:width]) if @initials[:width] < 0 > > if block_given? > > By the way. I am sorry to be messing around with your guy's code. It is > just... just... that this is kinda fun. > > Anyway, I will stop bothering or follow any procedure your guys tell me to. > > Thanks, > Eduardo. > > PS.: I would have added a width getter method that does all the calculation > at any given time (margins included). > 2) If it is of any help, I could get the repository, and commit the changes > (maybe that is kinda too much). > Any and all help is welcome. It doesn't matter whether you stick around or not, make as many commits as you want; as long as they're of decent quality we accept them :) So yeah, just fork it on GitHub and ashbb should see it. > > > On 2/10/2011 5:40 PM, Eduardo Argollo wrote: > > Ok. I did navigate a bit through green shoes code and changed the > helper_methods.rb basic_attributes method to: > > def basic_attributes args={} > default = {left: 0, top: 0, width: 0, height: 0, angle: 0, curve: 0} > default.merge!({nocontrol: true}) if @nolayout > args[:width] = (@cslot.width * args[:width]).to_i if > args[:width].instance_of?(Float) > default.merge args > end > > Now it works fine. > > Just an idea. > > Regards, > Eduardo > > On 2/10/2011 3:52 PM, Eduardo Argollo wrote: > > I just updated the gem and it works like a charm. > > Thanks ashbb > > I am actually porting an old red shoes application of mine into green > shoes. So I am finding some issues. > > I don't know if this list is the right place to put them. > > But anyway, I just found what might be a new one :-) > > In the example below, the edit box does not get 70% of the stack width. It > stays quite small actualy. I tested with absolute numbers, and they work > fine. > > require 'green_shoes' > > class Testing < Shoes > url '/', :index > url '/settings', :settings > #url '/', :settings > > def index > visit "/settings" > end > > def settings > stack do > caption "Settings" > inscription "Lorem ipsum dolor sit amet" > @el = edit_line :width => 0.70 > end > end > > end > > Shoes.app :width => 600 > > I checked out the edit_line code inside of green shoes app.rb > > def edit_line args={} > args = basic_attributes args > args[:width] = 200 if args[:width].zero? > el = Gtk::Entry.new > el.text = args[:text].to_s > el.width_chars = args[:width] / 6 > el.signal_connect "changed" do > yield el > end if block_given? > @canvas.put el, args[:left], args[:top] > el.show_now > args[:real], args[:app] = el, self > EditLine.new args > end > > > It initializes at 200 when it is zero. No checking for float numbers. How > do I get the container currently in use so that I can get its width and set > it with percentage? > > > Once again, thanks, > Eduardo. > > > On 2/10/2011 2:18 PM, ashbb wrote: > > Hi Edu, Cecil at al, > > > Green Shoes is really cool! Very easy to install and nice to use. > Thanks! :) > > About this issue you found. Sorry, I didn't know that way. :-P > > If you replace `index` method like this: > > def index > settings > end > > or > > def index > para link('go setting'){visit "/settings"} > end > > Green Shoes will run your app as you expected. > > > Red Shoes runs Eduardo's second example just as he expected > Yeah, Red Shoes is great. :) > > So, I've added a little patch for Green Shoes. > Try out the latest gem, green_shoes 0.150.0, please. ;-) > > http://rubygems.org/gems/green_shoes > > ashbb > > -- ~devyn
Ok. I did fork it. My question is then: how do I test my deployment? How do I run my code using the forked green shoes instead of the gem I currently have? Quite basic, right? Edu On 2/10/2011 6:15 PM, Devyn Cairns wrote: > > > On Thu, Feb 10, 2011 at 9:05 AM, Eduardo Argollo <eargollo@gmail.com > <mailto:eargollo@gmail.com>> wrote: > > Me again and sorry to bother. There I go with the float width. > > I realized the slot does not initialize its width in pixels. Just > after positioning. This puts the problem if I set relative size to > the slot (stack or flow), my edit_line will have a initial value > very small and paint wrongly. > > Not it all seems to work but aditionally to that change I did also > alter: > main.rb ( first flow has whole width) > @apps.push app > > app.top_slot = Flow.new app.slot_attributes(app: app, left: 0, > top: 0, width: args[:width]) > > win = Gtk::Window.new > > slot.rb > (@parent.contents << self) unless @nocontrol > > #Set width pixels initial value > @width = (@parent.width * @initials[:width]).to_i if > @initials[:width].is_a? Float > @width = (@parent.width + @initials[:width]) if > @initials[:width] < 0 > > if block_given? > > By the way. I am sorry to be messing around with your guy's code. > It is just... just... that this is kinda fun. > > Anyway, I will stop bothering or follow any procedure your guys > tell me to. > > Thanks, > Eduardo. > > PS.: I would have added a width getter method that does all the > calculation at any given time (margins included). > 2) If it is of any help, I could get the repository, and commit > the changes (maybe that is kinda too much). > > > Any and all help is welcome. It doesn't matter whether you stick > around or not, make as many commits as you want; as long as they're of > decent quality we accept them :) > > So yeah, just fork it on GitHub and ashbb should see it. > > > > On 2/10/2011 5:40 PM, Eduardo Argollo wrote: >> Ok. I did navigate a bit through green shoes code and changed the >> helper_methods.rb basic_attributes method to: >> >> def basic_attributes args={} >> default = {left: 0, top: 0, width: 0, height: 0, angle: 0, >> curve: 0} >> default.merge!({nocontrol: true}) if @nolayout >> args[:width] = (@cslot.width * args[:width]).to_i if >> args[:width].instance_of?(Float) >> default.merge args >> end >> >> Now it works fine. >> >> Just an idea. >> >> Regards, >> Eduardo >> >> On 2/10/2011 3:52 PM, Eduardo Argollo wrote: >>> I just updated the gem and it works like a charm. >>> >>> Thanks ashbb >>> >>> I am actually porting an old red shoes application of mine into >>> green shoes. So I am finding some issues. >>> >>> I don't know if this list is the right place to put them. >>> >>> But anyway, I just found what might be a new one :-) >>> >>> In the example below, the edit box does not get 70% of the stack >>> width. It stays quite small actualy. I tested with absolute >>> numbers, and they work fine. >>> >>> require 'green_shoes' >>> >>> class Testing < Shoes >>> url '/', :index >>> url '/settings', :settings >>> #url '/', :settings >>> >>> def index >>> visit "/settings" >>> end >>> >>> def settings >>> stack do >>> caption "Settings" >>> inscription "Lorem ipsum dolor sit amet" >>> @el = edit_line :width => 0.70 >>> end >>> end >>> >>> end >>> >>> Shoes.app :width => 600 >>> >>> I checked out the edit_line code inside of green shoes app.rb >>> >>> def edit_line args={} >>> args = basic_attributes args >>> args[:width] = 200 if args[:width].zero? >>> el = Gtk::Entry.new >>> el.text = args[:text].to_s >>> el.width_chars = args[:width] / 6 >>> el.signal_connect "changed" do >>> yield el >>> end if block_given? >>> @canvas.put el, args[:left], args[:top] >>> el.show_now >>> args[:real], args[:app] = el, self >>> EditLine.new args >>> end >>> >>> >>> It initializes at 200 when it is zero. No checking for float >>> numbers. How do I get the container currently in use so that I >>> can get its width and set it with percentage? >>> >>> >>> Once again, thanks, >>> Eduardo. >>> >>> >>> On 2/10/2011 2:18 PM, ashbb wrote: >>>> Hi Edu, Cecil at al, >>>> >>>> > Green Shoes is really cool! Very easy to install and nice to >>>> use. >>>> Thanks! :) >>>> >>>> About this issue you found. Sorry, I didn't know that way. :-P >>>> >>>> If you replace `index` method like this: >>>> >>>> def index >>>> settings >>>> end >>>> >>>> or >>>> >>>> def index >>>> para link('go setting'){visit "/settings"} >>>> end >>>> >>>> Green Shoes will run your app as you expected. >>>> >>>> > Red Shoes runs Eduardo's second example just as he expected >>>> Yeah, Red Shoes is great. :) >>>> >>>> So, I've added a little patch for Green Shoes. >>>> Try out the latest gem, green_shoes 0.150.0, please. ;-) >>>> >>>> http://rubygems.org/gems/green_shoes >>>> >>>> ashbb > > > > > -- > ~devyn
I'd use rvm to make new gemset, and install your test gem in it. Then run your scripts from there. And +1 to devyn's comment, any and all help is awesome. Keep it up. :)
Hi Eduardo and folks, > I am actually porting an old red shoes application of mine into green shoes. Wow, awesome! But, not yet implemented all stuffs of Red Shoes. Also Green Shoes goal is not 100% full compatibility. So, you may have to rewrite your apps. Sorry. :-P > the edit box does not get 70% of the stack width. Yeah, this is one of 'not yet implemented stuffs'. ;-) > By the way. I am sorry to be messing around with your guy's code. > It is just... just... that this is kinda fun. No prob. As Devyn and Steve said, any and all help is welcome! > How do I run my code using the forked green shoes instead of the gem > I currently have? Go to green_shoes/samples and do `ruby sample1.rb` on your console. It works using your local forked green shoes code instead of the gem. Because sample1.rb requires '../lib/green_shoes' instead of 'green_shoes'. > PS.: I would have added a width getter method that does all the > calculation at any given time (margins included). Cool! I'm really looking forward to get your pull requests. Let's enjoy developing Shoes in pure Ruby. :-D Cheers, ashbb
Glad to try green shoes.
After installing green_shoes gem and various missing gems like gtk2
I see the manual running and some examples running.
Some examples give errors, which I have not yet tried to understand.
For instance:
Elements, common, displace example gives the following errors:
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-0.138.0/lib/shoes/help.rb:79:in
`instance_eval': undefined method `displace' for
#<Shoes::Button:0x000000015b30f0>
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-0.138.0/lib/shoes/app.rb:230:in
`[]'
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-0.138.0/lib/shoes/app.rb:230:in
`block in animate'
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-0.138.0/lib/shoes/main.rb:97:in
`call
-----
-----
Thank you and best wishes,
Prasad
2011/2/5 ashbb <ashbbb@gmail.com>
> Hi all,
>
> I've uploaded Green Shoes gem into RubyGems.org.
> http://rubygems.org/gems/green_shoes
>
> If you have time, please try to install and run sample snippets.
> Now, you can play them from on built-in manual.
> http://vgoff.posterous.com/green-shoes-47-sample-apps
>
> The manual is not finished rewriting for Green Shoes yet.
> After finished rewriting, I'd like to call that v1.0.
> This will also require some more implementation, though. ;-)
>
> Have a good weekend,
> ashbb
>
Wow, and you've got 45 downloads already. Good job! On Sat, Feb 5, 2011 at 8:25 AM, ashbb <ashbbb@gmail.com> wrote: > Hi all, > > I've uploaded Green Shoes gem into RubyGems.org. > http://rubygems.org/gems/green_shoes > > If you have time, please try to install and run sample snippets. > Now, you can play them from on built-in manual. > http://vgoff.posterous.com/green-shoes-47-sample-apps > > The manual is not finished rewriting for Green Shoes yet. > After finished rewriting, I'd like to call that v1.0. > This will also require some more implementation, though. ;-) > > Have a good weekend, > ashbb > -- ~devyn
Hi Everyone, I am sorry to use the list in this way, but I am a Graduate Student who is going to be graduating soon, and wondered if anyone here had any leads on programming work? I certainly do not wish to use the list in this way, but I thought someone out there might be interested. If you have any questions please send me an email directly. Any input is appreciated. Thanks, Carson W. P.S. Sorry for those of you who this is a nuisance to.