5 Replies - 1863 Views - Last Post: 21 January 2015 - 12:48 AM Rate Topic: -----

#1 Ram&Saw   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 19-November 14

Something wrong with "rails g"

Posted 13 January 2015 - 12:17 PM

Hi, guys! I'm very new in Ruby world. I need to install and configure rspec. I installed it. I did "rails g". I do like in this video(4:20, http://www.youtube.c...v=cMcEgOPza8A). But I have other output with warnings. But I don't understand them.
I went further and had the same output in "rails g rspec:install" command and some others.
What's wrong?
Please, help me!
Thanks!


# Rails Environment Configuration.
DL is deprecated, please use Fiddle

---
git:
  user.name:  Michael Pravilov
  user.email: [email protected]
  version:    git version 1.9.4.msysgit.2

ruby:
  bin:        C:/RailsInstaller/Ruby2.0.0/bin/ruby.exe
  version:    ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]

rails:
  bin:        C:/RailsInstaller/Ruby2.0.0/bin/rails.bat
  version:    Rails 4.1.8

ssh:
  public_key_location: C:\Users\Michael/.ssh/id_rsa.pub
  public_key_contents: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3EryFqKo2wRdcKqMrb
yPjXQWTB5/yQ3n6kt4MG4wIiyTHQtfs55jmZ1BHoy6+g4RL4X7DbuQcya8gBGJmFiHusnu4x/bBYVGaK
zuQhKAGGrTPWTbY8isOHVUFNDZitUekSc4AgCSNinvvj5SLPjrlltdKtjrB/faZecbmsOD9Hx77+ZDeC
exUaf6Epkrh8cSpmK6XbUeyC9J1SCbpOBjSV3CjHO9hNB9phs2KxdRyPl3qBumBqrV2HZ9eS+Lm6v1Zs
U4TJvJrVppyKmXtGOqaQtIpXBhGNwUy8v51pPExb8ZIKvscC60qERVNO5BtErM6/DzJwwO0DzTHNzoQB
GQH Michael Pravilov <[email protected]>





C:\Sites>cd tasks

C:\Sites\tasks>gem install rspec
Successfully installed rspec-3.1.0
Parsing documentation for rspec-3.1.0
Installing ri documentation for rspec-3.1.0
Done installing documentation for rspec after 1 seconds
1 gem installed

C:\Sites\tasks>rails g
DL is deprecated, please use Fiddle
ansi: 'gem install win32console' to use color on Windows
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turn-0.9.6/lib/turn/minit
est.rb:9:in `require'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turn-0.9.6/lib/turn/minit
est.rb:9:in `<top (required)>'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turn-0.9.6/lib/turn.rb:13
:in `require'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turn-0.9.6/lib/turn.rb:13
:in `<top (required)>'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler
/runtime.rb:76:in `require'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler
/runtime.rb:76:in `block (2 levels) in require'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler
/runtime.rb:72:in `each'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler
/runtime.rb:72:in `block in require'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler
/runtime.rb:61:in `each'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler
/runtime.rb:61:in `require'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/lib/bundler
.rb:133:in `require'
  C:/Sites/tasks/config/application.rb:14:in `<top (required)>'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/
commands/commands_tasks.rb:146:in `require'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/
commands/commands_tasks.rb:146:in `require_application_and_environment!'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/
commands/commands_tasks.rb:133:in `generate_or_destroy'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/
commands/commands_tasks.rb:51:in `generate'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/
commands/commands_tasks.rb:40:in `run_command!'
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8/lib/rails/
commands.rb:17:in `<top (required)>'
  bin/rails:4:in `require'
  bin/rails:4:in `<main>'
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turn-0.9.6/lib/turn/minites
t.rb:22:in `<top (required)>': MiniTest v5.5.1 is out of date. (RuntimeError)
`gem install minitest` and add `gem 'minitest' to you test helper.
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turn-0.9.6/lib
/turn.rb:13:in `require'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/turn-0.9.6/lib
/turn.rb:13:in `<top (required)>'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:76:in `require'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:76:in `block (2 levels) in require'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:72:in `each'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:72:in `block in require'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:61:in `each'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:61:in `require'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler.rb:133:in `require'
        from C:/Sites/tasks/config/application.rb:14:in `<top (required)>'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:146:in `require'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:146:in `require_application_and_environmen
