baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
raul782_ has joined #ruby
raul782_ has quit [Remote host closed the connection]
raul782_ has joined #ruby
cagomez has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
knight33 has joined #ruby
thy0 has joined #ruby
SeepingN_ is now known as SeepingN
IanMalcolm has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
raul782_ has quit []
<nfk> the code i'm writing looks so evil i'm glowing from the lovecraftian glee
<SeepingN> is it indented to look like a pentagram or something?
<nfk> no, that will be for another time but it took two irb instances and hours to prototype
beeman has quit []
<nfk> this is one part of the prototype code: (h.method :fetch).call(:home).method(:merge!).call(test: {})
<nfk> and this is another: p.ascend.inject([]) { |a, e| p a << e.basename.to_s }.reverse
<nfk> i should feel bad about my actions, right?
sameerynho has quit [Ping timeout: 252 seconds]
cagomez has quit [Remote host closed the connection]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* nfk does the Burns gesture as they contemplate how to iterate on this wretched array
beeman has joined #ruby
eckhardt_ has joined #ruby
xfbs has quit [Quit: afk]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ZzZombo_ has joined #ruby
weaksauce has joined #ruby
ZzZombo has quit [Ping timeout: 252 seconds]
ZzZombo_ is now known as ZzZombo
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has quit [Quit: Puffball]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Inside has quit [Disconnected by services]
jottr has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Guest18202 has quit [Ping timeout: 246 seconds]
JasonO has quit [Excess Flood]
JasonO has joined #ruby
lxsameer has joined #ruby
white_lilies has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
pskosinski has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
knight33 has joined #ruby
jottr has joined #ruby
<nfk> https://paste.ubuntu.com/p/dcTrTMdkwK/ // behold, do i qualify for the cabal of the unspeakable one yet?!
<nfk> hohoho, it even works if set it to a directory deep in my filesystem hierarchy
jottr has quit [Ping timeout: 272 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ShekharReddy has joined #ruby
esrse has joined #ruby
AJA4350 has quit [Remote host closed the connection]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
darkhanb has joined #ruby
<knight33> How do I install the latest version of Ruby on Ubuntu? apt-get install ruby or ruby-full just installed 1.9. So confused right now.
white_lilies has quit [Ping timeout: 244 seconds]
lektrik has joined #ruby
<havenwood> knight33: Brightbox maintains up-to-date Ruby packages for Ubuntu: https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng
<havenwood> knight33: That's a nice way to get modern Ruby on older Ubuntu.
<havenwood> knight33: Or if it's a dev box consider ruby-install and chruby: https://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
<knight33> Alright, I'll give it a shot :)
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
cagomez has joined #ruby
duderonomy has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has quit [Client Quit]
mynameisdebian has joined #ruby
mynameisdebian has quit [Client Quit]
knight33 has joined #ruby
gix has joined #ruby
RougeR has quit [Ping timeout: 245 seconds]
<nfk> havenwood, wouldn't such an outdated version of ubuntu be long past security updates?
lxsameer has joined #ruby
mynameisdebian has joined #ruby
mynameisdebian has quit [Client Quit]
lxsameer has quit [Ping timeout: 246 seconds]
<havenwood> nfk: Maybe not an LTS version. Brightbox does backport security fixes if it's an older version of Ruby that you're using.
jottr has joined #ruby
tdy has joined #ruby
<havenwood> Ubuntu LTS backports security fixes.
dellavg_ has joined #ruby
<havenwood> nfk: But yeah, that old of a Ruby should be beyond even LTS EoL...
<havenwood> nfk: Actually, no - 14.04.5 LTS isn't EoL until April 2019.
<havenwood> And that's 1.9.3.
jottr has quit [Ping timeout: 240 seconds]
<nfk> on one hand it's cool they support stuff for 5 whole years. on the other hand software that old is dreadful
<nfk> the coolest thing you get to play there is the shorthand for defining hashes
<nfk> *with there
samscam7 has joined #ruby
cagomez has quit [Remote host closed the connection]
<samscam7> Would anyone know which direction to point me to to try and figure out why `binding.pry` wont break my app?
<nfk> speaking of dreadful software, i got to listing folders right below sysroot in sinatra, which i can't say about the tk GUI
<Radar> samscam7: ?rule0
<Radar> samscam7: Can you show us what you mean?
pwnd_nsfw has quit [Ping timeout: 244 seconds]
<samscam7> can u post code snippets in irc?
<nfk> also long overdue good night, everyone
<havenwood> samscam7: If you're on Github, a Gist is better. Or: https://dpaste.de/
thy0 has quit [Quit: TTFN]
<havenwood> Paste 4+ lines of text to https://dpaste.de/
<samscam7> I've tried putting it in a couple of places and none of them seem to work
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<havenwood> samscam7: Don't put it in backticks.
<al2o3-cr> why the backticks?
<samscam7> i thought i saw it like that in the wiki
<samscam7> rip
<havenwood> samscam7: Backticks mean, "this is code."
<havenwood> samscam7: Actually using the backticks in the context you did will call the Kernel#` method and shell out.
<samscam7> but it hasn't
<havenwood> samscam7: Just plain 'ole: binding.pry
<havenwood> samscam7: Is that supposed to be lower case `def create`? You have `def Create`, which looks wrong.
<havenwood> samscam7: Method names are generally snake_case.
<samscam7> there is prob so much wrong with this
<samscam7> im scared
<havenwood> samscam7: I suspect the #create method is getting called, not #Create - so it never shelled out to give you: #!> Errno::ENOENT: No such file or directory - binding.pry
ShekharReddy has quit [Quit: Connection closed for inactivity]
<havenwood> samscam7: Lowercase the method name and get rid of the backticks and see what happens.
<samscam7> ok one seconf
<samscam7> ok so that fixed my first error
<samscam7> but now i have a new one
hey_YOU has joined #ruby
<hey_YOU> hello
<havenwood> hey_YOU: hey you
esrse has quit [Ping timeout: 252 seconds]
<hey_YOU> I am trying out ruby... Andi didn't wantto gt kicked out of ##linux. heh
esrse has joined #ruby
lxsameer has joined #ruby
old_relik has joined #ruby
<old_relik> what is the purpose of having "25px".to_i return 25? isn't that confusing?
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> old_relik: use Integer() for strict conversion
lxsameer has quit [Ping timeout: 244 seconds]
<old_relik> I get that, but isn't the other way around broken
<al2o3-cr> old_relik: no
<old_relik> why wouldn't I ever want the conversion to be strict
dviola has quit [Quit: WeeChat 2.2]
<al2o3-cr> old_relik: read the docs on String#to_i
<al2o3-cr> it will tell you what you need to know.
<old_relik> I did, and I know it mentions that it ignores characters past the end of a valid number
<old_relik> it just seems unintuitive
<old_relik> and a use-case that shouldn't be a standard library especially something calles String#to_i
<havenwood> old_relik: What do you want it to return?
old_relik has quit [Ping timeout: 252 seconds]
<samscam7> havenwood your a bloody genius
* havenwood bows
dellavg_ has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
samscam7 has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: This computer has gone to sleep]
<hey_YOU> ok, bye
hey_YOU has quit [Quit: Leaving]
al2o3-cr has quit [Quit: WeeChat 2.2]
reber has joined #ruby
Inline has quit [Quit: Leaving]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
* baweaver wanders in
<icarus> I'm using sinatra to query endpoints that response in json requests, and need to validate two things: a 200 response and json schema, IE that it send me a json response and not someother html error (to clarify, sinatra will return whatever get /page is handed by response.body)
<baweaver> icarus: You can check the response code, then you could just JSON.parse the output
<baweaver> if it raises an exception, bingo
<icarus> httparty has a neat response.code tidbid
<baweaver> Most HTTP libraries do
<icarus> I still would like to lint test a json response before passing it to a client
<baweaver> lint test?
<baweaver> clarify that
<icarus> Like rubocop .. for json
<baweaver> Why?
<baweaver> What are you testing for?
MoritaShinobu has joined #ruby
<icarus> because ... one can not trust endpoints to do their homework, im getting passed html errors occasionally and it spits out ugly sinatra garbage, thus the wont to test specifically for json, and that it be in a non-erroroneous format
<icarus> response = HTTParty.get('https://someendpoint/file.json')
<icarus> ^ i want to make SURE its json, if not, fill response with a custom json error
<baweaver> Then that's not linting
<baweaver> That's validation
<baweaver> Just JSON.parse it
<Radar> baweaver: but what if it's HTML
<baweaver> If it raises an exception then it's not valid
<baweaver> >> require 'json'; JSON.parse("<html></html>")
<icarus> thats incredibly lazy, it could be html or xml, i dont want to catch general exceptions, i want to catch valid or non-valid json
<ruby[bot]> baweaver: # => 784: unexpected token at '<html></html>' (JSON::ParserError) ...check link for more (https://eval.in/1058506)
<baweaver> That catches non-valid JSON
<Radar> icarus: You won't be catching general exceptions if you do it that way, rescuing JSON::ParserError.
<Radar> Bet you could probably pair that up with a bit of a Result class from dry-monads to have the same API for valid / non-valid responses too.
<Radar> But I am probably suggesting something too fanciful there
<baweaver> Yay lazy
agent_white has quit [Remote host closed the connection]
<icarus> Ok, i see what you mean by JSON.parse, JSON::ParserError can be a clear exception to watch for
<baweaver> (that said I dislike exceptions in general for flow control like that)
snickers has joined #ruby
<icarus> all the (this) sinatra endpoint is meant to do act as a microserver to wrap other json endpoints
jottr has joined #ruby
<icarus> its replacing a bash script using jq/csvkit
<baweaver> I'd likely make a method out of that then
<Radar> ^
<icarus> I'll figure it out
jottr has quit [Ping timeout: 244 seconds]
<icarus> one question i really cant get to the bottom of, how to output sprintf without quotes! > p sprintf '%0.8f' % "123"
apeiros has quit [Remote host closed the connection]
aupadhye has joined #ruby
mooe has joined #ruby
DK2 has joined #ruby
mark-6 has joined #ruby
<baweaver> don't use sprintf?
<baweaver> >> '%0.8f' % "123"
<ruby[bot]> baweaver: # => "123.00000000" (https://eval.in/1058527)
<baweaver> modulo and sprintf do the same thing
mark-6 has left #ruby [#ruby]
tdy has quit [Quit: WeeChat 2.2]
za1b1tsu has joined #ruby
johnny56 has quit [Ping timeout: 272 seconds]
tdy has joined #ruby
lomex has joined #ruby
alem0lars has joined #ruby
<icarus> >> ("123").round(8)
<ruby[bot]> icarus: # => undefined method `round' for "123":String (NoMethodError) ...check link for more (https://eval.in/1058535)
<icarus> >> (123).round(8)
<ruby[bot]> icarus: # => 123.0 (https://eval.in/1058536)
<icarus> ^ apparently .round will suffice
<icarus> Im so used to thinking in awk/cli terms: | awk '{print sprintf("%0.8f", $1);}'
Mortomes|Work has joined #ruby
clemens3 has joined #ruby
johnny56 has joined #ruby
mike11 has joined #ruby
esrse has quit [Ping timeout: 246 seconds]
esrse has joined #ruby
sysvalve has joined #ruby
<baweaver> Woo, rebuilding Ruby environment on new mac
aufi has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem has joined #ruby
nowhere_man has joined #ruby
cliluw has quit [Ping timeout: 246 seconds]
cliluw has joined #ruby
shadeslayer has quit [Ping timeout: 252 seconds]
shoogz has quit [Ping timeout: 264 seconds]
baweaver is now known as baweaver_away
shadeslayer has joined #ruby
shoogz has joined #ruby
xfbs has joined #ruby
ua has joined #ruby
xfbs has quit [Client Quit]
venmx has joined #ruby
tdy has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
CustosLiminis is now known as CustosLimen
chichou has joined #ruby
mike11 has quit [Ping timeout: 245 seconds]
RougeR has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Beams has joined #ruby
Nicmavr has joined #ruby
apeiros has joined #ruby
Tuor has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
Mike111 has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
NL3limin4t0r has joined #ruby
mikecmpbll has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
alem0lars has quit [Remote host closed the connection]
RedNifre_ has joined #ruby
RougeR has joined #ruby
alem0lars has joined #ruby
cadillac_ has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
<RougeR> apeiros:
johnny56 has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
<apeiros> RougeR: that's my nick, yes. but I'll be offline for ~40min now :)
apeiros has quit []
alem0lars has quit [Ping timeout: 244 seconds]
GodFather has quit [Ping timeout: 272 seconds]
kapil___ has joined #ruby
RedNifre_ has quit [Ping timeout: 252 seconds]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
johnny56 has joined #ruby
ur5us has quit [Remote host closed the connection]
RedNifre_ has joined #ruby
RedNifre_ has quit [Ping timeout: 246 seconds]
evdubs has quit [Ping timeout: 252 seconds]
xfbs has joined #ruby
evdubs has joined #ruby
apeiros_ has joined #ruby
<apeiros_> wow, that was quite precise (40min)
apeiros_ is now known as apeiros
tristanp has joined #ruby
<TvL2386> well, 42min to be exact
<TvL2386> :)
tristanp has quit [Ping timeout: 246 seconds]
modin has quit [Ping timeout: 276 seconds]
yohji has joined #ruby
esrse has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Ping timeout: 246 seconds]
esrse has joined #ruby
jottr has joined #ruby
esrse has quit [Ping timeout: 245 seconds]
apparition has joined #ruby
Tuor has quit [Ping timeout: 245 seconds]
eman0n has quit [Quit: Connection closed for inactivity]
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
RedNifre_ has joined #ruby
Tuor has joined #ruby
code_zombie has quit [Quit: Leaving]
MaiconVieira has joined #ruby
Mike111 has quit [Ping timeout: 272 seconds]
mike11 has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
AJA4350 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Mortomes|Work has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
GodFather has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
GodFather has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
tristanp has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
thy0 has joined #ruby
GodFather has joined #ruby
cd has quit [Quit: cd]
knight33 has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
nowhere_man has quit [Ping timeout: 272 seconds]
venmx has quit [Quit: leaving]
venmx has joined #ruby
vondruch has joined #ruby
IanMalcolm has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
modin has joined #ruby
IanMalcolm has quit [Ping timeout: 252 seconds]
RedNifre_ has quit [Ping timeout: 252 seconds]
marahin has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
modin has quit [Ping timeout: 246 seconds]
modin has joined #ruby
apeiros has quit []
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snickers has quit [Ping timeout: 272 seconds]
GodFather has joined #ruby
mike11 has quit [Quit: Leaving.]
gnufied has quit [Quit: Leaving]
knight33 has joined #ruby
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 272 seconds]
gnufied has joined #ruby
nowhere_man has joined #ruby
TheBloke- is now known as TheBloke
Rapture has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
yohji has quit [Ping timeout: 264 seconds]
alireza has joined #ruby
<alireza> Hey ammigos
yohji has joined #ruby
<alireza> I've created a Checkout class
<alireza> which accepts a list of promotions
<alireza> or as you would say promotional rules
<alireza> then I created a Promotion class which has two methods `applicable?` and `apply?`
<alireza> and in Checkout class everytime `total` being called I iterate through promotions
<alireza> and call apply with `items` and `total` passed
<alireza> let me give you an url
<alireza> lxsameer: ping
za1b1tsu has joined #ruby
RedNifre_ has joined #ruby
Cork has quit [Ping timeout: 264 seconds]
Inside has joined #ruby
Tuor has quit [Ping timeout: 272 seconds]
emerson has quit [Quit: leaving]
GodFather has quit [Ping timeout: 250 seconds]
alireza has left #ruby ["WeeChat 2.1"]
Inline has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
DTZUZO_ has quit [Ping timeout: 252 seconds]
RedNifre_ has quit [Quit: WeeChat 1.9.1]
chouhoulis has joined #ruby
DTZUZO_ has joined #ruby
desperek has joined #ruby
bmurt has joined #ruby
thomasfedb has joined #ruby
nowhere_man has joined #ruby
lomex has joined #ruby
lytol_ has joined #ruby
aupadhye has quit [Remote host closed the connection]
apeiros_ has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
mike11 has joined #ruby
xfbs has quit [Quit: afk]
aufi has quit [Quit: Leaving]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TomyLobo has joined #ruby
ivanskie has joined #ruby
jordanm has joined #ruby
cagomez has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: Bye]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
sysvalve has quit [Quit: Leaving]
clemens3 has quit [Ping timeout: 246 seconds]
snickers has joined #ruby
MaiconVieira has quit [Quit: Page closed]
Dbugger has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
tdy1 has joined #ruby
mike11 has quit [Ping timeout: 252 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros_ has quit []
alem0lars has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
RougeR has quit [Ping timeout: 252 seconds]
DTZUZO_ has quit [Ping timeout: 252 seconds]
eckhardt_ has joined #ruby
DTZUZO_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
cats has quit [Ping timeout: 240 seconds]
Beams has quit [Quit: .]
ineb has joined #ruby
darkhanb has joined #ruby
<ineb> whats the best way to make a ruby cli project binary include necessary code?
<ineb> i saw $LOAD_PATH.unshift 'lib' which obviously only works if one is inside the project dir
xfbs has joined #ruby
<ineb> actually, that is what 'bundle gem testbin --bin' does
RougeR has joined #ruby
<ineb> shouldnt that be '$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"' or something?
<ineb> $LOAD_PATH.unshift 'lib' makes assumptions about the current directory. or am i missing something with bundler here?
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 245 seconds]
RougeR has quit [Ping timeout: 244 seconds]
DTZUZO_ has quit [Ping timeout: 245 seconds]
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
yohji has quit [Remote host closed the connection]
MoritaShinobu has quit [Quit: Leaving]
jottr has quit [Ping timeout: 244 seconds]
Fusl has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
<havenwood> ineb: In a gem, lib/ should be in your LOAD_PATH, so just: require 'skeleton'
<havenwood> ineb: I sometimes check if it's already in LOAD_PATH, but I can't quite decide whether it's worth doing that: https://github.com/havenwood/digest-sip_hash/blob/master/digest-sip_hash.gemspec#L3-L4
<havenwood> ineb: A simpler way is just: $LOAD_PATH.prepend File.expand_path 'lib', __dir__
<havenwood> I kinda prefer not being defensive about duplicates in LOAD_PATH, since require should handle that by not loading it twice.
<havenwood> ineb: Use #unshift instead of the nicer-reading #prepend if you need to support earlier than Ruby 2.5.
<havenwood> ineb: __dir__ was introduced in Ruby 2.0, so I use it broadly
ShekharReddy has joined #ruby
<havenwood> $LOAD_PATH.unshift File.expand_path 'lib', __dir__
<ineb> here is where my confusion starts. binaries in bin/ are meant to be called from CLI and like the bundle gem skeleton, i also get `require': cannot load such file -- digest/sip_hash on your gem when calling it via ./bin/siphash
<havenwood> ineb: oh, hah - did I mess up?
<havenwood> ineb: ooooh, you mean when you don't use it as a gem
tdy1 has quit [Quit: WeeChat 2.2]
<havenwood> ineb: Yeah, I'm relying on the gem providing the executable: https://github.com/havenwood/digest-sip_hash/blob/master/digest-sip_hash.gemspec#L18
Fusl has joined #ruby
<havenwood> ineb: If you want to be able to execute it without installing the gem, maybe: $LOAD_PATH.unshift File.expand_path '../lib', __dir__
<havenwood> ineb: Then when you use it as a gem, you'll actually be putting lib in LOAD_PATH twice, so maybe the trick above would be good
impermanence has joined #ruby
<havenwood> ineb: Or maybe `require_relative`, hmm.
<impermanence> we're having a stupid debate on my team. which is better or more current: rvm or rbenv. I say rvm, the other guy says rbenv. I know it's stupid, but is there a consensus?
<havenwood> impermanence: chruby
<impermanence> ha fudge
<ineb> havenwood: i see. i missed the part where gemspec sets up the load path and provides auto-generated binaries
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
alem0lars has joined #ruby
jasmith has quit [Ping timeout: 250 seconds]
RougeR has joined #ruby
akem__ has joined #ruby
akem has quit [Remote host closed the connection]
impermanence has quit [Remote host closed the connection]
cats has joined #ruby
chichou has quit [Ping timeout: 250 seconds]
johnny56 has quit [Ping timeout: 272 seconds]
SeepingN has joined #ruby
impermanence has joined #ruby
impermanence has left #ruby [#ruby]
impermanence has joined #ruby
catsed has joined #ruby
cats has quit [Ping timeout: 245 seconds]
catsed is now known as cats
duderonomy has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
lxsameer has joined #ruby
za1b1tsu has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 2.2]
akem__ has quit [Remote host closed the connection]
akem__ has joined #ruby
lxsameer has joined #ruby
icarus has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 272 seconds]
evdubs has quit [Quit: Leaving]
MaiconVieira has joined #ruby
johnny56 has joined #ruby
lxsameer has joined #ruby
gr33n7007h has joined #ruby
conta1 has joined #ruby
icarus has joined #ruby
evdubs has joined #ruby
venmx has quit [Ping timeout: 245 seconds]
lxsameer has quit [Ping timeout: 245 seconds]
za1b1tsu has joined #ruby
moei has quit [Quit: Leaving...]
lxsameer has joined #ruby
weaksauce has joined #ruby
deathwishdave has joined #ruby
conta1 has quit [Quit: conta1]
za1b1tsu has quit [Ping timeout: 244 seconds]
apeiros_ has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Remote host closed the connection]
icarus has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby
icarus has joined #ruby
lxsameer has joined #ruby
cthulchu has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
lxsameer has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
krawchyk has joined #ruby
za1b1tsu has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
cthulchu has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
<havenwood> oops, MT
akem__ is now known as akem
lxsameer has joined #ruby
icarus has quit [Quit: leaving]
lomex has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
weaksauce has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 244 seconds]
gr33n7007h is now known as al2o3-cr
lxsameer has joined #ruby
oft_gegong has joined #ruby
<oft_gegong> when programming ruby on the web, by default does it use the <% %> brackets to contain the ruby language semantics/syntax?
<havenwood> oft_gegong: That's an ERB thing.
bmurt has joined #ruby
<oft_gegong> I quit internet searches, what does ERB mean? it depends on the web server configuration?
lxsameer has quit [Ping timeout: 272 seconds]
mike11 has joined #ruby
lxsameer has joined #ruby
howdoicomputer has joined #ruby
Sauvin has quit [Ping timeout: 252 seconds]
howdoicomputer has quit [Client Quit]
howdoicomputer has joined #ruby
howdoicomputer has quit [Client Quit]
lxsameer has quit [Ping timeout: 252 seconds]
Sauvin has joined #ruby
za1b1tsu has joined #ruby
howdoicomputer has joined #ruby
howdoicomputer has quit [Client Quit]
howdoicomputer has joined #ruby
howdoicomputer has quit [Client Quit]
lxsameer has joined #ruby
howdoicomputer has joined #ruby
howdoicomputer has quit [Client Quit]
howdoicomputer has joined #ruby
howdoicomputer has quit [Client Quit]
howdoicomputer has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Client Quit]
howdoicomputer has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
ShekharReddy has quit [Quit: Connection closed for inactivity]
Nicmavr has joined #ruby
howdoicomputer has quit [Client Quit]
howdoicomputer has joined #ruby
lxsameer has joined #ruby
siaw23 has joined #ruby
<siaw23> hi i have an array like this [1, 4, 3, 5, 7, 10] is there a way i can iterate it in pairs like so [1,4], [4,3], [3,5], [5,7], [7,10]
code_zombie has joined #ruby
<al2o3-cr> siaw23: use each_slice(2)
<havenwood> siaw23: each_cons(2)
lxsameer has quit [Ping timeout: 244 seconds]
<al2o3-cr> oh, sorry yeah, each_cons(2) my bad ;)
<siaw23> yeah each_cons is what i was looking for!!!
<siaw23> havenwood: thank you!!!
<havenwood> siaw23: you're welcome
<siaw23> al2o3-cr: each_slice is too easy :P trie working with that but knew there was something better
<siaw23> thanks guys
<al2o3-cr> =D
cthulchu has quit [Read error: Connection reset by peer]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
sanscoeur has joined #ruby
sanscoeur has quit [Read error: Connection reset by peer]
<siaw23> havenwood is like one of those guys that have the whole ruby doc inscribed on their brain
lxsameer has joined #ruby
<al2o3-cr> siaw23: he sure is.
sanscoeur has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
cthulchu has joined #ruby
lxsameer has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
oft_gegong has quit [Quit: Page closed]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 272 seconds]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
Dbugger has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
moei has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
tdy has joined #ruby
lxsameer has joined #ruby
reber has quit [Remote host closed the connection]
MaiconVieira has quit [Quit: Page closed]
jottr has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
tdy1 has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 252 seconds]
savolla has joined #ruby
lxsameer has joined #ruby
TheBloke has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 240 seconds]
tdy1 has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
desperek has quit [Quit: xoxo]
tdy1 has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
tdy1 is now known as tdy
jaequery has joined #ruby
savolla has quit [Quit: Lost terminal]
jottr has joined #ruby
weaksauce has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
cd has joined #ruby
ur5us has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
roshanavand has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
ur5us has quit [Read error: Connection reset by peer]
lytol_ has quit [Remote host closed the connection]
cadillac_ has quit [Read error: Connection reset by peer]
jottr has joined #ruby
cadillac_ has joined #ruby
Jakoonce has joined #ruby
krawchyk has quit [Quit: krawchyk]
jottr has quit [Ping timeout: 245 seconds]
samort7 has quit [Ping timeout: 240 seconds]
tdy1 has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 245 seconds]
howdoicomputer has quit [Quit: WeeChat 2.2]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
venmx has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
jottr has joined #ruby
cadillac_ has quit [Quit: I quit]
jottr has quit [Ping timeout: 272 seconds]
mike11 has quit [Read error: Connection reset by peer]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy1 is now known as tdy
eckhardt_ has joined #ruby
impermanence has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
Sembei has joined #ruby
venmx has quit [Ping timeout: 245 seconds]
eckhardt_ has quit [Client Quit]
blackmesa1 has joined #ruby
Pisuke has quit [Ping timeout: 272 seconds]
ndr0s has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
code_zombie has quit [Quit: Leaving]
ndr0s has quit [Quit: WeeChat 1.6]
eckhardt_ has joined #ruby
agent_white has joined #ruby
nine_milli_ has joined #ruby
<nine_milli_> is php better than ruby?
AJA4350 has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
venmx has joined #ruby
sdegutis has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdegutis has left #ruby [#ruby]
<al2o3-cr> nine_milli_: what's php?
<apeiros_> probably one of those newfangled javascript frameworks
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> hehe ;)
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
weaksauce has quit [Ping timeout: 240 seconds]
xfbs has quit [Quit: afk]
tdy has quit [Ping timeout: 245 seconds]
al2o3-cr has quit [Quit: WeeChat 2.2]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
DTZUZO_ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
sameerynho has joined #ruby
sameerynho is now known as Guest61135
eckhardt_ has joined #ruby
nine_milli_ has quit [Ping timeout: 244 seconds]
eckhardt_ has quit [Client Quit]
Guest61135 has quit [Ping timeout: 244 seconds]
Sauvin has quit [Ping timeout: 240 seconds]
eckhardt_ has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt_ has joined #ruby
Sauvin has joined #ruby
venmx has quit [Ping timeout: 246 seconds]
mynameisdebian has joined #ruby
mynameisdebian has quit [Client Quit]
RougeR has quit [Ping timeout: 264 seconds]
kujira has joined #ruby
beowuff has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
fluxAeon has joined #ruby
mynameisdebian has joined #ruby
mynameisdebian has quit [Client Quit]
sanscoeu_ has joined #ruby
evdubs_ has joined #ruby
sanscoeur has quit [Ping timeout: 264 seconds]
evdubs has quit [Ping timeout: 252 seconds]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheBloke has joined #ruby
mynameisdebian has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
zapata has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
blackmesa1 has quit [Ping timeout: 240 seconds]
<baweaver_away> Aw, they left.
baweaver_away is now known as baweaver
blackmesa has quit [Ping timeout: 252 seconds]
sanscoeu_ has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Tempesta has quit [Quit: See ya!]
jottr has joined #ruby
zapata has joined #ruby
darkhanb has joined #ruby
jottr has quit [Ping timeout: 240 seconds]