rvm

Rspec bundle is broken in TextMate and rvm

[亡魂溺海] 提交于 2019-12-04 04:27:23
I've had a difficult time since I started using rvm. I've done all the rvm/textmate set up and have the latest bundles but I still can't run Rspec test from textmate . I have the latest bundle from github.com/rspec/rspec-tmbundle.git and it's installed in ~/Library/Application\ Support/TextMate/Bundles/ RSpec.tmbundle RVM default is using the system ruby 1.8.6 Rspec gem versions gem list --local | grep spec blue_light_special (0.2.0) rspec (2.2.0) rspec-core (2.2.1, 2.0.1) rspec-expectations (2.2.0, 2.0.1) rspec-mocks (2.2.0, 2.0.1) rspec-rails (2.0.1, 1.3.2) TextMate TM_RUBY=/Users/jspooner/

Deploying with capistrano does ignore group setting

好久不见. 提交于 2019-12-04 04:25:33
In my deploy-file I set the group to www-data: set :user, "root" set :group, "www-data" so when using cap:setup I expected capistrano to chown the folders with root:www-data But all folders and files are root:root. Any ideas where this problem could come from? Information: I'm Using system-wide-rvm. as for my understanding you should do it manually, what setup does is to use the user to login, not to set the rights to directory. I have found no group setting for capistrano, maybe you were using some extensions for it? What you could do to change it could be: after "deploy:setup", :setup_group

RVM: “sha256sum nor shasum found”

╄→гoц情女王★ 提交于 2019-12-04 04:18:26
I've just installed RVM on a new machine and when switching into a directory containing a .rvmrc file (which I've accepted) I'm getting: ERROR: Neither sha256sum nor shasum found in the PATH I'm on OS X 10.5.8. — Probably missing something somewhere. Any ideas what's going on and how to fix this? Means you're missing the binary in /usr/bin or your path is somehow missing /usr/bin. Open a new shell and run echo $PATH | grep '/usr/bin' and see if its returned. Also, ls -alh /usr/bin/shasum and make sure the binary is there and executable. There is no sha256sum on OS X, just shasum. mike My

Wrong date with ruby Date.today and DateTime.now

試著忘記壹切 提交于 2019-12-04 04:04:52
I've installed ruby-1.8.6-p383 with RVM. System ruby is 1.9.1_p378-1 I'm getting the wrong date from Date.today and DateTime.now when using ruby 1.8.. Whereas Time.now is correct: irb(main):002:0> DateTime.now.to_s => "2126--1-10618T11:23:43+00:00" irb(main):004:0> Date.today.to_s => "2126--1-10618" irb(main):005:0> Time.now => Thu Jan 28 11:55:27 +0000 2010 All is well if I switch to ruby 1.9: irb(main):003:0> DateTime.now.to_s => "2010-01-28T11:58:51+00:00" irb(main):004:0> Date.today.to_s => "2010-01-28" irb(main):005:0> Time.now => 2010-01-28 11:59:05 +0000 Any advice on how to get

Rvm and gems, bundle show and gem list

╄→尐↘猪︶ㄣ 提交于 2019-12-04 03:38:40
问题 Im using RVM with ruby on rails, when I do bundle install it shows a whole bunch more gems than when I do gem list ? Something to do with rvm and which path its using? bundle install mds@db1:~/staging$ bundle Using rake (0.9.6) Using Ascii85 (1.0.1) Using Platform (0.4.0) Using open4 (1.3.0) Using POpen4 (0.1.4) Using activesupport (2.3.17) Using rack (1.1.6) Using actionpack (2.3.17) Using actionmailer (2.3.17) Using activerecord (2.3.17) Using activeresource (2.3.17) Using acts_as_audited

RVM Sass Compass issue with localhost sites

老子叫甜甜 提交于 2019-12-04 02:55:14
I have spent over 5 hours trying to solve this and feel that since I haven't done it before I should ask some help now... I have a site I inherited with Sass/Compass put together. I have it set up on my localhost and it works fine for that site. I have a second localhost site I want to use it on. So I went to the theme folder in terminal - (/sites/all/theme/newtheme/) I tried to start watching a sass folder with compass and keep getting these errors... /Library/Ruby/Site/1.8/rubygems/dependency.rb:298:in `to_specs': Could not find 'compass' (>= 0) among 12 total gem(s) (Gem::LoadError) from

Fresh install of Rails and getting OpenSSL errors: “already initialized constant OpenSSL”

谁说胖子不能爱 提交于 2019-12-04 00:39:42
问题 I am stuck trying to get going with RoR. I did the Ruby Installfest, but am running into an issue with what I think is openssl.bundle. I am using RVM, and am running Rails 5.0.1 and Ruby 2.4.0 I tried a full removal/fresh start by using rvm implode and went through and reinstalled everything following RailsApps Guide but am still seeing the identical error. I am running the latest version of macOS Sierra. This is the output I get when running $Rake -T in my_app. richsmith@Richs-MacBook-Pro:~

Error while installing ruby2 with rvm

老子叫甜甜 提交于 2019-12-03 22:28:27
I was trying to install it this way: brew install autoconf brew install automake brew install libyaml rvm install ruby-head I was trying to install ruby2 with rvm but I got this error: ruby-head - #compiling Error running 'make ', please read /Users/boti/.rvm/log/ruby-head/make.log There has been an error while running make. Halting the installation. Ruby 'ruby-head' was build using clang - but it's not (fully) supported, expect errors. This is my compiling log: compiling ./missing/setproctitle.c compiling dmyext.c linking miniruby /Users/boti/.rvm/src/ruby-head/lib/fileutils.rb:111: [BUG]

RVM isn't recognized until I run “source ~/.profile” in terminal

依然范特西╮ 提交于 2019-12-03 21:38:02
sergio@sergio-VirtualBox:~/code$ rails -v The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails sergio@sergio-VirtualBox:~/code$ source ~/.profile sergio@sergio-VirtualBox:~/code$ rails -v Rails 3.2.1 Any ideas why the command doesn't work until I run "source ~/.profile"? I would like to not have to do this every time I run my machine or open a new terminal window. RVM provides quite good description https://rvm.io/support/faq/#shell_login you should use .bash_profile - unless you have good reasons against it - but I do not know many. Rvm puts

How to tell Bundler to use gems installed systemwide (production deployment)?

◇◆丶佛笑我妖孽 提交于 2019-12-03 21:27:39
When deploying a Rails app with Capistrano, I want Bundler to install gems to shared/bundles dir ONLY IF it can't find gems installed systemwide already. How do I do it? For example, if I have a pg gem v 0.14 already installed on the system, I want Bundler to use it and not build and install a new one into shared/bundles dir of my application. I'm using Ubuntu Server and RVM is installed for multiple users. Bundler allows using shared (rubygems) and vendored (bundler) gems, by default bundler/capistrano is configured with: set :bundle_flags, "--deployment --quiet" which forces vendored gems