t!'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:51:in `generate'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
        from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands.rb:17:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'



Is This A Good Question/Topic? 0
  • +

Replies To: Something wrong with "rails g"

#2 Lemur   User is offline

  • Pragmatism over Dogma
  • member icon


Reputation: 1453
  • View blog
  • Posts: 3,633
  • Joined: 28-November 09

Re: Something wrong with "rails g"

Posted 15 January 2015 - 09:44 PM

Read through your logs, they give you the answer around line 85. Fair warning though, Windows is a horrible idea to do Rails in.
Was This Post Helpful? 1
  • +
  • -

#3 Ram&Saw   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 19-November 14

Re: Something wrong with "rails g"

Posted 16 January 2015 - 11:34 AM

View PostLemur, on 15 January 2015 - 09:44 PM, said:

Read through your logs, they give you the answer around line 85. Fair warning though, Windows is a horrible idea to do Rails in.

Yeah, I understood that it's something wrong is here but I can't understand what to do with this minitest.

So, I'll be at great pains and there is a point to install a Linux system only for Rails development? Is it so bad with Windows?
Was This Post Helpful? 0
  • +
  • -

#4 Lemur   User is offline

  • Pragmatism over Dogma
  • member icon


Reputation: 1453
  • View blog
  • Posts: 3,633
  • Joined: 28-November 09

Re: Something wrong with "rails g"

Posted 20 January 2015 - 10:33 PM

View PostRam&Saw, on 16 January 2015 - 12:34 PM, said:

So, I'll be at great pains and there is a point to install a Linux system only for Rails development? Is it so bad with Windows?


Yes. A vast majority of Rails devs are Mac users (myself included.) Mac is descendant from FreeBSD, which is descendant from Unix. Linux is another good choice. Mint tends to be the friendliest distro to start with. Ubuntu is up there as well, but I'm not much a fan of it anymore.
Was This Post Helpful? 0
  • +
  • -

#5 Atli   User is offline

  • Enhance Your Calm
  • member icon

Reputation: 4241
  • View blog
  • Posts: 7,216
  • Joined: 08-June 10

Re: Something wrong with "rails g"

Posted 20 January 2015 - 11:22 PM

You should consider using a virtual machine as a Linux dev server. Lets you avoid the limitations of Windows, without having to set up an actual Linux PC to work on.

I've had good results using VirtualBox and Ubuntu Server in similar situations.
(Not that the choice of distros should really matter much.)
Was This Post Helpful? 0
  • +
  • -

#6 Lemur   User is offline

  • Pragmatism over Dogma
  • member icon


Reputation: 1453
  • View blog
  • Posts: 3,633
  • Joined: 28-November 09

Re: Something wrong with "rails g"

Posted 21 January 2015 - 12:48 AM

View PostAtli, on 21 January 2015 - 12:22 AM, said:

You should consider using a virtual machine as a Linux dev server. Lets you avoid the limitations of Windows, without having to set up an actual Linux PC to work on.

I've had good results using VirtualBox and Ubuntu Server in similar situations.
(Not that the choice of distros should really matter much.)


I'd just be very wary of Fedora, as it's Red Hat's beta playground from hell.

Mint and Ubuntu (all variants) are good intro distros

Something like Arch, Chakra, or CentOS would count for intermediates. FreeBSD would also fall around this camp

Slackware and Gentoo are considered far more advanced (build your own Linux basically.) OpenBSD would also fall in this camp, just due to how paranoid the thing is.

Note these are vague guidelines.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1