librelist archives

« back to archive

Installing the Twitter gem

Installing the Twitter gem

From:
Simon Szustkowski
Date:
2011-06-09 @ 14:42
could not decode message

Re: [shoes] Installing the Twitter gem

From:
vhuto
Date:
2011-06-09 @ 16:30
Hi, Simon. I'm the first arriving!

I tried your code with my current Shoes under development, which completed
the work :)
I think it is true:

> rack requires RubyGems version > 1.3.1

RubyGems version INSIDE the current available Shoes for OSX seems to be 
short to 1.3.1.
Is my saying right, steve? I don't know actual thing, sorry :p

Uh, but what if you check out Gem::VERSION?

-vhuto

Re: [shoes] Installing the Twitter gem

From:
Simon Szustkowski
Date:
2011-06-09 @ 16:57
could not decode message

Re: [shoes] Installing the Twitter gem

From:
vhuto
Date:
2011-06-09 @ 19:27
All right, I sought from my old Shoes.
In that version, it is Gem::RubyGemsVersion. Check out :-)

Hmm, probably the way is to specify the 2 gems version lesser or to update
the inside RubyGems.
But I remember this Gem trouble often occurred in this mailing-list...

-vhuto

Re: [shoes] Installing the Twitter gem

From:
Simon Szustkowski
Date:
2011-06-09 @ 19:58
could not decode message

Re: [shoes] Installing the Twitter gem

From:
Steve Klabnik
Date:
2011-06-10 @ 00:06
Really? Gems distributed with Shoes 3 should be 1.3.6.

That said, updating the built-in gems requires building your own custom 
Shoes. It's not something we really support right now. I'm not sure why 
it's trying to install rack... maybe it's a dependency of the Shoes gem? 

On Thursday, June 9, 2011 at 3:58 PM, Simon Szustkowski wrote:

> Okay, it says 1.3.0. And rack requires gems > 1.3.1
> 
> It seems that updating the built-in gems seems to be a good idea. But i 
am quite new to ruby and was just a bit fooling around with Shoes. I have 
no idea how to update the built in gems, nor how to get the version number
of the twitter gem which relayed on a rack version which was installable 
with a rubygems version < 1.3.1. Sad but true.
> 
> ---
> Before printing this email, think if it is really needed.
> 
> On 09.06.2011, at 21:27, vhuto wrote:
> 
> > Gem::RubyGemsVersion
> 
> Attachments: 
> - smime.p7s
> 

Re: [shoes] Installing the Twitter gem

From:
vhuto
Date:
2011-06-10 @ 04:01
Uh-oh, Shoes3 for OSX @ http://shoesrb.com/downloads returns that 
Gem::RubyGemsVersion is 1.3.0. :p

In the future,
Gem::Commands::UpdateCommand#do_rubygems_update
might be some hint...

-vhuto

Re: [shoes] Installing the Twitter gem

From:
Cecil Coupe
Date:
2011-06-10 @ 04:45
There are at least three+ things happening and you need to discover
which one is biting you.

Installing gems inside Shoes that require compiling (binary gems) often
fails for some people - you can't depend of them working for anybody but
you, assuming it works for you. I don't know if the twitter and rack
dependency have this binary compile problem but the originally reported
problem suggest this is likely. 

Where Shoes store's it own gems is not optimal for all people nor is it
shared with other gems and rubies that may be on your system. 

The Shoes gem version reported may not match the actual code used in
Shoes. (AKA a bug)

The gem spec/project seem to be forking and gem authors haven't gotten
around to picking sides and updating code so whatever Shoes has now and
uses in the future, expect continued gem problems. There isn't much the
Red Shoes crew can do about it. 

--Cecil

On Fri, 2011-06-10 at 13:01 +0900, vhuto wrote:
> Uh-oh, Shoes3 for OSX @ http://shoesrb.com/downloads returns that 
Gem::RubyGemsVersion is 1.3.0. :p
> 
> In the future,
> Gem::Commands::UpdateCommand#do_rubygems_update
> might be some hint...
> 
> -vhuto

Re: [shoes] Installing the Twitter gem

From:
ashbb
Date:
2011-06-10 @ 12:52
Hi Simon, vhuto and folks,

Shoes 3 (0.r1514) for Windows includes rubygem 1.3.1.
Confirmed with this snippet:

  Shoes.app do
    para Gem::RubyGemsVersion
  end

I've never used OSX. But in Windows, the code of rubygems are here:

C:\Program Files\Common Files\Shoes\0.r1514\ruby\lib\rubygems.rb
C:\Program Files\Common Files\Shoes\0.r1514\ruby\lib\rubygems

So, I think that it's possible to update those files by hand.
But I'm not sure there is no need to update other dependencies...

ashbb

ps. How about trying out Green Shoes? ;-)

Re: [shoes] Installing the Twitter gem

From:
Steve Klabnik
Date:
2011-06-10 @ 13:08
Oh! One other thing... I thought we had a twitter example in shoes-contrib?
Or was it zzak's twittershoes thing?

Either way, I know it _can_ work. I'd find the example if I wasn't on my
phone.

Re: [shoes] Installing the Twitter gem

From:
Zachary Scott
Date:
2011-06-11 @ 02:51
Yah i've got a fork working on my github: http://github.com/zacharyscott

Its using the twitter4r gem and the old deprecated api tho
On Jun 10, 2011 9:08 AM, "Steve Klabnik" <steve@steveklabnik.com> wrote:
> Oh! One other thing... I thought we had a twitter example in
shoes-contrib?
> Or was it zzak's twittershoes thing?
>
> Either way, I know it _can_ work. I'd find the example if I wasn't on my
> phone.

Re: [shoes] Installing the Twitter gem

From:
Zachary Scott
Date:
2011-06-11 @ 02:14
+1 for dependency release
On Jun 10, 2011 9:08 AM, "Steve Klabnik" <steve@steveklabnik.com> wrote:
> Oh! One other thing... I thought we had a twitter example in
shoes-contrib?
> Or was it zzak's twittershoes thing?
>
> Either way, I know it _can_ work. I'd find the example if I wasn't on my
> phone.

Re: [shoes] Installing the Twitter gem

From:
Steve Klabnik
Date:
2011-06-11 @ 02:17
Working on it
On Jun 10, 2011 10:15 PM, "Zachary Scott" <zachary.s.scott@gmail.com> wrote:
> +1 for dependency release
> On Jun 10, 2011 9:08 AM, "Steve Klabnik" <steve@steveklabnik.com> wrote:
>> Oh! One other thing... I thought we had a twitter example in
> shoes-contrib?
>> Or was it zzak's twittershoes thing?
>>
>> Either way, I know it _can_ work. I'd find the example if I wasn't on my
>> phone.