otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #ruby
gr33n7001 has joined #ruby
gr33n7007h has quit [Killed (mercury.libera.chat (Nickname regained by services))]
gr33n7001 is now known as gr33n7007h
ur5us has quit [Ping timeout: 250 seconds]
Guest2735 has joined #ruby
szkl has quit [Quit: Connection closed for inactivity]
grokify has quit [Remote host closed the connection]
jpn has joined #ruby
grokify has joined #ruby
walez has joined #ruby
walez has quit [Ping timeout: 248 seconds]
soknte5 has quit [Ping timeout: 260 seconds]
moldorcoder7 has joined #ruby
<sam113101>
why can't we index a range?
szkl has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
<leftylink>
I expect indexing into something to be a constant-time operation as it is for arrays and hashes, but we cannot index into a range in constant time. for example
<leftylink>
pandabot: rb (Struct.new(:a) { def succ; self.class.new(a.even? ? a / 2 : a * 3 + 1) end }.new(819)..).take(5)
totoro has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
jpn has quit [Ping timeout: 248 seconds]
gr33n7007h has quit [Quit: WeeChat 3.7]
crux73 has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
totoro has joined #ruby
totoro has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
jpn has quit [Ping timeout: 268 seconds]
walez has quit [Ping timeout: 248 seconds]
D_A_N has joined #ruby
D_A_N_ has joined #ruby
jpn has joined #ruby
svdasein_ has joined #ruby
totoro has joined #ruby
<svdasein_>
Here is a new web site to help you find gems for your projects. It's power search heuristics and the ranking and scoring are user-adjustable. It's a step up from bestgems.org: http://gemdex.org/
jpn has quit [Ping timeout: 264 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
Guimauve has quit [Quit: what do a cigarette and a hamster have in common? they're both harmless until you put them in your mouth and light them on fire. ]
drainpipe has joined #ruby
<sam113101>
is there no longer a Singleton module?
onyx_ has joined #ruby
onyx has joined #ruby
<adam12>
sam113101: What makes you say that?
<Vaevictus>
sam113101: looks like it's still in at least 3.1.2
<Vaevictus>
granted... if you know enough to know when you should use Singleton, you probably know enough to roll your own in about 3 seconds anyway, right?
arahael has quit [Ping timeout: 246 seconds]
reset has quit [Quit: reset]
<adam12>
Generally you can get away with just assigning an instance to a constant.
<adam12>
There are better patterns than the Singleton module, imho.
<adam12>
If you have Jeremy Evans book, he covers a few in it IIRC.
markong has joined #ruby
toshiba__ has joined #ruby
crux73 has quit [Ping timeout: 268 seconds]
crux73 has joined #ruby
cartdrige has joined #ruby
toshiba__ has quit [Ping timeout: 268 seconds]
arahael has joined #ruby
crux73 has quit [Ping timeout: 268 seconds]
_ht has joined #ruby
eron has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 250 seconds]
<mekhami>
adam12: that seems to have definitely improved things! I'm getting another similarly obtuse set of errors around tilt now. It does not give me any information on what could be wrong though. i'll get the file in a second.
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Sankalp has joined #ruby
jpn has joined #ruby
otisolsen70 has quit [Quit: Leaving]
grokify has joined #ruby
grokify has quit [Ping timeout: 250 seconds]
grokify has joined #ruby
nirvdrum has joined #ruby
grokify has quit [Remote host closed the connection]
supay has quit [Quit: Connection closed for inactivity]
grokify has joined #ruby
grokify has quit [Ping timeout: 246 seconds]
darkstardevx has joined #ruby
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
darkstardevx has quit [Remote host closed the connection]
darkstardevx has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
gonix has joined #ruby
<John_Ivan>
hmm. strange.
<John_Ivan>
would anyone know why calling ruby from bash on a script would cause it to not recognize installed dependency gems?
gonix has quit [Ping timeout: 260 seconds]
<adam12>
John_Ivan: there are env variables set for where gems are stored. In the bash script, you might not have those env vars set.
<adam12>
John_Ivan: This is especially true for things like rbenv, rvm, etc.
<John_Ivan>
but it's just calling `ruby`. shouldn't `ruby` know where they are?
<John_Ivan>
why is it that if I open a terminal (which is still bash) and call ruby directly, it works.
<John_Ivan>
but when it's in a .sh script, it doesn't.
<sam113101>
they're different environments
<John_Ivan>
I.. see.
<leftylink>
;q
jpn has joined #ruby
<adam12>
John_Ivan: `gem env` inside your shell, and see what GEM_HOME is set to. Then try running it from the script, and see if the value is different.
hellstabber has quit [Quit: Connection closed for inactivity]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cartdrige has quit [Ping timeout: 248 seconds]
<John_Ivan>
yes! I am happy now.
jpn has quit [Ping timeout: 260 seconds]
toshiba__ has joined #ruby
crux73 has quit [Ping timeout: 250 seconds]
nirvdrum has quit [Quit: nirvdrum]
reset has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
eron has quit [Quit: Client closed]
jpn has joined #ruby
gonix has joined #ruby
jpn has quit [Ping timeout: 250 seconds]
<rapha>
sam113101: okay, that went crazy impressive real quick. i was expecting more people to respond and the number of characters to slowly drop. you just basically hole-in-one'd it o_O
<rapha>
<3-ing the def x= notation; TIL!
Thanzex32 has quit [Read error: Connection reset by peer]
Thanzex32 has joined #ruby
eddof13 has joined #ruby
drainpipe has joined #ruby
drainpipe has quit [Ping timeout: 252 seconds]
soknte5 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]