gem

Openshift Port forwarding

99封情书 提交于 2019-12-21 05:03:06
问题 There already a lot of topics about it. But I'm stuck I configured ssh with succes! Now I like to configure the portforwarding for connection with TOAD. I used this tut: https://blog.openshift.com/getting-started-with-port-forwarding-on-openshift/ Now when I try rhc port-forward -a php I get this error Could not parse PKey: no start line I founded this: http://blog.skypayjm.com/2015/02/accessing-remote-openshifts-database.html I tried to downgrade ssh, but it didn't change anything. Does

Rendering a view from my Ruby on Rails Gem

一曲冷凌霜 提交于 2019-12-21 04:58:56
问题 I created a simple Gem for Ruby on Rails; the idea is that it provides some code/views for common actions (index/show/etc.) that I use in several of my applications. I would like to "DRY it up" in a Gem. Creating the Concern went without problems, however, I can't quite seem to manage to render a view in my application. For example, in my lib/rails_default_actions/rails_default_actions.rb I do: module RailsDefaultActions module DefaultActions extend ActiveSupport::Concern respond_to do

Fresh Ruby gem from Bundler - cannot load my version.rb file?

这一生的挚爱 提交于 2019-12-21 04:55:20
问题 I wanted to make a fresh Ruby app, so I decided to use bundle gem foo to do it. This gave me the whole: lib/ foo/ version.rb foo.rb Gemfile Rakefile foo.gemspec README.md structure. Now when I run ruby foo.rb , I get: `require': cannot load such file -- foo/version (LoadError) foo.rb is just the default: require 'foo/version' module Foo end Can gems not be ran on their own? I hope I don't have to include my gem into a sample app just to test it out? 回答1: You need to run bundle exec ruby foo

gem install kgio ERROR

那年仲夏 提交于 2019-12-21 04:31:27
问题 I've downloaded a rails open source webapp , and while i was starting it using : C:\Users\admin\Downloads\iCare\icare-develop>rails server ←[31mCould not find kgio-2.8.0 in any of the sources←[0m ←[33mRun `bundle install` to install missing gems.←[0m i tried to fix this error using: cmd:>gem install kgio -v '2.8.0' i got the error: Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing kgio: ERROR: Failed to build gem

gem install kgio ERROR

拥有回忆 提交于 2019-12-21 04:31:11
问题 I've downloaded a rails open source webapp , and while i was starting it using : C:\Users\admin\Downloads\iCare\icare-develop>rails server ←[31mCould not find kgio-2.8.0 in any of the sources←[0m ←[33mRun `bundle install` to install missing gems.←[0m i tried to fix this error using: cmd:>gem install kgio -v '2.8.0' i got the error: Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing kgio: ERROR: Failed to build gem

Issue installing gems on windows 7 with proxy

最后都变了- 提交于 2019-12-21 04:22:09
问题 I am trying to install ruby on windows 7 behind a proxy. I have looked at various forums and have set (i think) the http_proxy successfully (see below) SET HTTP_PROXY=http:username:password@http://proxyhere.com:8080 however, i now get the following error trying to install a gem: SocketError: getaddrinfo: No such host is known. Any ideas? 回答1: The HTTP_PROXY syntax needs to be URI: SET HTTP_PROXY=scheme://user:pass@host:port/path scheme could be http or https and on some cases path could be

I can't run “bundle update” because of “mysql2” gem

此生再无相见时 提交于 2019-12-21 03:56:09
问题 I have this in the Gemfile: gem 'mysql2' But when I run bundle update , I get this error message: An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling. I've tried to move this into the production section, like this: group :production do gem 'mysql2' end But after running bundle update , the result is the same. This section is processed only in the production mode, or not? How to get rid of

Installing mysql2 gem on Mac os x Lion

大兔子大兔子 提交于 2019-12-21 02:42:17
问题 The other day I updated to Mac OSX Lion. It broke my rails install as I had to re complie mysql. While I have got that working reinstalling the mysql2 gem has become problematic. I was perviously running leopard so I am going from 32 to 64 bit. ~/code/rails/london (master)$ gem install mysql2 -- --with-mysql-dir=/usr/local/mysql Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/stewartmatheson/.rvm/rubies

Find out which gems require native c extensions from a Gemfile?

无人久伴 提交于 2019-12-21 01:48:12
问题 I just recently started shifting attention towards deploying Ruby apps atop TorqueBox which of course is built atop Jruby. Hitherto I have been basically performing a bundle install and then tackling each gem along the way to jrubydom, but I've hit a couple gems that have taken me some considerable time to resolve due to needing to reimplement large portions of them. Is there a way to invoke bundler or rubygems to run through all gems and their deps to test if they require native c extensions

Find out which gems require native c extensions from a Gemfile?

半世苍凉 提交于 2019-12-21 01:48:08
问题 I just recently started shifting attention towards deploying Ruby apps atop TorqueBox which of course is built atop Jruby. Hitherto I have been basically performing a bundle install and then tackling each gem along the way to jrubydom, but I've hit a couple gems that have taken me some considerable time to resolve due to needing to reimplement large portions of them. Is there a way to invoke bundler or rubygems to run through all gems and their deps to test if they require native c extensions