#ruby - 10 December 2018
« Back 1 day Forward 1 day »
[03:16:55] Wafficus: hi there, question about Ruby and API's: consumer_key, consumer_secret, token, and token_secret are all required for the Yelp API yet they only gave me the "Client ID" and the "API Key" on my app itself
[06:14:54] joebobjoe: running gem environment on macos, how come RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby, but EXECUTABLE DIRECTORY: /usr/local/bin?
[09:20:17] leni1: Hi all. How does someone install a locally downloaded gem so that bundler can recognize it as installed?
[09:22:23] leni1: I have downloaded nokogiri locally and (re)installed it with the following different commands: gem install --user-install nokogiri-1.8.4.gem -n vendor/bundle/ruby/2.5.0/bin/, gem install --user-install nokogiri-1.8.4.gem (the gem is in my working directory) and gem install --local nokogiri-1.8.4.gem -n vendor/bundle/ruby/2.5.0/gems/
[09:24:22] leni1: However when I run `bundle install --path vendor/bundle`, bundle tries to fetch the gem rather use what I have installed. `gem list` shows nokogiri as installed including the version that bundle install is looking for.
[09:25:21] leni1: What should be my next step? I'm not very familiar with gem installation and the solutions on StackOverflow haven't worked for me since I
[10:19:31] leni1: Apparently it now works after running bundle install --system, cancelling and then running bundle install --path vendor/bundle again. I also copied the gem file in question to the cache directory so I don't know if that's what helped it work.
[13:13:02] beef_erikson: hello :) working through a book that is covering ruby and just made the switch to linux (I used prior but never as a dev. I TOTALLY get the hype now.)
[13:13:48] beef_erikson: figured I'd pop in here while I program / learn and lurk. I've been in other languages a few years now so have an understanding of the principles.
[13:17:16] phaul: blocks are really nice syntactically. If you like them I recommend reading and learning the Enumerable interface. Many classes implement Enumerable
[13:17:47] beef_erikson: ahh yeah, familiar with enums in other languages. cheers, having a look now!
[13:26:39] beef_erikson: Reading through a great book, Seven Languages in Seven Weeks (hence why I'm here). Ruby is the only OOP language in it (the author has extremely high praise for the language, short of speed). Loving what I've seen so far
[22:30:02] jayjo: I tried changing RAILS_RELATIVE_ROOT_URL to adjust an application to a subdirectory, but redirects are still redirecting to the / root dir. DO I need to adjust more?