0

I installed gem "cupertino" and after that I changed some piece of code.

Now I want to use new copy of gem. It's located in ~/cupertino/cupertino-0.9.5.gem

I already have tried to change path by this:

gem "cupertino", :path => "~/cupertino/cupertino-0.9.5.gem"

but Bash said that "No such file or directory". What is wrong?

P.S: I'm newbie in MacOS ._.

upated:

gem "cupertino", :path => "/cupertino/cupertino-0.9.5.gem" 

didn't help

New Alexandria
  • 6,951
  • 4
  • 57
  • 77
prozac631
  • 57
  • 1
  • 2
  • 7
  • 1
    This is a super-basic question, but it a known trap for a new developer. I'm not sure is should be closed – New Alexandria Dec 17 '13 at 17:49
  • possible duplicate of [How can I specify a local gem in my Gemfile?](http://stackoverflow.com/questions/4487948/how-can-i-specify-a-local-gem-in-my-gemfile) – New Alexandria Dec 17 '13 at 17:51
  • i saw that, but it didn't help me :( – prozac631 Dec 17 '13 at 17:51
  • 1
    You didn't use the full path to the local gemfile. `/cupertino` isn't where it is, it's in your `home_dir` under `cupertino` (something like `/Users/your_username/cupertino` – Donovan Dec 17 '13 at 17:56
  • ok, i tried this: gem "cupertino", :path => "/Users/admin/cupertino/cupertino-0.9.5.gem" ERROR: While executing gem ... (Gem::CommandLineError) Unknown command cupertino, – prozac631 Dec 17 '13 at 18:01
  • 1
    That's an entirely different problem. You probably need to install that gem locally first `gem install /Users/admin/cupertino/cupertino-0.9.5.gem` – Donovan Dec 17 '13 at 18:08

1 Answers1

1

gem doesn't understand ~, you'll need to use the full path to the gem.

Donovan
  • 15,917
  • 4
  • 22
  • 34