[#362083] Teaching Programming Languages (including Ruby) — Samuel Williams <space.ship.traveller@...>

Hello,

20 messages 2010/05/02

[#362098] Main working window for Ruby is DOS? — Kaye Ng <sbstn26@...>

I know nothing about programming and am not a techy person, so please

16 messages 2010/05/03

[#362116] School teacher still at it learning programming language — Hilary Bailey <my77elephants@...>

Now I while glimpsing at the beauty of Ruby, there is the software of

11 messages 2010/05/03

[#362166] Something I expected to work, but didn't! — Kurtis Rainbolt-greene <kurtisrainboltgreene@...>

irb(main):001:0> x = 2

11 messages 2010/05/04

[#362215] for-in vs. map closures — Mike Austin <mike_ekim@...>

I was experimenting with closures and JavaScript's and Ruby's

11 messages 2010/05/05

[#362286] ri on sqlite — Intransition <transfire@...>

What do others think of a creating a new ri tool which uses a SQLite

17 messages 2010/05/06

[#362341] ease of porting (translating) ruby to C (vs. python)? — bwv549 <jtprince@...>

In a very small bioinformatics group I know of, they are deciding

17 messages 2010/05/07

[#362375] Strings iteration — Viorel <viorelvladu@...>

I have some names like aaxxbbyy where xx is '01'..'10' and yy is also

14 messages 2010/05/08

[#362425] Any future for curses applications/toolkits like rbcurse ? — "R. Kumar" <sentinel.2001@...>

Have apps moved over to the web (or GUI) totally ? Will there be any

21 messages 2010/05/10
[#362441] Re: Any future for curses applications/toolkits like rbcurse ? — botp <botpena@...> 2010/05/10

On Mon, May 10, 2010 at 2:13 PM, R. Kumar <sentinel.2001@gmx.com> wrote:

[#362448] Re: Any future for curses applications/toolkits like rbcurse ? — "R. Kumar" <sentinel.2001@...> 2010/05/10

interface and/or the installation itself is terrible.

[#362458] Re: Any future for curses applications/toolkits like rbcurse ? — botp <botpena@...> 2010/05/10

On Mon, May 10, 2010 at 10:28 PM, R. Kumar <sentinel.2001@gmx.com> wrote:

[#362460] Re: Any future for curses applications/toolkits like rbcurse ? — "R. Kumar" <sentinel.2001@...> 2010/05/10

botp wrote:

[#362463] Re: Any future for curses applications/toolkits like rbcurse ? — "R. Kumar" <sentinel.2001@...> 2010/05/10

Strange. I cant push a gem even after yanking.

[#362452] Unit Test of method calling system() - how? — Martin Hansen <mail@...>

How can I unit test the two methods:

16 messages 2010/05/10

[#362498] In Ruby, can the coerce() method know what operator it is th — Jian Lin <blueskybreeze@...>

In Ruby, it seems that a lot of coerce() help can be done by

12 messages 2010/05/11
[#362546] Re: In Ruby, can the coerce() method know what operator it is th — Caleb Clausen <vikkous@...> 2010/05/11

On 5/10/10, Jian Lin <blueskybreeze@gmail.com> wrote:

[#362611] Re: In Ruby, can the coerce() method know what operator it is th — Colin Bartlett <colinb2r@...> 2010/05/12

On Tue, May 11, 2010 at 4:46 PM, Caleb Clausen <vikkous@gmail.com> wrote:

[#362657] Asynchronous HTTP request — Daniel DeLorme <dan-ml@...42.com>

Does anyone know how to do the following, but without threads, purely

28 messages 2010/05/13

[#362718] Range on strings. — Vikrant Chaudhary <nasa42@...>

Hi,

13 messages 2010/05/14

[#362787] class best way for getters ? — unbewusst.sein@... (Une B騅ue)

i have a class "HFSFile" initialized by a parsed string

12 messages 2010/05/15

[#362979] curl library? — Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@...>

Two questions:

14 messages 2010/05/18
[#362980] Re: curl library? — Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@...> 2010/05/18

On 10-05-18 02:35 PM, Xeno Campanoli / Eskimo North and Gmail wrote:

[#362982] Re: curl library? — Luis Parravicini <lparravi@...> 2010/05/18

On Tue, May 18, 2010 at 6:56 PM, Xeno Campanoli / Eskimo North and

[#362984] Re: curl library? — Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@...> 2010/05/18

Well, I got that -dev thing installed with apt-get, and then I tried again and

[#363027] Retrieve instance — Walle Wallen <walle.sthlm@...>

Quick question. Can I somehow retrieve the instance of the class Test in

11 messages 2010/05/19

[#363076] Scrape javascript content — Phil Mcdonnell <phil.a.mcdonnell@...>

I'm trying to scrape a page that hides some data behind a javascript

11 messages 2010/05/20

[#363115] OMG, why are there so many Strings in ObjectSpace! — timr <timrandg@...>

I was playing around looking at ObjectSpace in irb and was astounded

14 messages 2010/05/21

[#363225] Redefine a Class? — Mark T <paradisaeidae@...>

Currently this raises: superclass mismatch for class Soda (TypeError)

12 messages 2010/05/25

[#363240] Funny IO.select behaviour — Dennis Nedry <dennis@...>

I've been debugging my full screen console ruby editor.

13 messages 2010/05/25

[#363348] Ruby as Client Side Language in Web Browser (replacing JS) — "Simone R." <k5mmx@...>

Hi everybody,

17 messages 2010/05/27

[#363412] A better way to write this function? — Jason Lillywhite <jason.lillywhite@...>

Here is my attempt at Newton's second law in Ruby:

14 messages 2010/05/28

[#363417] Interrupting the evaluation of a ruby script — Emmanuel Emmanuel <emmanuel.bacry@...>

This is my problem :

12 messages 2010/05/28
[#363447] Re: Interrupting the evaluation of a ruby script — Branden Tanga <branden.tanga@...> 2010/05/28

Emmanuel Emmanuel wrote:

[#363483] Re: Interrupting the evaluation of a ruby script — Emmanuel Emmanuel <emmanuel.bacry@...> 2010/05/29

[#363426] A complete beginners question — Ant Walliams <anthonywainwright@...>

Hi there,

19 messages 2010/05/28

[#363432] Dynamic SVG with Ruby/Tk — Yotta Meter <spam@...>

The example I'm looking for in regards to ruby/SVG differs from the

14 messages 2010/05/28

[#363467] Date.today problem on linux with Ruby 1.8.6 — Jarmo Pertman <jarmo.p@...>

Hello.

10 messages 2010/05/29

[#363524] enumerator problem in 1.9.1 — Bug Free <amberarrow@...>

The following line:

19 messages 2010/05/31
[#363528] Re: enumerator problem in 1.9.1 — botp <botpena@...> 2010/05/31

On Mon, May 31, 2010 at 9:04 AM, Bug Free <amberarrow@yahoo.com> wrote:

[#363533] Re: enumerator problem in 1.9.1 — Robert Klemme <shortcutter@...> 2010/05/31

2010/5/31 botp <botpena@gmail.com>:

Re: [Rake v 0.8.7] rake gem : rake aborted! No Rakefile found

From: Josh Cheek <josh.cheek@...>
Date: 2010-05-18 18:26:57 UTC
List: ruby-talk #362963
On Tue, May 18, 2010 at 6:05 AM, Draggy Draggy <johncsl82@yahoo.com> wrote:

> Hello People,
>
> When I execute "rake gems:refresh_specs" it give me:
>
> $ rake gems:refresh_specs --trace
> rake aborted!
> No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
> Rakefile.rb)
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2377:in
> `raw_loa
> d_rakefile'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2017:in
> `block i
> n load_rakefile'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standar
> d_exception_handling'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2016:in
> `load_ra
> kefile'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2000:in
> `block i
> n run'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
> `standar
> d_exception_handling'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in
> `run'
> /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in `<top
> (requir
> ed)>'
> /usr/bin/rake:19:in `load'
> /usr/bin/rake:19:in `<main>'
>
> $ ruby -v
> ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-cygwin]
>
> $ gem -v
> 1.3.7
>
> $ rake --version
> rake, version 0.8.7
>
> $ gem list -d
>
> *** LOCAL GEMS ***
>
> actionmailer (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/actionmailer
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Service layer for easy email delivery and testing.
>
> actionpack (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/actionpack
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Web-flow and rendering framework putting the VC in MVC.
>
> activerecord (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/activerecord
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Implements the ActiveRecord pattern for ORM.
>
> activeresource (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/activeresource
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Think Active Record for web resources.
>
> activesupport (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/activesupport
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Support and utility classes used by the Rails framework.
>
> arrayfields (4.7.4)
>    Author: Ara T. Howard
>    Rubyforge: http://rubyforge.org/projects/codeforpeople
>    Homepage: http://github.com/ahoward/arrayfields/tree/master
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    arrayfields
>
> fattr (2.1.0)
>    Author: Ara T. Howard
>    Rubyforge: http://rubyforge.org/projects/codeforpeople
>    Homepage: http://github.com/ahoward/fattr/tree/master
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    fattr
>
> main (4.2.0)
>    Author: Ara T. Howard
>    Rubyforge: http://rubyforge.org/projects/codeforpeople
>    Homepage: http://github.com/ahoward/main/tree/master
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    main
>
> mysql (2.8.1)
>    Author: TOMITA Masahiro
>    Rubyforge: http://rubyforge.org/projects/mysql-win
>    Homepage: http://mysql-win.rubyforge.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    This is the MySQL API module for Ruby
>
> rack (1.1.0)
>    Author: Christian Neukirchen
>    Rubyforge: http://rubyforge.org/projects/rack
>    Homepage: http://rack.rubyforge.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    a modular Ruby webserver interface
>
> rails (2.3.5)
>    Author: David Heinemeier Hansson
>    Rubyforge: http://rubyforge.org/projects/rails
>    Homepage: http://www.rubyonrails.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Web-application framework with template engine, control-flow layer,
>    and ORM.
>
> rake (0.8.7)
>    Author: Jim Weirich
>    Rubyforge: http://rubyforge.org/projects/rake
>    Homepage: http://rake.rubyforge.org
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Ruby based make-like utility.
>
> rake-command-completion (0.0.1)
>    Author: Nicholas Seckar, Saimon Moore, Err the Blog, Lee Marlow,
>    Tyler Rick
>    Rubyforge: http://rubyforge.org/projects/rake-command-completion
>    Homepage: http://rake-completion.rubyforge.org/
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Adds bash command-line completion for the rake command.
>
> rake-compiler (0.7.0)
>    Author: Luis Lavena
>    Rubyforge: http://rubyforge.org/projects/rake-compiler
>    Homepage: http://github.com/luislavena/rake-compiler
>    License: MIT
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Rake-based Ruby Extension (C, Java) task generator.
>
> rake-dir (0.0.1)
>    Author:
>    Installed at: /usr/local/ruby/lib/ruby/gems/1.9.1
>
>    Run rake tasks in different directories
>
> Anyone mind help me fix the rake problem?
>
> Thank you.
> --
> Posted via http://www.ruby-forum.com/.
>
>
Rake works by looking in your dir for a file called rakefile, Rakefile,
rakefile.rb, or Rakefile.rb Your directory doesn't have one, so there is no
file for rake to pull in and find your tasks from.

Based on your installed gems, and rake task, I assume you're working on a
Rails app. If so, check that you are in the root directory of the rails app.
If you do this correctly, you will see Rakefile listed among your "$ls"
results.

Here is an example I made up:
$ pwd
~/myapps/myrailsapp/app/models

$ cd ..
~/myapps/myrailsapp/app

$ cd ..
~/myapps/myrailsapp

$ ls
README        app        db        lib        public        test
vendor
Rakefile    config        doc        log        script        tmp

$ rake -T gems
rake gems                      # List the gems that this rails application
depends on
rake gems:build                # Build any native extensions for unpacked
gems
rake gems:build:force          # Force the build of all gems
rake gems:install              # Installs all required gems.
rake gems:refresh_specs        # Regenerate gem specifications in correct
format.
rake gems:unpack               # Unpacks all required gems into vendor/gems.
rake gems:unpack:dependencies  # Unpacks all required gems and their
dependencies into vendor/gems.
rake rails:freeze:gems         # Lock this application to the current gems
(by unpacking them into vendor/rails)

$ rake gems:refresh_specs
(in /Users/josh/myapps/myrailsapp)

In This Thread