rubygems

Use multiple versions of rubygems with rvm?

一个人想着一个人 提交于 2019-12-09 04:13:25
问题 I have two projects on my computer: - An old Rails 2.3 app that needs rubygems 1.6 and won't run under rubygems 1.8; - A newer app that needs rubygems 1.8 and won't run under rubygems 1.6. Each project has its own rvm gemset, but I can't figure out how to give them different versions of rubygems itself: gem update --system [version] results in gem --version giving the same answer in both; rvm gemset [version] has the same result. How can I run rubygems 1.6.2 in one project and 1.8.11 in the

How to convert a large gem to standalone rails app

旧城冷巷雨未停 提交于 2019-12-09 03:49:27
问题 I'm building a social network and have been using the gem community_engine but have been having trouble implementing the large amount of customization that I need for my app. I figure this will make it easier for me to override and add methods, as well as help me to better understand and learn from the code since I will be able to actually see all of it in action. So far in my attempt I downloaded the source code, added the default bin directory and config files that were missing, as well ass

can't setup ruby environment - installing fii gem error

女生的网名这么多〃 提交于 2019-12-09 01:45:49
问题 I'm trying to setup environtment for ruby project. But when I run 'bundle', I have error during installing 'fii' gem: Installing ffi (1.8.1) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/bmalets/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb checking for ffi.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need

paperclip 2.7.0 on ruby 1.8.7

 ̄綄美尐妖づ 提交于 2019-12-08 20:54:37
I have a very old rails app (rails 2.3.10 and ruby 1.8.7) and we want to move it on another server. I can reinstall all gems with same version except for paperclip 2.7. when i tried to install it i receive an error on activesupport, that it seems it require ruby 1.9.3. According with paperclip doc this shouldn't happens, some one of you can help me? i tried with all gems except paperclip, with no gems, and installing an old version of activesupport. Below you can find my tests. app@new-server:/home/app/current# sudo gem list *** LOCAL GEMS *** app@new-server:/home/app/current# sudo gem install

Rubygems 2.0.14 is not threadsafe bunder install message when using - RUBYGEMS VERSION: 2.4.5.1

戏子无情 提交于 2019-12-08 20:06:47
问题 When running the bundle install I get the following message: Rubygems 2.0.14 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation. Which is strange because in my RubyGems Environment it says my RubyGems Version is: 2.4.5.1 (see below) ~/w/Rafftopia ❯❯❯ gem env RubyGems Environment: - RUBYGEMS VERSION: 2.4.5.1 - RUBY VERSION: 2.2.5 (2016-04-26 patchlevel 319) [x86_64-darwin14] - INSTALLATION DIRECTORY: /Users

Ruby on Vista

泄露秘密 提交于 2019-12-08 19:55:19
问题 I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions on this site: http://rubyonrails.org/down so I downloaded the installer, then Gems, then I downloaded rails with Gems. now I can't use the Gem or Ruby commands in the command line... so I assume there's something wrong with the environment variables, but I hav eno idea how to set them up in Vista or what to put. Can anyone help me with this? 回答1: To set up the environment variables, do this Fire up the start menu

ActiveAdmin Filter on postgres Array field

时间秒杀一切 提交于 2019-12-08 19:36:04
问题 I added the following filter in ActiveAdmin. filter :roles, as: :select, collection Model::ROLES, multiple: true but when i choose the filter value to search the roles. it gives me following error PG::InvalidTextRepresentation: ERROR: malformed array literal: "teacher"LINE 1: ...ted" = $1 AND roles" IN('teacher DETAIL: Array value must start with "{" or dimension information. ^ Any idea ? How we can search/Filter ARRAY field using AA filters? I'm using Rails 4.2.4, ruby 2.2.2p95 回答1: I came

$GEM_HOME is ignored by `gem install`

隐身守侯 提交于 2019-12-08 19:07:30
I have $GEM_HOME set, but gem install is still installing to the default ~/.gem directory. This rubygems issue says to remove the --user-install option in .gemrc , but I don't have a .gemrc file. How can I get gem install to honour the value of $GEM_HOME ? Here I firstly remove ~/.gem , and then show that it is automatically created: % rm -rf ~/.gem % find ~ -name '*gemrc*' % # No output, so .gemrc doesn't exist % echo $GEM_HOME /home/ravi/.local/share/gem % gem install neovim Building native extensions. This could take a while... Successfully installed msgpack-1.2.7 Successfully installed

Ruby on Rails - rails server exits immediately after starting (SystemStackError)

半世苍凉 提交于 2019-12-08 18:23:27
I have set up Ruby on Rails using Windows 10 bash in C drive. I've used rbenv to set it up and updated my ruby version to 2.4.0. Then, I updated the rails version to 4.2.6 and ran bundle update to update my gem, and I ran rails server, but it's not starting the server. Instead, it exits the server immediately and it shows me the following error: /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/thread_safe-0.3.5/lib/thread_safe/cache.rb:155: warning: constant ::Fixnum is deprecated /home/yschang/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/thread_safe-0.3.5/lib/thread_safe/cache

Fenced codeblocks in Jekyll

老子叫甜甜 提交于 2019-12-08 17:56:26
I have just upgraded my local Jekyll installation to Jekyll 3.0.2. I was looking forward to use fenced (backticks) code blocks when posting source code. This however doesn't work, and I still have to use Liquid tags to specify codeblocks My build settings in _config.yml: baseurl: / destination: _site permalink: pretty markdown: kramdown kramdown: input: GFM syntax_highlighter: rouge List of Ruby gems installed activesupport (4.2.5.1) addressable (2.3.8) bigdecimal (1.2.6) bundler (1.11.2) coffee-script (2.4.1) coffee-script-source (1.10.0) colorator (0.1) ethon (0.8.1) execjs (2.6.0) faraday