vikaton has quit [Quit: Connection closed for inactivity]
podlech has joined #ruby
jenrzzz has joined #ruby
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
anisha has joined #ruby
Cyrus has quit [Remote host closed the connection]
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
dionysus69 has joined #ruby
podlech has quit [Quit: WeeChat 1.7.1]
kobain has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
last_staff has joined #ruby
guardianx has quit [Ping timeout: 240 seconds]
latemus has quit [Quit: leaving]
latemus has joined #ruby
iliketurtles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
last_staff has quit [Remote host closed the connection]
Cyrus has joined #ruby
faraco has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<faraco>
hmm, it seems ruby is *very* popular in web development. Is there anything cool that is going on other than web development.
<faraco>
I only know somethings like metasploit, puppet and chef..but thats it. How about AI/machine learning, scientific stuff and desktop applications?
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 258 seconds]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Guest51472 is now known as CrazEd
charliesome has joined #ruby
CrazEd is now known as Guest90361
Silthias has quit [Ping timeout: 260 seconds]
skade_ has joined #ruby
Silthias has joined #ruby
charliesome has quit [Client Quit]
_whitelogger has joined #ruby
unpleased has joined #ruby
mikecmpbll has joined #ruby
Ishiro has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
pandaant has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 240 seconds]
fusta has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
scottschecter has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
last_staff has quit [Quit: flies awaaaaaaayyyyyyyy]
scottschecter has joined #ruby
nobitanobi has joined #ruby
blackmes1 has joined #ruby
Qchmqs has quit [Read error: Connection reset by peer]
Qchmqs has joined #ruby
blackwind_123 has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
t-recx has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
oleo has quit [Quit: Verlassend]
Guest90361 is now known as CrazEd
CrazEd is now known as Guest60947
romank has joined #ruby
romank has quit [Read error: Connection reset by peer]
romank has joined #ruby
romank has quit [Read error: Connection reset by peer]
nobitanobi has quit [Ping timeout: 260 seconds]
romank has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
cajone has quit [Ping timeout: 260 seconds]
blackmes1 has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
guardianx has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
charliesome has joined #ruby
guardianx has quit [Remote host closed the connection]
nadir has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
Silthias has joined #ruby
cajone has joined #ruby
binaryplease has joined #ruby
romank has quit [Read error: Connection reset by peer]
Silthias has quit [Ping timeout: 260 seconds]
blackmes1 has quit [Ping timeout: 268 seconds]
Silthias1 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<z64>
hey all. curious if anyone here happens to have experience using a similar toolchain to my project; nobrainer(rethinkdb), sinatra, and haml. been having some strange issues
romank has joined #ruby
<z64>
essentially: we can inspect model instances fine via pry, however if we use the same model query inside of a controller to render into our view the object is corrupt
roamingdog has joined #ruby
<z64>
in fact, not only the model, but queries about the table return incorrect information as well, like getting Model.count
bkxd has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96 has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
Guest96 has joined #ruby
romank has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
roamingdog has quit [Remote host closed the connection]
User458764 has joined #ruby
romank has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
cahoots_ has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Sweetlie_ has joined #ruby
Sweetlie has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
cahoots_ has quit [Ping timeout: 260 seconds]
romank has quit [Read error: Connection reset by peer]
Mortomes|Work has quit [Ping timeout: 260 seconds]
rwb has quit [Ping timeout: 260 seconds]
Silthias1 has quit [Ping timeout: 255 seconds]
HoierM has joined #ruby
Silthias has joined #ruby
tomphp has joined #ruby
romank has joined #ruby
hinbody_ has joined #ruby
bkxd_ has joined #ruby
Guest60947 is now known as CrazEd
hinbody has quit [Disconnected by services]
hinbody_ has quit [Client Quit]
CrazEd is now known as Guest47952
tomphp has quit [Client Quit]
hinbody has joined #ruby
sepp2k has joined #ruby
tomphp has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
totimkopf has quit [Quit: leaving]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fusta has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather_ has joined #ruby
roamingdog has joined #ruby
unshadow has joined #ruby
fusta has joined #ruby
bkxd_ has quit [Quit: leaving]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pupsicle has joined #ruby
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
pppktz has joined #ruby
JeanCarloMachado has joined #ruby
binaryplease1 has joined #ruby
mwlang has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
binaryplease has quit [Ping timeout: 260 seconds]
binaryplease1 is now known as binaryplease
rfoust has joined #ruby
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
ramortegui has joined #ruby
antgel has quit [Ping timeout: 258 seconds]
rwb has joined #ruby
drcode has joined #ruby
cdg has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest47952 is now known as CrazEd
fusta has quit [Ping timeout: 268 seconds]
CrazEd is now known as Guest95014
JeanCarloMachado has joined #ruby
charliesome has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
Lavan: "for nil:NilClass" means that you're invoking - on nil (an instance of NilClass)
<adam12>
Lavan: nil doesn't have a - method (it has very few methods).
gaucheph has joined #ruby
<apeiros>
and since you're calling - on `cipherText[cursor]`, it follows that this expression evaluates to nil.
<adam12>
I'd say cursor has a value that technically becomes out of bound.
<Lavan>
from left or right?
<apeiros>
you can't go out of bounds from left
<apeiros>
negative values are interpreted as from the right
<hxegon>
Lavan: also, put some space around operators (+, -, ^, >, +=, =, =<, etc)
<apeiros>
ok, you can go out of bounds from left by having a negative value with a larger magnitude than the array size.
<Lavan>
I'll put spaces...
<hxegon>
Lavan: this is a stylistic thing, and shouldn't affect the error. Just a readability thing
<Lavan>
but, there's a check at the end of the inner loop. it should keep the cursor inside the array, why it doesn't do it?
<Lavan>
yes, i was wondering
<apeiros>
hm, `cursor=<0` doesn't raise an exception? I'm fascinated
<apeiros>
you probably wanted <=
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
roamingdog has joined #ruby
<hxegon>
^
<ljarvis>
that should raise..
<apeiros>
it does raise one here…
kith has quit [Read error: Connection reset by peer]
sczizzo has quit []
<Lavan>
still raises an exception apeiros
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
enterprisey has joined #ruby
<Lavan>
but wait, it's a different error
<ljarvis>
a syntax error? :D
Silthias has quit [Ping timeout: 240 seconds]
lagweezle_away is now known as lagweezle
<Lavan>
363 out of char range
<Lavan>
it shouldn't happen...
<hxegon>
"should" or "shouldn't" doesn't matter when you are debugging, because clearly it does happen :)
hkdsun has quit [Quit: hkdsun]
Silthias has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
ColeHub has quit [Quit: Snooze.]
<hxegon>
Lavan: just working through this in my head: so on the first sub-array of key, sub[2].times is supposed to run 87 times?
<arthurl>
adam12 so the problem is with the gem binary itself
<arthurl>
simply executing 'gem' results in the same error
<adam12>
arthurl: same require error?
<adam12>
(ie. same file referenced)
<arthurl>
adam12 correct
<Lavan>
yes hxegon
<adam12>
sounds like that gem installed broken and has messed up the rest of Rubygems
raspado has joined #ruby
jrafanie has joined #ruby
<hxegon>
Lavan: I think one of the reasons this is going to be hard to debug is because all the domain concepts here are thrown together. I'd try extract things into clean separated objects and the problem should become clear
<Lavan>
hxegon, it should run through cipherText sub[2] times for each subarray, apply the operation(^,+,-) and if you reach the end of cipherText, you apply the operations (^,+,-) in the opposite direction
<hxegon>
Lavan: for example, you could try making a struct object that contains the subkey arrays.
<hxegon>
In this way you could separate the operation and domain knowledge of applying a subkey to a cypherText character, and controlling cursor and dir
<arthurl>
adam12 so it seems rubygems is broken right?
<Lavan>
you just remmember that sub[0] is the operation, sub[1] is the paramater for the operation, and sub2 is the amount of cells you apply the subkey(so for example if you have sub[0]=0, sub[1]=87, sub[2]=13, you xor each cell with 87 for 13 cells)
<arthurl>
i have no idea how to debug or fix this issue- i'm def not a rubygems expert
<adam12>
arthurl: I'm more inclined to blame that gem.
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mooser has joined #ruby
<apeiros>
`key.each do |operation, parameter, cells|`
<hxegon>
Lavan: so each subkey can needs to operate against multiple characters of cyphertext?
<adam12>
arthurl: I'd try removing that gem and see if it fixes it. You might have to manually remove the source of it tho (since I bet `gem uninstall` is busted).
<apeiros>
makes the code at least a bit more readable
tvon has quit [Remote host closed the connection]
<Lavan>
yes
<hxegon>
interesting
<Lavan>
btw, im not very familiar with ruby structs...
<adam12>
arthurl: Try `gem uninstall executable-hooks` but I bet it will fail. Manually remove with something like `rm -rf /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/executable-hooks-1.3.2`
chrisarc1nd is now known as chrisarcand
<Lavan>
but, all the current array is hardcoded, it would be a shame to rewrite it as an array of structs
<arthurl>
thx adam12 yup the first command failed w/ the same error
<hxegon>
Lavan: it would make the logic of what's going on much clearer
<adam12>
arthurl: It might be a Rubygems version bug. 1.9.3 is ancient.
<hxegon>
Lavan: hold on though, let me soak the code in for a bit longer
<adam12>
arthurl: Hopefully that gets you moving. I gotta sign off.
<arthurl>
thanks adam12 much appreciated
<arthurl>
gonna give the manual uninstall a try
tvon has quit [Ping timeout: 240 seconds]
<arthurl>
so now i get a different error
<arthurl>
'/usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/gem-wrappers-1.2.7/lib/rubygems_plugin.rb:11:in `require': cannot load such file -- gem-wrappers (LoadError)'
duckpupp1 has quit [Ping timeout: 260 seconds]
AndBobsYourUncle has joined #ruby
<hxegon>
Lavan: I think this bug would disappear if you went about applying the operations forward then backwards differently instead of manually trying to control the cursor.
<Lavan>
how can i do such a thing without a cursor?
<hxegon>
Lavan: still digesting, give me a sec
<Lavan>
no problem
hinbody has quit [Quit: leaving]
outreachdan has joined #ruby
lmc has joined #ruby
ben_____ has quit [Remote host closed the connection]
ben_____ has joined #ruby
<hxegon>
Lavan: To be 100% clear here, We are just applying the same operations to the result of the first pass, but backwards? No other differences?
ben_____ has quit [Remote host closed the connection]
ben_____ has joined #ruby
<Lavan>
maybe i figuered it all wrong...
<Lavan>
i have this example
ahrs has quit [Remote host closed the connection]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lavan>
Given the cipherText: "aaaaaaaaaaeeeeehhhhhhhhhgggghh" and the key: [[1,5,10],[1,1,5],[2,2,9],[2,1,8]] we should end up with: "ffffffffffffffffffffffffffffff"
ahrs has joined #ruby
<Lavan>
basically no other differences, same ops...
lmc has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
purrletariat is now known as cats
<Lavan>
yes, that how it should go!
ColeHub has joined #ruby
<Lavan>
i don't understand what's wrong hxegon
choke has joined #ruby
<Lavan>
did you see the example?
rwb has quit [Remote host closed the connection]
<hxegon>
Lavan: not really enough info from the example to figure out what it wants operationally
rkazak has quit [Quit: Sleep.....ing....]
mjuszczak has quit []
<apeiros>
in case you're still riddling why it goes out of bounds: you have an off-by-one error in both directions
fusta has quit [Quit: Leaving]
<apeiros>
actually only in one direction
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<apeiros>
cursor == length is already out of bounds
<Lavan>
hxegon , i have the original excersize in front of me, should i send it to you?
<Lavan>
apeiros, doesn't go out of bound anymore....
<hxegon>
still not solved, but it's running, and much easier to fix from here IMO
mtkd has joined #ruby
jusa has joined #ruby
<hxegon>
applies the operation forward, then backwards in the same way, but everything has meaningful names, and you don't have to manually manipulate cursor/dir
<Lavan>
i actually don't understand that well the new syntax
jenrzzz has quit [Ping timeout: 276 seconds]
brent__ has quit [Remote host closed the connection]
<hxegon>
Lavan: That's ok :), Just start pointing out what you don't understand and I'll go through it with you
mooser has quit [Remote host closed the connection]
<hxegon>
actually, hold on. I can structure / comment this to be a bit more readable and we can go from there
<Lavan>
i mean, it gives, the same result anyway...
hndk has joined #ruby
<hxegon>
Lavan: the loop that applied the operations forward and backward was hard to do manually, so I just didn't. I separated applying the operations, reversing it, and applying again into line 13
hndk has quit [Remote host closed the connection]
<Lavan>
i see
<Lavan>
kind off
ger0 has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
<Lavan>
what do you think the problem might be? maybe the way i read the bin files?
<Lavan>
more specifically the encryptedmessage.bin?
<hxegon>
Lavan: it's possible, but hard to say. I don't really deal with binary files or crypto stuff like, ever, so might not be the best person to answer that
<SegFaultAX>
Those implementations are equivalent.
<baweaver>
Though `for ... in` is exceedingly rare in Ruby.
<baweaver>
most tend to use `each`
<SegFaultAX>
It's fairly uncommon to use external iteration like that in Ruby, but perhaps more familiar if you're from another language
dcunit3d has joined #ruby
<Lavan>
actually, yes, i get the reduce part now, thanks
<SegFaultAX>
baweaver: I chose external iteration to make it compatible with *most* other languages.
<Lavan>
i even like it a lil... but why the name? why reduce?
<SegFaultAX>
Lavan: Would fold or lfold make it any clearer? :)
<hxegon>
Lavan: I prefer it's other name: fold
<hxegon>
^^
<baweaver>
you're reducing a collection into a single element
<SegFaultAX>
Maybe.
<baweaver>
a single element can be an array or hash
<SegFaultAX>
You could certainly reduce a tree into another tree, so that language is rather ambiguous
<baweaver>
if we're being exceedingly pedantic about it.
<Lavan>
it makes sense now
<SegFaultAX>
We aren't, we're being precise. And "single element" is anything but.
<baweaver>
You can probably find faults with any name.
* baweaver
sighs
<Lavan>
so what the hell? why it isn't deciphered? lol
<SegFaultAX>
Generally speaking it's called reduce/fold because that's what it's called. You could give a bunch of examples that demonstrate why that name makes sense, but at some point an apple is just an apple and that's the name we use. :)
<baweaver>
I'd have to read back over the code to know myself
<SegFaultAX>
Not very satisfying answer, I know.
<Lavan>
the logic is implemented exactly as they wanted in the excersize...
nekomune has joined #ruby
<hxegon>
I'll reread and double check too
<elomatreb>
I like the name inject, since you often inject an operation (e.g. +) in between the elements
ben_____ has quit [Remote host closed the connection]
ben_____ has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hxegon>
ahhh, ok. Lavan: the logic is different. every operation needs to apply where the one before it left off, and only reverse if you get to an end with remaining operations.
AndBobsYourUncle has joined #ruby
jenrzzz has joined #ruby
<Lavan>
how is that different from our code?
<apeiros>
I found lavan's implementation rather straightforward.
<apeiros>
the naming could have used improvement, but otherwise it was quite readable.
<Lavan>
thx lol :P
rkazak has joined #ruby
<hxegon>
starting to agree with you there. Totally misunderstood what the problem was until I reread that
<hxegon>
so manual index manipulation actually makes sense here.
roamingdog has joined #ruby
hinbody has joined #ruby
BSaboia has joined #ruby
<Lavan>
so...
<hxegon>
I have a trick that might help here, give me a second
gusrub has quit [Remote host closed the connection]
<SegFaultAX>
Lavan: What was the original problem statement?
<Lavan>
i sent it earlier in a gist, i'll send it again
<ruby[bot]>
hxegon: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
rwb has joined #ruby
<hxegon>
hmm, that one works in pry for me
nicolai86 has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 260 seconds]
<Lavan>
it's a riddle
<Lavan>
that what it is...
<elomatreb>
hxegon: The site the bot uses as backend is broken
<Lavan>
i'm not cheating
<hxegon>
I broke it Xd
balazs has joined #ruby
<Lavan>
this ruby bot is so cute
<hxegon>
Anyway, that snippet up until the .map { |i| arr[i] } creates a sequence you can use instead of doing the stuff with cursor
<hxegon>
and if you can figure out how to use it with the problem, then you deserve a good grade/whatever
<Lavan>
it is not for a grade, I'm not cheating...
<hxegon>
all the same, I have to get back to work. gl Lavan
<Lavan>
you think it'd be better to treat it as a string?
<Lavan>
thanks
ddffg has quit [Ping timeout: 245 seconds]
<elomatreb>
You can get a C-like bytestring if you use the ASCII_8BIT encoding. Maybe useful
nicolai86 has joined #ruby
skade_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
NUL won't terminate it, though :)
ramortegui has quit [Quit: Ex-Chat]
GinoMan has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
blackmesa has joined #ruby
enterprisey has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
skade_ has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
gusrub has quit [Ping timeout: 260 seconds]
enterprisey has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
blackmesa has joined #ruby
<Eiam>
how incompatible are ruby 2.0 and ruby 2.3? if I symlinked in ruby 2.3 when people expected 2.0 would they be generally better off than having nothing at all? i.e. crash
gaucheph has quit [Quit: Zzzz...]
<Eiam>
in my own experience I noticed a few issues that required updating, so a blind symlink in probably wouldn't work in that case
blackwind_123 has quit [Ping timeout: 268 seconds]
lmc has quit [Ping timeout: 260 seconds]
roamingdog has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.7]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
tomphp has joined #ruby
matcouto has joined #ruby
ResidentBiscuit has quit [Quit: Critical Miss]
Mutter has joined #ruby
tomphp has quit [Client Quit]
gusrub has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
toretore has quit [Ping timeout: 255 seconds]
Cohedrin has joined #ruby
Mutter has quit [Ping timeout: 258 seconds]
m0d has quit [Remote host closed the connection]
tvon has quit []
beauby has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
mooser has quit [Remote host closed the connection]
<havenwood>
Eiam: They are mostly compatible. You'll run into things like parts of the stdlib, like curses, being removed and gemified between versions.
Sweetlie_ has quit [Quit: leaving]
hobodave has quit [Ping timeout: 255 seconds]
<Eiam>
yeah.. except for scenarios when they aren't, you've traded an obvious failure for a maybe more sinister one
loincloth has quit []
<allisio>
Lavan: Could you post your most recent attempt?
Lavan has quit [Ping timeout: 260 seconds]
m0d has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
skade_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
pnbeast has joined #ruby
<cahoots>
hi, i installed a gem to a local directory, and now i want to import it with require. however, when i do "require_relative 'gem_dir/gems/thor-0.19.4/lib/thor.rb'", it says "LoadError: cannot load such file -- thor/base". any ideas how to fix this?
skade_ has quit [Ping timeout: 260 seconds]
<hxegon>
cahoots: you are trying to import a specific file from the gem, rather than the entire gem
choke has quit [Remote host closed the connection]
<cahoots>
hmm no deice
<cahoots>
dice
<hxegon>
cahoots: what's the error?
tocky has joined #ruby
<cahoots>
it says it can't find a file by that name. i think the issue is that the require statements within thor don't have a nice path like this, and instead rely on the $LOAD_PATH being set up to include that file
<cahoots>
it's ok though, thanks anyways :)
<Radar>
cahoots: Why not just require 'thor'?
biberu has quit []
DTZUZU has quit [Read error: No route to host]
oleo__ has quit [Ping timeout: 260 seconds]
pppktz has joined #ruby
<allisio>
cahoots: Add your local directory to $LOAD_PATH, then do ^.
pppktz has left #ruby [#ruby]
<cahoots>
allisio, thanks that's what i'll do. Radar, i can with a change to $LOAD_PATH, just didn't want another thing for security to ponder