<pabs>
amperry: without the double quotes the identifier in the CREATE TABLE statement will get implicitly lower-cased by postgres, but because of the double quotes in the INSERT statement the identifier won't be implicitly lower-cased, and you'd end up with the error above
<pabs>
amperry: hey, uh
<pabs>
what's up with this: pg.exec('set search_path to public;')
Rodya_ has joined #ruby
<pabs>
amperry: you're resetting the search path before executing each command
<amperry>
grrr... I was testing something, but I think it's the same either way. Let me take that out and see.
<pabs>
amperry: ok
jenrzzz has joined #ruby
Mia has quit [Ping timeout: 260 seconds]
<amperry>
nope, taking that out changes nothing.
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<amperry>
the schema and the tables were created by calling '$ psql -u <user> < file.psql'
runescape07rsps has quit [Quit: Leaving]
<pabs>
amperry: is it just creates and inserts in teh source file, like could you do a .gsub(/(create table|insert into) "[^"]+"/, '\1 \2') to strip the quotes?
<amperry>
I'm trying to write something that reads the files and creates/switches to the schema based on a command-line switch, so I don't have to manually go in to the (many) files and prepend 'create schema/set search_path' to them.
<amperry>
well, since it's early in this project, I don't see any harm in trying that.
<amperry>
(It's actually very late in the project, but early in this stage :)
<amperry>
drat. I don't think it's going to work, unless I can find every 'SELECT ... FROM "TABLE NAME"/INNER JOIN "TABLE NAME"/LEFT JOIN "TABLE NAME"' and fix it.
brent__ has quit [Ping timeout: 260 seconds]
<pabs>
amperry: probably not, unless you want to go the other direction and make sure everything is using the exact same case for the table names
<pabs>
amperry: i'll see if i can find an option to turn off that behavior, but i'm not aware of one
Dimik has joined #ruby
<amperry>
that shouldn't be a problem. If I could use the uppercase names (loathsome thought they are), I would prefer that.
railswebdev has joined #ruby
<pabs>
amperry: i don't see an option to disable that behavior in pg, i think you'll have to patch up the generated sql
<pabs>
:/
<amperry>
bah
<amperry>
might be easier to write something that just sticks the right 'create schema/set search_path' statements at the front of these files and just run them through '$ psql -u <user> < file.psql'
<amperry>
durnit
<pabs>
possibly, yeah
bkxd_ has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
im0nde has quit [Ping timeout: 276 seconds]
TheBloke has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 276 seconds]
qakqed has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
<amperry>
aaaaand somehow, through all of that massaging of my stage_legacy.rb file, it now works with double-quoted uppercase table names with spaces. So who knows?
__Yiota has joined #ruby
johnny56 has joined #ruby
marr has quit [Ping timeout: 276 seconds]
troys is now known as troys_
grymmjack has quit [Ping timeout: 268 seconds]
amperry has quit [Quit: suppertime]
mydog2 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joast has quit [Quit: Leaving.]
patarr has joined #ruby
ur5us has joined #ruby
qakqed has quit [Quit: Konversation terminated!]
railswebdev has joined #ruby
mydog2 has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
rfoust has joined #ruby
brent__ has joined #ruby
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
FastJack has quit [Ping timeout: 258 seconds]
caral has joined #ruby
isBEKaml has joined #ruby
tau has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
cyphase has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
gnufied has quit [Ping timeout: 276 seconds]
nb_bez____ has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 240 seconds]
caral has quit [Quit: caral]
pohvak has quit []
meshsmith has quit [Remote host closed the connection]
FastJack has joined #ruby
grymmjack has joined #ruby
FastJack has quit [Ping timeout: 258 seconds]
jak has quit [Remote host closed the connection]
jak has joined #ruby
d^sh_ has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
gusrub has quit []
umaaji has quit [Quit: Leaving...]
d^sh has quit [Ping timeout: 260 seconds]
KeyJoo has quit [Ping timeout: 246 seconds]
Cohedrin_ has joined #ruby
cyphase has quit [Read error: Connection reset by peer]
railswebdev has joined #ruby
gizmore has joined #ruby
johnny56 has quit [Remote host closed the connection]
FastJack has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
comet23 has joined #ruby
<comet23>
hello
<comet23>
what method can i use to see if the input is an integer besides to_i?
<comet23>
basically, i'm working with a string that's being inputed as a number, this is for a tic tac toe game, but the problem i'm having is that if the input is a letter converting it using to_i will output an integer of 0 and i'm working with arrays and this method is supposed to take a number and subtract 1 from it to return the correct index
<elomatreb>
Kernel#Integer is your friend, it will error on invalid strings
<comet23>
so Integer(input, base)?
<elomatreb>
base is optional and defaults to 10, but yes
<elomatreb>
Or, rather, it does heuristics with base prefixes
<comet23>
def input_to_index(input)
mydog2 has quit [Ping timeout: 276 seconds]
mydog2 has joined #ruby
<comet23>
how can i make it not error out but give me a negative value like -1?
uZiel has joined #ruby
uZiel has quit [Remote host closed the connection]
<elomatreb>
comet23: Use a rescue block
<comet23>
so just use a rescue keyword before the variable?
<elomatreb>
1. Methods have an implicit begin block, so you can just use rescue without at that level
<elomatreb>
2. Return is optional, the last evaluated value will be returned
<comet23>
no i need to subtract 1 from the input
<comet23>
to get the array index
<elomatreb>
3. You should always specificy what exception you want to handle, since otherwise you might end up silencing other errors from your code
<comet23>
but the last thing evaluated will be returned yes, but if i use the return explicitly i won't have the code that's at the bottom of the method run
<matthewd>
I'm not sure I'd call anything that returns -1 on invalid input an elegant solution, but that's a higher level concern ¯\_(ツ)_/¯
<elomatreb>
semi-related: I wish you could specify an error class with the modifier rescue, so often a rescue block is just "return this value instead"
<elomatreb>
But I don't feel comfortable just rescuing everything
<havenwood>
matthewd: rails blarg; echo $? #=> 1
<havenwood>
matthewd: ;-)
charliesome has joined #ruby
<matthewd>
havenwood: See? Rails does it, ergo not elegant. QED. ;)
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cam27 has quit [Quit: cam27]
itsautomatisch has quit [Ping timeout: 276 seconds]
drcode has joined #ruby
railswebdev has joined #ruby
Pepu has quit [Ping timeout: 240 seconds]
rubylegend_ has joined #ruby
ledestin has joined #ruby
rubylegend2092 has quit [Ping timeout: 240 seconds]
rubylegend_ is now known as rubylegend2092
jak has quit [Remote host closed the connection]
jak has joined #ruby
nobitanobi has joined #ruby
zacts has quit [Ping timeout: 276 seconds]
enterprisey has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 260 seconds]
r3vDev has quit [Quit: Leaving.]
cam27 has joined #ruby
<V1s1ble>
elomatreb, cool thanks. So I can get to this: [{"example.net"=>"brit"}, {"example.net"=>"foo.brit"}, {"bob.com"=>""}]
<V1s1ble>
if I take that and use group_by { |o| o }, I get the entire dictionary as what it's grouped by, o[0] gives me a nil pointing to an array of hashes
<elomatreb>
I'm not sure I follow, I'd start with something like this: https://eval.in/824067
<elomatreb>
Then I'd probably use transform_values and map to remove the domain suffix from the entries in the array
mim1k has joined #ruby
__Yiota has joined #ruby
zacts has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
tau has joined #ruby
jottr has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
mydog2 has quit [Ping timeout: 255 seconds]
mydog2 has joined #ruby
troys_ is now known as troys
<elomatreb>
V1s1ble: Not exactly beautiful but it meets your spec: https://eval.in/824077
<dminuoso>
elomatreb: Hehe. I spent all evening trying to avoid the extra stack frame which seemed impossible.
<dminuoso>
(And thus avoiding an unnecessary trace and leave ins)
aufi has quit [Ping timeout: 255 seconds]
<dminuoso>
But I couldnt make it work in that few instructions
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
<dminuoso>
elomatreb: Of course it can be argued that sprintf will be slower since it has to dispatch an actual method first (whereas "a#{b}c" has optimized instructions) - but the goal was to reduce the number of instructions.
nobitanobi has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
piyush: Pick the proper commit for your revision.
<dminuoso>
piyush: The bison part in the first half of it mostly. The second half in that file is just the hackish lexer.
<dminuoso>
Unsure how that related to code smells though
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<piyush>
thanks @dminuoso
astrobunny has quit [Ping timeout: 276 seconds]
tgragnato has joined #ruby
ascarter has joined #ruby
jaruga________ has joined #ruby
tgragnato_ has joined #ruby
jaruga_________ has quit [Read error: Connection reset by peer]
postmodern_ has quit [Quit: Leaving]
tgragnato has quit [Ping timeout: 276 seconds]
czerasz has joined #ruby
jottr has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
Rodya_ has quit [Ping timeout: 276 seconds]
im0nde has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
mogaj has quit [Remote host closed the connection]
czerasz has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
s1kx has quit [Quit: s1kx]
cdg has quit [Ping timeout: 260 seconds]
czerasz has joined #ruby
pandaant has quit [Quit: Lost terminal]
Fernando-Basso has joined #ruby
zapata has quit [Quit: WeeChat 1.9]
anisha has quit [Ping timeout: 276 seconds]
nixmaniack has quit [Remote host closed the connection]
nixmaniack has joined #ruby
nixmaniack has quit [Remote host closed the connection]
<zenspider_>
piyush: have you seen reek and other similar projects?
nixmaniack has joined #ruby
zenspider_ is now known as zenspider
zenspider has quit [Changing host]
zenspider has joined #ruby
anisha has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rohitpaulk has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kolgomorov has quit [Ping timeout: 240 seconds]
kruppm has quit [Ping timeout: 246 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
Guest85030 is now known as julian
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
mogaj has joined #ruby
rohitpaulk has joined #ruby
charliesome has quit [Ping timeout: 258 seconds]
<octomancer>
hi, i have an array, a1, and i want to append the values from another array, b1. the best i can come up with after looking at the docs for the Array Class is this: a1.push(b1).flatten!
<octomancer>
but that seems inelegant
<octomancer>
i think there is a more ruby way to do it, can anyone elighten me please?
gwilkes has quit [Read error: Connection reset by peer]
<elomatreb>
octomancer: a1.concat b1
<octomancer>
tyvm
<octomancer>
how did i miss concat?! dur
patarr has joined #ruby
bkxd_ has quit [Read error: Connection reset by peer]
bkxd_ has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
kruppm has joined #ruby
valentin is now known as vali
vali has left #ruby [#ruby]
jottr has joined #ruby
ged has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
mahlon has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
gwilkes has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
ged has joined #ruby
minimalism has joined #ruby
Ishido has quit [Ping timeout: 276 seconds]
mahlon has joined #ruby
OS-28295 has joined #ruby
<OS-28295>
Hello guys : when i try to install a packet i have this error : ] exec: gem install ruby-oci8
mim1k has quit [Read error: Connection reset by peer]
VladGh_ has quit [Remote host closed the connection]
ldnunes has joined #ruby
VladGh has joined #ruby
patarr has joined #ruby
z3uS has quit [Quit: /dev/null]
uZiel has quit [Ping timeout: 248 seconds]
<OS-28295>
agent_white, thanks but still I have some trouble the ruby-oci8 don't want to install. Is there is any things that I should be aware ? why it does not work ?
patarr has quit [Ping timeout: 276 seconds]
_2easy has joined #ruby
nixmaniack has quit [Remote host closed the connection]
z3uS has joined #ruby
nixmaniack has joined #ruby
ascarter has joined #ruby
synthroid has joined #ruby
Patadas has joined #ruby
rrawlins has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
czerasz has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
ascarter has quit [Ping timeout: 255 seconds]
czerasz has joined #ruby
synthroi_ has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 is now known as dionysus69
antgel has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
umaaji has quit [Quit: Leaving...]
Rodya_ has quit [Ping timeout: 255 seconds]
rohitpaulk has quit [Ping timeout: 276 seconds]
synthroid has quit [Ping timeout: 255 seconds]
im0nde has joined #ruby
rohitpaulk has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
synthroid has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pavelz has joined #ruby
<pavelz>
how does one call @var when it is created in global space?
<pavelz>
as opposed to var
mniip has joined #ruby
synthroi_ has quit [Ping timeout: 268 seconds]
<pavelz>
just curious
charliesome has joined #ruby
Ishido has joined #ruby
<elomatreb>
pavelz: Methods you define and instance variables you set outside of a class are on Object
<elomatreb>
So it's still an instance variable, just not a very useful one
dropsh0t has joined #ruby
joast has joined #ruby
dropsh0t has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 276 seconds]
agent_white has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
OS-28295 has left #ruby ["Leaving"]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dropsh0t has joined #ruby
millerti has joined #ruby
roamingdog has joined #ruby
dropsh0t has left #ruby [#ruby]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has joined #ruby
splitshot has joined #ruby
anisha has quit [Read error: Connection reset by peer]
roamingdog has quit []
nixmaniack has quit [Remote host closed the connection]
im314ous has quit [Ping timeout: 276 seconds]
<dminuoso>
pavelz: Ruby has no global space.
mim1k has joined #ruby
<dminuoso>
pavelz: To understand why would help you here.
<dminuoso>
Well it does through $ variables.
Patadas has quit [Ping timeout: 276 seconds]
chimkan has joined #ruby
anisha has joined #ruby
nixmaniack has joined #ruby
Rodya_ has joined #ruby
mogaj has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
jottr has joined #ruby
anisha has quit [Read error: Connection reset by peer]
rohitpaulk has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
itsautomatisch has joined #ruby
tvw has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
pier has joined #ruby
pier is now known as pier297
pier297 has quit [Client Quit]
cseder has joined #ruby
nixmaniack has quit [Remote host closed the connection]
nixmaniack has joined #ruby
_moep_ has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #ruby
romank has joined #ruby
rfoust has joined #ruby
cam27 has joined #ruby
nixmaniack has quit [Ping timeout: 255 seconds]
mim1k has quit [Disconnected by services]
shinnya has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
czerasz has quit [Quit: Ex-Chat]
mim1k has joined #ruby
charliesome has joined #ruby
simmaniac has joined #ruby
sysvalve has quit [Ping timeout: 276 seconds]
DLSteve has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
cdg has joined #ruby
synthroid has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
skweek has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
dionysus69 has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ltem has joined #ruby
bkxd_ has quit [Ping timeout: 276 seconds]
mogaj has joined #ruby
__Yiota has joined #ruby
Rodya_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
mogaj has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
ujjain has quit [Remote host closed the connection]
ujjain has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
mostlybadfly has quit [Quit: Connection closed for inactivity]
glcx has joined #ruby
roshanavand has joined #ruby
patarr has joined #ruby
ta_ has quit [Remote host closed the connection]
railswebdev has joined #ruby
ascarter has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
rohitpaulk has joined #ruby
nahra has quit [Remote host closed the connection]
nahra has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
savoir-faire has quit [Ping timeout: 255 seconds]
savoir-faire has joined #ruby
aglorei has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
ddddddd has quit [Ping timeout: 268 seconds]
<Cork>
i'm using bundler + rvm in system wide installation, but Gemfiles with github references doesn't work
mim1k has quit [Read error: Connection reset by peer]
<Cork>
anyone know how to get around that?
bkxd has joined #ruby
<dminuoso>
Cork: What does "doesn't work" mean
jottr has quit [Ping timeout: 260 seconds]
<Cork>
dminuoso: every user other then root gets The git source <url> is not yet checked out. Please run `bundle install` before trying to start your application
<Cork>
the normal gems works but none of the git or github link ones
brent__ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
<dminuoso>
Cork: what does your bundle env look like?
aupadhye has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
<Cork>
dminuoso: it lists GIT ... and the git repos if that is what you mean
<canton7>
!GIT
<canton7>
ah, wrong channel
<dminuoso>
Cork: !gist
<dminuoso>
?gist Cork
<ruby[bot]>
Cork: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<dminuoso>
papelycarton: Ah, so "ca_path" is slightly misleading. Essentially TLS relies on a chain of certificates. But the root certificates must be implicitly trusted.
<dminuoso>
papelycarton: All OS (and browsers can bring their own too) have a set of pre-installed root certificates. If you want to trust a specific (root) certificate without exposing it to the entire OS, you can use ca_file for this it looks like.
<dminuoso>
(i.e. a specific (root) certificate that is _not_ on your OS)
kolgomorov has quit [Ping timeout: 276 seconds]
<papelycarton>
dminuoso: so if I don't specify a root CA Ruby will trust the certificates that are on the OS?
<dminuoso>
papelycarton: Yeah.
bkxd has joined #ruby
<papelycarton>
dminuoso: thank you :)
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
chimkan has quit [Quit: chimkan]
tvw has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
mogaj has quit [Remote host closed the connection]
cschneid_ has joined #ruby
enterprisey has joined #ruby
cevett has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
rgr has quit [Ping timeout: 246 seconds]
mogaj has joined #ruby
papelycarton has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
aufi has quit [Ping timeout: 255 seconds]
hightower2 has joined #ruby
anisha has joined #ruby
Rodya_ has joined #ruby
conta has quit [Ping timeout: 255 seconds]
roshanavand has quit [Quit: roshanavand]
kruppm has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
patarr has joined #ruby
enterprisey has quit [Ping timeout: 268 seconds]
djbjd has quit [Quit: djbjd]
bed7 has joined #ruby
brent__ has joined #ruby
anisha_ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
cbyrda has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
brent___ has joined #ruby
brent__ has quit [Read error: Connection reset by peer]
anisha_ has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
enterprisey has joined #ruby
SteenJobs has joined #ruby
itsautomatisch has quit [Ping timeout: 240 seconds]
mim1k has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
t-recx has joined #ruby
perniciouscaffei has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
jaruga________ has quit [Quit: jaruga________]
rohitpaulk has quit [Ping timeout: 246 seconds]
itsech0 has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #ruby
itsautomatisch has joined #ruby
SteenJobs has quit [Quit: peaceee]
troys has joined #ruby
<jokke>
hi
<jokke>
i'm trying to install ruby 2.0.0 on arch
<jokke>
but i'm having several issues
<jokke>
openssl i figured out but now the build fails with parse.c:4720:16: error: too few arguments to function ‘yylex’
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jokke>
any ideas?
itsautomatisch has quit [Quit: Leaving]
__Yiota has joined #ruby
ddddddd has joined #ruby
DaveTaboola has joined #ruby
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #ruby
mim1k has joined #ruby
elsevero has quit [Quit: elsevero]
bkxd has joined #ruby
dviola has joined #ruby
amclain has joined #ruby
ascarter has joined #ruby
skinnymg1 has joined #ruby
conta has joined #ruby
andikr has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 276 seconds]
dcunit3d has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ryzokuken has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
skweek has quit [Ping timeout: 260 seconds]
griffindy has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
Serpent7776 has quit [Quit: Leaving]
isBEKaml has joined #ruby
GinoMan2440 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<darix>
jokke: now that is a quiet old version
davidmichaelkarr has joined #ruby
marr has joined #ruby
<darix>
jokke: especially when you start using openssl 1.1 you will need to do a lot of backporting
<jokke>
yeah
<jokke>
but it's not an openssl issue
<jokke>
i'll just use my oldest 2.x version and hope for the best
charliesome has joined #ruby
[Butch] has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
WhatsGoingOn has quit [Read error: Connection reset by peer]
WhatsGoi` has joined #ruby
tvw has quit []
tvw has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
chimkan has quit [Quit: chimkan]
cbyrda has quit [Remote host closed the connection]
mhib has joined #ruby
weinstei1 has joined #ruby
weinstei1 has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 276 seconds]
tau has joined #ruby
HoierM has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.8]
WhatsGoi` has quit [Ping timeout: 276 seconds]
WhatsGoi` has joined #ruby
DoubleMalt has quit [Ping timeout: 276 seconds]
blackwind_123 has joined #ruby
Dimik has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
Neptu has joined #ruby
konsolebox has joined #ruby
cadillac__ has joined #ruby
turtlekitten has joined #ruby
govg has quit [Ping timeout: 255 seconds]
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac__ is now known as cadillac_
lxsameer has quit [Quit: WeeChat 1.7]
gdonald has left #ruby ["Leaving"]
preisform has joined #ruby
Beams has quit [Quit: .]
TomyWork has quit [Remote host closed the connection]
<turtlekitten>
Hey, Rubyists. Having a little problem: I can't seem to deserialize a Rack::Utils::HeaderHash with my latest upgrade (Ruby 2.4.1 and Rack 2.0.3). It worked fine under 2.2.4. Any ideas?
<apeiros>
turtlekitten2: are you trying to load a serialized hash from an earlier version in this version?
<apeiros>
or did you serialize and deserialize with the current version?
im0nde has quit [Quit: im0nde]
perniciouscaffei has joined #ruby
<pavelz>
apeiros: thanks!
<pavelz>
apeiros: well a place to start I guess
gix- has joined #ruby
gix has quit [Disconnected by services]
Cohedrin_ has joined #ruby
hightower2 has quit [Ping timeout: 240 seconds]
<matthewd>
pavelz: Are you trying to learn the protocol, or are you trying to implement a service? If the latter, I really recommend using openssh.
tau has quit [Remote host closed the connection]
tau has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
gix has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
machinewar has joined #ruby
Ferdroid has left #ruby [#ruby]
centrx has quit [Remote host closed the connection]
chimkan has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
machinewar has left #ruby [#ruby]
gix has quit [Ping timeout: 255 seconds]
<pavelz>
matthewd: thanks!
<pavelz>
yeah bit of both a pet project
daed_ is now known as daed
daed has quit [Changing host]
daed has joined #ruby
rohitpaulk has joined #ruby
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
centrx has joined #ruby
chimkan has quit [Quit: chimkan]
chimkan has joined #ruby
simmaniac has joined #ruby
jottr has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agimenez has quit [Ping timeout: 240 seconds]
chimkan has quit [Client Quit]
haylon has joined #ruby
gix has joined #ruby
montanonic has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
gix has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
tvw has quit []
bed1 has joined #ruby
wilbert has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
bed7 has quit [Ping timeout: 276 seconds]
_sfiguser has joined #ruby
ascarter has joined #ruby
tvon has joined #ruby
BSaboia has joined #ruby
jak_ has quit [Remote host closed the connection]
GinoMan1423 has quit [Remote host closed the connection]
jak_ has joined #ruby
GinoMan1423 has joined #ruby
TheBloke has quit [Ping timeout: 246 seconds]
gix has joined #ruby
pancutan_ has joined #ruby
<_sfiguser>
hello rubyers
<_sfiguser>
sup ?
ascarter has quit [Ping timeout: 260 seconds]
mogaj has quit [Remote host closed the connection]
<SeepingN>
rubying
ujjain has quit [Ping timeout: 240 seconds]
bed1 has quit [Quit: Leaving]
gix has quit [Read error: Connection reset by peer]
gix has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
domgetter has joined #ruby
bed7 has joined #ruby
Ishido has quit [Remote host closed the connection]
mogaj has joined #ruby
charliesome has joined #ruby
charliesome has quit [Remote host closed the connection]
Ishido has joined #ruby
<turtlekitten2>
apeiros: The YAML was serialized by the old version (Ruby 2.2.4, Rack ~ 2.0.1). I'm getting that error when I try to marshal it with the new version (Ruby 2.4.1, Rack 2.0.3).
<turtlekitten2>
I haven't tried serializing a HeaderHash with the new version... maybe I should
alex`` has joined #ruby
gix- has quit [Read error: Connection reset by peer]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hinbody has quit [Quit: leaving]
centrx has quit []
mogaj has joined #ruby
chimkan has joined #ruby
alex`` is now known as alexherbo2
mogaj has quit [Ping timeout: 240 seconds]
alexherbo2 is now known as alex``
mhib has quit [Ping timeout: 240 seconds]
tvon has quit [Remote host closed the connection]
gix has joined #ruby
tvon has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
gothicsouth has joined #ruby
ule has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
charliesome has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
blackwind_123 has joined #ruby
charliesome has joined #ruby
MarkBilk has joined #ruby
<apeiros>
turtlekitten2: ok, across versions it's not surprising that it doesn't work. but that it doesn't work within the same version is unexpected
mogaj has joined #ruby
TvL2386_ has joined #ruby
tvon has quit [Ping timeout: 276 seconds]
tau has quit [Remote host closed the connection]
tau has joined #ruby
MarkBilk_ has quit [Ping timeout: 246 seconds]
kitikonti has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
TvL2386 has quit [Ping timeout: 255 seconds]
enterprisey has quit [Remote host closed the connection]
mogaj has quit [Ping timeout: 276 seconds]
hinbody has joined #ruby
mhib has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
chimkan has joined #ruby
tgragnato_ has quit [Read error: Connection reset by peer]
<turtlekitten2>
apeiros: I wouldn't think it would break either way - is just YAML, neh? But I guess I don't know how that serialization works under the hood.
rohitpaulk has quit [Ping timeout: 276 seconds]
zacts has quit [Ping timeout: 255 seconds]
ltem has quit [Remote host closed the connection]
montanonic has quit [Ping timeout: 246 seconds]
cseder has joined #ruby
MarkBilk_ has joined #ruby
gusrub has joined #ruby
ltem has joined #ruby
MarkBilk has quit [Ping timeout: 240 seconds]
justizin has joined #ruby
jottr has joined #ruby
cdg has quit [Remote host closed the connection]
clemens3 has left #ruby ["WeeChat 1.0.1"]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
KeyJoo has joined #ruby
romank has joined #ruby
romank has quit [Read error: Connection reset by peer]
blackwind_123 has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
gusrub has quit [Remote host closed the connection]
romank has joined #ruby
nobitanobi has joined #ruby
zacts has joined #ruby
chimkan has quit [Quit: chimkan]
romank has quit [Read error: Connection reset by peer]
mogaj has joined #ruby
chimkan has joined #ruby
nobitanobi has quit [Ping timeout: 276 seconds]
DLSteve has joined #ruby
ledestin has joined #ruby
hahuang65 has joined #ruby
simmaniac has quit [Quit: Leaving]
mogaj has quit [Ping timeout: 255 seconds]
romank has joined #ruby
mogaj has joined #ruby
conta has quit [Ping timeout: 246 seconds]
preisfor5 has joined #ruby
hightower2 has joined #ruby
mogaj_ has joined #ruby
mogaj has quit [Ping timeout: 260 seconds]
sniptot has joined #ruby
TheBloke has joined #ruby
romank has quit [Read error: Connection reset by peer]
mogaj has joined #ruby
mogaj_ has quit [Ping timeout: 246 seconds]
sniptot has quit [Quit: Page closed]
mogaj_ has joined #ruby
mogaj has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
romank has joined #ruby
preisfor4 has quit [Ping timeout: 240 seconds]
preisfor5 has quit [Ping timeout: 240 seconds]
preisfor3 has quit [Ping timeout: 260 seconds]
mogaj_ has quit [Ping timeout: 260 seconds]
mogaj has joined #ruby
preisform has joined #ruby
preisfor2 has joined #ruby
preisfor4 has joined #ruby
gix has joined #ruby
red_manc has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
plujon has joined #ruby
brent___ has quit [Remote host closed the connection]
mogaj has quit [Ping timeout: 246 seconds]
chmuri has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
brent__ has joined #ruby
muelleme_ has joined #ruby
conta has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
zacts has quit [Ping timeout: 255 seconds]
Cohedrin_ has joined #ruby
chmurifree has joined #ruby
ur5us has quit [Remote host closed the connection]
_sfiguser has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
piyush has quit [Ping timeout: 246 seconds]
andrzejku has joined #ruby
felipevolpone has joined #ruby
romank has quit [Read error: Connection reset by peer]
gix has quit [Read error: Connection reset by peer]
felipevolpone has left #ruby ["Leaving"]
tvon has joined #ruby
jenrzzz has joined #ruby
haylon_ has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
lxsameer has joined #ruby
haylon has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
gix has joined #ruby
splitshot has quit [Ping timeout: 276 seconds]
psychicist__ has quit [Ping timeout: 276 seconds]
splitshot has joined #ruby
romank has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
kariyaki has joined #ruby
* kariyaki
inserts a 10mbit isa network card in bweston92
kariyaki has left #ruby [#ruby]
romank has quit [Read error: Connection reset by peer]
cpruitt has quit [Quit: cpruitt]
kt2 has joined #ruby
mogaj has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
romank has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
gusrub has joined #ruby
knight33 has joined #ruby
ascarter has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
mogaj has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
kitikonti has quit [Read error: Connection reset by peer]
montanonic has joined #ruby
gix has quit [Ping timeout: 260 seconds]
mhib has quit [Remote host closed the connection]
MrBismuth has joined #ruby
ta_ has joined #ruby
Cohedrin_ has joined #ruby
nobitanobi has joined #ruby
MrBusiness has quit [Ping timeout: 246 seconds]
mogaj has joined #ruby
Fysicus has joined #ruby
gix has joined #ruby
nobitanobi has quit [Remote host closed the connection]
romank has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 246 seconds]
Bock has joined #ruby
dcluna has quit [Ping timeout: 240 seconds]
<patarr>
thanks havenwood i will take a look at those resources
hightower2 has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
runescape07rsps has joined #ruby
gusrub has quit [Remote host closed the connection]
red_manc has quit [Quit: Leaving]
<patarr>
Looks like there's a handy compilation gem, but looks like the method is to stuff a ton of .c files into a gem folder
romank has joined #ruby
<patarr>
I'm a little worried about issues like upgrading the native library code, and also the fact that my native library depends on a bunch of other libraries. So many files to add :(
romank has quit [Read error: Connection reset by peer]
splitshot has quit [Remote host closed the connection]
romank has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
GinoMan1423 has quit [Ping timeout: 246 seconds]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GinoMan2440 has quit [Ping timeout: 260 seconds]
Patadas has joined #ruby
ltem has quit [Quit: Leaving]
jackjackdripper has quit [Ping timeout: 260 seconds]
romank has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dcluna has joined #ruby
jackjackdripper has joined #ruby
romank has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Ping timeout: 258 seconds]
ryzokuken__ has joined #ruby
mim1k has joined #ruby
DoubleMalt has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryzokuken has quit [Ping timeout: 276 seconds]
mogaj has joined #ruby
HoierM has quit [Ping timeout: 260 seconds]
learningRuby has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
s4mmy has joined #ruby
__Yiota has joined #ruby
zacts has joined #ruby
mogaj has quit [Ping timeout: 260 seconds]
poloych has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
Ishido has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.8]
<learningRuby>
QUESTION: I'm trying to understand LITERALS. I'm reading a book that refers to a “hash literal” as being this: numbers = { "one" => 1, "two" => 2, "three" => 3 }. However, shouldn't a “literal” represent and actual value? This hash representation is not a value, but a sequence of symbols that represent a collection of values, right? I think that ac
<learningRuby>
tual LITERALS can only be written for strings, numbers and regular expressions, right? Because "some text", 1 and /regex/ are actual values and not a representation of something else. Am I right guys?
Pepu has joined #ruby
<ineb>
definition of literal: represents a fixed value, whatever that might be.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb>
that hash literal you posted is also a fixed value
<Papierkorb>
learningRuby: That too is a literal. A string is also a bunch of codepoints in reality, and a number a bunch of digits. That's not important, what matters is that a literal creates an atomic entity for the reader
poloych has quit [Ping timeout: 260 seconds]
<learningRuby>
ineb thanks for replying.. I found a definition of “literals” in the book The Ruby Programming Language (by Matz). It says “Literals are values that appear directly in Ruby source code.”. So, according to this definition, I think the hash representation shouldn't be called a literal. Perhaps it depends on how one defines a literal then.
jackjackdripper has quit [Quit: Leaving.]
<learningRuby>
Papierkorb so a hash is an atomic entity? Isn't a hash a collection of atomic entities? How would you define an “atomic entity”?
<Papierkorb>
learningRuby: Or in our case, a literal is a special syntax to construct a complex object out of less-complex terminals and non-terminals from the grammar. An Integer is more complex than the token `123`, `"foo"` is actually quite complex already, and { "foo" => "bar" } is even more complex
<havenwood>
learningRuby: It might be a bit easier to understand a literal in Elixir, where it means a one-to-one mapping of the human code to the intermediate representation value. A `{}` is a `{}` simply in the AST itself.
zacts has quit [Ping timeout: 255 seconds]
<havenwood>
It doesn't expand to something else.
jak__ has joined #ruby
<havenwood>
When parsed.
Rutix`away has quit []
jak_ has quit [Read error: Connection reset by peer]
Cohedrin_ has quit [Read error: Connection reset by peer]
<Papierkorb>
learningRuby: Even in C, you can write: `int foo[] = { 1, 2, 3 };`. Again, we're constructing a more complex "object" using a special syntax.
bkxd has joined #ruby
bkxd_ has joined #ruby
Cohedrin_ has joined #ruby
ryzokuken has joined #ruby
jordanm has quit [Ping timeout: 246 seconds]
<learningRuby>
Papierkorb In the wikipedia definition for ‘value’ is: “a value is an expression which cannot be evaluated any further (a normal form)” Would you say that a literal is then a direct representation of a value?
ryzokuken__ has quit [Ping timeout: 240 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 268 seconds]
ryzokuken has quit [Ping timeout: 260 seconds]
theunraveler has quit []
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
wilbert has quit [Ping timeout: 276 seconds]
<Papierkorb>
learningRuby: Without digging through smart books, you could say that I think ;)
DoubleMalt has quit [Ping timeout: 276 seconds]
<learningRuby>
Papierkorb I think now I get it... I put together what you guys told me.. so a hash is actually a value (I didn't know that), because it cannot be evaluated any further. It's just a more complex value, like you said. And a literal is something that represents an actual value (as opposed to a variable which is not a value in itself, but references o
<learningRuby>
ne) :)
<learningRuby>
damn I feel smarter now :P
<Papierkorb>
Yeah that description should work
<learningRuby>
cool, thanks
<Papierkorb>
cheers
<learningRuby>
thanks havenwood and ineb too
brent__ has quit [Remote host closed the connection]
haylon has quit [Remote host closed the connection]
runescape07rsps has quit [Ping timeout: 276 seconds]
<learningRuby>
I realize that in programming, terminology is quite important, to make sense of concepts. Yet we can easily get caught up in terminology, because maybe we can never be as precise as we'd like with our abstractions. Perhaps to be really precise one must give up on abstraction and get down to the level of machine code.
jackjackdripper has joined #ruby
cseder has joined #ruby
ResidentBiscuit has quit [Quit: Critical Miss]
zacts has joined #ruby
<Papierkorb>
learningRuby: The thing is you have to look out what you're talking about. A literal is something the language cares about, the parser speaks about (non-)terminals, and the virtual machine now suddenly calls whatever the literal described an instance of a value.
<Papierkorb>
learningRuby: Parsers are even more fun, where people came up with different names for the same thing.
jak__ has quit [Remote host closed the connection]
jak__ has joined #ruby
bed7 has quit [Ping timeout: 276 seconds]
ascarter has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
Ishido has joined #ruby
<learningRuby>
Papierkorb When you say “terminals” do you mean tokens?
montanonic has quit [Ping timeout: 276 seconds]
<Papierkorb>
learningRuby: what a lexer ("scanner", "tokenizer") calls a token, a parser calls a terminal
mostlybadfly has joined #ruby
<learningRuby>
mmm ok
gothicsouth has joined #ruby
<learningRuby>
Papierkorb can you suggest me a book or resource to learn more about this? (parsing, etc.)
nobitanobi has quit [Ping timeout: 276 seconds]
ascarter has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
<Papierkorb>
learningRuby: Never liked (technical) books much, you can find tons of good university courses (free) on those topics. What they explain badly, other sources may explain easier. Also, YouTube has a surprising amount of videos on CS stuff. If you want a book, among the all-time favorites are the famous "Dragon Books"
<Papierkorb>
learningRuby: No matter the source of information, make sure to build a small program using whatever the source is describing. Ruby is an excellent language for this.
montanonic has joined #ruby
<Papierkorb>
learningRuby: If you understand it, you can build it. If you can't build it, you didn't understand it. :)
enterprisey has quit [Remote host closed the connection]
<Papierkorb>
well obviously, this doesn't cover 100% of possible misunderstandings, but it's better than nothin'. And much less painful than writing an exam (if you're an university student) and getting an F.
ddddddd has quit [Ping timeout: 260 seconds]
<learningRuby>
mm I like that.. sounds a bit like what Gillespie said about jazz “If you can hear it you can have it”
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<learningRuby>
Papierkorb thx for the suggestions, I'll try those.. I agree that books often seem to complicate things, perhaps specially tech books.
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
railswebdev has joined #ruby
zacts has quit [Ping timeout: 276 seconds]
A124 has quit [Ping timeout: 255 seconds]
A124 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
herbmillerjr has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
Guest15764 has joined #ruby
fnodeuser has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
fnodeuser has left #ruby [#ruby]
mydog2 has quit [Ping timeout: 260 seconds]
domgetter has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
dcluna has quit [Ping timeout: 240 seconds]
<Derperperd>
simple question. how can i turn the following string into an array?
<SeepingN>
.to_a
tgragnato has joined #ruby
<Derperperd>
test "this is also a test" test2 => [test, this is also a test, test2]
<SeepingN>
try using eval
tgragnato has quit [Max SendQ exceeded]
<Derperperd>
SeepingN: how do i use eval
<SeepingN>
oh wait. that's... unusual
<SeepingN>
you'll have to do some custom parsing me thinks
<Derperperd>
yeah i thought it would be easier but...its not..
tgragnato has joined #ruby
tgragnato has left #ruby [#ruby]
<SeepingN>
change the source ;)
darix has quit [Ping timeout: 258 seconds]
darix has joined #ruby
Guest15764 has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
DLSteve has joined #ruby
jackjackdripper1 has joined #ruby
<al2o3-cr>
Derperperd: shellsplit
jordanm has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
tgragnato has joined #ruby
<al2o3-cr>
>> %(test "this is also a test" test2).shellsplit
<ruby[bot]>
al2o3-cr: # => undefined method `shellsplit' for "test \"this is also a test\" test2":String (NoMethodError) ...check link for more (https://eval.in/824828)
mrconfused has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.9]
<al2o3-cr>
>> require 'shellwords'; %(test "this is also a test" test2).shellsplit
<ruby[bot]>
al2o3-cr: # => ["test", "this is also a test", "test2"] (https://eval.in/824829)
<Derperperd>
you the man al2o3-cr thanks
plujon has quit [Remote host closed the connection]
<al2o3-cr>
yw Derperperd
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mydog2 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jak_ has joined #ruby
railswebdev has joined #ruby
ghormoon has quit [Remote host closed the connection]
jak__ has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
raul782 has joined #ruby
mydog2 has quit [Read error: Connection reset by peer]