gemspecs

Problems in installing thin on windows 7

瘦欲@ 提交于 2020-01-13 07:24:12
问题 I am new to ruby. I am trying to install a ruby gem thin. It shows an error in installing the gem. I googled for the error but i could not find a link that addresses my problem. The error is: C:\Users\name\Desktop>ruby -v ruby 2.0.0p247 (2013-06-27) [i386-mingw32] C:\Users\name\Desktop>gem -v 2.0.3 C:\Users\name\Desktop>gem install thin Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing thin: ERROR: Failed to build

How to check the compatible Ruby versions for a gem

◇◆丶佛笑我妖孽 提交于 2020-01-11 11:29:06
问题 How do I find out if a particular gem is compatible with a certain Ruby version or not? I want to upgrade the Ruby version of an application I am working on, But I did not see an authentic way of knowing which Ruby version is supported by a particular gem. I found the *.gemspec of the gem, which often contains a configuration saying config.required_ruby_version ... , but I noticed not all the gems contain a gemspec file. I noticed I have a few gems on my system, ActiveRecord for example,

How to use 'debugger' and 'pry' when developing a gem? (Ruby)

筅森魡賤 提交于 2019-12-20 05:28:16
问题 I'm developing a gem, and my Gemfile looks like this: source :rubygems gemspec group :development, :test do gem "pry" gem "debugger" gem "rake" end However, I don't want people to have to install pry and debugger when running tests, but I also want to be able to require them in my tests (because I'm running tests prefixed with bundle exec , and I cannot get it them in my load path if they're not in the Gemfile). How do I achieve this? Also, when to put gems that I use for development in the

Ruby Gemspec Dependency: Is possible have a git branch dependency?

扶醉桌前 提交于 2019-12-17 17:42:12
问题 Is possible have a git branch dependency, inside mygem.gemspec? I'm thinking something similar to the following: gem.add_runtime_dependency 'oauth2', :git => 'git@github.com:lgs/oauth2.git' ... but it doesn't work. 回答1: This is not possible, and likely never will be because it would be rather heavy-handed for RubyGems to allow gem developers to require that users have a specific version control system installed to access a gem. Gems should be self-contained with a minimal number of

Attemping to vendorize a gem into bundler with Rails 3, but Gem has no Gemspec

最后都变了- 提交于 2019-12-09 11:32:59
问题 Following these easy steps: gem unpack spree_easy_contact -v 1.0.2 --target vendor/gems Unpacked gem: '../vendor/gems/spree_easy_contact-1.0.2' And then in my Gemfile I add this line : gem "spree_easy_contact", :path => "vendor/gems/spree_easy_contact-1.0.2" But it fails when I run bundle install . Could not find gem 'spree_easy_contact (>= 0, runtime)' in source at vendor/gems/spree_easy_contact-1.0.2. Source does not contain any versions of 'spree_easy_contact (>= 0, runtime)' I believe

Is there a way to print a message after a user installs a Ruby gem?

喜夏-厌秋 提交于 2019-12-07 02:49:30
问题 Is there a way to configure a gem's gemspec to print an important informational message right after someone downloads and installs the gem using gem install ? 回答1: Yes, use post_install_message in the gemspec (docs). You can see how HTTParty does it in its gemspec. 来源: https://stackoverflow.com/questions/6543001/is-there-a-way-to-print-a-message-after-a-user-installs-a-ruby-gem

Is there a way to print a message after a user installs a Ruby gem?

[亡魂溺海] 提交于 2019-12-05 06:24:39
Is there a way to configure a gem's gemspec to print an important informational message right after someone downloads and installs the gem using gem install ? Yes, use post_install_message in the gemspec ( docs ). You can see how HTTParty does it in its gemspec . 来源: https://stackoverflow.com/questions/6543001/is-there-a-way-to-print-a-message-after-a-user-installs-a-ruby-gem

Problems in installing thin on windows 7

爷,独闯天下 提交于 2019-12-04 21:06:35
I am new to ruby. I am trying to install a ruby gem thin. It shows an error in installing the gem. I googled for the error but i could not find a link that addresses my problem. The error is: C:\Users\name\Desktop>ruby -v ruby 2.0.0p247 (2013-06-27) [i386-mingw32] C:\Users\name\Desktop>gem -v 2.0.3 C:\Users\name\Desktop>gem install thin Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing thin: ERROR: Failed to build gem native extension. C:/Ruby200/bin/ruby.exe extconf.rb checking for main() in -lc... *** extconf.rb

Attemping to vendorize a gem into bundler with Rails 3, but Gem has no Gemspec

隐身守侯 提交于 2019-12-03 13:36:08
Following these easy steps: gem unpack spree_easy_contact -v 1.0.2 --target vendor/gems Unpacked gem: '../vendor/gems/spree_easy_contact-1.0.2' And then in my Gemfile I add this line : gem "spree_easy_contact", :path => "vendor/gems/spree_easy_contact-1.0.2" But it fails when I run bundle install . Could not find gem 'spree_easy_contact (>= 0, runtime)' in source at vendor/gems/spree_easy_contact-1.0.2. Source does not contain any versions of 'spree_easy_contact (>= 0, runtime)' I believe this is because there is no gemspec file located in the gem. Is there a way to build one for it ? Anyone