gem

gem push error - (Gem::Package::FormatError) - No such file or directory @ rb_sysopen

╄→尐↘猪︶ㄣ 提交于 2019-12-18 15:53:06
问题 I tried to push a ruby gem for the first time while on a terrible internet connection. When I first tried to push, I was able to sign in and then it hung there for probably about 10 minutes with no sign of progress so I decided to just kill it and hit ctrl+c , which may have been a poor decision. From the session: $ gem push test_config-0.1.0.gem Enter your RubyGems.org credentials. Don't have an account yet? Create one at https://rubygems.org/sign_up Email: myemail@here.com Password: Signed

After installing ruby gems, running the new gem returns “Could not find” errors

允我心安 提交于 2019-12-18 13:07:20
问题 Fresh Ubuntu 10.04 install: I'm having some trouble getting my gem install process to play nicely. Any time I install a gem, it goes through a nice, straightforward process with no problems: $ gem install rails Successfully installed rails-3.2.2 1 gem installed And then to verify the version, perhaps a simple "rails -v"? Nope: $ rails -v /home/pragone/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst

How to remove “bundle install” command during the project creation in Rails 3.1?

帅比萌擦擦* 提交于 2019-12-18 12:12:35
问题 I am creating a new project: rails new ggg --database=mysql and get following output: create create README create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/images/rails.png create app/assets/javascripts/application.js create app/assets/stylesheets/application.css create app/controllers/application_controller.rb create app/helpers/application_helper.rb create app/mailers create app/models create app/views/layouts/application.html.erb create app

How to install Nokogiri Gem for Windows

℡╲_俬逩灬. 提交于 2019-12-18 11:44:27
问题 I'm having this problem with nokogiri's gem: Could not open library 'C:\Ruby187\lib\ruby\gems\1.8\gems\nokogiri-1.4.6-x86-mingw32\ext\nokogiri\libxml2.dll' : unknown I read that I had to try the 1.5.0.beta3 version. However, when I run C:\Users\t3en4>gem install nokogiri --pre Fetching: nokogiri-1.5.0.beta.4.gem (100%) ERROR: Error installing nokogiri: The 'nokogiri' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http:/

Strategies for gem tests to ensure the gem works with Rails 3.x and 4.0?

别来无恙 提交于 2019-12-18 11:32:46
问题 I've seen a few examples of dummy Rails apps (for testing, so they live under test or spec dirs, typically) for use with the Appraisals gem that supposedly work with both Rails 3.x and Rails 4, but they seem hackish and not fully functional. It is somewhat expected, as it is a stripped down Frankenstein monster that is trying to be compatible with various versions of Rails 3 as well as Rails 4. I've referred to projects that attempt to do this sort of testing (as of late March 2013) like less

Where does bundler store gems?

☆樱花仙子☆ 提交于 2019-12-18 10:47:14
问题 I know that when using gem install , the gem will be stored under /home/username/.rvm/gems/, under which gemset the gem was installed. But if I use Bundler and specify the gem in the Gemfile, when I run bundle install, where will those gems be stored? And what if I already installed the gem using gem install , if I run bundle install, will it use the previous gem installed using gem install ? 回答1: It depends. In the usual development setup they are installed where they would be when you

How to see the dependency tree just from Gemfile?

寵の児 提交于 2019-12-18 10:38:53
问题 I am getting the following error when doing bundle install Make sure that `gem install couchbase -v '1.3.3'` succeeds before bundling. Now, i have not included this gem in the Gemfile , so it's coming from some dependency. How can i figure out which gem is dependent on this couchbase gem? Since bundle install is failing and I don't have Gemfile.lock to figure out this dependency. 回答1: gem dependency (with no args) should show you all gems from current Gemfile with their dependencies. Edit:

Writing a multi-tenant Rails 3 app for deployment on Heroku

为君一笑 提交于 2019-12-18 10:29:16
问题 I'm building a Rails 3 app for deployment on Heroku, and I'm wondering if there are any recommendations on how to handle multi-tenancy in my models. Half a year ago, there was a related question (#3776593) posted on here, but it didn't get many answers. I've also watched Guy Naor's presentation on writing multi-tenant applications with Rails, but it seems like 2 of the 3 proposed solutions wouldn't work on Heroku. I'd link to these, but new Stackoverflow users are limited to 2 hyperlinks. I

Error installing gem capybara-webkit

╄→гoц情女王★ 提交于 2019-12-18 10:14:41
问题 I am new to ruby, but while trying to install capybara to run test on my system I get the following error. Im running OSX my_app$ gem install capybara-webkit Building native extensions. This could take a while... ERROR: Error installing capybara-webkit: ERROR: Failed to build gem native extension. /Users/joe/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb Gem files will remain installed in /Users/joe/.rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.7.2 for inspection. Results logged to /Users

Ruby 'pg' gem linking to wrong copy of libpq.5.dylib (on OSX)

丶灬走出姿态 提交于 2019-12-18 09:16:09
问题 The EnterpriseDB installer for PostgreSQL 9.3 places its files in /Library/PostgreSQL/9.3/* on Mac OSX. However, the Ruby gem 'pg' loads a legacy version of the 'C' dynamic library libpq.5.dylib from /usr/lib instead of using the correct version from /Library/PostgreSQL/9.3/lib . This occurs despite my having installed the gem with gem install pg -- --with-pg-config=/Library/PostgreSQL/9.3/bin/pg_config I determined which version of libpq.5.dylib is loaded by setting the DYLD_PRINT_LIBRARIES