As I am rather new to Ruby, and rather new to Mac OSX at the same time, I currently have a problem browsing through all the stuff on the user board.
I have searched for hints to resolve my situation, but I am afraid I cannot handle such a load of possibilities just now, since I don't understand most of it yet :-(
I am pretty involved in Resharper, C# and Visual Studio on Windows, but this is all new to me.
Just installed RubyMine 3.1 on my Mac OSX 10.6.6 (all latest updates installed).
It seems to have a ruby installed, since RubyMine detects it. It however is not the latest version (not available to the mac ?)
I created a new application, to access my gmail account.
Installed a gem purp-ruby-gmail (adding a new rubygem repository rubygems.org) through the user interface (several times, because it sometimes did not do much, but I may well not be looking in the right places of course)
I attached to the gem (what does this mean exactly) and installed the gem (probably this means it can be found on my disk somewhere - Rubymine shows a .gem directory in my user account path that points to this gem).
So RubyMine now shows my project, with one file gmail_access.rb. In this file I require 'gmail', which makes RubyMine not complain. The code looks right to me and RubyMine.
# To change this template use File | Settings | File Templates.
@gmail = Gmail.new(user, password) <-- removed these strings to be able to show source code
a = GmailAccess.new
That's my code for now.
When I run it, it throws me an error however.
/usr/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/Me/RubymineProjects/gmail/gmail_access.rb
/Users/Me/RubymineProjects/gmail/gmail_access.rb:1:in `require': no such file to load -- gmail (LoadError)
from -e:1:in `load'
Process finished with exit code 1
My impression is that it cannot find the gem. Should I add a path to the gem ? Or should I add a path to the gem library ? Or should it be listed in the OS in an environment variable ?
Or does the gem not get loaded and it should and is this a RubyMine problem ? (I suspect not ;-)
Too many possibilities as I cannot make a distinction between rights and wrongs just now :-(
Question 2: I have selected the MacOSX / RubyMine keyboard settings. This gives me a Shift F10 to run (is it the file or project, I have no idea yet). But Mac OSX does react on that key and toggles muting the machine. What should I do to get the best RubyMine feeling, getting out of the way of Mac OSX ? I am used to the native Resharper key bindings.
What I also want to do, is run the same thing on my portable, which has Windows installed.
I am thinking to throw the project on a DropBox folder, and work on it in two different locations, using RubyMine.
What should I do with the "project settings" ? Where should I keep the gems ? Should I duplicate them ? I feel like both machines should have their own repositories.
But the gems I use in the project should have the exact same version, and therefore should also be put on DropBox. Am I right in thinking this way ?
Someone please guide me in the right direction.