rubygems

gem: command not found

只愿长相守 提交于 2020-01-03 04:49:05
问题 I have bash file which build gem files and launch my program: cd /src/stackify-api rm *.gem gem build stackify.gemspec gem install stackify-0.1.0.gem cd /src/stackify-classificator rm *.gem gem build stackify-classificator.gemspec gem install stackify-classificator-0.1.1.gem cd /src/bin ruby console-task.rb I use it in the docker container. It works fine if I launch the container interactively and run this bash-file manually: ~ » docker run -it -v /mnt/lacie/online/btsync/development:/src

Why am I getting an error when requiring this gem in environment.rb?

寵の児 提交于 2020-01-03 03:35:08
问题 I followed the steps here and installed the composite_primary_keys gem. When I try to require the gem in environment.rb at the very bottom of the file (after 'end') via require 'composite_primary_keys' I get this when starting the server "69125" => Booting Mongrel => Rails 2.3.4 application starting on http://127.0.0.1:3002 /Library/Ruby/Site/1.8/rubygems.rb:270:in `activate': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The

No rails commands will run

自闭症网瘾萝莉.ら 提交于 2020-01-03 01:53:05
问题 I am trying to learn rails and haven't used it in the last few weeks but today when I try to run any rails commands such as - 'rails -v' - 'script/server' I get not have reinstalled ruby but the didn't don't have a clue what could be wrong Am on a brand new Macbook Pro Jeremy-Geross-MacBook-Pro:~ Jeremy$ rails -v /Library/Ruby/Site/1.8/rubygems/config_file.rb:172:in `merge': can't convert String into Hash (TypeError) from /Library/Ruby/Site/1.8/rubygems/config_file.rb:172:in `initialize' from

using devise WITHOUT the gem, can I simply copy the files?

杀马特。学长 韩版系。学妹 提交于 2020-01-02 18:17:22
问题 Could I simply copy the devise app and lib (and gem?) folders into my respective project folders and have them work just as if I was using the gem? I'd like to do this so that I can really see all the code, possibly do some customization, and also avoid some "cannot find" errors in my IDE. Is this a bad idea? If this is something that would work would I simply need to remove the gem and copy over the necessary files or would I need to "undo" things that the gem has done. Could this create

actionview-4.2.4 - uninitialized constant ActionView::Helpers::ActiveModelHelper (NameError)

不打扰是莪最后的温柔 提交于 2020-01-02 12:23:10
问题 C:\Users\Clarion Smith\Documents\Sites\simple_cms>rails server C:/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/helpers.rb:40:in `<module:Helpers>': uninitialized constant ActionView::Helpers::ActiveModelHelper (NameError) from C:/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/helpers.rb:4:in `<module:ActionView>' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/helpers.rb:3:in `<top (required)>' from C:/Ruby22/lib/ruby/gems/2.2.0

Missing Dependencies in Compass/SASS

雨燕双飞 提交于 2020-01-02 10:01:28
问题 So I haven't done too much craziness with add-ons via Compass for what I've been using it for. My primary use case was to leverage the color manipulation libraries and some of the conditional/looping structures to generate some different themes. Yesterday I did run an install for an ellipsis library and afterwards was given the following message when attempting to 'watch' my project... [Listen warning]: Missing dependency 'wdm' (version '~> 0.1')! Please run the following to satisfy the

Missing Dependencies in Compass/SASS

人走茶凉 提交于 2020-01-02 10:01:12
问题 So I haven't done too much craziness with add-ons via Compass for what I've been using it for. My primary use case was to leverage the color manipulation libraries and some of the conditional/looping structures to generate some different themes. Yesterday I did run an install for an ellipsis library and afterwards was given the following message when attempting to 'watch' my project... [Listen warning]: Missing dependency 'wdm' (version '~> 0.1')! Please run the following to satisfy the

Where to put ruby .gem files so that Shoes.setup can find them?

六眼飞鱼酱① 提交于 2020-01-02 05:58:08
问题 A lot of questions have been asked about gem support in Shoes, but none have answered where to put them. I've got Shoes Raisins 1134 on Windows XP, and I've downloaded dbi-0.4.1.gem and am trying to get the following to work: Shoes.setup do gem 'dbi' end require 'dbi' Shoes.app ... end When I run this, I get the dialog that says Installing dbi -- Looking for dbi which sits for hours not finding the gem file. I've tried putting it in all of the following places to no avail: The folder that

Where to put ruby .gem files so that Shoes.setup can find them?

穿精又带淫゛_ 提交于 2020-01-02 05:58:06
问题 A lot of questions have been asked about gem support in Shoes, but none have answered where to put them. I've got Shoes Raisins 1134 on Windows XP, and I've downloaded dbi-0.4.1.gem and am trying to get the following to work: Shoes.setup do gem 'dbi' end require 'dbi' Shoes.app ... end When I run this, I get the dialog that says Installing dbi -- Looking for dbi which sits for hours not finding the gem file. I've tried putting it in all of the following places to no avail: The folder that

How do I tell Sinatra what environment (development, test, production) it is?

穿精又带淫゛_ 提交于 2020-01-02 03:39:08
问题 (Disclaimer: New to deploying Sinatra on Heroku.) I have seen http://www.sinatrarb.com/configuration.html and it tells me to set :environment, :production . My question is, how can I specify it to do: "when in Heroku, set environment as production, else stay in test/development." Also, even after putting the line set :environment, :production , I don't think it is working because when I try to rackup the app locally, it's still running (when I know (or I think I know) that it shouldn't