gem

How to silence gem errors after switching to bundler

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 03:25:31
问题 I recently switched to using bundler and now anytime I run a script under the scripts/ folder in my rails app I get the following warning: config.gem: Unpacked gem environment.rb in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. config.gem: Unpacked gem environment.rb in vendor/gems not in a versioned directory. Giving up. config.gem: Unpacked gem ruby in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. config.gem: Unpacked

Passenger misses development gem in production environment

老子叫甜甜 提交于 2019-12-24 03:00:12
问题 I've got a strange behaviour on my production server: I deploy my Rails 3 application via Capistrano to the production server. The Capistrano script restarts passenger at the end of deployment. When I open the application I see a passenger error message: Could not find autotest-fsevent-0.2.4 in any of the sources (Bundler::GemNotFound) Of course autotest-fsevent is not installed in my production environment (and even can't be installed on Ubuntu...) The environment is set in apache's

updating the ruby gem 1.8.5

我的未来我决定 提交于 2019-12-24 02:33:08
问题 hiii i am trying to update my gem file. Current version of gem is 1.8.5 When i am trying to update it using command " gem install rubygems-update -v 1.8.5 " it is giving following error ** ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SocketError: getaddrinfo: Name or service not known (http://rubygems.org/gems/rubygems-update-1.8.5.gem) ** I am working on ubuntu 10.04 also i tried to update using command " gem update --system " it is giving the error as below Updating

Bundler: installing a specific .gem file

一曲冷凌霜 提交于 2019-12-24 01:47:28
问题 Is there a way to tell Bundler to install a particular .gem file I have lying around? I have a compiled version of ParseTree that I must use (damn you, Windows!), but didn't want to expand the gem file in order to add a :path => '...' attribute to the 'gem' requirement. 回答1: You could also package your gems with bundle package , which puts all of your gems in the vendor/cache directory of your project. If needed, overwrite ParseTree with your precompiled gem in in that directory. Then, when

RubyMine 3.2 failing to find libmysqlclient.18.dylib on MacOS Lion

别等时光非礼了梦想. 提交于 2019-12-24 01:47:08
问题 Just upgraded to RC1 of RM 3.2 on MacOS Lion and couldn't run the application anymore. Running with rvm. On startup the mysql2 gem reported it couldn't find libmysqlclient.18.dylib on a dlopen. Solved it. Posting the solution here so it will help somebody save some time. Using Apple's Property List Editor create an entry in ~/.MacOS/environment.plist call LD_LIBRARY_PATH and set the value to /usr/local/mysql/lib or whereever your MySQL libraries live. Logout and log back in and RubyMine and

curb gem installation: bundle install fails, but normal gem install works [closed]

ε祈祈猫儿з 提交于 2019-12-24 01:18:08
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 8 years ago . solved : the openvz container did not have enough memory assigned to it. I could need some help: I want to install the curb gem through bundler. My

error in `install bundler` while installing ruby gems on windows machine

喜夏-厌秋 提交于 2019-12-24 00:58:17
问题 I am trying to intsall middleman - a static site generator, which uses ruby gems. It is able to build all native extensions but not wdm. I am getting the below error message when I run install bundler command in my command prompt. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. C:/Ruby200/bin/ruby.exe -r ./siteconf20140814-4200-t0fvuf.rb extconf.rb checking for main() in -lkernel32... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of

env: ruby_noexec_wrapper: No such file or directory error

China☆狼群 提交于 2019-12-24 00:56:23
问题 I am getting this error pretty frequently after running this command once.... bundle clean --force in my rails project.. How can i fix this? 回答1: this same thing happened to me, i fixed it according to this comment: https://github.com/sstephenson/rbenv/issues/337#issuecomment-13235367 by running these commands gem install rubygems-bundler rubygems-bundler-uninstaller gem uninstall rubygems-bundler 回答2: Looks like you were using noexec, which is dead: https://github.com/joshbuddy/noexec Check

Last week most viewed Items using Impressionist gem

怎甘沉沦 提交于 2019-12-23 23:13:47
问题 I have Post model and It's impressionable using Impressionist gem I want to show top 10 most visited Post in last month. Here is the way I came up with: Post.all.sort_by{|post| post.view_count_last_month}.first 10 and view_count_last_month method is in Post model: def view_count_last_week impressionist_count(:start_date => 1.week.ago) end But I think it's not good for performance because It loads all the Posts and then sort them by view_count_last_month method. What is the best way to do that

Using ActiveAdmin's DSL with shared module includes

谁说我不能喝 提交于 2019-12-23 22:37:29
问题 I'm trying to make some common/shared actions for my models registered with ActiveAdmin. I have the following code: # app/admin/concerns/activatable.rb module Activatable def self.included(dsl) dsl.member_action :deactivate, method: :put do dsl.resource.deactivate! redirect_to dsl.resource_path, notice: 'Deactivated.' end end end # app/admin/course.rb ActiveAdmin.register Course do include Activatable # ... end When I run rails server , the server immediately quits having thrown the following