rubygems

Importing gmail/yahoo/hotmail/aol address book with rails

試著忘記壹切 提交于 2019-12-07 11:20:56
问题 I want to import address book of users from their gmail/hotmail/yahoo and aol address books. I am looking for a gem/plugin in rails which can help me do this. Any help is appreciated. Thanks. 回答1: Ive been trying Contacts : http://github.com/cardmagic/contacts It allows to import contacts from gmail with 2 lines of code!!! Works wonderfully for me. Still have to check out if it supports insertion and syncing (??) maybe. 回答2: I once used a gem called Blackbook: http://github.com/purzelrakete

OpenSSL can't load library with gem rubygems or brew or bundle

℡╲_俬逩灬. 提交于 2019-12-07 11:19:55
问题 I use brew 0.9.5, which with I installed rbenv 0.4.0 and ruby-build for a ruby 2.1.2. Haven't touched anything since a while, and after few osx updates : bundle Gives : /usr/local/Cellar/rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/usr/local/Cellar/rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/digest/sha1.bundle, 9): Library not loaded: @@HOMEBREW_PREFIX@@/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError) Referenced from:

An error occurred while installing eventmachine (1.0.3), and Bundler cannot continue

你。 提交于 2019-12-07 10:58:23
问题 I am trying to get ruby on rails to set up on my mac running os x 10.10. I am trying to get a server running open source project kandan however I am getting an error when trying to bundle install on the eventmachine 1.0.3 gem. I'm not sure exactly what i'm looking at, can anyone help me fix this? bundle install Fetching gem metadata from https://rubygems.org/............. Fetching version metadata from https://rubygems.org/... Fetching dependency metadata from https://rubygems.org/.. Using

How do you update JRuby's gem command?

青春壹個敷衍的年華 提交于 2019-12-07 10:02:55
问题 How do we update the version of gem that JRuby uses? JRuby uses gem (1.5.1) and we would like to upgrade it to 1.8.7. We want to have the gems installed in Ruby/gems We run: bin/jruby gem install rubygems-update Fetching: rubygems-update-1.8.5.gem (100%) Successfully installed rubygems-update-1.8.5 1 gem installed bin/jruby gem install --system ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --system (update does not work either) bin/jruby gem update --system

gem install libxml-ruby: fatal error: 'plist/Node.h' file not found

喜你入骨 提交于 2019-12-07 07:28:56
问题 Trying: sudo gem install libxml-ruby -n /usr/local/bin Output: Password: Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.3.0/gems/libxml-ruby-3.1.0/ext/libxml /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180316-738-nk2zon.rb extconf.rb checking for libxml/xmlversion.h in /opt/include/libxml2,/opt/local/include/libxml2,/usr/local

How to debug a plugin / gem? (with useful notes to setup and use ruby-debug gem)

这一生的挚爱 提交于 2019-12-07 07:10:19
问题 Is there a way like how we debug models / controllers with logger.debug? Or even a better method? Thank you! Edit 1 Using ruby-debug seems like a steep learning curve for me, could anyone point me something similar to logger.debug, perhaps? Edit 2 Alright, I think I started to get a grasp on ruby-debug. Some useful notes for newbies to setup & use ruby-debug: gem install ruby-debug in config/environments/development.rb add include 'ruby-debug' then just above the code you want to debug add:

What's the best practice for using bundler, git, and jRuby gems with maven?

橙三吉。 提交于 2019-12-07 06:45:45
问题 I'm working with jRuby and Rails for a while, but I don't have the feeling that I've found the holy grail for this: I'm doing a lot of gems which are wrappers for actual java libs and I ask myself what the best option is for packaging those gems. Is it a good idea to package them as "native gems", letting the jars being packaged when the gem is installed? Is there a way to install the jars in the .m2 dir, letting bundler AND maven to what they can do best at the same time? Best, Tobias 回答1:

Error when using gchart (googlecharts) gem - NameError: uninitialized constant Gchart

…衆ロ難τιáo~ 提交于 2019-12-07 06:17:07
问题 http://googlecharts.rubyforge.org/ I installed it with: sudo gem install googlecharts It installed fine, but whenever I try to use it I get: NameError: uninitialized constant Gchart Here is the code I am running: $ irb >> require 'gchart' => true >> Gchart.line(:data => [0, 40, 10, 70, 20]) NameError: uninitialized constant Gchart from (irb):2 回答1: Kale, I had this problem too. There's another gem called gchart which conflicts with googlecharts as they both use the name 'gchart' in Ruby. You

Making ruby gems respond to terminal commands

江枫思渺然 提交于 2019-12-07 06:10:51
问题 I am extremely new to ruby as well as gem making. I made a simple gem that webscrapes some information depending on the input. However, to use my gem I need to go into the interpreter (irb) and require my gem and then call the method with some parameters. Suppose the gem is called foo . Suppose the method is called print_website(x) # where x is a string . I want to be able to do something like: $ foo test.com and it should automatically call the method and execute it. Thanks in advance!

fatal error while bundle install (while installing libv8)

蓝咒 提交于 2019-12-07 05:47:49
问题 I work on windows7 (32-bit) and I get error that while bundle install; Installing libv8 (3.3.10.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks! C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) C:/Ruby192/bin