00:00
<
havenwood >
L8D: On first glance at cmd, I'd guess HighLine or Thor. Dunno. Maybe say more what part of cmd you're looking for.
00:01
<
L8D >
The whole "defining a shell-like interface" thing
00:01
<
L8D >
Where I can have a straight-forward system of defining commands
00:02
<
L8D >
And possibly an automated help system
00:02
dgutierrez1287 has joined #ruby
00:04
zenojis has joined #ruby
00:04
puppeh_ has joined #ruby
00:05
<
puppeh_ >
people, how would you make this regexp faster? /(?:\s*ABC\s+(?:FDE|POI)?\s*)*/i
00:05
ddv has quit [Ping timeout: 260 seconds]
00:05
sea_local has quit [Ping timeout: 255 seconds]
00:06
nectarys has quit [Remote host closed the connection]
00:06
lw has quit [Quit: s]
00:06
patrick99e99 has joined #ruby
00:07
mailo has quit [Quit: Leaving...]
00:07
_shrine has joined #ruby
00:07
<
L8D >
havenwood: interesting thanks
00:07
nobitanobi has joined #ruby
00:08
InhalingPixels has quit [Remote host closed the connection]
00:09
<
dorei >
vedeau looks really promising although the documentation is not that extensive
00:10
startupality has quit [Quit: startupality]
00:11
sepp2k1 has joined #ruby
00:11
patrick99e99 has quit [Ping timeout: 264 seconds]
00:11
ddv has joined #ruby
00:12
nonnatus has joined #ruby
00:12
<
jokke >
can i somehow mock require in rspec?
00:12
Akagi201 has joined #ruby
00:12
pr0t has quit [Remote host closed the connection]
00:12
<
jokke >
one of the methods i'm specing is requiring a file based on the param
00:13
mfmfmfmfmfmf has joined #ruby
00:13
sepp2k has quit [Ping timeout: 260 seconds]
00:14
binw has quit [Ping timeout: 240 seconds]
00:15
startupality has joined #ruby
00:16
Mon_Ouie has quit [Ping timeout: 240 seconds]
00:17
Akagi201 has quit [Ping timeout: 260 seconds]
00:17
Takle has quit [Remote host closed the connection]
00:18
senayar has quit [Remote host closed the connection]
00:18
mfmfmfmfmfmf has quit [Ping timeout: 272 seconds]
00:21
binw has joined #ruby
00:21
nobitanobi has quit [Remote host closed the connection]
00:25
gkagan has joined #ruby
00:25
ltfschoen has joined #ruby
00:25
<
shevy >
L8D you could also pass stuff into a big case/when menu
00:25
<
shevy >
case your_input_here
00:26
<
shevy >
when 'a','b','c'
00:26
<
shevy >
puts 'YEAH MAN'
00:26
<
shevy >
when /snake/
00:26
rjhunter has joined #ruby
00:26
<
shevy >
nuke_all_python_users
00:26
startupality has quit [Quit: startupality]
00:28
<
L8D >
shevy: Wouldn't it be PythonUsers.all.each &:nuke ?
00:28
nobitanobi has joined #ruby
00:29
<
jamesfordummies >
*map
00:29
<
jamesfordummies >
:P
00:29
<
L8D >
jamesfordummies: but .nuke has no return value
00:29
gkagan has quit [Ping timeout: 245 seconds]
00:29
<
jamesfordummies >
i want the emptiness to remain
00:31
yubrew has joined #ruby
00:31
chrisramon has joined #ruby
00:31
rismoney1_ has quit [Ping timeout: 246 seconds]
00:31
emocakes has joined #ruby
00:31
<
shevy >
L8D I like methods because they give me handles onto the file
00:32
charliesome has quit [Quit: zzz]
00:32
philcrissman has joined #ruby
00:32
djbkd has joined #ruby
00:32
davedev2_ has quit []
00:33
angusiguess has joined #ruby
00:34
jamesfordummies has quit []
00:35
bthesorceror has quit [Remote host closed the connection]
00:35
yubrew has quit [Ping timeout: 255 seconds]
00:36
crdpink has joined #ruby
00:36
crdprink2 has quit [Ping timeout: 246 seconds]
00:36
elaptic`` has quit [Ping timeout: 240 seconds]
00:36
philcrissman has quit [Ping timeout: 255 seconds]
00:37
TC__ has joined #ruby
00:38
TC__ has quit [Client Quit]
00:38
angusiguess has quit [Ping timeout: 246 seconds]
00:38
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
00:39
InhalingPixels has joined #ruby
00:39
TorpedoSkyline has joined #ruby
00:39
Arkaniad has joined #ruby
00:40
TorpedoSkyline has quit [Client Quit]
00:41
TC` has quit [Ping timeout: 260 seconds]
00:41
<
puppeh_ >
looking to improve this regexp (performance-wise) /(?:\s*XCZ\s+(?:MNK|DS4)?\s*)*/
00:41
<
puppeh_ >
any ideas?
00:42
parduse has quit []
00:42
emocakes__ has joined #ruby
00:43
<
havenwood >
puppeh_: on first glance, the final * seems pointless
00:43
parduse has joined #ruby
00:43
<
havenwood >
puppeh_: oh, nvm
00:44
InhalingPixels has quit [Ping timeout: 260 seconds]
00:44
djbkd has quit [Remote host closed the connection]
00:44
<
havenwood >
puppeh_: how're you using the regexp?
00:45
emocakes has quit [Ping timeout: 250 seconds]
00:46
<
shevy >
what if we could redefine the meaning of symbols in a program
00:46
<
havenwood >
shevy: we can't :O
00:46
<
shevy >
I want to treat :be_silent the same as :be_quiet
00:46
<
havenwood >
shevy: i meant, we can't? >.>
00:47
<
puppeh_ >
havenwood: like this: s.gsub(/(?:\s*NULLS\s+(?:FIRST|LAST)?\s*)*/i, '')
00:47
<
shevy >
havenwood well they are kinda boring... they are just like numbers ...
00:47
<
shevy >
imagine if all symbols could point to 42
00:47
<
shevy >
for just one module
00:49
bootstrappm has joined #ruby
00:51
luckyruby has quit [Remote host closed the connection]
00:51
axilla has joined #ruby
00:51
luckyruby has joined #ruby
00:52
dkamioka has joined #ruby
00:53
lemur has joined #ruby
00:54
charliesome has joined #ruby
00:55
sea_local has joined #ruby
00:57
Symbiosisz has quit [Ping timeout: 250 seconds]
00:57
krisquigley has joined #ruby
00:58
luckyruby has quit [Ping timeout: 264 seconds]
00:59
lemur has quit [Ping timeout: 240 seconds]
00:59
ari-_-e has quit [Ping timeout: 255 seconds]
01:00
sea_local has quit [Ping timeout: 255 seconds]
01:01
<
havenwood >
>> module UnpredictableSymbol; def to_sym; self == :silent ? :quiet : super end end; class Symbol; prepend UnpredictableSymbol end; :silent.to_sym
01:01
krisquigley has quit [Ping timeout: 250 seconds]
01:02
jfutbol_ has joined #ruby
01:05
bthesorceror has joined #ruby
01:05
jfutbol has quit [Ping timeout: 246 seconds]
01:05
chihhsin has quit [Read error: Connection reset by peer]
01:06
lukeholder has joined #ruby
01:08
Lexun has joined #ruby
01:09
<
shevy >
what is that
01:09
<
shevy >
havenwood is a magician
01:09
<
shevy >
I don't understand his tricks
01:09
<
havenwood >
shevy: just some gibberish for fun
01:10
axilla has quit [Ping timeout: 246 seconds]
01:11
axilla has joined #ruby
01:12
nobitanobi has quit [Remote host closed the connection]
01:12
<
bootstrappm >
TIL prepend
01:12
SCHAAP137 has quit [Remote host closed the connection]
01:12
CoffeeDrivenC0d1 has joined #ruby
01:13
sepp2k1 has quit [Read error: Connection reset by peer]
01:13
Akagi201 has joined #ruby
01:13
parduse has quit []
01:14
parduse has joined #ruby
01:14
nemesit|znc has quit [Ping timeout: 255 seconds]
01:15
parduse has quit [Client Quit]
01:15
parduse has joined #ruby
01:15
<
CoffeeDrivenC0d1 >
any idea why I wouldn't be able to import a file from another directory using require_relative 'full/path/here'?
01:15
<
havenwood >
CoffeeDrivenC0d1: by full/path you mean relative/path?
01:16
<
CoffeeDrivenC0d1 >
?
01:16
<
shevy >
havenwood so actually, it is nothing new
01:16
<
shevy >
it is just that you can prepend, rather than the default, which is to append
01:16
nectarys has joined #ruby
01:16
<
havenwood >
shevy: aye, just lets you do super with an included module
01:16
<
shevy >
CoffeeDrivenC0d1 can you use the word require rather than import :D
01:16
<
CoffeeDrivenC0d1 >
require_relative '../../lib/file_i_want.rb'
01:17
nemesit|znc has joined #ruby
01:17
<
CoffeeDrivenC0d1 >
Yes sorry =/
01:17
<
shevy >
and the file exists there?
01:17
<
CoffeeDrivenC0d1 >
yes
01:17
<
CoffeeDrivenC0d1 >
Permissions aren't the issue
01:17
<
shevy >
if it exists there then require must have found it
01:17
Akagi201 has quit [Ping timeout: 255 seconds]
01:18
<
bootstrappm >
try to do a File open and see what you get. File.open('../../lib/file_u_want.rb', 'r') {|f| puts f.read }
01:18
<
bootstrappm >
see what happens
01:18
<
bootstrappm >
actually don't use f.read, do something like f.gets
01:18
altern has joined #ruby
01:18
<
bootstrappm >
don't want you're terminal to explode if your file is huge
01:18
nectarys has quit [Max SendQ exceeded]
01:18
<
bootstrappm >
your&
01:19
SCHAAP137 has joined #ruby
01:19
<
shevy >
mr. shaky fingers
01:19
nectarys has joined #ruby
01:19
agent_white has joined #ruby
01:19
agent_white has quit [Read error: Connection reset by peer]
01:19
<
CoffeeDrivenC0d1 >
I get nil for that bootstrappm
01:20
agent_white has joined #ruby
01:20
<
bootstrappm >
ahaha shevy
01:20
agent_white has quit [Read error: Connection reset by peer]
01:20
TorpedoSkyline has joined #ruby
01:21
<
bootstrappm >
CoffeeDrivenC0d1, hm. No error though? I think that means that the file is both there and readable...
01:21
fold has joined #ruby
01:21
<
CoffeeDrivenC0d1 >
Yeah no error on that one
01:21
AlSquire has quit [Quit: This computer has gone to sleep]
01:21
<
shevy >
perhaps it is empty
01:22
nobitanobi has joined #ruby
01:22
<
shevy >
you have some mysterious files CoffeeDrivenC0d1
01:22
<
CoffeeDrivenC0d1 >
It's not =/ trying to require the file so I can use a class
01:22
<
shevy >
altern this does not make sense
01:23
<
shevy >
arr.uniq returns # => [1, 2, 3]
01:23
<
havenwood >
and |key, value| the value will always be nil
01:23
thomasxie has joined #ruby
01:24
<
shevy >
I have never seen so many .maps used before
01:24
<
altern >
@shevy: I am trying to calculate lenght
01:24
agent_white has joined #ruby
01:24
agent_white has quit [Read error: Connection reset by peer]
01:25
<
jokke >
can i yield to the main thread from within a Thread?
01:25
agent_white has joined #ruby
01:25
<
shevy >
altern length of what
01:25
Channel6 has joined #ruby
01:25
agent_white has quit [Read error: Connection reset by peer]
01:25
<
altern >
shevy, I am trying to calculate lenghts of subarrays formed by splitting parent array by unique values
01:25
yubrew has joined #ruby
01:25
<
jokke >
or call a proc that is defined outside the thread
01:26
toastynerd has joined #ruby
01:26
<
bootstrappm >
jokke, mm don't think so, you shouldn't have to though - use case?
01:26
gkagan has joined #ruby
01:26
<
havenwood >
jokke: You could #yield to a Fiber, or #pass to whatever Thread the OS schedules
01:26
chrisramon has quit [Quit: chrisramon]
01:27
<
havenwood >
jokke: you can certainly call a proc
01:27
<
jokke >
havenwood: ok
01:28
starless has joined #ruby
01:29
chrisramon has joined #ruby
01:29
parduse has quit []
01:29
parduse has joined #ruby
01:29
<
jokke >
that spec fails
01:29
agent_white has joined #ruby
01:29
yubrew has quit [Ping timeout: 240 seconds]
01:29
agent_white has quit [Read error: Connection reset by peer]
01:30
agent_white has joined #ruby
01:30
agent_white has quit [Read error: Connection reset by peer]
01:30
<
jokke >
expected given block to yield with arguments, but did not yield
01:30
toastynerd has quit [Remote host closed the connection]
01:31
gkagan has quit [Ping timeout: 272 seconds]
01:32
lw has joined #ruby
01:32
fabrice31 has joined #ruby
01:32
Bumptious has quit [Remote host closed the connection]
01:33
Bumptious has joined #ruby
01:34
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
01:34
angusiguess has joined #ruby
01:34
agent_white has joined #ruby
01:34
agent_white has quit [Read error: Connection reset by peer]
01:35
agent_white has joined #ruby
01:35
agent_white has quit [Read error: Connection reset by peer]
01:35
jfutbol_ has quit [Remote host closed the connection]
01:35
<
havenwood >
jokke: i don't think this is your problem, but instead of `if block.nil?` use `unless block_given?`
01:36
nobitanobi has quit [Remote host closed the connection]
01:36
<
jokke >
thats way better
01:36
<
havenwood >
you don't want to mistake &nil for a block, etc
01:36
fabrice31 has quit [Ping timeout: 240 seconds]
01:36
<
havenwood >
prolly not a biggie, but `block_given?` is idiomatic and easy
01:37
<
havenwood >
jokke: replace #send with #public_send if the method's public
01:37
nobitano_ has joined #ruby
01:37
Bumptious has quit [Ping timeout: 255 seconds]
01:38
<
havenwood >
though i guess that's why you're using send :P
01:38
<
centrx >
Are you guys looking to access some private methods
01:38
<
jokke >
centrx: yeah that too
01:39
angusiguess has quit [Ping timeout: 250 seconds]
01:39
<
jokke >
havenwood: interesting. Now that i changed it to block_given some specs fail
01:39
nanoyak has joined #ruby
01:39
<
jokke >
havenwood: line 54 in the specs
01:39
<
havenwood >
jokke: that's suspicious ;)
01:39
agent_white has joined #ruby
01:39
<
jokke >
says no block given
01:40
agent_white has quit [Read error: Connection reset by peer]
01:40
<
jokke >
which is weird
01:40
hamakn has joined #ruby
01:40
<
jokke >
because obviosly i gave it a block
01:40
agent_white has joined #ruby
01:40
agent_white has quit [Read error: Connection reset by peer]
01:42
chrisramon has quit [Quit: chrisramon]
01:42
<
havenwood >
jokke: in #watch it's weird that you have a `&block` arg then `yield`
01:42
<
havenwood >
jokke: you can drop &block since you can block_given?
01:42
<
havenwood >
jokke: or change yield to block.call
01:42
<
havenwood >
but pick one within the method i think ;)
01:43
lw has quit [Quit: b]
01:43
<
jokke >
yeah actually i used &block because i thought it would automatically fail if no block is given
01:43
<
jokke >
but that isn't the case
01:44
<
centrx >
yup, those methods are private all right
01:44
<
centrx >
Too bad if you want to access them
01:44
dkamioka has quit [Remote host closed the connection]
01:44
<
havenwood >
jokke: block args act like proc args, while method args act like lambda args
01:44
<
havenwood >
jokke: loose arity for blocks and procs
01:44
<
havenwood >
jokke: strict for methods and lambdas
01:44
dkamioka has joined #ruby
01:44
agent_white has joined #ruby
01:45
agent_white has quit [Read error: Connection reset by peer]
01:45
sysx1000 has joined #ruby
01:45
toastynerd has joined #ruby
01:45
agent_white has joined #ruby
01:45
agent_white has quit [Read error: Connection reset by peer]
01:46
ptierno has quit [Read error: Connection reset by peer]
01:46
<
jokke >
still getting the no block given error in line 54 in the specs
01:46
ixti has joined #ruby
01:48
nobitano_ has quit [Remote host closed the connection]
01:49
dkamioka has quit [Ping timeout: 260 seconds]
01:49
agent_white has joined #ruby
01:50
agent_white has quit [Read error: Connection reset by peer]
01:50
<
jokke >
maybe the way i'm doing it is wrong
01:50
alexju has joined #ruby
01:50
agent_white has joined #ruby
01:50
agent_white has quit [Read error: Connection reset by peer]
01:50
CoffeeDrivenC0d1 has left #ruby [#ruby]
01:51
havenwood has quit []
01:52
emmesswhy has joined #ruby
01:52
davispuh has quit [Ping timeout: 245 seconds]
01:52
<
jokke >
ah well.. it's also 3:51 AM here, so i guess i should get to sleep. There's no way anything good will come out of my head at this point.
01:52
<
jokke >
night and thanks for the help
01:54
altern has quit [Quit: This computer has gone to sleep]
01:54
agent_white has joined #ruby
01:55
agent_white has quit [Read error: Connection reset by peer]
01:55
agent_white has joined #ruby
01:55
toastynerd has quit [Remote host closed the connection]
01:55
agent_white has quit [Read error: Connection reset by peer]
01:56
lidaaa has joined #ruby
01:56
djbkd has joined #ruby
01:56
lemur has joined #ruby
01:57
toastynerd has joined #ruby
01:59
agent_white has joined #ruby
02:00
agent_white has quit [Read error: Connection reset by peer]
02:00
lidaaa has quit [Ping timeout: 240 seconds]
02:00
agent_white has joined #ruby
02:00
tfitts has quit [Read error: Connection reset by peer]
02:00
agent_white has quit [Read error: Connection reset by peer]
02:00
Bumptious has joined #ruby
02:00
lemur has quit [Ping timeout: 240 seconds]
02:01
Lucky__ has quit [Ping timeout: 250 seconds]
02:02
tfittsy has joined #ruby
02:04
InhalingPixels has joined #ruby
02:04
agent_white has joined #ruby
02:04
Akagi201 has joined #ruby
02:05
agent_white has quit [Read error: Connection reset by peer]
02:05
agent_white has joined #ruby
02:05
agent_white has quit [Read error: Connection reset by peer]
02:06
Kyrptonical has quit [Read error: Connection reset by peer]
02:06
Kryptonical has joined #ruby
02:07
duncannz has quit [Ping timeout: 250 seconds]
02:07
patrick99e99 has joined #ruby
02:08
wallerdev has quit [Quit: wallerdev]
02:08
Bumptious has quit [Remote host closed the connection]
02:09
Bumptious has joined #ruby
02:09
agent_white has joined #ruby
02:10
agent_white has quit [Read error: Connection reset by peer]
02:10
threesixes has joined #ruby
02:10
agent_white has joined #ruby
02:10
agent_white has quit [Read error: Connection reset by peer]
02:11
ari-_-e has joined #ruby
02:12
patrick99e99 has quit [Ping timeout: 250 seconds]
02:13
fold has quit [Ping timeout: 272 seconds]
02:14
mfmfmfmfmfmf has joined #ruby
02:14
wallerdev has joined #ruby
02:14
agent_white has joined #ruby
02:15
agent_white has quit [Read error: Connection reset by peer]
02:15
agent_white has joined #ruby
02:15
agent_white has quit [Read error: Connection reset by peer]
02:16
Cheezebox has joined #ruby
02:17
puppeh_ has quit [Remote host closed the connection]
02:17
ari-_-e has quit [Ping timeout: 246 seconds]
02:17
jhass is now known as jhass|off
02:17
sdwrage has joined #ruby
02:17
dgutierrez1287 has quit [Ping timeout: 250 seconds]
02:18
chrisramon has joined #ruby
02:18
mfmfmfmfmfmf has quit [Ping timeout: 240 seconds]
02:19
nobitanobi has joined #ruby
02:19
yubrew has joined #ruby
02:19
gregf has joined #ruby
02:20
agent_white has joined #ruby
02:20
agent_white has quit [Read error: Connection reset by peer]
02:20
agent_white has joined #ruby
02:20
agent_white has quit [Read error: Connection reset by peer]
02:20
philcrissman has joined #ruby
02:21
sea_local has joined #ruby
02:23
nobitanobi has quit [Ping timeout: 240 seconds]
02:24
yubrew has quit [Ping timeout: 240 seconds]
02:25
philcrissman has quit [Ping timeout: 246 seconds]
02:25
agent_white has joined #ruby
02:25
agent_white has quit [Read error: Connection reset by peer]
02:25
agent_white has joined #ruby
02:25
agent_white has quit [Read error: Connection reset by peer]
02:26
ari-_-e has joined #ruby
02:26
sea_local has quit [Ping timeout: 250 seconds]
02:27
gkagan has joined #ruby
02:29
threesixes has quit [Ping timeout: 240 seconds]
02:29
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:30
agent_white has joined #ruby
02:30
agent_white has quit [Read error: Connection reset by peer]
02:30
agent_white has joined #ruby
02:30
agent_white has quit [Read error: Connection reset by peer]
02:30
ari-_-e has quit [Ping timeout: 260 seconds]
02:31
msull92 has joined #ruby
02:31
msull92 has quit [Client Quit]
02:31
gkagan has quit [Ping timeout: 246 seconds]
02:32
threesixes has joined #ruby
02:32
fold has joined #ruby
02:35
agent_white has joined #ruby
02:35
angusiguess has joined #ruby
02:35
agent_white has quit [Read error: Connection reset by peer]
02:35
agent_white has joined #ruby
02:35
agent_white has quit [Read error: Connection reset by peer]
02:36
Fire-Dragon-DoL has quit [Quit: Leaving.]
02:36
jerikl has joined #ruby
02:37
emocakes__ has quit []
02:37
Cheezebox has quit [Remote host closed the connection]
02:37
chrisramon has quit [Quit: chrisramon]
02:37
agjacome has quit [Quit: leaving]
02:38
starless has quit [Quit: Leaving]
02:39
MCDev has joined #ruby
02:39
tectonic has joined #ruby
02:40
agent_white has joined #ruby
02:40
angusiguess has quit [Ping timeout: 264 seconds]
02:40
agent_white has quit [Read error: Connection reset by peer]
02:40
agent_white has joined #ruby
02:40
niklasb has joined #ruby
02:40
frankle has quit [Quit: Connection closed for inactivity]
02:40
agent_white has quit [Read error: Connection reset by peer]
02:40
michaeldeol has joined #ruby
02:41
emmesswhy has quit [Quit: This computer has gone to sleep]
02:43
bthesorceror has quit [Quit: bthesorceror]
02:43
nszceta has joined #ruby
02:44
TorpedoSkyline has joined #ruby
02:44
nszceta has quit [Max SendQ exceeded]
02:45
agent_white has joined #ruby
02:45
emmesswhy has joined #ruby
02:45
agent_white has quit [Write error: Connection reset by peer]
02:45
nszceta has joined #ruby
02:45
agent_white has joined #ruby
02:45
agent_white has quit [Read error: Connection reset by peer]
02:45
cleopatra has joined #ruby
02:47
axilla has quit [Ping timeout: 264 seconds]
02:47
chrisramon has joined #ruby
02:47
chrisramon has quit [Client Quit]
02:47
j75 has joined #ruby
02:47
axilla has joined #ruby
02:48
centrx has quit [Quit: Mead error: Connection reset by beer]
02:50
agent_white has joined #ruby
02:50
agent_white has quit [Read error: Connection reset by peer]
02:50
agent_white has joined #ruby
02:50
agent_white has quit [Read error: Connection reset by peer]
02:51
SCHAAP137 has quit [Remote host closed the connection]
02:53
chrisramon has joined #ruby
02:54
sea_local has joined #ruby
02:54
Lewix has quit [Remote host closed the connection]
02:55
Cheezebox has joined #ruby
02:55
agent_white has joined #ruby
02:55
agent_white has quit [Read error: Connection reset by peer]
02:55
agent_white has joined #ruby
02:55
agent_white has quit [Read error: Connection reset by peer]
02:56
rismoney1_ has joined #ruby
02:57
lemur has joined #ruby
02:57
mburns has joined #ruby
02:59
emocakes has joined #ruby
03:00
agent_white has joined #ruby
03:00
agent_white has quit [Read error: Connection reset by peer]
03:00
angusiguess has joined #ruby
03:00
agent_white has joined #ruby
03:00
agent_white has quit [Read error: Connection reset by peer]
03:01
Lexun has quit [Quit: Manjaro-KDE user leaving!]
03:01
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:01
lemur has quit [Ping timeout: 240 seconds]
03:01
Lexun has joined #ruby
03:02
skolman has joined #ruby
03:03
chrisramon has quit [Quit: chrisramon]
03:04
agent_white has joined #ruby
03:04
agent_white has quit [Read error: Connection reset by peer]
03:04
agent_white has joined #ruby
03:04
agent_white has quit [Read error: Connection reset by peer]
03:05
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:05
agent_white has joined #ruby
03:05
agent_white has quit [Read error: Connection reset by peer]
03:05
braincrash has quit [Quit: bye bye]
03:05
emmesswhy has quit [Quit: Leaving]
03:09
axilla has quit [Ping timeout: 255 seconds]
03:09
braincrash has joined #ruby
03:09
motto has quit [Quit: Sto andando via]
03:10
axilla has joined #ruby
03:10
agent_white has joined #ruby
03:10
agent_white has quit [Read error: Connection reset by peer]
03:10
emocakes has quit []
03:11
agent_white has joined #ruby
03:11
agent_white has quit [Read error: Connection reset by peer]
03:11
wallerdev has quit [Quit: wallerdev]
03:11
wallerdev has joined #ruby
03:13
djbkd has quit [Remote host closed the connection]
03:13
yubrew has joined #ruby
03:13
dfish1 has joined #ruby
03:14
agent_white has joined #ruby
03:15
angusiguess has quit [Ping timeout: 255 seconds]
03:16
day has quit [Ping timeout: 240 seconds]
03:17
yubrew has quit [Ping timeout: 240 seconds]
03:19
nobitanobi has joined #ruby
03:19
day has joined #ruby
03:21
seamon has joined #ruby
03:21
fabrice31 has joined #ruby
03:21
dfish1 has quit [Quit: Bye]
03:22
dfish3 has joined #ruby
03:22
dfish3 has quit [Remote host closed the connection]
03:22
dfish has joined #ruby
03:22
raaamina has joined #ruby
03:23
lidaaa has joined #ruby
03:23
nobitanobi has quit [Ping timeout: 240 seconds]
03:24
brb3 has joined #ruby
03:24
captproton has quit [Ping timeout: 260 seconds]
03:24
sea_local has quit [Ping timeout: 264 seconds]
03:24
dfish has quit [Client Quit]
03:25
dfish has joined #ruby
03:25
fabrice31 has quit [Ping timeout: 240 seconds]
03:27
gkagan has joined #ruby
03:28
dfish has quit [Client Quit]
03:28
dfish has joined #ruby
03:28
dfish has quit [Client Quit]
03:28
dfish has joined #ruby
03:28
Cache_Money has quit [Read error: Connection reset by peer]
03:29
dfish has quit [Client Quit]
03:29
dfish has joined #ruby
03:29
Cache_Money has joined #ruby
03:30
lemur has joined #ruby
03:31
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:31
dfish has quit [Client Quit]
03:31
dfish has joined #ruby
03:31
sdwrage has quit [Quit: This computer has gone to sleep]
03:32
gkagan has quit [Ping timeout: 260 seconds]
03:33
tlarevo has joined #ruby
03:34
<
agent_white >
Soso quiet
03:34
ixti has quit [Quit: WeeChat 0.4.3]
03:34
* C0deMaver1ck
starts talking about random stuff
03:35
sea_local has joined #ruby
03:35
lukeholder has quit [Ping timeout: 246 seconds]
03:36
Cheezebox has quit [Remote host closed the connection]
03:36
emocakes has joined #ruby
03:37
bootstrappm has quit [Ping timeout: 246 seconds]
03:37
Lewix has joined #ruby
03:37
Lewix has joined #ruby
03:37
Lewix has quit [Changing host]
03:38
bootstrappm has joined #ruby
03:38
froggy__ has joined #ruby
03:38
agent_white has quit [Read error: Connection reset by peer]
03:39
agent_white has joined #ruby
03:39
agent_white has left #ruby [#ruby]
03:39
agent_white has joined #ruby
03:39
agent_white has quit [Read error: Connection reset by peer]
03:40
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:41
angusiguess has joined #ruby
03:42
froggy_ has quit [Ping timeout: 246 seconds]
03:42
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:43
sea_local has quit [Ping timeout: 250 seconds]
03:43
djbkd has joined #ruby
03:43
lidaaa has quit [Read error: Connection reset by peer]
03:44
lidaaa has joined #ruby
03:44
jack_rabbit has joined #ruby
03:45
sinkensabe has joined #ruby
03:46
angusiguess has quit [Ping timeout: 260 seconds]
03:46
timonv_ has joined #ruby
03:47
charliesome has quit [Quit: zzz]
03:48
xkickflip has joined #ruby
03:50
xkickflip has quit [Client Quit]
03:50
nanoyak has quit [Quit: Computer has gone to sleep.]
03:50
jerikl has quit [Quit: jerikl]
03:50
xkickflip has joined #ruby
03:50
djbkd has quit [Ping timeout: 260 seconds]
03:50
sinkensabe has quit [Ping timeout: 255 seconds]
03:51
Bumptious has quit [Remote host closed the connection]
03:51
timonv_ has quit [Ping timeout: 245 seconds]
03:51
Bumptious has joined #ruby
03:53
sylvanica has joined #ruby
03:54
cleopatra has quit [Quit: Saliendo]
03:54
emocakes has quit []
03:54
agent_white has joined #ruby
03:54
agent_white has quit [Read error: Connection reset by peer]
03:55
dseitz has joined #ruby
03:56
xkickflip has quit [Quit: leaving]
03:56
Soda has quit [Remote host closed the connection]
03:56
xkickflip has joined #ruby
03:57
sdwrage has joined #ruby
03:58
Cheezebox has joined #ruby
03:58
agent_white has joined #ruby
03:58
agent_white has quit [Read error: Connection reset by peer]
03:59
seamon has quit [Quit: Zzzzzzz]
03:59
HashNuke has joined #ruby
04:00
jadedgno has joined #ruby
04:01
saladspork has joined #ruby
04:01
hamakn has quit [Remote host closed the connection]
04:05
amargherio has quit [Remote host closed the connection]
04:05
Janno has quit [Quit: Lost terminal]
04:06
charliesome has joined #ruby
04:06
jadedgno has quit [Quit: WeeChat 0.4.0]
04:07
jadedgno has joined #ruby
04:07
yubrew has joined #ruby
04:09
philcrissman has joined #ruby
04:09
michaeldeol has joined #ruby
04:10
owen1 has left #ruby ["WeeChat 0.4.2"]
04:12
yubrew has quit [Ping timeout: 240 seconds]
04:13
skolman has quit [Remote host closed the connection]
04:13
philcrissman has quit [Ping timeout: 246 seconds]
04:14
mfmfmfmfmfmf has joined #ruby
04:15
sylvanica has quit [Ping timeout: 260 seconds]
04:17
weems has joined #ruby
04:17
Takle has joined #ruby
04:18
thomasxie has quit [Ping timeout: 272 seconds]
04:19
mitt3ns has joined #ruby
04:19
mitt3ns has quit [Read error: Connection reset by peer]
04:19
mfmfmfmfmfmf has quit [Ping timeout: 260 seconds]
04:20
rismoney1_ has quit [Ping timeout: 246 seconds]
04:20
nobitanobi has joined #ruby
04:21
agent_white has joined #ruby
04:21
weems2 has joined #ruby
04:21
agent_white has quit [Read error: Connection reset by peer]
04:21
weems2 has quit [Max SendQ exceeded]
04:21
lxsameer has joined #ruby
04:21
lxsameer has joined #ruby
04:21
weems2 has joined #ruby
04:22
weems has quit [Disconnected by services]
04:22
weems2 is now known as weems
04:23
weems has quit [Changing host]
04:23
weems has joined #ruby
04:23
Takle has quit [Ping timeout: 264 seconds]
04:24
nobitanobi has quit [Ping timeout: 240 seconds]
04:24
hellangel7 has joined #ruby
04:25
weems has quit [Client Quit]
04:26
agent_white has joined #ruby
04:26
CaptainJet has quit []
04:26
agent_white has quit [Read error: Connection reset by peer]
04:26
Lexun has quit [Quit: Manjaro-KDE user leaving!]
04:28
toordog has quit [Ping timeout: 255 seconds]
04:28
gkagan has joined #ruby
04:28
sylvanica has joined #ruby
04:29
mitt3ns_ has joined #ruby
04:29
mitt3ns_ has quit [Read error: Connection reset by peer]
04:29
lemur has quit [Remote host closed the connection]
04:30
virtualize has quit []
04:30
lemur has joined #ruby
04:31
ghr has joined #ruby
04:32
virtualize has joined #ruby
04:32
gkagan has quit [Ping timeout: 240 seconds]
04:33
JoshGlzBrk has joined #ruby
04:33
JoshGlzBrk has quit [Client Quit]
04:33
andrewjanssen has joined #ruby
04:34
mitt3ns_ has joined #ruby
04:34
mitt3ns_ has quit [Read error: Connection reset by peer]
04:34
lemur has quit [Ping timeout: 250 seconds]
04:35
d4nk has quit [Ping timeout: 240 seconds]
04:35
a_ has joined #ruby
04:36
ghr has quit [Ping timeout: 250 seconds]
04:36
toordog has joined #ruby
04:37
<
a_ >
Is it possible to tighten up the map block here? %w[a b c].map { |x| some_func x }
04:37
<
a_ >
I was thinking possibilities like nameless variables (as in Scala) etc.
04:39
mitt3ns_ has joined #ruby
04:39
mitt3ns_ has quit [Read error: Connection reset by peer]
04:39
GeekOnCoffee has quit [Ping timeout: 240 seconds]
04:40
Channel6 has quit [Quit: Leaving]
04:42
AlexRussia has quit [Ping timeout: 300 seconds]
04:42
angusiguess has joined #ruby
04:42
AlexRussia has joined #ruby
04:43
toastynerd has quit [Remote host closed the connection]
04:43
<
pontiki >
a_: you can shorten up obj.map {|x| x.method } to obj.map(&:method)
04:44
d4nk has joined #ruby
04:44
GeekOnCoffee has joined #ruby
04:44
shevy has quit [Read error: Connection reset by peer]
04:45
toastynerd has joined #ruby
04:45
SilkFox_ has joined #ruby
04:45
nectarys has quit [Ping timeout: 240 seconds]
04:47
angusiguess has quit [Ping timeout: 240 seconds]
04:47
St_Marx has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
04:48
St_Marx has joined #ruby
04:49
mitt3ns_ has joined #ruby
04:49
mitt3ns_ has quit [Read error: Connection reset by peer]
04:49
toordog has quit [Ping timeout: 245 seconds]
04:50
<
a_ >
pontiki: unfortunately the method I wish to call isn't on the block var object itself, it'll just be taking that as a parameter
04:50
toordog has joined #ruby
04:50
aoeu256 has quit [Ping timeout: 246 seconds]
04:51
nonnatus has quit [Ping timeout: 240 seconds]
04:51
sylvanica_ has joined #ruby
04:52
JoshGlzBrk has joined #ruby
04:52
zkay11 has joined #ruby
04:52
narcan has joined #ruby
04:54
sylvanica has quit [Ping timeout: 246 seconds]
04:54
mitt3ns_ has joined #ruby
04:54
mitt3ns_ has quit [Read error: Connection reset by peer]
04:54
havenwood has joined #ruby
04:55
Joffily has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
04:56
zeroNones has joined #ruby
04:56
gnephiak has joined #ruby
04:58
sylvanica_ has quit [Ping timeout: 260 seconds]
04:59
mitt3ns_ has joined #ruby
04:59
mitt3ns_ has quit [Read error: Connection reset by peer]
05:00
jerius has quit [Ping timeout: 255 seconds]
05:00
oo_ has joined #ruby
05:01
lemur has joined #ruby
05:01
yubrew has joined #ruby
05:02
mitt3ns has joined #ruby
05:02
mitt3ns has quit [Read error: Connection reset by peer]
05:02
jerius has joined #ruby
05:02
mitt3ns has joined #ruby
05:02
mitt3ns has quit [Read error: Connection reset by peer]
05:03
toastynerd has quit [Remote host closed the connection]
05:04
mitt3ns has joined #ruby
05:04
mitt3ns has quit [Read error: Connection reset by peer]
05:04
nectarys has joined #ruby
05:05
nectarys_ has joined #ruby
05:05
InhalingPixels has quit [Remote host closed the connection]
05:05
nectarys has quit [Client Quit]
05:06
yubrew has quit [Ping timeout: 255 seconds]
05:07
nszceta has quit []
05:07
cy has quit [Quit: :q!]
05:09
GeekOnCoffee has quit [Ping timeout: 240 seconds]
05:10
fabrice31 has joined #ruby
05:11
GeekOnCoffee has joined #ruby
05:11
a_ has quit [Quit: leaving]
05:11
sdwrage has quit [Quit: This computer has gone to sleep]
05:15
fabrice31 has quit [Ping timeout: 260 seconds]
05:16
britneywright has joined #ruby
05:16
bootstrappm has quit [Ping timeout: 255 seconds]
05:16
tectonic has quit []
05:16
Akagi201 has quit [Read error: Connection reset by peer]
05:17
InhalingPixels has joined #ruby
05:17
bootstrappm has joined #ruby
05:17
_shrine has quit [Ping timeout: 246 seconds]
05:17
apollo_cmd has joined #ruby
05:18
toastynerd has joined #ruby
05:18
GodPuppet has joined #ruby
05:18
lemur has quit [Ping timeout: 240 seconds]
05:18
apollo_cmd has quit [Client Quit]
05:19
klmlfl has joined #ruby
05:20
oo_ has quit [Remote host closed the connection]
05:20
IotaSpencer has quit [Ping timeout: 272 seconds]
05:21
chipotle has quit [Quit: cya]
05:21
nobitanobi has joined #ruby
05:21
klmlfl has quit [Client Quit]
05:21
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:21
apollo_cmd has joined #ruby
05:22
bthesorceror has joined #ruby
05:22
toastynerd has quit [Remote host closed the connection]
05:23
GodPuppet has quit [Remote host closed the connection]
05:23
andrewjanssen has quit [Quit: Leaving...]
05:24
tectonic has joined #ruby
05:24
apollo_cmd has quit [Client Quit]
05:24
klmlfl has joined #ruby
05:24
michaeldeol has joined #ruby
05:25
zkay11 has left #ruby [#ruby]
05:25
nobitanobi has quit [Ping timeout: 240 seconds]
05:27
Jetchisel has joined #ruby
05:27
toastynerd has joined #ruby
05:27
davedev24_ has joined #ruby
05:28
luckyruby has joined #ruby
05:29
lemur has joined #ruby
05:29
gkagan has joined #ruby
05:31
chaos___________ has quit [Ping timeout: 255 seconds]
05:31
toastynerd has quit [Remote host closed the connection]
05:32
ghr has joined #ruby
05:32
sinkensabe has joined #ruby
05:33
InhalingPixels has quit []
05:33
gkagan has quit [Ping timeout: 260 seconds]
05:34
Iota-Spencer has joined #ruby
05:35
j75 has quit [Quit: WeeChat 0.4.3]
05:36
klmlfl has quit [Remote host closed the connection]
05:36
benzrf is now known as benzrfprime
05:36
Shidash has joined #ruby
05:36
klmlfl has joined #ruby
05:36
benzrf has joined #ruby
05:36
benzrf is now known as Guest89783
05:36
ghr has quit [Ping timeout: 250 seconds]
05:37
agent_white has joined #ruby
05:37
<
agent_white >
Evenin' folks
05:38
agent_white has quit [Read error: Connection reset by peer]
05:39
sea_local has joined #ruby
05:40
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:41
klmlfl has quit [Ping timeout: 250 seconds]
05:41
agent_white has joined #ruby
05:41
agent_white has quit [Read error: Connection reset by peer]
05:43
jeaye has quit [Quit: WeeChat 1.0]
05:43
jeaye has joined #ruby
05:43
angusiguess has joined #ruby
05:44
benzrfprime has quit [Quit: leaving]
05:45
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:45
atal421 has joined #ruby
05:46
zeroNones has quit [Ping timeout: 240 seconds]
05:46
atal421 has quit []
05:46
agent_white has joined #ruby
05:46
agent_white has quit [Read error: Connection reset by peer]
05:46
Guest89783 is now known as benzrf|offline
05:47
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:47
benzrf|offline is now known as Guest64571
05:47
Guest64571 is now known as benzrf
05:48
angusiguess has quit [Ping timeout: 260 seconds]
05:48
timonv_ has joined #ruby
05:51
robbyoconnor has quit [Excess Flood]
05:51
_cake has joined #ruby
05:51
agent_white has joined #ruby
05:51
robbyoconnor has joined #ruby
05:51
sea_local has quit [Ping timeout: 250 seconds]
05:51
agent_white has quit [Read error: Connection reset by peer]
05:52
lkba has quit [Ping timeout: 255 seconds]
05:53
timonv_ has quit [Ping timeout: 272 seconds]
05:53
_cake is now known as _shrine
05:54
_shrine is now known as _cake
05:54
speakingcode has quit [Ping timeout: 250 seconds]
05:54
speakingcode has joined #ruby
05:56
yubrew has joined #ruby
05:56
_cake is now known as _shrine
05:57
Blizzy has quit [Ping timeout: 246 seconds]
05:57
_shrine is now known as _cake
05:57
philcrissman has joined #ruby
05:57
JohnBat26 has joined #ruby
05:59
emocakes has joined #ruby
05:59
johndeer has quit [Quit: This computer has gone to sleep]
06:00
Sawbones has joined #ruby
06:00
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
06:00
yubrew has quit [Ping timeout: 260 seconds]
06:01
philcrissman has quit [Ping timeout: 260 seconds]
06:03
sinkensabe has quit [Remote host closed the connection]
06:03
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
06:04
narcan has joined #ruby
06:04
yfeldblum has quit [Read error: Connection reset by peer]
06:04
saladspork has quit [Quit: saladspork]
06:04
narcan has quit [Client Quit]
06:05
yfeldblum has joined #ruby
06:05
brb3 has quit [Ping timeout: 250 seconds]
06:07
lkba has joined #ruby
06:09
patrick99e99 has joined #ruby
06:09
toastynerd has joined #ruby
06:14
patrick99e99 has quit [Ping timeout: 250 seconds]
06:16
Sawbones has quit [Remote host closed the connection]
06:17
sleepee has joined #ruby
06:17
johndeeer has joined #ruby
06:18
djbkd has joined #ruby
06:19
cocotton has joined #ruby
06:19
Sawbones has joined #ruby
06:19
cocotton has quit [Remote host closed the connection]
06:19
Photism has joined #ruby
06:19
bluOxigen has joined #ruby
06:20
cocotton has joined #ruby
06:20
mark06 has joined #ruby
06:20
luckyruby has quit [Ping timeout: 264 seconds]
06:20
ltfschoen has joined #ruby
06:21
cocotton has quit [Remote host closed the connection]
06:21
ltfschoen has quit [Max SendQ exceeded]
06:22
nobitanobi has joined #ruby
06:22
toastynerd has quit [Remote host closed the connection]
06:23
emocakes has quit []
06:23
oo_ has joined #ruby
06:24
Cheezebox has quit [Remote host closed the connection]
06:25
lemur has joined #ruby
06:25
armyriad has joined #ruby
06:25
Sawbones has quit [Remote host closed the connection]
06:26
ltfschoen has joined #ruby
06:26
adac has joined #ruby
06:26
nobitanobi has quit [Ping timeout: 240 seconds]
06:26
ltfschoen has quit [Max SendQ exceeded]
06:26
ltfschoen has joined #ruby
06:27
ltfschoen has quit [Excess Flood]
06:27
djbkd has quit [Quit: My people need me...]
06:28
oo_ has quit [Remote host closed the connection]
06:30
gkagan has joined #ruby
06:33
ghr has joined #ruby
06:34
Mon_Ouie has joined #ruby
06:34
gkagan has quit [Ping timeout: 255 seconds]
06:34
duncannz has joined #ruby
06:36
mikeric has joined #ruby
06:37
narcan has joined #ruby
06:37
ghr has quit [Ping timeout: 255 seconds]
06:38
charliesome has quit [Quit: zzz]
06:39
sleepee has quit [Quit: Leaving]
06:39
chipotle has joined #ruby
06:40
chipotle has quit [Client Quit]
06:43
Jackneill has joined #ruby
06:44
angusiguess has joined #ruby
06:46
SilkFox_ has quit [Ping timeout: 250 seconds]
06:47
sinkensabe has joined #ruby
06:47
sinkensabe has quit [Remote host closed the connection]
06:47
sinkensabe has joined #ruby
06:48
decoponio has joined #ruby
06:48
angusiguess has quit [Ping timeout: 240 seconds]
06:50
yubrew has joined #ruby
06:50
razum2um has joined #ruby
06:51
_cake is now known as salai
06:51
salai is now known as _cake
06:52
bthesorceror has quit [Quit: bthesorceror]
06:54
agent_white has joined #ruby
06:55
yubrew has quit [Ping timeout: 260 seconds]
06:57
apeiros has quit [Remote host closed the connection]
06:57
apeiros has joined #ruby
06:57
relix has joined #ruby
06:58
fabrice31 has joined #ruby
07:00
jusmyth has joined #ruby
07:01
jusmyth has left #ruby [#ruby]
07:01
crdpink has quit [Quit: q term]
07:02
blueOxigen has joined #ruby
07:03
fabrice31 has quit [Ping timeout: 246 seconds]
07:06
bluOxigen has quit [Ping timeout: 260 seconds]
07:08
Ilyas has joined #ruby
07:08
Ilyas has quit [Max SendQ exceeded]
07:09
Ilyas has joined #ruby
07:09
asdii has joined #ruby
07:10
<
asdii >
hello, has anyone used opengl with ruby?
07:10
abuzze has joined #ruby
07:11
johndeeer has quit [Quit: This computer has gone to sleep]
07:12
havenwood has quit [Remote host closed the connection]
07:13
alexju has quit [Remote host closed the connection]
07:14
hellangel7 has quit [Read error: Connection reset by peer]
07:14
abuzze has quit [Ping timeout: 250 seconds]
07:16
heftig has quit [Quit: Quitting]
07:16
bootstrappm has quit [Ping timeout: 264 seconds]
07:16
hellangel7 has joined #ruby
07:17
marcel has quit [Ping timeout: 240 seconds]
07:19
marcel has joined #ruby
07:20
ari-_-e has joined #ruby
07:20
oo_ has joined #ruby
07:20
devyn has quit [Read error: Connection reset by peer]
07:20
emocakes has joined #ruby
07:21
devyn has joined #ruby
07:21
chihhsin has joined #ruby
07:22
nobitanobi has joined #ruby
07:23
<
_cake >
asdii: use gosu?
07:24
<
asdii >
can you tell me what that is?
07:24
Haiiro has joined #ruby
07:25
lemur has joined #ruby
07:27
nobitanobi has quit [Ping timeout: 240 seconds]
07:30
gkagan has joined #ruby
07:31
hamakn has joined #ruby
07:33
<
dseitz >
Try your luck with ruby-glfw3
07:33
ghr has joined #ruby
07:35
gkagan has quit [Ping timeout: 260 seconds]
07:35
* Hanmac
has its own binding for sfml ... but its not 100% ready yet
07:37
duncannz has quit [Ping timeout: 260 seconds]
07:37
lidaaa has quit [Ping timeout: 255 seconds]
07:38
ghr has quit [Ping timeout: 240 seconds]
07:39
blenny has quit [Ping timeout: 272 seconds]
07:40
blenny has joined #ruby
07:41
oo_ has quit [Remote host closed the connection]
07:42
oo_ has joined #ruby
07:44
yubrew has joined #ruby
07:44
angusiguess has joined #ruby
07:45
philcrissman has joined #ruby
07:46
oo_ has quit [Ping timeout: 260 seconds]
07:46
robbyoconnor has quit [Ping timeout: 250 seconds]
07:46
radic has quit [Disconnected by services]
07:47
radic_ has joined #ruby
07:47
ari-_-e has quit [Ping timeout: 272 seconds]
07:48
DEA7TH has quit [Ping timeout: 240 seconds]
07:49
yubrew has quit [Ping timeout: 264 seconds]
07:49
angusiguess has quit [Ping timeout: 245 seconds]
07:49
philcrissman has quit [Ping timeout: 246 seconds]
07:50
timonv_ has joined #ruby
07:51
danijoo has quit [Read error: Connection reset by peer]
07:52
danijoo has joined #ruby
07:54
tectonic has quit []
07:54
timonv_ has quit [Ping timeout: 260 seconds]
07:54
emocakes has quit [Ping timeout: 245 seconds]
07:57
emocakes has joined #ruby
07:58
moritzs has joined #ruby
08:00
jusmyth1 has joined #ruby
08:00
ari-_-e has joined #ruby
08:03
ht__th has joined #ruby
08:04
moritzs has quit [Ping timeout: 260 seconds]
08:04
DEA7TH has joined #ruby
08:08
claymore has joined #ruby
08:08
Soda has joined #ruby
08:08
nectarys__ has joined #ruby
08:08
heftig has joined #ruby
08:09
nectarys_ has quit [Ping timeout: 240 seconds]
08:10
codecop has joined #ruby
08:10
thomasxie has joined #ruby
08:10
patrick99e99 has joined #ruby
08:10
emocakes has quit [Read error: Connection reset by peer]
08:10
bMalum has joined #ruby
08:12
bMalum has quit [Client Quit]
08:13
havenwood has joined #ruby
08:14
sea_local has joined #ruby
08:15
patrick99e99 has quit [Ping timeout: 250 seconds]
08:15
kristofferR has joined #ruby
08:15
luckyruby has joined #ruby
08:18
benzrf is now known as benzrf|offline
08:18
havenwood has quit [Ping timeout: 264 seconds]
08:18
senayar has joined #ruby
08:19
thomasxie has quit [Quit: Leaving.]
08:19
osvico has joined #ruby
08:20
arup_r has joined #ruby
08:20
dfish has quit [Quit: WeeChat 0.4.2]
08:20
sparrovv has joined #ruby
08:21
doev has joined #ruby
08:22
nobitanobi has joined #ruby
08:22
fold has quit [Ping timeout: 260 seconds]
08:23
senayar has quit [Remote host closed the connection]
08:23
senayar has joined #ruby
08:26
emocakes has joined #ruby
08:26
danijoo has quit [Read error: Connection reset by peer]
08:26
danijoo has joined #ruby
08:27
nobitanobi has quit [Ping timeout: 240 seconds]
08:28
sea_local has quit [Ping timeout: 255 seconds]
08:28
tlarevo_ has joined #ruby
08:29
adac has quit [Ping timeout: 240 seconds]
08:29
ari-_-e has quit [Ping timeout: 255 seconds]
08:31
tlarevo has quit [Ping timeout: 245 seconds]
08:31
gkagan has joined #ruby
08:34
ghr has joined #ruby
08:35
goshdarnyou has quit [Quit: Connection closed for inactivity]
08:36
gkagan has quit [Ping timeout: 260 seconds]
08:36
roolo has joined #ruby
08:38
yubrew has joined #ruby
08:38
ari-_-e has joined #ruby
08:39
ghr has quit [Ping timeout: 260 seconds]
08:46
yubrew has quit [Ping timeout: 240 seconds]
08:46
angusiguess has joined #ruby
08:46
bMalum has joined #ruby
08:46
kenneth has joined #ruby
08:47
brothmars has quit [Ping timeout: 260 seconds]
08:47
fabrice31 has joined #ruby
08:47
Cache_Money has quit [Ping timeout: 240 seconds]
08:48
ari-_-e has quit [Ping timeout: 245 seconds]
08:50
angusiguess has quit [Ping timeout: 246 seconds]
08:50
emocakes has quit [Ping timeout: 240 seconds]
08:52
fabrice31 has quit [Ping timeout: 250 seconds]
08:53
Cache_Money has joined #ruby
08:54
abuzze has joined #ruby
08:54
starkhalo has quit [Ping timeout: 250 seconds]
08:54
abuzze has quit [Remote host closed the connection]
08:57
jusmyth1 has left #ruby [#ruby]
08:57
GGMethos has quit [Read error: Connection reset by peer]
08:58
threesixes has quit [Remote host closed the connection]
09:02
Nahra has quit [Ping timeout: 246 seconds]
09:02
rjhunter has quit [Remote host closed the connection]
09:03
Dreamer3 has quit [Quit: Computer has gone to sleep.]
09:03
kenneth has quit [Ping timeout: 260 seconds]
09:04
bluOxigen has joined #ruby
09:04
mocchi has joined #ruby
09:05
blueOxigen has quit [Ping timeout: 240 seconds]
09:05
kenneth has joined #ruby
09:06
sparrovv has quit [Remote host closed the connection]
09:06
hamakn has quit [Remote host closed the connection]
09:06
rjhunter has joined #ruby
09:06
lamasnik2 has quit [Ping timeout: 250 seconds]
09:06
GGMethos has joined #ruby
09:06
sparrovv has joined #ruby
09:11
lolmaus has joined #ruby
09:11
sparrovv has quit [Ping timeout: 260 seconds]
09:12
txdv has quit [Read error: Connection reset by peer]
09:13
txdv has joined #ruby
09:14
havenwood has joined #ruby
09:14
marr has joined #ruby
09:15
jack_rabbit has quit [Ping timeout: 246 seconds]
09:16
hellangel7 has quit [Quit: Leaving]
09:17
Cache_Money_ has joined #ruby
09:17
mark06 has left #ruby [#ruby]
09:18
Cache_Money has quit [Ping timeout: 246 seconds]
09:18
Cache_Money_ is now known as Cache_Money
09:19
agent_white has quit [Read error: Connection reset by peer]
09:19
havenwood has quit [Ping timeout: 264 seconds]
09:22
Nahra has joined #ruby
09:23
abuzze has joined #ruby
09:23
nobitanobi has joined #ruby
09:23
abuzze has quit [Read error: Connection reset by peer]
09:24
abuzze has joined #ruby
09:24
abuzze has quit [Remote host closed the connection]
09:24
abuzze has joined #ruby
09:24
bMalum has quit [Quit: bMalum]
09:25
Cache_Money has quit [Ping timeout: 272 seconds]
09:25
gnephiak has quit [Ping timeout: 260 seconds]
09:27
nobitanobi has quit [Ping timeout: 240 seconds]
09:28
sparrovv has joined #ruby
09:30
kyb3r_ has quit [Read error: Connection reset by peer]
09:31
PeterBoy has joined #ruby
09:31
mikeric has quit []
09:32
gkagan has joined #ruby
09:32
yubrew has joined #ruby
09:33
rjhunter has quit [Remote host closed the connection]
09:33
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
09:33
philcrissman has joined #ruby
09:34
Takle has joined #ruby
09:35
ghr has joined #ruby
09:35
narcan has joined #ruby
09:35
hamakn has joined #ruby
09:36
asdii has quit [Ping timeout: 246 seconds]
09:36
gkagan has quit [Ping timeout: 240 seconds]
09:36
narcan has quit [Client Quit]
09:37
yubrew has quit [Ping timeout: 245 seconds]
09:37
narcan has joined #ruby
09:38
philcrissman has quit [Ping timeout: 245 seconds]
09:39
Ostm has joined #ruby
09:39
ghr has quit [Ping timeout: 250 seconds]
09:42
dawkirst has joined #ruby
09:42
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
09:44
Takle has quit [Remote host closed the connection]
09:45
lkba has quit [Ping timeout: 250 seconds]
09:46
angusiguess has joined #ruby
09:48
maximski has joined #ruby
09:48
startupality has joined #ruby
09:49
blackmesa has joined #ruby
09:49
Ilyas_ has joined #ruby
09:49
Ilyas has quit [Read error: Connection reset by peer]
09:51
chipotle has joined #ruby
09:51
angusiguess has quit [Ping timeout: 250 seconds]
09:52
Dreamer3 has joined #ruby
09:52
jhass|off is now known as jhass
09:53
chipotle has quit [Client Quit]
09:53
poulet_a has joined #ruby
09:53
maroloccio has joined #ruby
09:55
PeterBoy has quit [Remote host closed the connection]
09:55
anaeem1 has joined #ruby
09:56
jonathan_alban has joined #ruby
09:56
chipotle has joined #ruby
09:57
poulet_a has left #ruby [#ruby]
09:58
apeiros has quit [Remote host closed the connection]
09:58
apeiros has joined #ruby
09:58
Takle has joined #ruby
09:59
Takle has quit [Remote host closed the connection]
10:02
PeterBoy has joined #ruby
10:02
gaussblurinc1 has joined #ruby
10:03
apeiros has quit [Ping timeout: 245 seconds]
10:04
m8 has joined #ruby
10:06
Shidash has quit [Ping timeout: 245 seconds]
10:06
cpruitt has joined #ruby
10:07
jgrevich has quit [Quit: jgrevich]
10:12
Hobogrammer has quit [Ping timeout: 250 seconds]
10:12
L8D has quit [Ping timeout: 246 seconds]
10:12
frippery has joined #ruby
10:13
frippery has quit [Remote host closed the connection]
10:13
abuzze has quit [Remote host closed the connection]
10:14
abuzze has joined #ruby
10:14
abuzze_ has joined #ruby
10:15
havenwood has joined #ruby
10:16
alex88 has joined #ruby
10:16
chipotle has quit [Quit: cya]
10:17
gaussblurinc1 has quit [Read error: Connection reset by peer]
10:17
gaussblurinc1 has joined #ruby
10:18
abuzze has quit [Ping timeout: 240 seconds]
10:18
lemur has quit [Remote host closed the connection]
10:19
lemur has joined #ruby
10:20
havenwood has quit [Ping timeout: 264 seconds]
10:20
shevy has joined #ruby
10:21
Akagi201 has joined #ruby
10:23
lemur has quit [Ping timeout: 240 seconds]
10:24
Haiiro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
10:24
nobitanobi has joined #ruby
10:26
yubrew has joined #ruby
10:28
nobitanobi has quit [Ping timeout: 240 seconds]
10:30
spider-mario has joined #ruby
10:31
spider-mario has quit [Read error: Connection reset by peer]
10:31
yubrew has quit [Ping timeout: 264 seconds]
10:32
dawkirst has quit [Remote host closed the connection]
10:32
h0lyalg0rithm has joined #ruby
10:33
gkagan has joined #ruby
10:33
emmesswhy has joined #ruby
10:34
spider-mario has joined #ruby
10:36
ghr has joined #ruby
10:36
fabrice31 has joined #ruby
10:37
fantazo has quit [Ping timeout: 260 seconds]
10:37
Takle has joined #ruby
10:37
SCHAAP137 has joined #ruby
10:37
gkagan has quit [Ping timeout: 250 seconds]
10:38
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
10:40
h0lyalg0rithm has joined #ruby
10:40
jonathan_alban has joined #ruby
10:40
ghr has quit [Ping timeout: 250 seconds]
10:41
cocotton has joined #ruby
10:41
cocotton has quit [Remote host closed the connection]
10:41
fabrice31 has quit [Ping timeout: 272 seconds]
10:41
cocotton has joined #ruby
10:42
apeiros has joined #ruby
10:43
cocotton has quit [Remote host closed the connection]
10:45
Takle has joined #ruby
10:45
anaeem1 has quit [Remote host closed the connection]
10:45
agent_white has joined #ruby
10:46
Deele has joined #ruby
10:46
ari-_-e has joined #ruby
10:46
mijicd has quit [Quit: leaving]
10:47
wallerdev has quit [Quit: wallerdev]
10:50
lemur has joined #ruby
10:51
kirun has joined #ruby
10:54
AlexRussia has quit [Ping timeout: 255 seconds]
10:56
lemur has quit [Ping timeout: 240 seconds]
10:57
sea_local has joined #ruby
11:00
danijoo has quit [Read error: Connection reset by peer]
11:00
ari-_-e has quit [Ping timeout: 250 seconds]
11:00
HelperW has joined #ruby
11:00
gnephiak has joined #ruby
11:00
danijoo has joined #ruby
11:00
AlexRussia has joined #ruby
11:01
yfeldblum has quit [Remote host closed the connection]
11:02
yottanami has joined #ruby
11:02
olivier_bK has quit [Ping timeout: 260 seconds]
11:03
<
yottanami >
Is it wrong syntax for ruby 2.1 `self.class.validates :detail_value, **params`
11:03
thomasxie has joined #ruby
11:03
rjhunter has joined #ruby
11:04
nectarys_ has joined #ruby
11:04
sea_local has quit [Ping timeout: 272 seconds]
11:05
Brando753 has quit [Ping timeout: 260 seconds]
11:05
ndrei has quit [Ping timeout: 250 seconds]
11:06
ndrei has joined #ruby
11:06
nectarys__ has quit [Ping timeout: 264 seconds]
11:06
<
yottanami >
I got this error SyntaxError: contact_details.rb:30: syntax error, unexpected tPOW validates :detail_value, **params
11:08
cpruitt has quit [Quit: cpruitt]
11:08
<
shevy >
I guess it dislikes the two *
11:08
<
Mon_Ouie >
21>> validates :detail_value, **params
11:08
<
Hanmac >
yottanami: does self.class.validates(:detail_value, **params) works ?
11:09
adac has joined #ruby
11:09
<
Mon_Ouie >
21>> self.class.validates :detail_value, **params
11:09
<
shevy >
not everyone masters this bot!
11:09
<
Mon_Ouie >
So either you're not using Ruby 2.1 or you're not showing the right code
11:09
<
Mon_Ouie >
I mean, there may something before that is wrong and causes the error
11:11
<
yxhuvud >
what would be the point of using two *s?
11:11
<
Hanmac >
it smells like he uses rvm to install newer ruby, but did it as user basis, but that error comes from a rails app, that is used as different user
11:12
<
Hanmac >
Mon_Ouie: are you mod? raaamina is spamming
11:12
<
Hanmac >
yxhuvud: keyrest args
11:12
<
agent_white >
yxhuvud: For using roots (sp?)
11:12
<
agent_white >
yxhuvud: ie `2*5 == 10`, `2**5 == 32`
11:13
raaamina was banned on #ruby by Mon_Ouie [raaamina!*@*]
11:13
<
agent_white >
Hanmac: Wait...
11:13
raaamina was kicked from #ruby by Mon_Ouie [PM spam]
11:13
doev has quit [Ping timeout: 255 seconds]
11:13
adac has quit [Ping timeout: 246 seconds]
11:13
saladspork has joined #ruby
11:13
<
Mon_Ouie >
I think all it does is convert to a hash if possible
11:13
<
agent_white >
Hanmac: What's a keyrest argument? Can't seem to google anything other than bugs/docs on it.
11:13
<
Mon_Ouie >
(otherwise it causes a TypeError)
11:14
<
agent_white >
shevy:
11:14
<
agent_white >
05:09 < yxhuvud> what would be the point of using two *s?
11:14
<
agent_white >
05:10 < Hanmac> yxhuvud: keyrest args
11:14
<
agent_white >
05:10 < Hanmac> yxhuvud: keyrest args
11:14
<
yottanami >
Hanmac: No I got error unexpected tPOW validates
11:15
<
yottanami >
Hanmac: Am I doing wrong ?
11:15
<
agent_white >
I get that FO FREE with my internet service.
11:15
<
Hanmac >
yxhuvud & agent_white
11:15
<
Hanmac >
>> def m(a,b=3,*c,d: 4,e:, **f,&g) end; method(:m).parameters
11:15
<
eval-in >
Hanmac => [[:req, :a], [:opt, :b], [:rest, :c], [:keyreq, :e], [:key, :d], [:keyrest, :f], [:block, :g]] (
https://eval.in/182621)
11:15
<
shevy >
omg that looks cryptic
11:15
<
shevy >
typical Hanmac code
11:15
startupality has quit [Quit: startupality]
11:15
<
apeiros >
he only made an example of all arg types
11:15
<
Hanmac >
shevy thats only for showing that different types
11:15
<
agent_white >
I'm already awe'ing at having the 3rd param be, to me, a "catch-remaining-params".
11:15
havenwood has joined #ruby
11:16
<
agent_white >
Then having a 4th param.
11:16
<
agent_white >
Ahhhhhhhhhhh
11:16
<
shevy >
how many params do you want?
11:16
<
apeiros >
agent_white: without the args after *c, *c will catch keyword args too
11:16
startupality has joined #ruby
11:16
<
agent_white >
shevy: Iono, you got cheeze and ketchup too?
11:16
<
apeiros >
not sure how it works if you have some :key and :keyreq args
11:17
<
agent_white >
apeiros: Huh... badass! Thank you!
11:17
sea_local has joined #ruby
11:17
<
yxhuvud >
hanmac: that is a method definition though. Are you saying it can be used in calling methods as well?
11:17
<
apeiros >
ah, as soon as you have :keyreq or :key type args, *c won't collect keyword args anymore
11:17
<
Hanmac >
yxhuvud: yes
11:18
Mongey|rageQuit is now known as Mongey
11:18
startupality has quit [Client Quit]
11:19
<
jokke >
gives me an error at line 15: RuntimeError: can't add a new key into hash during iteration
11:19
<
shevy >
work on a copy?
11:19
<
jokke >
i don't understand the problem
11:19
<
jokke >
i'm not adding anything to any hash
11:19
Mongey has left #ruby ["Bye!"]
11:20
<
apeiros >
jokke: make an actually reproducable example please
11:20
havenwood has quit [Ping timeout: 264 seconds]
11:20
SCHAAP137 has quit [Quit: Leaving]
11:20
SCHAAP137 has joined #ruby
11:21
yubrew has joined #ruby
11:21
<
apeiros >
meh, rspec. I'm out.
11:21
georgelappies has joined #ruby
11:21
angusiguess has joined #ruby
11:22
philcrissman has joined #ruby
11:23
saladspork has quit [Quit: saladspork]
11:23
yottanami has quit [Ping timeout: 250 seconds]
11:25
nobitanobi has joined #ruby
11:25
yubrew has quit [Ping timeout: 246 seconds]
11:25
lxsameer has quit [Ping timeout: 246 seconds]
11:26
sea_local has quit [Ping timeout: 264 seconds]
11:26
philcrissman has quit [Ping timeout: 245 seconds]
11:26
startupality has joined #ruby
11:26
doev has joined #ruby
11:27
AlSquire has joined #ruby
11:28
narcan has joined #ruby
11:28
startupality has quit [Client Quit]
11:28
Joffily has joined #ruby
11:29
nobitanobi has quit [Ping timeout: 240 seconds]
11:31
emmesswhy has quit [Quit: This computer has gone to sleep]
11:31
yfeldblum has joined #ruby
11:31
shredding has joined #ruby
11:33
fantazo has joined #ruby
11:33
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:33
mfmfmfmfmfmf has joined #ruby
11:33
startupality has joined #ruby
11:34
gkagan has joined #ruby
11:34
nuck has quit [Ping timeout: 255 seconds]
11:35
nuck has joined #ruby
11:35
doev has quit [Remote host closed the connection]
11:35
startupality has quit [Client Quit]
11:36
rx52 has joined #ruby
11:36
ghr has joined #ruby
11:37
rx52 has quit [Remote host closed the connection]
11:38
lxsameer has joined #ruby
11:38
gkagan has quit [Ping timeout: 240 seconds]
11:38
yottanami has joined #ruby
11:38
adac has joined #ruby
11:41
ghr has quit [Ping timeout: 250 seconds]
11:41
kristofferR has joined #ruby
11:41
ari-_-e has joined #ruby
11:43
adac has quit [Ping timeout: 246 seconds]
11:43
rx186 has joined #ruby
11:43
peckermanzzz has joined #ruby
11:44
alex88 has quit [Ping timeout: 272 seconds]
11:44
shredding has quit [Quit: shredding]
11:45
rx186 has quit [Remote host closed the connection]
11:45
startupality has joined #ruby
11:46
yottanami has left #ruby [#ruby]
11:47
startupality has quit [Client Quit]
11:47
adac has joined #ruby
11:47
gnephiak has quit [Ping timeout: 255 seconds]
11:49
abuzze_ has quit [Remote host closed the connection]
11:50
abuzze has joined #ruby
11:50
rageberry has quit [Ping timeout: 240 seconds]
11:51
abuzze_ has joined #ruby
11:52
CorpusCallosum has joined #ruby
11:52
georgelappies has quit [Remote host closed the connection]
11:54
PeterBoy has quit [Remote host closed the connection]
11:55
luckyruby has quit [Remote host closed the connection]
11:55
abuzze has quit [Ping timeout: 245 seconds]
11:55
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
11:58
ahmads has joined #ruby
12:01
PeterBoy has joined #ruby
12:02
dawkirst has joined #ruby
12:03
timonv_ has joined #ruby
12:03
lkba has joined #ruby
12:04
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
12:04
ari-_-e has quit [Ping timeout: 240 seconds]
12:05
hamakn has quit [Remote host closed the connection]
12:09
Davedo has quit [Ping timeout: 250 seconds]
12:10
ARCADIVS has joined #ruby
12:11
patrick99e99 has joined #ruby
12:15
yubrew has joined #ruby
12:16
Nahra has quit [Remote host closed the connection]
12:16
havenwood has joined #ruby
12:17
patrick99e99 has quit [Ping timeout: 272 seconds]
12:17
Nahra has joined #ruby
12:19
Davedo has joined #ruby
12:19
rbenv has quit [Ping timeout: 272 seconds]
12:19
yubrew has quit [Ping timeout: 264 seconds]
12:20
<
shevy >
cmake kinda stinks
12:21
havenwood has quit [Ping timeout: 264 seconds]
12:21
dawkirst has quit [Remote host closed the connection]
12:23
dawkirst has joined #ruby
12:25
fabrice31 has joined #ruby
12:25
nobitanobi has joined #ruby
12:26
emocakes has joined #ruby
12:26
<
jhass >
jokke: traceback ?
12:28
sparrovv has quit [Remote host closed the connection]
12:28
sparrovv has joined #ruby
12:29
nobitanobi has quit [Ping timeout: 240 seconds]
12:30
robbyoconnor has joined #ruby
12:30
fabrice31 has quit [Ping timeout: 272 seconds]
12:30
phoo1234567 has joined #ruby
12:31
phoo1234567 has quit [Max SendQ exceeded]
12:32
phoo1234567 has joined #ruby
12:32
Sawbones has joined #ruby
12:32
osvico has quit [Ping timeout: 260 seconds]
12:32
bMalum has joined #ruby
12:33
sparrovv has quit [Ping timeout: 260 seconds]
12:34
gkagan has joined #ruby
12:36
ptrrr has joined #ruby
12:36
claymore has quit [Quit: Leaving]
12:37
ghr has joined #ruby
12:37
dgutierrez1287 has joined #ruby
12:37
TorpedoSkyline has joined #ruby
12:38
dkamioka has joined #ruby
12:39
gkagan has quit [Ping timeout: 246 seconds]
12:42
ghr has quit [Ping timeout: 245 seconds]
12:43
Sawbones has quit [Remote host closed the connection]
12:44
gnephiak has joined #ruby
12:45
schoppenhauer has left #ruby ["Adé"]
12:45
WoAyumi has joined #ruby
12:45
shredding has joined #ruby
12:46
WoAyumi has quit [Remote host closed the connection]
12:46
PeterBoy has quit [Remote host closed the connection]
12:48
parduse has quit [Ping timeout: 240 seconds]
12:49
dkamioka has quit [Remote host closed the connection]
12:49
parduse has joined #ruby
12:49
dkamioka has joined #ruby
12:51
<
shevy >
do many people use File.join?
12:51
<
shevy >
it always seemed as if I can just use / directly instead, even on windows
12:51
britneywright has joined #ruby
12:53
<
Hanmac >
hm i shill prefer File.join ...
12:53
<
Nowaker >
shevy: thats what i think too
12:53
lemur has joined #ruby
12:53
<
shevy >
Hanmac yeah but why?
12:53
<
Nowaker >
i only use file.join when path components are in variables
12:53
<
Hanmac >
hm imo it does make more sense
12:54
dkamioka has quit [Ping timeout: 240 seconds]
12:54
<
Nowaker >
so i dont do string concats
12:54
<
shevy >
Nowaker isn't that the same as a string concat though?
12:54
lxsameer has quit [Remote host closed the connection]
12:54
<
shevy >
a = '/tmp'; b = 'test.txt'
12:54
<
jhass >
>> File.join("/foo/", "/bar/", "baz") # shevy
12:54
Xeago has joined #ruby
12:55
<
shevy >
yeah, you just have a .squeeze('/') there
12:55
nszceta has joined #ruby
12:55
<
jhass >
which is as verbose as a File.join
12:55
<
Hanmac >
or like that ;P
12:55
<
Hanmac >
>> %w[abc def ghi] * ?/
12:56
PeterBoy has joined #ruby
12:56
<
jhass >
I hate Array#* with a string :/
12:57
<
jhass >
it's so inconsistent, my string accidentally becomes a Fixnum and the behavior is completely different
12:57
<
jhass >
not that that should happen, but it asks for subtle bugs
12:58
axilla_ has joined #ruby
12:59
UKn0Me has joined #ruby
12:59
lemur has quit [Ping timeout: 240 seconds]
13:00
axilla has quit [Ping timeout: 250 seconds]
13:00
startupality has joined #ruby
13:00
yfeldblu_ has joined #ruby
13:00
<
Hanmac >
jhass then you could do "Array(val) * ?/" then its garanted that you have an array ;P
13:01
alex88 has joined #ruby
13:02
startupality has quit [Client Quit]
13:02
<
shevy >
why do you keep on using ?/
13:03
<
Mon_Ouie >
So that his code breaks in Ruby 1.8
13:03
blackmesa has quit [Ping timeout: 240 seconds]
13:03
<
Mon_Ouie >
18>> [1, 2, 3] * ?/
13:03
<
eval-in >
Mon_Ouie => [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, ... (
https://eval.in/182674)
13:03
yfeldblum has quit [Ping timeout: 240 seconds]
13:04
saladspork has joined #ruby
13:04
<
Mon_Ouie >
It doesn't do the same thing as in 1.9 at all
13:04
UKn0Me has quit [Quit: Gone to burn stuff.]
13:04
<
shevy >
I am beginning to believe that Hanmac gets Hanmacesque changes into ruby core
13:05
<
Mon_Ouie >
19>> ['a', 'b', 'c'] * ?/
13:05
hamakn has joined #ruby
13:05
yfeldblu_ has quit [Ping timeout: 255 seconds]
13:05
L8D has joined #ruby
13:05
UKn0Me has joined #ruby
13:05
Blizzy has joined #ruby
13:05
<
Mon_Ouie >
Because ?/ is a character literal, which means it becomes a string in 1.9+ and an integer in older versions
13:05
WoAyumi has joined #ruby
13:05
parduse is now known as Guest73906
13:05
Guest35507 has joined #ruby
13:05
Guest73906 has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
13:05
Guest35507 is now known as parduse
13:06
parduse is now known as Guest79489
13:06
WoAyumi has quit [Client Quit]
13:09
yubrew has joined #ruby
13:09
blackmesa has joined #ruby
13:09
Mongey has joined #ruby
13:10
Sawbones has joined #ruby
13:10
philcrissman has joined #ruby
13:12
Sawbones has quit [Remote host closed the connection]
13:12
sea_local has joined #ruby
13:13
emocakes has quit []
13:13
UKn0Me has quit [Quit: Gone to burn stuff.]
13:13
yubrew has quit [Ping timeout: 245 seconds]
13:14
UKn0Me has joined #ruby
13:14
jdj_dk has quit [Remote host closed the connection]
13:14
philcrissman has quit [Ping timeout: 255 seconds]
13:16
raldu has quit [Quit: disconnecting...]
13:17
havenwood has joined #ruby
13:20
mityaz has joined #ruby
13:21
RTG` has quit [Ping timeout: 255 seconds]
13:21
pskosinski has joined #ruby
13:21
_808chris has joined #ruby
13:22
havenwood has quit [Ping timeout: 264 seconds]
13:23
adamholt has joined #ruby
13:23
jusmyth has joined #ruby
13:26
nobitanobi has joined #ruby
13:26
sea_local has quit [Ping timeout: 255 seconds]
13:27
PeterBoy has quit [Remote host closed the connection]
13:28
sepp2k has joined #ruby
13:28
yfeldblum has joined #ruby
13:29
dgutierrez1287 has quit [Ping timeout: 272 seconds]
13:30
nobitanobi has quit [Ping timeout: 240 seconds]
13:31
blackmesa has quit [Ping timeout: 240 seconds]
13:32
yfeldblum has quit [Ping timeout: 255 seconds]
13:33
_lexjm has joined #ruby
13:33
_lexjm has quit [Client Quit]
13:35
ctp_ has joined #ruby
13:35
havenwood has joined #ruby
13:35
Haiiro has joined #ruby
13:35
gkagan has joined #ruby
13:35
soulcake has quit [Quit: Quack.]
13:36
ctp has quit [Ping timeout: 245 seconds]
13:36
soulcake has joined #ruby
13:38
ghr has joined #ruby
13:39
gkagan has quit [Ping timeout: 240 seconds]
13:40
razum2um1 has joined #ruby
13:41
razum2um has quit [Ping timeout: 264 seconds]
13:43
startupality has joined #ruby
13:43
ghr has quit [Ping timeout: 272 seconds]
13:44
Xeago has quit [Remote host closed the connection]
13:44
blackmesa has joined #ruby
13:44
charliesome has joined #ruby
13:46
saladspork has quit [Quit: saladspork]
13:47
jusmyth has quit [Quit: Leaving.]
13:50
adac has quit [Ping timeout: 250 seconds]
13:51
rjhunter has quit [Remote host closed the connection]
13:51
dorei has joined #ruby
13:53
craigp has quit [Remote host closed the connection]
13:53
PeterBoy has joined #ruby
13:54
dawkirst has quit [Remote host closed the connection]
13:54
startupality has quit [Quit: startupality]
13:54
SouL has joined #ruby
13:55
sea_local has joined #ruby
13:55
soxet has joined #ruby
13:56
jusmyth has joined #ruby
13:56
dawkirst_ has joined #ruby
13:56
lemur has joined #ruby
13:57
craigp has joined #ruby
13:57
Cheezebox has joined #ruby
13:57
jfutbol has joined #ruby
13:58
dawkirst_ has quit [Remote host closed the connection]
13:58
rjhunter has joined #ruby
13:58
ari-_-e has joined #ruby
13:59
Jetchisel has quit [Ping timeout: 250 seconds]
13:59
Neomex has joined #ruby
14:00
yeticry has quit [Read error: Connection reset by peer]
14:01
lemur has quit [Ping timeout: 255 seconds]
14:01
olivier_bK has joined #ruby
14:02
RTG` has joined #ruby
14:03
merqlove has joined #ruby
14:03
Jetchisel has joined #ruby
14:03
yubrew has joined #ruby
14:03
RTG` has quit [Disconnected by services]
14:03
RTG has joined #ruby
14:04
RTG is now known as Guest51661
14:05
gccostabr has joined #ruby
14:06
yeticry has joined #ruby
14:07
spastorino has joined #ruby
14:08
Guest51661 has quit [Ping timeout: 245 seconds]
14:08
yubrew has quit [Ping timeout: 272 seconds]
14:11
PeterBoy has quit [Remote host closed the connection]
14:11
Logico has joined #ruby
14:11
ccooke has quit [Ping timeout: 240 seconds]
14:12
krz has joined #ruby
14:12
moritzs has joined #ruby
14:12
ccooke has joined #ruby
14:12
Robert__ has joined #ruby
14:13
CorpusCallosum has quit [Remote host closed the connection]
14:14
gccostabr has quit [Quit: ZZZzzz…]
14:14
fabrice31 has joined #ruby
14:15
kenndel_ has quit [Ping timeout: 240 seconds]
14:16
dawkirst has joined #ruby
14:17
jusmyth has quit [Quit: Leaving.]
14:17
lkba has quit [Remote host closed the connection]
14:18
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:18
gccostabr has joined #ruby
14:18
fabrice31 has quit [Ping timeout: 250 seconds]
14:18
krz has quit [Quit: WeeChat 1.0]
14:18
moritzs has quit [Ping timeout: 260 seconds]
14:19
jusmyth has joined #ruby
14:20
TaxmanBD has joined #ruby
14:20
britneywright has joined #ruby
14:20
sinkensabe has quit [Remote host closed the connection]
14:21
dgutierrez1287 has joined #ruby
14:22
Cheezebox has quit [Remote host closed the connection]
14:22
blackmesa has quit [Ping timeout: 264 seconds]
14:22
gccostabr has quit [Client Quit]
14:23
saladspork has joined #ruby
14:23
agjacome has joined #ruby
14:24
gnephiak has quit [Ping timeout: 245 seconds]
14:25
jfutbol has quit [Remote host closed the connection]
14:25
yfeldblum has joined #ruby
14:25
sea_local has quit [Ping timeout: 255 seconds]
14:26
arup_r1 has joined #ruby
14:26
Cheezebox has joined #ruby
14:26
arup_r has quit [Ping timeout: 264 seconds]
14:27
nobitanobi has joined #ruby
14:28
lkba has joined #ruby
14:29
sparrovv has joined #ruby
14:29
CorpusCallosum has joined #ruby
14:29
ari-_-e has quit [Ping timeout: 245 seconds]
14:29
jusmyth has quit [Quit: Leaving.]
14:29
yfeldblum has quit [Ping timeout: 246 seconds]
14:30
Cheezebox has quit [Remote host closed the connection]
14:31
nobitanobi has quit [Ping timeout: 240 seconds]
14:33
georgesmith has joined #ruby
14:34
sparrovv has quit [Ping timeout: 260 seconds]
14:35
h0lyalg0rithm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
14:36
gkagan has joined #ruby
14:36
IceDragon has joined #ruby
14:38
maximski has quit []
14:39
ghr has joined #ruby
14:39
kaspergrubbe_ has joined #ruby
14:40
Jetchisel has quit [Ping timeout: 250 seconds]
14:41
gkagan has quit [Ping timeout: 260 seconds]
14:41
charliesome has quit [Quit: zzz]
14:41
charliesome has joined #ruby
14:42
PeterBoy has joined #ruby
14:42
maximski has joined #ruby
14:42
georgesmith has quit [Ping timeout: 255 seconds]
14:43
dawkirst has quit [Remote host closed the connection]
14:43
ghr has quit [Ping timeout: 250 seconds]
14:44
bryanhowarth has quit [Quit: sleep | bryan.howarth@gmail.com | twitter.com/bryanhowarth]
14:44
threesixes has joined #ruby
14:44
maximski has quit [Client Quit]
14:46
maximski has joined #ruby
14:47
roshanavand has joined #ruby
14:47
dawkirst_ has joined #ruby
14:47
craigp has quit [Ping timeout: 245 seconds]
14:48
craigp has joined #ruby
14:48
shredding has quit [Quit: shredding]
14:48
mfmfmfmfmfmf has quit [Remote host closed the connection]
14:49
jfutbol has joined #ruby
14:49
jfutbol has quit [Remote host closed the connection]
14:49
shredding has joined #ruby
14:50
sepp2k has quit [Read error: Connection reset by peer]
14:50
charliesome has quit [Quit: zzz]
14:51
dawkirst_ has quit [Ping timeout: 260 seconds]
14:51
georgesmith has joined #ruby
14:51
HoloIRCUser has joined #ruby
14:52
_808chris has quit [Ping timeout: 255 seconds]
14:53
agent_white has quit [Ping timeout: 250 seconds]
14:54
rx127 has joined #ruby
14:54
rx127 has quit [Remote host closed the connection]
14:54
Iota-Spencer is now known as IotaSpencer
14:55
agent_white has joined #ruby
14:55
agent_white has quit [Read error: Connection reset by peer]
14:55
TaxmanBD has quit [Quit: Leaving]
14:55
TaxmanBD has joined #ruby
14:55
rx231 has joined #ruby
14:55
rx231 has quit [Remote host closed the connection]
14:56
maximski has quit []
14:56
HoloIRCUser has quit [Remote host closed the connection]
14:56
thomasxie has quit [Ping timeout: 240 seconds]
14:57
rx56 has joined #ruby
14:57
yubrew has joined #ruby
14:57
lemur has joined #ruby
14:57
rx56 has quit [Remote host closed the connection]
14:58
PeterBoy has quit [Remote host closed the connection]
14:58
philcrissman has joined #ruby
14:58
krz has joined #ruby
14:59
rx199 has joined #ruby
14:59
brothmars has joined #ruby
15:00
agent_white has joined #ruby
15:00
rx199 has quit [Remote host closed the connection]
15:00
agent_white has quit [Read error: Connection reset by peer]
15:02
yubrew has quit [Ping timeout: 250 seconds]
15:02
lemur has quit [Ping timeout: 240 seconds]
15:02
sdrew has joined #ruby
15:02
rx241 has joined #ruby
15:02
jfutbol has joined #ruby
15:03
philcrissman has quit [Ping timeout: 264 seconds]
15:03
rx241 has quit [Remote host closed the connection]
15:03
jfutbol has quit [Remote host closed the connection]
15:05
agent_white has joined #ruby
15:05
agent_white has quit [Read error: Connection reset by peer]
15:05
sylvanica_ has joined #ruby
15:06
PeterBoy has joined #ruby
15:06
dkamioka has joined #ruby
15:06
rx164 has joined #ruby
15:06
jackz has joined #ruby
15:07
jackz has left #ruby [#ruby]
15:07
Sawbones has joined #ruby
15:07
jackz has joined #ruby
15:08
Hanmac has quit [Quit: Leaving.]
15:08
Hanmac has joined #ruby
15:09
grenierm has joined #ruby
15:10
agent_white has joined #ruby
15:10
agent_white has quit [Read error: Connection reset by peer]
15:11
linojon has quit [Quit: linojon]
15:11
atheneith has joined #ruby
15:12
krz has quit [Quit: WeeChat 1.0]
15:12
rx164 has quit [Remote host closed the connection]
15:12
atheneith has left #ruby [#ruby]
15:12
thomasxie has joined #ruby
15:13
krz has joined #ruby
15:13
grenierm has quit [Quit: grenierm]
15:13
IceDragon has quit [Ping timeout: 260 seconds]
15:14
IceDragon has joined #ruby
15:15
georgesmith has quit [Quit: georgesmith]
15:15
agent_white has joined #ruby
15:15
agent_white has quit [Read error: Connection reset by peer]
15:16
georgelappies has joined #ruby
15:16
charliesome has joined #ruby
15:17
ARCADIVS has quit [Quit: WeeChat 0.4.3]
15:19
j416 has joined #ruby
15:19
saladspork has quit [Quit: saladspork]
15:19
osvico has joined #ruby
15:19
Sawbones has quit [Remote host closed the connection]
15:19
noshi has quit [Read error: Connection reset by peer]
15:19
ari-_-e has joined #ruby
15:19
ahmads has quit [Ping timeout: 260 seconds]
15:19
olivier_bK has quit [Ping timeout: 260 seconds]
15:20
agent_white has joined #ruby
15:20
agent_white has quit [Read error: Connection reset by peer]
15:22
Pharaoh2 has joined #ruby
15:22
toastynerd has joined #ruby
15:22
linojon has joined #ruby
15:24
charliesome has quit [Quit: zzz]
15:24
krz has quit [Quit: WeeChat 1.0]
15:24
_808chris has joined #ruby
15:25
SouL has quit [Read error: Connection reset by peer]
15:25
agent_white has joined #ruby
15:25
agent_white has quit [Read error: Connection reset by peer]
15:25
ari-_-e has quit [Ping timeout: 260 seconds]
15:26
brothmars has quit [Ping timeout: 245 seconds]
15:26
Soda has quit [Remote host closed the connection]
15:26
sylvanica_ has quit [Read error: Connection reset by peer]
15:27
michaeldeol has joined #ruby
15:27
michaeldeol has quit [Client Quit]
15:28
nobitanobi has joined #ruby
15:28
TaxmanBD has quit [Quit: Leaving]
15:29
brothmars has joined #ruby
15:29
_808chris has quit [Ping timeout: 245 seconds]
15:30
PeterBoy has quit [Remote host closed the connection]
15:30
agent_white has joined #ruby
15:30
dkamioka has quit [Ping timeout: 240 seconds]
15:30
agent_white has quit [Read error: Connection reset by peer]
15:30
apeiros has quit [Remote host closed the connection]
15:31
apeiros has joined #ruby
15:32
nobitanobi has quit [Ping timeout: 240 seconds]
15:32
olivier_bK has joined #ruby
15:33
rx148 has joined #ruby
15:34
IceDragon has quit [Ping timeout: 245 seconds]
15:34
krz has joined #ruby
15:34
rx148 has quit [Remote host closed the connection]
15:34
IceDragon has joined #ruby
15:34
tef has joined #ruby
15:34
Guest79489 has quit []
15:35
claymore has joined #ruby
15:35
parduse has joined #ruby
15:35
agent_white has joined #ruby
15:35
dawkirst has joined #ruby
15:35
agent_white has quit [Read error: Connection reset by peer]
15:36
apeiros has quit [Ping timeout: 255 seconds]
15:36
jackz has quit [Read error: Connection reset by peer]
15:36
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
15:37
gkagan has joined #ruby
15:38
froggy_ has joined #ruby
15:38
rx18 has joined #ruby
15:38
flowerha_ has quit [Remote host closed the connection]
15:38
rx18 has quit [Remote host closed the connection]
15:39
PeterBoy has joined #ruby
15:39
ghr has joined #ruby
15:40
agent_white has joined #ruby
15:40
agent_white has quit [Read error: Connection reset by peer]
15:40
dawkirst has quit [Remote host closed the connection]
15:41
gkagan has quit [Ping timeout: 250 seconds]
15:41
heftig has quit [Ping timeout: 240 seconds]
15:41
froggy__ has quit [Ping timeout: 246 seconds]
15:42
flowerhack has joined #ruby
15:42
Cheezebox has joined #ruby
15:42
mercerist has joined #ruby
15:43
sylvanica_ has joined #ruby
15:43
krz has quit [Quit: WeeChat 1.0]
15:44
ghr has quit [Ping timeout: 264 seconds]
15:44
blackmesa has joined #ruby
15:45
agent_white has joined #ruby
15:45
agent_white has quit [Read error: Connection reset by peer]
15:46
moritzs has joined #ruby
15:46
sysx1000 has quit [Quit: drive never ends]
15:47
ahmads has joined #ruby
15:48
Takle has quit [Remote host closed the connection]
15:48
senayar has quit [Remote host closed the connection]
15:49
Takle has joined #ruby
15:49
dkamioka has joined #ruby
15:50
Zipzap has joined #ruby
15:50
Zipzap has quit [Client Quit]
15:50
AlexRussia has quit [Ping timeout: 264 seconds]
15:50
agent_white has joined #ruby
15:50
agent_white has quit [Read error: Connection reset by peer]
15:50
GodPuppet has joined #ruby
15:51
moritzs has quit [Ping timeout: 245 seconds]
15:51
ahmads has quit [Read error: Connection reset by peer]
15:51
yubrew has joined #ruby
15:52
AlexRussia has joined #ruby
15:53
Azure has quit [Ping timeout: 250 seconds]
15:53
bthesorceror has joined #ruby
15:53
ahmads has joined #ruby
15:55
agent_white has joined #ruby
15:55
agent_white has quit [Read error: Connection reset by peer]
15:55
yubrew has quit [Ping timeout: 240 seconds]
15:56
davispuh has joined #ruby
15:56
ahmads has quit [Read error: Connection reset by peer]
15:56
frankle has joined #ruby
15:56
Xeago has joined #ruby
16:00
agent_white has joined #ruby
16:00
agent_white has quit [Read error: Connection reset by peer]
16:00
andrewlio has joined #ruby
16:01
fantazo has quit [Ping timeout: 245 seconds]
16:02
motto has joined #ruby
16:02
fabrice31 has joined #ruby
16:02
Fezzler has joined #ruby
16:04
sea_local has joined #ruby
16:04
gnephiak has joined #ruby
16:04
m8 has quit [Ping timeout: 260 seconds]
16:05
havenwood has quit [Remote host closed the connection]
16:05
agent_white has joined #ruby
16:05
agent_white has quit [Read error: Connection reset by peer]
16:06
havenwood has joined #ruby
16:07
gaussblurinc1 has quit [Quit: Leaving.]
16:07
ahmads has joined #ruby
16:07
fabrice31 has quit [Ping timeout: 240 seconds]
16:07
dawkirst has joined #ruby
16:09
Channel6 has joined #ruby
16:10
havenwood has quit [Ping timeout: 264 seconds]
16:10
krz has joined #ruby
16:10
agent_white has joined #ruby
16:10
agent_white has quit [Read error: Connection reset by peer]
16:11
bthesorceror has quit [Quit: bthesorceror]
16:12
seamon has joined #ruby
16:13
apeiros has joined #ruby
16:13
dawkirst has quit [Remote host closed the connection]
16:13
patrick99e99 has joined #ruby
16:14
guardian has joined #ruby
16:15
<
guardian >
hello, is there a prettier way to write foo.join('/').concat('/') ?
16:15
agent_white has joined #ruby
16:15
shizus has joined #ruby
16:15
agent_white has quit [Read error: Connection reset by peer]
16:16
lkba has quit [Ping timeout: 255 seconds]
16:16
Azure has joined #ruby
16:16
arup_r1 has quit [Quit: Leaving.]
16:16
<
shizus >
Hi! I was doing some homework for college and I realized I had no idea how to organize a Ruby project
16:17
arup_r has joined #ruby
16:17
<
shevy >
shizus it is simple - most stuff goes into lib/
16:17
<
shizus >
All I found so far was about creating projects for gem creation and stuff like that
16:17
<
shevy >
if you happen to have commandline programs, you might want to put them into bin/
16:17
<
shevy >
if you have testing files, test/ is the proper dir
16:17
<
shevy >
the gem layout is the standard really
16:17
sea_local has quit [Ping timeout: 260 seconds]
16:18
<
shevy >
if you have C code, usually an extra dir is used, called ext/
16:18
<
shevy >
guardian File.join perhaps ... File.join(*foo)
16:18
<
shizus >
Thanks shavy! I'll keep trying then ;)
16:18
patrick99e99 has quit [Ping timeout: 272 seconds]
16:18
krz has quit [Quit: WeeChat 1.0]
16:18
<
shevy >
>> foo = %w( /tmp test.txt ); File.join(*foo)
16:19
craigp has quit [Remote host closed the connection]
16:19
IceDragon has quit [Ping timeout: 255 seconds]
16:19
<
shizus >
The default layout created by bundler it's ok then?
16:19
<
shevy >
don't shave my yak fur please
16:19
<
shevy >
I dunno, I don't use bundler, it is too complicated for me
16:19
<
shizus >
*shevy, sorry, lol
16:19
<
shevy >
I think bundler generates a few more dirs + some files
16:19
<
shevy >
are you on linux?
16:19
krz has joined #ruby
16:20
<
shevy >
name of your project
16:20
<
shevy >
mkdir foobar
16:20
<
shevy >
mkdir lib test
16:20
<
shevy >
mkdir foobar
16:20
agent_white has joined #ruby
16:20
<
shevy >
touch foobar.rb
16:20
<
pontiki >
oh brother
16:20
agent_white has quit [Read error: Connection reset by peer]
16:20
<
pontiki >
just do `bundler gem foobar`
16:21
IceDragon has joined #ruby
16:21
rx242 has joined #ruby
16:22
<
shizus >
OK, thank you both, i'll be back with more questions soon
16:22
<
jhass >
guardian: File.join(*foo, '/')
16:22
gaussblurinc1 has joined #ruby
16:23
Fezzler has quit [Quit: Leaving]
16:23
sea_local has joined #ruby
16:25
agent_white has joined #ruby
16:25
<
gaussblurinc1 >
is anybody here?
16:25
agent_white has quit [Read error: Connection reset by peer]
16:26
sylvanica_ is now known as sylvanica
16:26
<
shevy >
gaussblurinc1 hi
16:28
motto has quit [Quit: Sto andando via]
16:28
rx242 has quit [Remote host closed the connection]
16:28
m8 has joined #ruby
16:28
rx41 has joined #ruby
16:28
sparrovv has joined #ruby
16:28
nobitanobi has joined #ruby
16:29
rx41 has quit [Remote host closed the connection]
16:29
flowerhack has quit [Remote host closed the connection]
16:29
rx108 has joined #ruby
16:29
maoko has joined #ruby
16:30
<
gaussblurinc1 >
shevy: hi!
16:30
rx108 has quit [Remote host closed the connection]
16:30
CaptainJet has joined #ruby
16:30
_cpt_yossarian_ has quit [Quit: Leaving]
16:30
havenwood has joined #ruby
16:30
agent_white has joined #ruby
16:30
<
gaussblurinc1 >
do you know how to set cookies with net::http?
16:30
agent_white has quit [Read error: Connection reset by peer]
16:30
cpt_yossarian has joined #ruby
16:31
jcoglan has joined #ruby
16:31
rx225 has joined #ruby
16:31
rx225 has quit [Remote host closed the connection]
16:32
<
shevy >
with cgi it is like this: cookie = CGI::Cookie.new "rubyweb", "CustID=123", "Part=ABC"
16:33
nobitanobi has quit [Ping timeout: 240 seconds]
16:33
sparrovv has quit [Ping timeout: 260 seconds]
16:34
nanoyak has joined #ruby
16:35
agent_white has joined #ruby
16:35
gregf has quit [Quit: WeeChat 0.4.3]
16:35
agent_white has quit [Read error: Connection reset by peer]
16:37
emmesswhy has joined #ruby
16:37
timonv_ has quit [Remote host closed the connection]
16:37
charliesome has joined #ruby
16:37
gkagan has joined #ruby
16:37
sepp2k has joined #ruby
16:40
<
guardian >
yeah File.join(*'/foo/'.split('/'), '/'), not better than << '/'
16:40
<
guardian >
but thx for the help
16:40
agent_white has joined #ruby
16:40
chipotle has joined #ruby
16:40
ghr has joined #ruby
16:40
agent_white has quit [Read error: Connection reset by peer]
16:41
Arkaniad has quit [Ping timeout: 255 seconds]
16:41
terlar has quit [Quit: WeeChat 0.4.2]
16:41
<
guardian >
I have another question
16:41
charliesome has quit [Ping timeout: 255 seconds]
16:41
<
guardian >
when not using bundle exec, I get WARN: Unresolved specs during Gem::Specification.reset:
16:41
havenwood has quit [Remote host closed the connection]
16:42
<
guardian >
it seems to be caused by a gem being available in 2 versions, for which there's a runtime dependency added in the gemspec
16:42
chipotle has quit [Client Quit]
16:42
gkagan has quit [Ping timeout: 250 seconds]
16:42
sea_local has quit [Ping timeout: 255 seconds]
16:42
<
guardian >
using bundle exec makes the warning disappear, gem cleanup makes the warning disappear (by removing the older version of the dependency)
16:42
<
guardian >
is there another way?
16:43
<
guardian >
I'm not using rbenv or rvm btw
16:43
Cheezebox has quit [Remote host closed the connection]
16:44
Cheezebox has joined #ruby
16:45
ghr has quit [Ping timeout: 250 seconds]
16:45
agent_white has joined #ruby
16:45
agent_white has quit [Read error: Connection reset by peer]
16:46
yubrew has joined #ruby
16:46
comma8 has quit [Read error: Connection reset by peer]
16:46
philcrissman has joined #ruby
16:47
cy has joined #ruby
16:47
terlar has joined #ruby
16:48
<
TieSoul >
hey guys, anyone know how I would use sprunge.us in Ruby?
16:48
Cheezebox has quit [Ping timeout: 255 seconds]
16:49
mfmfmfmfmfmf has joined #ruby
16:50
yubrew has quit [Ping timeout: 240 seconds]
16:50
agent_white has joined #ruby
16:50
agent_white has quit [Write error: Connection reset by peer]
16:50
georgelappies has quit [Remote host closed the connection]
16:51
philcrissman has quit [Ping timeout: 264 seconds]
16:51
shredding has quit [Quit: shredding]
16:52
Cheezebox has joined #ruby
16:52
gnephiak has quit [Ping timeout: 260 seconds]
16:53
sdwrage has joined #ruby
16:53
maroloccio has quit [Quit: WeeChat 0.4.3]
16:53
sdwrage has quit [Remote host closed the connection]
16:54
mfmfmfmfmfmf has quit [Ping timeout: 250 seconds]
16:54
terlar has quit [Quit: WeeChat 1.0]
16:55
terlar has joined #ruby
16:55
terlar has quit [Client Quit]
16:55
sdwrage has joined #ruby
16:55
IceDragon has quit [Ping timeout: 260 seconds]
16:55
agent_white has joined #ruby
16:55
ari-_-e has joined #ruby
16:55
agent_white has quit [Read error: Connection reset by peer]
16:56
IceDragon has joined #ruby
16:57
merqlove has quit [Quit: Connection closed for inactivity]
16:57
banister_ has joined #ruby
16:58
banister_ has quit [Max SendQ exceeded]
16:58
<
shevy >
see jhass? guardian is not convinced :)
16:58
banister_ has joined #ruby
16:58
lemur has joined #ruby
16:59
banister has quit [Read error: Connection reset by peer]
17:00
<
guardian >
yeah the exact context, should have started by this: item.identifier.split('/').map(&:to_url).join('/') << '/'
17:00
<
jhass >
guardian: eh, your suddenly changed the initial question, so it's about ensuring a '/' at the end? .chomp('/').concat('/') then
17:00
<
guardian >
identifier is a string, like '/foo/bar-baz/'
17:00
agent_white has joined #ruby
17:00
<
guardian >
and I'm using stringex#to_url on each part
17:00
agent_white has quit [Read error: Connection reset by peer]
17:00
sdwrage has quit [Quit: This computer has gone to sleep]
17:01
<
guardian >
so bringing in File.join() looks bizarre to me :)
17:01
craigp has joined #ruby
17:01
<
jhass >
I'd consider replacing the urlencoded / then
17:02
<
jhass >
item.identifier.to_url.gsub('%I forgot', '/')
17:02
dkamioka has quit [Ping timeout: 260 seconds]
17:02
<
jhass >
3F or what it was
17:02
banister has joined #ruby
17:02
banister_ has quit [Read error: Connection reset by peer]
17:03
chipotle has joined #ruby
17:03
sylvanica_ has joined #ruby
17:03
lemur has quit [Ping timeout: 240 seconds]
17:03
<
jhass >
guardian: to the other question, no there's no other way. You can have require 'bundler/setup' as the first require but that does the same thing as bundle exec
17:03
sylvanica has quit [Disconnected by services]
17:03
sylvanica_ is now known as sylvanica
17:04
ari-_-e has quit [Ping timeout: 250 seconds]
17:05
<
guardian >
thank you
17:05
agent_white has joined #ruby
17:05
agent_white has quit [Read error: Connection reset by peer]
17:05
dkamioka has joined #ruby
17:06
alex88 has quit [Quit: Leaving...]
17:07
chipotle has quit [Client Quit]
17:07
seamon has quit [Quit: Zzzzzzz]
17:07
yfeldblum has joined #ruby
17:08
chipotle has joined #ruby
17:08
CaptainJet has quit [Ping timeout: 246 seconds]
17:09
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
17:09
<
shevy >
how do you people feel about bots that announce stuff?
17:09
<
shevy >
on IRC in general
17:09
chipotle has quit [Client Quit]
17:10
maroloccio has joined #ruby
17:10
agent_white has joined #ruby
17:10
asteve has joined #ruby
17:10
<
waxjar >
depends on what they're announcing. i could do without the "gem x has been updated!" ones
17:11
agent_white has quit [Read error: Connection reset by peer]
17:11
Aranshada|W has quit [Ping timeout: 240 seconds]
17:12
sdwrage has joined #ruby
17:12
yfeldblum has quit [Ping timeout: 240 seconds]
17:13
Rahul_Roy has joined #ruby
17:14
seamon has joined #ruby
17:15
agent_white has joined #ruby
17:15
emmesswhy has quit [Quit: Leaving]
17:16
agent_white has quit [Read error: Connection reset by peer]
17:16
chipotle has joined #ruby
17:16
shredding has joined #ruby
17:17
lkba has joined #ruby
17:17
starkhalo has joined #ruby
17:17
ari-_-e has joined #ruby
17:18
Takle has quit [Remote host closed the connection]
17:18
Dr3amc0d3r|away has joined #ruby
17:19
Takle has joined #ruby
17:20
craigp has quit [Remote host closed the connection]
17:20
agent_white has joined #ruby
17:21
agent_white has quit [Read error: Connection reset by peer]
17:21
IceDragon has quit [Ping timeout: 255 seconds]
17:21
shredding has quit [Ping timeout: 264 seconds]
17:21
sepp2k has quit [Quit: Leaving.]
17:21
IceDragon has joined #ruby
17:22
<
shevy >
on #libreoffice they have a very noisy bot
17:22
sepp2k has joined #ruby
17:23
Takle has quit [Ping timeout: 240 seconds]
17:23
Cheezebox has quit [Remote host closed the connection]
17:23
<
waxjar >
is it one of those bots that announce commits?
17:23
<
waxjar >
*announces
17:24
<
shevy >
but also new questions from ... a stackoverflow-like libreoffice website
17:24
<
shevy >
discussing with real people becomes very difficult :(
17:25
<
pontiki >
/ignore works
17:25
<
waxjar >
that sounds bad
17:25
<
pontiki >
if you really want to be on that channel
17:25
<
pontiki >
/part works too
17:25
agent_white has joined #ruby
17:26
agent_white has quit [Read error: Connection reset by peer]
17:26
axilla_ has quit [Ping timeout: 240 seconds]
17:27
krisquigley has joined #ruby
17:27
dkamioka has quit [Ping timeout: 260 seconds]
17:27
regedarek has joined #ruby
17:27
<
shevy >
I don't even think I do any manual commands
17:27
<
pontiki >
couldn't really be worse than here with all the join/part/quits
17:27
<
shevy >
I don't see these :)
17:27
IceDragon has quit [Ping timeout: 250 seconds]
17:28
<
pontiki >
i don't either, because i /ignore them
17:28
IceDragon has joined #ruby
17:28
arup_r has quit [Quit: Leaving.]
17:29
atmosx has joined #ruby
17:29
gnephiak has joined #ruby
17:29
nobitanobi has joined #ruby
17:30
tyfighter has joined #ruby
17:30
agent_white has joined #ruby
17:31
axilla has joined #ruby
17:31
craigp has joined #ruby
17:32
Adran is now known as randomfriendofco
17:32
randomfriendofco is now known as adran
17:32
gnephiak has quit [Client Quit]
17:33
agent_white has quit [Read error: Connection reset by peer]
17:33
nobitano_ has joined #ruby
17:33
nobitanobi has quit [Ping timeout: 240 seconds]
17:34
<
shevy >
still railsing your way up?
17:34
<
atmosx >
hey shevy, well... kinda. I created a sinatra prototype, I'm still a lot faster on Sinatra. When it's ready I'll deploy it and start writing the app in rails :-P
17:34
<
atmosx >
but if you don't know JS you can't do shit.
17:34
Mon_Ouie has joined #ruby
17:34
Mon_Ouie has joined #ruby
17:35
<
atmosx >
I mean, everything I do looks/feels like shit
17:35
tyfighter has quit [Client Quit]
17:35
<
shevy >
you have to use JS?
17:35
<
shevy >
sinatra is kinda difficult... I can't for the life of me figure out how to easily use formulars
17:35
<
shevy >
in .cgi it is trivial
17:35
agent_white has joined #ruby
17:36
Xeago has quit [Remote host closed the connection]
17:36
agent_white has quit [Read error: Connection reset by peer]
17:36
anaeem1 has joined #ruby
17:37
ahuman has quit [Ping timeout: 255 seconds]
17:37
axilla has quit [Ping timeout: 240 seconds]
17:38
<
shevy >
but man, using separate .erb files? how ugly is that ...
17:38
IceDragon has quit [Ping timeout: 255 seconds]
17:38
gkagan has joined #ruby
17:39
blackmesa has quit [Ping timeout: 240 seconds]
17:39
armanghassemi_ has joined #ruby
17:40
yubrew has joined #ruby
17:40
Takle has joined #ruby
17:40
IceDragon has joined #ruby
17:40
yacks has quit [Read error: Connection reset by peer]
17:40
bthesorceror has joined #ruby
17:40
agent_white has joined #ruby
17:41
anaeem1 has quit [Ping timeout: 260 seconds]
17:41
agent_white has quit [Read error: Connection reset by peer]
17:41
h0lyalg0rithm has joined #ruby
17:41
adran is now known as Adran
17:41
ghr has joined #ruby
17:42
Logico has quit [Quit: Saindo]
17:43
gkagan has quit [Ping timeout: 245 seconds]
17:43
<
dorei >
shevy: dont worry, sinatra let's you include your erb code at the end of the file ;-)
17:43
mikeric has joined #ruby
17:44
yubrew has quit [Ping timeout: 240 seconds]
17:45
tectonic has joined #ruby
17:45
mfmfmfmfmfmf has joined #ruby
17:46
agent_white has joined #ruby
17:46
ghr has quit [Ping timeout: 255 seconds]
17:46
agent_white has quit [Read error: Connection reset by peer]
17:46
alex88 has joined #ruby
17:47
shredding has joined #ruby
17:47
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:48
alex88 has quit [Read error: Connection reset by peer]
17:49
danijoo has quit [Read error: Connection reset by peer]
17:50
danijoo has joined #ruby
17:50
<
dorei >
armanghassemi_: let's say that with "." you invoke methods on objects
17:50
regedarek is now known as regedarek2
17:50
alex88 has joined #ruby
17:50
_KaszpiR_ has quit [Remote host closed the connection]
17:50
PeterBoy has quit [Remote host closed the connection]
17:51
<
armanghassemi_ >
dorei, @@board is an object tho?
17:51
agent_white has joined #ruby
17:51
agent_white has quit [Read error: Connection reset by peer]
17:51
mercerist has quit [Quit: Computer has gone to sleep.]
17:51
fabrice31 has joined #ruby
17:51
<
dorei >
armanghassemi_: nop, @@board is a variable, a class variable
17:52
IceDragon has quit [Ping timeout: 240 seconds]
17:52
<
shevy >
the more often I see people use @@
17:52
<
shevy >
the more I am convinced that it is a misfeature
17:53
<
shevy >
btw armanghassemi_
17:53
<
shevy >
that is superfluous
17:53
<
shevy >
puts "#{@@board[i]}"
17:53
<
shevy >
puts @@board[i]
17:53
_lexjm has joined #ruby
17:53
mistergibson has quit [Quit: Quitting ... be good to each other :)]
17:53
<
shevy >
using imgur is also annoying, people can not quickly copy paste that code, or?
17:54
CaptainJet has joined #ruby
17:55
ptrrr has quit [Quit: ptrrr]
17:56
jcoglan has quit [Quit: jcoglan]
17:56
armanghassemi_ has quit [Ping timeout: 250 seconds]
17:56
sea_local has joined #ruby
17:56
agent_white has joined #ruby
17:56
agent_white has quit [Read error: Connection reset by peer]
17:56
fabrice31 has quit [Ping timeout: 260 seconds]
17:56
<
shevy >
blocks in ruby are so cool
17:56
anaeem1_ has joined #ruby
17:56
shredding has quit [Ping timeout: 255 seconds]
17:56
<
kaspergrubbe_ >
yeah
17:56
<
atmosx >
shevy: you have to use JS to make a modern website.
17:57
<
atmosx >
without AJAX things suck.
17:57
<
kaspergrubbe_ >
fun for the whole family ;)
17:57
<
shevy >
atmosx I wanna use ruby! :(
17:57
johndeeer has joined #ruby
17:57
<
atmosx >
shevy: you can for the backend
17:57
<
waxjar >
there is a tool that translates ruby to js
17:57
<
waxjar >
never used it though
17:57
<
atmosx >
waxjar: yeah, good luck with debugging
17:57
<
shevy >
wellt hat would be better
17:57
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:58
<
shevy >
I really don't want to write any javascript code manually
17:58
<
johndeeer >
dorei, i thought because it has attr_reader I'd be able to read it from the instance
17:58
<
atmosx >
JS is not all that difficult. i just never take the time to sit and learn something new (e.g. JS)
17:58
<
waxjar >
yeah that's the crappy thing about it i suppose atmosx
17:59
cocotton has joined #ruby
17:59
<
kaspergrubbe_ >
proper JS architecture takes a long time to develop. JS one-offs to solve the problem is fast and easy, but maintaining that is another story, atleast that is my experience
17:59
Xeago has joined #ruby
18:00
lemur has joined #ruby
18:00
cocotton has quit [Remote host closed the connection]
18:00
skolman has joined #ruby
18:00
<
shevy >
I have more than enough code to maintain in ruby, I really don't want to add more to it and especially not in other languages
18:00
<
shevy >
the only real addition I'd consider doing is to use either C or C++
18:00
cocotton has joined #ruby
18:01
agent_white has joined #ruby
18:01
mfmfmfmfmfmf has quit [Remote host closed the connection]
18:01
agent_white has quit [Read error: Connection reset by peer]
18:01
<
dorei >
johndeeer: when u do attr_reader :some_var, it creates behinds the scenes, two methods, some_var and some_var= for getting/setting the value of @some_var
18:01
<
waxjar >
i'd like to learn haskell but it seems so difficult
18:01
wallerdev has joined #ruby
18:02
IceDragon has joined #ruby
18:02
<
shevy >
don't the haskell folks tell you that haskell is super simple?
18:02
dawkirst has joined #ruby
18:02
dkamioka has joined #ruby
18:03
bthesorceror has quit [Quit: bthesorceror]
18:03
<
waxjar >
i think they lie
18:03
diegoviola has joined #ruby
18:03
moritzs has joined #ruby
18:03
<
AntelopeSalad >
monads are simple!
18:04
lemur has quit [Ping timeout: 240 seconds]
18:05
dkamioka has quit [Read error: Connection reset by peer]
18:05
sea_local has quit [Ping timeout: 245 seconds]
18:06
krisquigley has quit [Remote host closed the connection]
18:06
blueOxigen has joined #ruby
18:06
agent_white has joined #ruby
18:06
agent_white has quit [Read error: Connection reset by peer]
18:06
regedarek has joined #ruby
18:06
<
shevy >
I still do not understand what a monad is and why it is necessary to know what it is
18:06
agjacome_ has joined #ruby
18:07
dkamioka has joined #ruby
18:07
<
shevy >
can't haskell get rid of monads?
18:07
phutchin1 has joined #ruby
18:07
bluOxigen has quit [Ping timeout: 260 seconds]
18:07
jerikl has joined #ruby
18:09
Sawbones has joined #ruby
18:09
<
waxjar >
they won't be able to print stuff to the terminal :p
18:09
jerikl has quit [Client Quit]
18:10
agjacome has quit [Ping timeout: 250 seconds]
18:10
Morkel has joined #ruby
18:10
mikeric has quit [Read error: Connection reset by peer]
18:11
agent_white has joined #ruby
18:11
mikeric has joined #ruby
18:11
agent_white has quit [Read error: Connection reset by peer]
18:11
<
_cake >
open-uri is screwing up my unicode characters
18:11
<
shevy >
down with unicode!
18:11
dkamioka has quit [Ping timeout: 260 seconds]
18:11
<
shevy >
people always say unicode is the solution to everything AND NOW _cake HAS PROBLEMS WITH IT!!!
18:11
<
_cake >
but I'm using it to format my chinese vocab words
18:12
<
_cake >
>> puts "工作 Gongzuo Work"
18:12
<
_cake >
>> puts "hi"
18:12
<
_cake >
it hates unicode
18:12
nobitano_ has quit [Remote host closed the connection]
18:12
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:13
<
_cake >
>> system("uname -r")
18:13
<
shevy >
_cake you speak mandarin?
18:13
<
_cake >
taking chinese class
18:13
<
_cake >
I'm using that weird quote for changing the language from chinese to english and back
18:13
<
_cake >
so I can't typ eit
18:14
seamon has quit [Quit: Zzzzzzz]
18:14
regedarek2 is now known as rege
18:14
rege is now known as darekakra
18:14
<
_cake >
>> `uname -r`
18:14
<
_cake >
what os is this
18:15
<
_cake >
>> `ipconfig`
18:15
patrick99e99 has joined #ruby
18:15
<
waxjar >
i don't think it allows you to shell out
18:15
<
_cake >
>> `ifconfig`
18:15
<
apeiros >
_cake: stop spamming
18:15
Pharaoh2 has quit [Remote host closed the connection]
18:16
ptrrr has joined #ruby
18:16
agent_white has joined #ruby
18:16
IceDragon_ has joined #ruby
18:16
sea_local has joined #ruby
18:16
agent_white has quit [Read error: Connection reset by peer]
18:17
<
shevy >
they carefully tested to make the bot hijack-proof
18:17
saladspork has joined #ruby
18:17
IceDragon has quit [Ping timeout: 250 seconds]
18:17
<
Mon_Ouie >
It doesn't hate Unicode though
18:17
<
Hanmac >
>> RbConfig::CONFIG["arch"]
18:17
<
Mon_Ouie >
>> π = 3.14
18:17
<
Mon_Ouie >
…maybe it does though
18:17
<
Mon_Ouie >
It didn't use to :p
18:17
shizus has quit [Remote host closed the connection]
18:18
<
dorei >
>> puts 'πι'
18:18
<
dorei >
>> 'αλφα'.encoding
18:18
<
dorei >
yeap, it really hates it :(
18:19
patrick99e99 has quit [Ping timeout: 245 seconds]
18:20
Lewix has quit [Remote host closed the connection]
18:21
nectarys__ has joined #ruby
18:21
koell has quit [Ping timeout: 272 seconds]
18:21
agent_white has joined #ruby
18:21
agent_white has quit [Read error: Connection reset by peer]
18:21
<
Mon_Ouie >
How am I going to confuse people with A = 3; Α = 4; [A, Α] #=> [3, 4] now?!
18:21
Lewix has joined #ruby
18:23
ari-_-e has quit [Ping timeout: 272 seconds]
18:23
nectarys_ has quit [Ping timeout: 272 seconds]
18:23
kaspergrubbe_ has quit [Ping timeout: 260 seconds]
18:23
_KaszpiR_ has joined #ruby
18:23
<
dorei >
maybe you could use l and I :p
18:23
seamon has joined #ruby
18:23
koell has joined #ruby
18:23
<
Mon_Ouie >
I and I?
18:23
<
pontiki >
you're and evil person
18:24
kaspergrubbe_ has joined #ruby
18:24
<
dorei >
Mon_Ouie: on some fonts they look exactly the same
18:24
Dr3amc0d3r|away has quit [Ping timeout: 245 seconds]
18:25
<
Mon_Ouie >
dorei: Do they look the same on yours? Because I said "(capital I) and (capital I)?", pretending I didn't see they were two different characters :p
18:26
sparrovv has joined #ruby
18:26
nfk has joined #ruby
18:26
agent_white has joined #ruby
18:26
<
dorei >
Mon_Ouie: capital I and lowercase L loook the same at my font xD
18:26
agent_white has quit [Read error: Connection reset by peer]
18:26
<
dorei >
arial unicode ms that is
18:27
dawkirst has quit [Remote host closed the connection]
18:27
<
pontiki >
looks like i'm using menlo as well
18:28
DEA7TH has quit [Changing host]
18:28
DEA7TH has joined #ruby
18:28
jackz has joined #ruby
18:28
sea_local has quit [Ping timeout: 264 seconds]
18:28
<
shevy >
I only see Mon_Ouie use capital I
18:29
<
Mon_Ouie >
There is no Iowercase I
18:29
* apeiros
uses Deja Vu
18:29
moritzs has quit [Ping timeout: 245 seconds]
18:29
IceDragon_ has quit [Ping timeout: 272 seconds]
18:29
<
apeiros >
do browsers already highlight, blink and marquee urls with multiple scripts?
18:30
sdwrage has quit [Quit: This computer has gone to sleep]
18:30
krz has quit [Quit: WeeChat 1.0]
18:30
krz has joined #ruby
18:30
kaspergrubbe_ has quit [Ping timeout: 260 seconds]
18:30
krz has quit [Client Quit]
18:31
agent_white has joined #ruby
18:31
agent_white has quit [Read error: Connection reset by peer]
18:31
krz has joined #ruby
18:31
sdwrage has joined #ruby
18:32
Dr3amc0d3r|away has joined #ruby
18:32
kaspergrubbe_ has joined #ruby
18:33
startupality has joined #ruby
18:34
<
pontiki >
is it corny?
18:34
tlarevo_ has quit [Remote host closed the connection]
18:34
yubrew has joined #ruby
18:34
dawkirst has joined #ruby
18:34
PeterBoy has joined #ruby
18:35
krz has quit [Client Quit]
18:35
philcrissman has joined #ruby
18:35
regedarek has quit [Quit: Lost terminal]
18:36
agent_white has joined #ruby
18:36
agent_white has quit [Read error: Connection reset by peer]
18:36
regedarek has joined #ruby
18:37
yfeldblum has joined #ruby
18:38
dawkirst has quit [Remote host closed the connection]
18:38
yubrew has quit [Ping timeout: 240 seconds]
18:38
<
atmosx >
does Amazon have any sort of API for quering products listed on it's website?!
18:39
PeterBoy has quit [Ping timeout: 245 seconds]
18:39
gkagan has joined #ruby
18:39
philcrissman has quit [Ping timeout: 246 seconds]
18:39
jerikl has joined #ruby
18:39
OnesDestiny has joined #ruby
18:39
tectonic has quit []
18:40
threesixes has quit [Remote host closed the connection]
18:41
Dwarf has quit [Quit: Oops I quit]
18:41
agent_white has joined #ruby
18:41
OnesDestiny is now known as buk911
18:41
agent_white has quit [Read error: Connection reset by peer]
18:41
sdrew has joined #ruby
18:42
jerikl has quit [Client Quit]
18:42
ghr has joined #ruby
18:42
Cheezebox has joined #ruby
18:43
gregf has joined #ruby
18:43
saladspork has quit [Quit: saladspork]
18:43
<
pontiki >
it used to; i haven't looked in ages
18:43
gkagan has quit [Ping timeout: 250 seconds]
18:44
saladspork has joined #ruby
18:44
anaeem1_ has quit [Remote host closed the connection]
18:45
mikeric has quit []
18:45
jgrevich has joined #ruby
18:45
jgrevich has quit [Client Quit]
18:45
mikeric has joined #ruby
18:45
Dwarf has joined #ruby
18:45
Aranshada|W has joined #ruby
18:46
agent_white has joined #ruby
18:46
timonv_ has joined #ruby
18:46
agent_white has quit [Read error: Connection reset by peer]
18:46
ghr has quit [Ping timeout: 250 seconds]
18:46
<
atmosx >
dorei: that's for product ads
18:47
<
dorei >
atmosx: not exactly
18:47
angusiguess has quit [Ping timeout: 264 seconds]
18:48
mices has joined #ruby
18:48
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
18:48
Aryasam has joined #ruby
18:49
<
mices >
what's the best way to install ruby on freebsd if i wanna run 2.1
18:49
angusiguess has joined #ruby
18:50
fantazo has joined #ruby
18:50
<
pontiki >
source compile?
18:50
<
kaspergrubbe_ >
have you tried rbenv?
18:51
tectonic has joined #ruby
18:51
cpruitt has joined #ruby
18:51
agent_white has joined #ruby
18:51
cocotton has quit [Remote host closed the connection]
18:51
<
waxjar >
chruby or rbenv to manage ruby versions, ruby-build or ruby-install to install / compile etc
18:51
<
Lewix >
how to pass a hash as argument into #send
18:51
agent_white has quit [Read error: Connection reset by peer]
18:52
j416_ has joined #ruby
18:52
<
Lewix >
hash.send(:merge, {})
18:52
j416 has quit [Read error: Connection reset by peer]
18:52
<
Mon_Ouie >
Just like that
18:52
robustus has quit [Ping timeout: 255 seconds]
18:53
mercerist has joined #ruby
18:53
decoponio has quit [Quit: Leaving...]
18:53
<
Lewix >
Mon_Ouie: for some reasons it's not working
18:53
dgutierrez1287 has quit [Ping timeout: 260 seconds]
18:53
mercerist has quit [Client Quit]
18:54
robustus has joined #ruby
18:54
sea_local has joined #ruby
18:54
JoshGlzBrk has joined #ruby
18:54
onr has joined #ruby
18:55
adamski2600 has joined #ruby
18:55
mfmfmfmfmfmf has joined #ruby
18:55
<
Mon_Ouie >
We can't really help you with "it doesn't work", we need more information
18:56
TorpedoSkyline has joined #ruby
18:56
agent_white has joined #ruby
18:56
<
Lewix >
Mon_Ouie: i need a refresher - give me a synonym of merge
18:56
agent_white has quit [Read error: Connection reset by peer]
18:56
<
onr >
"my program no worky"
18:56
Dr3amc0d3r|away has quit [Ping timeout: 260 seconds]
18:56
Hobogrammer has joined #ruby
18:56
thomasxie has quit [Ping timeout: 240 seconds]
18:57
<
Hanmac >
Lewix: maybe you want "merge!" ? there is a difference
18:57
Aryasam has quit [Ping timeout: 260 seconds]
18:57
shevy has quit [Ping timeout: 240 seconds]
18:58
<
Lewix >
Hanmac: you have good eye
18:58
<
Hanmac >
Mon_Ouie: if you want crazy chars like I and l, what about "ı" ? ;P
18:58
<
Mon_Ouie >
Hanmac: I know how to fool people with unicode, the problem is eval-in doesn't like unicode :(
18:59
flowerhack has joined #ruby
18:59
<
Hanmac >
yeah charliesome does need to fix that
19:00
sdwrage has quit [Quit: This computer has gone to sleep]
19:00
sea_local has quit []
19:01
lemur has joined #ruby
19:01
siwica has joined #ruby
19:01
agent_white has joined #ruby
19:01
agent_white has quit [Read error: Connection reset by peer]
19:02
<
dorei >
oh, that's a turkish i :p
19:02
cpruitt has quit [Quit: cpruitt]
19:02
<
dorei >
there's even a crazy story with that turkish i
19:02
mary5030 has joined #ruby
19:02
blackmesa has joined #ruby
19:03
atmosx has quit [Ping timeout: 264 seconds]
19:05
lemur has quit [Ping timeout: 240 seconds]
19:05
atmosx has joined #ruby
19:05
atmosx has quit [Client Quit]
19:06
krisquigley has joined #ruby
19:06
agent_white has joined #ruby
19:06
Cache_Money has joined #ruby
19:06
jackz has quit [Remote host closed the connection]
19:06
agent_white has quit [Read error: Connection reset by peer]
19:06
jackz has joined #ruby
19:07
PeterBoy has joined #ruby
19:09
Brando753 has joined #ruby
19:10
jfutbol has joined #ruby
19:11
h0lyalg0rithm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:11
gregf has quit [Ping timeout: 240 seconds]
19:11
agent_white has joined #ruby
19:11
shevy has joined #ruby
19:11
agent_white has quit [Read error: Connection reset by peer]
19:11
kaspergrubbe_ has quit [Remote host closed the connection]
19:11
zettam has joined #ruby
19:12
nobitanobi has joined #ruby
19:12
Nahra has quit [Ping timeout: 240 seconds]
19:12
Dr3amc0d3r|away has joined #ruby
19:13
diegoviola has quit [Quit: WeeChat 1.0]
19:14
sdwrage has joined #ruby
19:15
jgrevich has joined #ruby
19:16
agent_white has joined #ruby
19:16
agent_white has quit [Read error: Connection reset by peer]
19:16
buk911 has quit [Remote host closed the connection]
19:17
jackz has quit [Remote host closed the connection]
19:17
jackz has joined #ruby
19:18
L8D has quit [Ping timeout: 260 seconds]
19:19
spastorino has quit [Quit: Connection closed for inactivity]
19:19
goshdarnyou has joined #ruby
19:20
nerdgrass has joined #ruby
19:21
senayar has joined #ruby
19:21
agent_white has joined #ruby
19:21
nobitanobi has quit [Remote host closed the connection]
19:21
agent_white has quit [Read error: Connection reset by peer]
19:22
PeterBoy has quit [Remote host closed the connection]
19:22
Nahra has joined #ruby
19:23
jerikl has joined #ruby
19:23
ari-_-e has joined #ruby
19:23
seamon has quit [Quit: Zzzzzzz]
19:23
claymore has quit [Quit: Leaving]
19:24
flowerha_ has joined #ruby
19:24
Rahul_Roy has quit [Quit: Connection closed for inactivity]
19:25
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
19:25
nerdgrass has quit [Ping timeout: 250 seconds]
19:25
senayar has quit [Ping timeout: 250 seconds]
19:26
ht__th has quit [Remote host closed the connection]
19:26
agent_white has joined #ruby
19:26
agent_white has quit [Read error: Connection reset by peer]
19:28
yubrew has joined #ruby
19:28
flowerhack has quit [Ping timeout: 260 seconds]
19:29
chipotle has quit [Quit: cya]
19:29
angusigu1ss has joined #ruby
19:30
chipotle has joined #ruby
19:30
AlexRussia has quit [Ping timeout: 240 seconds]
19:30
grenierm has joined #ruby
19:31
adac has joined #ruby
19:31
agent_white has joined #ruby
19:31
agent_white has quit [Read error: Connection reset by peer]
19:32
angusiguess has quit [Ping timeout: 240 seconds]
19:32
yubrew has quit [Ping timeout: 245 seconds]
19:33
tectonic has quit []
19:34
sdwrage has quit [Quit: This computer has gone to sleep]
19:35
benzrf|offline is now known as benzrf
19:35
adac has quit [Ping timeout: 245 seconds]
19:36
mary5030 has quit [Remote host closed the connection]
19:36
seamon has joined #ruby
19:36
agent_white has joined #ruby
19:36
angusiguess has joined #ruby
19:36
j416__ has joined #ruby
19:36
agent_white has quit [Read error: Connection reset by peer]
19:37
mercerist has joined #ruby
19:38
j416_ has quit [Ping timeout: 240 seconds]
19:38
angusigu1ss has quit [Ping timeout: 260 seconds]
19:40
gkagan has joined #ruby
19:40
fabrice31 has joined #ruby
19:41
angusigu1ss has joined #ruby
19:41
agent_white has joined #ruby
19:41
agent_white has quit [Read error: Connection reset by peer]
19:41
angusiguess has quit [Ping timeout: 264 seconds]
19:42
diegoviola has joined #ruby
19:42
Aranshada|W has quit [Ping timeout: 255 seconds]
19:42
cashnguns has joined #ruby
19:43
ghr has joined #ruby
19:43
Cache_Money has quit [Quit: Cache_Money]
19:43
agjacome has joined #ruby
19:43
chipotle has quit [Quit: cya]
19:44
gkagan has quit [Ping timeout: 240 seconds]
19:44
krisquigley has quit [Remote host closed the connection]
19:44
JohnBat26 has quit [Ping timeout: 260 seconds]
19:45
fabrice31 has quit [Ping timeout: 260 seconds]
19:45
tlarevo has joined #ruby
19:45
sea_local has joined #ruby
19:45
andrewlio has quit [Remote host closed the connection]
19:46
agjacome_ has quit [Ping timeout: 240 seconds]
19:46
{xenomorph} is now known as xenomorph
19:46
agent_white has joined #ruby
19:46
agent_white has quit [Read error: Connection reset by peer]
19:47
flowerhack has joined #ruby
19:47
ghr has quit [Ping timeout: 260 seconds]
19:48
adac has joined #ruby
19:48
AlexRussia has joined #ruby
19:48
benzrf is now known as benzrf|offline
19:49
benzrf|offline is now known as benzrf
19:49
buk911 has joined #ruby
19:49
tlarevo has quit [Ping timeout: 246 seconds]
19:49
nectarys__ has quit [Ping timeout: 260 seconds]
19:49
nectarys_ has joined #ruby
19:50
agjacome_ has joined #ruby
19:50
agjacome_ has quit [Client Quit]
19:50
gaussblurinc1 has quit [Quit: Leaving.]
19:51
flowerha_ has quit [Ping timeout: 272 seconds]
19:51
agent_white has joined #ruby
19:51
agent_white has quit [Read error: Connection reset by peer]
19:52
agjacome has quit [Ping timeout: 240 seconds]
19:52
armyriad has quit [Ping timeout: 240 seconds]
19:52
armyriad has joined #ruby
19:53
Shidash has joined #ruby
19:53
gaussblurinc1 has joined #ruby
19:53
RTG` has joined #ruby
19:54
fantazo has quit [Ping timeout: 246 seconds]
19:55
shredding has joined #ruby
19:55
tectonic has joined #ruby
19:56
agent_white has joined #ruby
19:56
agent_white has quit [Read error: Connection reset by peer]
19:58
InhalingPixels has joined #ruby
19:59
sdwrage has joined #ruby
19:59
shredding has quit [Ping timeout: 255 seconds]
19:59
jottr has joined #ruby
19:59
merqlove has joined #ruby
20:01
agent_white has joined #ruby
20:01
agent_white has quit [Read error: Connection reset by peer]
20:01
alex88 has quit [Quit: Leaving...]
20:03
PeterBoy has joined #ruby
20:05
havenwood has joined #ruby
20:06
ahmads has quit [Read error: Connection reset by peer]
20:06
agent_white has joined #ruby
20:06
Xeago has quit [Remote host closed the connection]
20:06
agent_white has quit [Read error: Connection reset by peer]
20:07
PeterBoy has quit [Ping timeout: 240 seconds]
20:07
Xeago has joined #ruby
20:08
ahmads has joined #ruby
20:08
Xeago has quit [Remote host closed the connection]
20:08
kaspergrubbe_ has joined #ruby
20:09
agjacome has joined #ruby
20:10
anaeem1_ has joined #ruby
20:10
moritzs has joined #ruby
20:10
mocfive has joined #ruby
20:11
sdrew has joined #ruby
20:11
agent_white has joined #ruby
20:12
agent_white has quit [Read error: Connection reset by peer]
20:12
L8D has joined #ruby
20:14
saladspork has quit [Quit: saladspork]
20:14
sparrovv has quit [Remote host closed the connection]
20:14
<
shevy >
Lewix did you get your .send syntax to work? I disconnected...
20:14
brianherman has joined #ruby
20:15
PeterBoy has joined #ruby
20:15
sparrovv has joined #ruby
20:16
mercerist has quit [Quit: Computer has gone to sleep.]
20:16
ewilliam has joined #ruby
20:16
agent_white has joined #ruby
20:16
agent_white has quit [Read error: Connection reset by peer]
20:17
ahmads has quit [Read error: Connection reset by peer]
20:17
ahmads has joined #ruby
20:18
Nahra has quit [Remote host closed the connection]
20:19
Nahra has joined #ruby
20:20
sparrovv has quit [Ping timeout: 260 seconds]
20:20
Cheezebox has quit [Remote host closed the connection]
20:20
Cheezebox has joined #ruby
20:21
ahmads has quit [Read error: Connection reset by peer]
20:21
ahmads has joined #ruby
20:21
agent_white has joined #ruby
20:21
flowerhack has quit [Remote host closed the connection]
20:21
agent_white has quit [Read error: Connection reset by peer]
20:22
Neomex has quit [Ping timeout: 240 seconds]
20:22
sdwrage has quit [Quit: This computer has gone to sleep]
20:22
<
havenwood >
ThreadGroup no worky for Puma::ThreadPool since Threads spawning Threads prevents using ThreadGroup#list#size to determine @spawned count >.>
20:22
nobitanobi has joined #ruby
20:22
yubrew has joined #ruby
20:22
senayar has joined #ruby
20:22
<
havenwood >
from determining*
20:23
brothmars has quit [Remote host closed the connection]
20:23
philcrissman has joined #ruby
20:23
nobitanobi has quit [Read error: No route to host]
20:24
nobitanobi has joined #ruby
20:24
robbyoconnor has quit [Excess Flood]
20:24
robbyoconnor has joined #ruby
20:24
Cheezebox has quit [Ping timeout: 240 seconds]
20:25
phutchin1 has quit [Ping timeout: 272 seconds]
20:26
brothmars has joined #ruby
20:26
PeterBoy has quit [Remote host closed the connection]
20:26
ahmads has quit [Read error: Connection reset by peer]
20:26
agent_white has joined #ruby
20:27
agent_white has quit [Read error: Connection reset by peer]
20:27
Neomex has joined #ruby
20:27
yubrew has quit [Ping timeout: 260 seconds]
20:27
phutchin1 has joined #ruby
20:28
philcrissman has quit [Ping timeout: 260 seconds]
20:28
Cheezebox has joined #ruby
20:28
ahmads has joined #ruby
20:28
altern has joined #ruby
20:28
nobitanobi has quit [Ping timeout: 240 seconds]
20:28
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
20:29
sdrew has joined #ruby
20:29
bMalum has quit [Quit: bMalum]
20:29
sinkensabe has joined #ruby
20:29
<
johndeeer >
how might I generate a random array of characters in ruby? so lets say I have characters "A","B","C","D" and I wanted to make a random array of 3 of those chars
20:29
altern has quit [Client Quit]
20:29
Sht0 has joined #ruby
20:30
<
havenwood >
>> Array.new(3) { %w{A B C D}.sample }
20:30
<
havenwood >
johndeeer: you want uniq?
20:30
<
havenwood >
>> %w{A B C D}.sample(3)
20:31
<
johndeeer >
yeahunique
20:31
<
havenwood >
johndeeer: that's the easy one ;)
20:31
<
johndeeer >
wow thanks
20:31
<
havenwood >
johndeeer: np
20:31
<
johndeeer >
ruby really is magic.
20:31
agent_white has joined #ruby
20:32
<
johndeeer >
whats the %w?
20:32
agent_white has quit [Read error: Connection reset by peer]
20:32
onr has left #ruby [#ruby]
20:32
<
havenwood >
johndeeer: ['A', 'B', 'C'] == %w[A B C]
20:32
OffTheRails has quit [Quit: Leaving]
20:32
<
johndeeer >
ahh i see
20:33
<
havenwood >
>> [*?A..?D]
20:33
<
havenwood >
char literals
20:33
<
havenwood >
and splat expansion
20:33
<
havenwood >
>> ?A == "A"
20:34
gaussblurinc1 has quit [Quit: Leaving.]
20:34
nobitanobi has joined #ruby
20:34
Bumptious has quit [Read error: Connection reset by peer]
20:34
<
apeiros >
>> alnum = *"A".."Z", *"a".."z", "0".."9"
20:34
<
eval-in >
apeiros => ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", ... (
https://eval.in/182758)
20:34
<
apeiros >
string range splat is very convenient for building alphabets
20:35
seamon has quit [Quit: Zzzzzzz]
20:36
agent_white has joined #ruby
20:37
agent_white has quit [Read error: Connection reset by peer]
20:37
bMalum has joined #ruby
20:38
nobitanobi has quit [Ping timeout: 250 seconds]
20:38
mfmfmfmfmfmf has quit [Remote host closed the connection]
20:38
Aranshada|W has joined #ruby
20:39
Jackneill has quit [Remote host closed the connection]
20:40
gkagan has joined #ruby
20:40
Bumptious has joined #ruby
20:41
txdv has quit [Read error: Connection reset by peer]
20:41
jkline has joined #ruby
20:41
txdv has joined #ruby
20:41
agent_white has joined #ruby
20:42
BadQuanta has joined #ruby
20:42
agent_white has quit [Read error: Connection reset by peer]
20:43
<
havenwood >
>> ?0.upto(?z).grep /[[:alnum:]]/
20:43
<
eval-in >
havenwood => ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", ... (
https://eval.in/182760)
20:43
<
havenwood >
yeah, the splat convention is handy
20:43
<
havenwood >
fun to use
20:44
fantazo has joined #ruby
20:45
gkagan has quit [Ping timeout: 260 seconds]
20:46
Xiti has quit [Quit: Leaving]
20:47
agent_white has joined #ruby
20:47
johndeeer has quit [Ping timeout: 260 seconds]
20:47
agent_white has quit [Read error: Connection reset by peer]
20:47
armanghassemi__ has joined #ruby
20:47
Morkel_ has joined #ruby
20:48
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
20:48
Morkel has quit [Ping timeout: 264 seconds]
20:48
Morkel_ is now known as Morkel
20:49
<
Nowaker >
>> [a..z] + [0..9]
20:49
<
Nowaker >
>> [(a..z)] + [(0..9)]
20:50
<
havenwood >
Nowaker: think ya mean "a"
20:50
<
havenwood >
Nowaker: but those are two Arrays with one element each (a Range)
20:50
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:50
frankle has quit [Quit: Connection closed for inactivity]
20:51
Seattle113 has joined #ruby
20:51
<
Nowaker >
>> ['a'..'z'] + [0..9]
20:51
<
havenwood >
_.size #=> 2
20:51
toastynerd has quit [Remote host closed the connection]
20:51
<
Nowaker >
ok, i see why splat is handy in such situations
20:51
agent_white has joined #ruby
20:52
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
20:52
timonv_ has quit [Remote host closed the connection]
20:52
<
Nowaker >
there would be a need for .to_a
20:52
jerikl has quit [Quit: jerikl]
20:52
agent_white has quit [Read error: Connection reset by peer]
20:52
<
Nowaker >
and splat is just better
20:52
sinkensabe has quit [Remote host closed the connection]
20:52
Seattle113 has quit [Remote host closed the connection]
20:52
altern has joined #ruby
20:53
nfk has quit [Quit: yawn]
20:53
BadQuanta has quit [Remote host closed the connection]
20:54
<
Nowaker >
howeverif the sequence (or whatever the result of a..b) did .to_a automatically in def +, then there wouldnt be aneed for splat
20:54
armanghassemi_ has joined #ruby
20:54
<
havenwood >
Nowaker: but you'd not be able to have an Array of Ranges
20:54
<
Mon_Ouie >
I think using to_a for that is fine…
20:55
<
Mon_Ouie >
But the splat has still completely different uses: it can be used to pass an array of elements to a method, where each element is an individual argument
20:56
<
Mon_Ouie >
>> def foo(a, b, c); p [a,b,c]; end; foo(*[1,2,3])
20:56
bricker`LA has quit [Ping timeout: 264 seconds]
20:56
jerikl has joined #ruby
20:57
agent_white has joined #ruby
20:57
agent_white has quit [Read error: Connection reset by peer]
20:57
claw has joined #ruby
20:57
spacemud_ is now known as spacemud
20:57
<
havenwood >
a) [*'a'..'z'], b) [*'a'.upto('z')], c) 'a'.upto('z').to_a, d) ('a'..'z').to_a
20:57
charliesome has joined #ruby
20:58
armanghassemi__ has quit [Ping timeout: 245 seconds]
20:58
<
havenwood >
^ which do you prefer?
20:58
<
Nowaker >
havenwood: sorry for not being clear
20:58
<
Nowaker >
when I was saying 'howeverif ...', I was thinking about something else
20:58
<
Nowaker >
about this:
20:59
<
Nowaker >
>> ('a'..'c') + (1..2)
20:59
<
shevy >
however if sheep could code ...
20:59
djbkd has joined #ruby
20:59
<
Nowaker >
ranges could have def +
20:59
<
shevy >
isn't a Range just a fancy Array
20:59
njs126 has joined #ruby
20:59
<
shevy >
if it walks like a duck and dances like michael jackson
21:00
<
havenwood >
>> class Range; def + this; self.to_a.concat(this.to_a) end end; ('a'..'c') + (1..2)
21:00
diegoviola has quit [Quit: WeeChat 1.0]
21:00
<
havenwood >
Nowaker: your wish is granted
21:00
<
havenwood >
\o/ Ruby
21:00
<
Nowaker >
havenwood: submit a PR
21:00
<
Nowaker >
if they accept, they it's granted :)
21:00
<
Mon_Ouie >
eval-in should automatically submit patches to ruby-core when we monkey patch something here
21:00
Xiti has joined #ruby
21:01
<
Nowaker >
let's do this
21:01
armanghassemi__ has joined #ruby
21:01
lemur has joined #ruby
21:01
<
shevy >
perhaps there is a reason Range does not have + ?
21:02
agent_white has joined #ruby
21:02
<
havenwood >
shevy: there is indeed
21:02
agent_white has quit [Read error: Connection reset by peer]
21:02
<
Mon_Ouie >
Because, why should it return an array? and it can only return a third range in certain specific cases
21:02
<
havenwood >
easy enough to add if ya want it ;)
21:02
roshanavand has quit [Quit: Leaving]
21:03
blueOxigen has quit [Ping timeout: 240 seconds]
21:03
grenierm has quit [Quit: grenierm]
21:03
jfutbol_ has joined #ruby
21:04
PeterBoy has joined #ruby
21:05
<
Nowaker >
Not a Ruby question, but anyways. This is my Middleman-generated prototype of cloud panel:
https://demo.virtkick.io/ How do you like it? Any suggestions?
21:05
armanghassemi_ has quit [Ping timeout: 250 seconds]
21:05
saladspork has joined #ruby
21:05
<
shevy >
to me a Range is a lazy Array
21:05
naw has quit [Quit: .]
21:06
Ilyas_ has quit [Read error: Connection reset by peer]
21:06
lemur has quit [Ping timeout: 240 seconds]
21:06
jerikl has quit [Quit: jerikl]
21:06
jfutbol has quit [Ping timeout: 245 seconds]
21:07
agent_white has joined #ruby
21:07
agent_white has quit [Read error: Connection reset by peer]
21:07
<
Nowaker >
for me a..b is a concise way of generating an array for a to b
21:07
<
havenwood >
Nowaker: nice. i feel like there shouldn't be a fully line between Stop ˅ and Restart ˅.
21:07
<
Nowaker >
range is a semi-finished product for me :)
21:07
<
havenwood >
full line*
21:07
britneywright has joined #ruby
21:08
<
havenwood >
Nowaker: but that's a Range not an Array :P
21:08
johndeeer has joined #ruby
21:08
<
havenwood >
Nowaker: Ranges aren't just Array generating devices
21:08
anaeem1_ has quit [Remote host closed the connection]
21:08
<
dorei >
Nowaker: nice, bonus points for retro looking blocky icon :)
21:08
<
Nowaker >
havenwood: s/can/say/
21:09
<
havenwood >
a dashed line or might no line at all wor there?
21:09
<
Nowaker >
havenwood: had to think for a while. now I got it. it should feel like Stop and (arrow down) are the same button, right?
21:10
<
havenwood >
just a sub-function of same button, rather than two buttons
21:10
Cheezebox has quit [Remote host closed the connection]
21:10
<
Nowaker >
havenwood: but still, 'Stop' would stop immediately, whereas (arrow down) would open a menu?
21:11
ltfschoen has joined #ruby
21:11
<
Nowaker >
ok, let's see
21:11
<
havenwood >
just that the down-arrow isn't its own element, it's a Stop option
21:11
jerikl has joined #ruby
21:11
<
Nowaker >
dorei: thanks :) I like minecraft, so this way my idea for a logo :)
21:11
ltfschoen has quit [Excess Flood]
21:12
agent_white has joined #ruby
21:12
agent_white has quit [Read error: Connection reset by peer]
21:12
armanghassemi__ has quit [Ping timeout: 264 seconds]
21:13
kaspergrubbe_ has quit [Remote host closed the connection]
21:13
<
dorei >
Nowaker: java and php books :p
21:13
dkamioka has joined #ruby
21:13
sylvanica has quit [Quit: Quitte]
21:13
Cheezebox has joined #ruby
21:13
<
Nowaker >
dorei: yep. ruby books are on the left, not visible
21:15
<
dorei >
I'm jealous, I want 4 monitors too
21:15
<
Nowaker >
havenwood: $('.dropdown-toggle').css('border-left', 'none'); would this be better?
21:15
armanghassemi__ has joined #ruby
21:15
<
Nowaker >
hover is still broken, but it's just to visualize
21:16
anaeem1 has joined #ruby
21:16
<
Nowaker >
dorei: 3 of them are old samsung screens, $100 each
21:16
sivteck has joined #ruby
21:16
<
Nowaker >
so you can probably just buy 3 without any problem ;-)
21:16
naw has joined #ruby
21:16
yubrew has joined #ruby
21:16
<
dorei >
Nowaker: i'm waiting for my boss to return from his vacation in order to get paid xD
21:17
Guest64491 has joined #ruby
21:17
agent_white has joined #ruby
21:17
<
Nowaker >
that's not funny btw :P waiting for someone to return in order to get paid
21:17
<
havenwood >
Nowaker: yes, that looks clearer to me
21:17
<
havenwood >
i prefer
21:18
<
havenwood >
less mental work
21:18
<
havenwood >
4 options
21:18
fantazo has quit [Ping timeout: 240 seconds]
21:18
<
havenwood >
2 with sub options
21:18
<
havenwood >
Nowaker: very nice actually, well done
21:19
<
Nowaker >
I came up with the best idea I think. Imagine this: start, pause, stop, restart. nothing more
21:19
<
dorei >
Nowaker: about 850,000 employed ppl in this country (greece) haven't been paid for 1-12 months, it's a really fucked up economic situation
21:19
johndeeer has quit [Ping timeout: 250 seconds]
21:19
_lexjm has joined #ruby
21:19
<
Nowaker >
after hitting Stop, then the button gets replaced with Kill button
21:19
<
Nowaker >
there's no reason for someone to Kill the VM without trying first to Stop it gracefully. ha!
21:20
<
apeiros >
dorei: nice that in that situation your boss can afford to go to holiday but not pay his workers…
21:20
<
Nowaker >
dorei: the worst thing is that communists are attracting more and more people in your country (if the news don't lie)
21:21
TDJACR has joined #ruby
21:21
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:21
armanghassemi__ has quit [Ping timeout: 245 seconds]
21:21
<
Nowaker >
havenwood: thanks
21:21
<
dorei >
apeiros: most of the bosses, kind of medieval times
21:21
yubrew has quit [Ping timeout: 260 seconds]
21:21
<
dorei >
Nowaker: i'm worried more about neonazis than the commies
21:21
agent_white has quit [Ping timeout: 250 seconds]
21:21
axsuul has quit [Ping timeout: 260 seconds]
21:21
<
Nowaker >
both are extreme socialists, so whatever
21:21
mocfive has joined #ruby
21:22
mocfive has quit [Client Quit]
21:22
agent_white has joined #ruby
21:22
armanghassemi__ has joined #ruby
21:22
agent_white has quit [Read error: Connection reset by peer]
21:22
diegoviola has joined #ruby
21:22
<
Nowaker >
nazi means national socialism, the economy was centrally planned too, both commies and nazis killed millions, so no difference to me
21:22
_cake is now known as Error
21:22
Error is now known as _cake
21:23
<
apeiros >
Nowaker: because labels tell the truth
21:23
<
apeiros >
might want to tell that to all those democratic people republics
21:23
jfutbol_ has quit [Remote host closed the connection]
21:23
<
dorei >
Nowaker: you dont risk being attacked by commies at the streets here, while being attacked by neonazis is quite frequent
21:24
<
havenwood >
Maniacs don't exercise a ton of restraint in what they call themselves.
21:25
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:27
Cort3z has joined #ruby
21:27
agent_white has joined #ruby
21:27
agent_white has quit [Read error: Connection reset by peer]
21:27
<
Nowaker >
dorei: I see
21:27
mfmfmfmfmfmf has joined #ruby
21:27
<
Nowaker >
there are no nazis in poland fortunately
21:29
fabrice31 has joined #ruby
21:29
<
Nowaker >
apeiros: hehe
21:29
lolmaus has quit [Quit: Konversation terminated!]
21:29
rjhunter has quit [Remote host closed the connection]
21:31
<
shevy >
nazis don't program
21:31
<
pipework >
shevy: Sure they do.
21:31
<
pipework >
They probably just don't program much software.
21:31
sdrew has joined #ruby
21:32
sivteck has left #ruby ["To Infinity and Beyond"]
21:32
flowerhack has joined #ruby
21:32
agent_white has joined #ruby
21:32
agent_white has quit [Read error: Connection reset by peer]
21:32
<
shevy >
it's too complex a topic
21:32
<
pipework >
Most anything is.
21:33
fabrice31 has quit [Ping timeout: 250 seconds]
21:34
brianherman has quit [Read error: Connection reset by peer]
21:34
_cake is now known as _cakebot
21:34
nobitanobi has joined #ruby
21:35
_cakebot is now known as _cake
21:36
Morkel has quit [Quit: Morkel]
21:37
agent_white has joined #ruby
21:37
jgrevich_ has joined #ruby
21:37
agent_white has quit [Read error: Connection reset by peer]
21:37
jfutbol has joined #ruby
21:37
cashnguns has quit [Ping timeout: 240 seconds]
21:37
jgrevich_ has quit [Client Quit]
21:38
toastynerd has joined #ruby
21:39
nobitanobi has quit [Ping timeout: 240 seconds]
21:39
Aranshada|W has quit [Ping timeout: 250 seconds]
21:39
jerikl has quit [Quit: jerikl]
21:40
toastynerd has quit [Read error: No route to host]
21:40
toastynerd has joined #ruby
21:40
jgrevich has quit [Ping timeout: 260 seconds]
21:40
CaptainJet has quit [Ping timeout: 250 seconds]
21:40
CaptainJet has joined #ruby
21:41
asteve has joined #ruby
21:41
gkagan has joined #ruby
21:41
tef has left #ruby [#ruby]
21:42
agent_white has joined #ruby
21:42
agent_white has quit [Read error: Connection reset by peer]
21:42
armanghassemi__ has quit [Read error: Connection reset by peer]
21:43
havenwood has quit []
21:44
ghr has joined #ruby
21:44
Neomex has quit [Quit: Leaving]
21:44
cocotton has joined #ruby
21:45
cocotton has quit [Remote host closed the connection]
21:45
toastynerd has quit [Ping timeout: 272 seconds]
21:45
<
Lewix >
im looking for something to encode decode
21:45
j416__ has quit [Quit: o/]
21:45
<
apeiros >
encodes and decodes perfectly
21:45
cocotton has joined #ruby
21:45
<
Lewix >
not Base64, i want something robust that i only can decode with my machine
21:46
Cheezebox has quit [Remote host closed the connection]
21:46
gkagan has quit [Ping timeout: 264 seconds]
21:47
agent_white has joined #ruby
21:47
agent_white has quit [Read error: Connection reset by peer]
21:47
<
apeiros >
that sounds like an impossible requirement
21:48
noshi has joined #ruby
21:48
<
apeiros >
also it sounds like you talk about encrypt/decrypt. not encode/decode.
21:48
ghr has quit [Ping timeout: 240 seconds]
21:48
Cheezebox has joined #ruby
21:48
Adran is now known as Madran
21:49
Hjulle has joined #ruby
21:49
stega has joined #ruby
21:50
<
jhass >
Lewix: try encoding on all other machines with the `rm` tool
21:50
<
jhass >
then decode on your machine with `cat`
21:51
bthesorceror has joined #ruby
21:52
kirun has quit [Quit: Client exiting]
21:52
agent_white has joined #ruby
21:52
agent_white has quit [Read error: Connection reset by peer]
21:52
gregf has joined #ruby
21:53
rjhunter has joined #ruby
21:54
qmfnp has joined #ruby
21:54
benlieb has joined #ruby
21:55
saladspork has quit [Quit: saladspork]
21:55
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:55
claw_ has joined #ruby
21:56
<
Hjulle >
What is(are) the bot(s) written in ruby on this channel called?
21:56
senayar has quit [Remote host closed the connection]
21:56
claw has quit [Ping timeout: 260 seconds]
21:56
r_s has joined #ruby
21:57
agent_white has joined #ruby
21:57
agent_white has quit [Read error: Connection reset by peer]
21:58
ringarin has joined #ruby
21:58
<
shevy >
no idea if the source is available
21:58
<
pipework >
Hjulle: The known one is eval-in, but I'm fairly sure that shevy is also a bot.
21:58
<
shevy >
you can possibly easily adapt a cinch bot
21:58
<
shevy >
I am too non-standard to be a bot pipework
21:58
<
Hjulle >
shevy: !help
21:58
<
helpa >
I need somebody! !help. Not just anybody. !help. You know I need someone. !help
21:59
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:59
sdwrage has joined #ruby
21:59
saladspork has joined #ruby
21:59
<
shevy >
this ghetto bot is so unworthy
21:59
<
jhass >
Hjulle: if you plan a ruby irc bot check cinch
22:00
<
shevy >
Hjulle are you from norway?
22:00
diegoviola has quit [Quit: WeeChat 1.0]
22:00
<
shevy >
k... the nick sounded nordic
22:00
Cort3z has quit [Ping timeout: 246 seconds]
22:00
<
Hjulle >
jhass: No, I'm just examining the irc bots of the different programming language channels. :)
22:00
saladspork has quit [Client Quit]
22:01
ringarin has quit [Client Quit]
22:01
<
shevy >
does php have a good irc bot?
22:01
<
Hjulle >
Good question
22:01
<
pipework >
PHP has good things?
22:01
<
shevy >
documentation
22:01
<
jhass >
I know of helpa eval-in and
_whitelogger_
22:01
<
apeiros >
would be fun… with no concurrency
22:01
<
shevy >
who needs more than 512 bytes anyway
22:02
agent_white has joined #ruby
22:02
agent_white has quit [Read error: Connection reset by peer]
22:02
abuzze has joined #ruby
22:04
drago777- has joined #ruby
22:05
Kruppe has quit [Ping timeout: 240 seconds]
22:05
drago777 has quit [Ping timeout: 240 seconds]
22:05
ptrrr has quit [Quit: ptrrr]
22:05
Cache_Money has joined #ruby
22:05
abuzze_ has quit [Ping timeout: 240 seconds]
22:06
mary5030 has joined #ruby
22:06
m8 has quit [Quit: Sto andando via]
22:07
merqlove has quit [Quit: Connection closed for inactivity]
22:07
Kruppe has joined #ruby
22:07
<
Hjulle >
Try "/msg php-bot help" ;)
22:07
abuzze has quit [Ping timeout: 260 seconds]
22:07
agent_white has joined #ruby
22:07
agent_white has quit [Read error: Connection reset by peer]
22:07
bthesorceror has quit [Quit: bthesorceror]
22:09
prologepilog has quit [Ping timeout: 250 seconds]
22:10
cashnguns has joined #ruby
22:10
yubrew has joined #ruby
22:11
claw_ has quit [Read error: Connection reset by peer]
22:11
claw_ has joined #ruby
22:11
prologepilog has joined #ruby
22:11
philcrissman has joined #ruby
22:12
armanghassemi_ has joined #ruby
22:12
AlSquire has quit [Quit: Quitte]
22:12
agent_white has joined #ruby
22:12
agent_white has quit [Read error: Connection reset by peer]
22:12
AlSquire has joined #ruby
22:13
shredding has joined #ruby
22:15
yubrew has quit [Ping timeout: 240 seconds]
22:15
charliesome has joined #ruby
22:15
mozzarella has quit [Quit: WeeChat 0.4.3]
22:15
seamon has joined #ruby
22:15
stega has quit [Quit: Computer has gone to sleep.]
22:16
philcrissman has quit [Ping timeout: 250 seconds]
22:16
patrick99e99 has joined #ruby
22:16
AlSquire has quit [Client Quit]
22:16
sharms has quit [*.net *.split]
22:16
xiphias has quit [*.net *.split]
22:16
riotjon__ has joined #ruby
22:17
Nahra has quit [Remote host closed the connection]
22:17
agent_white has joined #ruby
22:17
agent_white has quit [Read error: Connection reset by peer]
22:17
shredding has quit [Ping timeout: 255 seconds]
22:18
Nahra has joined #ruby
22:18
mozzarella has joined #ruby
22:19
britneywright has joined #ruby
22:19
riotjone_ has quit [Ping timeout: 264 seconds]
22:19
sparrovv has joined #ruby
22:19
AlSquire has joined #ruby
22:20
sdwrage has quit [Quit: This computer has gone to sleep]
22:20
patrick99e99 has quit [Ping timeout: 246 seconds]
22:21
starless has joined #ruby
22:21
jottr has quit [Ping timeout: 255 seconds]
22:22
agent_white has joined #ruby
22:22
agent_white has quit [Read error: Connection reset by peer]
22:22
adac has quit [Ping timeout: 245 seconds]
22:24
jackz has quit [Remote host closed the connection]
22:24
sharms has joined #ruby
22:24
xiphias has joined #ruby
22:24
jackz has joined #ruby
22:26
sdwrage has joined #ruby
22:27
agent_white has joined #ruby
22:27
Cheezebox has quit [Remote host closed the connection]
22:27
agent_white has quit [Read error: Connection reset by peer]
22:27
agjacome has quit [Quit: leaving]
22:30
Cort3z has joined #ruby
22:30
skolman has quit [Remote host closed the connection]
22:30
MatthewsFace has joined #ruby
22:31
skolman has joined #ruby
22:31
senayar has joined #ruby
22:32
agent_white has joined #ruby
22:32
agent_white has quit [Read error: Connection reset by peer]
22:32
skolma___ has joined #ruby
22:34
dkamioka has quit [Remote host closed the connection]
22:35
skolman has quit [Ping timeout: 240 seconds]
22:35
nobitanobi has joined #ruby
22:36
spider-mario has quit [Remote host closed the connection]
22:36
Cort3z has quit [Ping timeout: 240 seconds]
22:37
sharms has quit [Ping timeout: 240 seconds]
22:37
agent_white has joined #ruby
22:37
agent_white has quit [Read error: Connection reset by peer]
22:38
kristofferR has joined #ruby
22:38
sharms has joined #ruby
22:39
nobitanobi has quit [Ping timeout: 240 seconds]
22:40
toastynerd has joined #ruby
22:40
bricker`LA has joined #ruby
22:41
codecop has quit [Remote host closed the connection]
22:42
<
benzrf >
#haskell has quite a nice Lambda bot
22:42
_lexjm has joined #ruby
22:42
_lexjm has quit [Max SendQ exceeded]
22:42
gkagan has joined #ruby
22:42
agent_white has joined #ruby
22:42
<
Hjulle >
Yes, I agree
22:42
agent_white has quit [Read error: Connection reset by peer]
22:42
PeterBoy has quit [Remote host closed the connection]
22:42
dkamioka has joined #ruby
22:43
anaeem1 has quit [Remote host closed the connection]
22:44
parduse has quit []
22:44
parduse has joined #ruby
22:44
bricker`LA has quit [Ping timeout: 246 seconds]
22:45
toastynerd has quit [Ping timeout: 260 seconds]
22:45
PeterBoy has joined #ruby
22:45
jcoglan has joined #ruby
22:45
ghr has joined #ruby
22:47
gkagan has quit [Ping timeout: 260 seconds]
22:47
threesixes has joined #ruby
22:47
agent_white has joined #ruby
22:47
agent_white has quit [Read error: Connection reset by peer]
22:47
<
_cake >
are bots allowed here
22:49
cocotton has quit [Remote host closed the connection]
22:49
ghr has quit [Ping timeout: 245 seconds]
22:50
<
apeiros >
_cake: same rules apply as to humans
22:51
MatthewsFace has quit [Quit: This computer has gone to sleep]
22:52
pr0t has joined #ruby
22:52
agent_white has joined #ruby
22:52
roolo has quit [Quit: Leaving...]
22:52
agent_white has quit [Read error: Connection reset by peer]
22:52
sinkensabe has joined #ruby
22:53
dkamioka has quit [Remote host closed the connection]
22:53
moritzs has quit [Remote host closed the connection]
22:53
dkamioka has joined #ruby
22:54
moritzs has joined #ruby
22:54
axsuul has joined #ruby
22:55
Sht0 has quit [Ping timeout: 250 seconds]
22:55
dkamioka has quit [Read error: Connection reset by peer]
22:55
dkamioka has joined #ruby
22:57
momomomomo has joined #ruby
22:57
agent_white has joined #ruby
22:57
agent_white has quit [Read error: Connection reset by peer]
22:58
sinkensabe has quit [Ping timeout: 264 seconds]
22:58
<
Hjulle >
apeiros: Are humans really allowed here?
22:59
charliesome has quit [Ping timeout: 260 seconds]
23:00
PeterBoy has quit [Remote host closed the connection]
23:01
DEA7TH has quit [Remote host closed the connection]
23:01
marr has quit [Ping timeout: 260 seconds]
23:01
bMalum has quit [Quit: bMalum]
23:02
senayar has quit [Remote host closed the connection]
23:02
agent_white has joined #ruby
23:02
agent_white has quit [Read error: Connection reset by peer]
23:03
lemur has joined #ruby
23:05
yubrew has joined #ruby
23:06
<
shevy >
I am a cyborg
23:06
<
shevy >
Hjulle call Frejda and Thor Wauki, let's rampage this channel down
23:06
MatthewsFace has joined #ruby
23:07
<
shevy >
if you are a bot
23:07
<
shevy >
and you cross-post
23:07
<
shevy >
apeiros will ban your ass!
23:07
lemur has quit [Ping timeout: 240 seconds]
23:07
apeiros has quit [Remote host closed the connection]
23:07
agent_white has joined #ruby
23:07
agent_white has quit [Read error: Connection reset by peer]
23:08
apeiros has joined #ruby
23:09
anaeem1_ has joined #ruby
23:09
anaeem1_ has quit [Remote host closed the connection]
23:09
anaeem1_ has joined #ruby
23:09
yubrew has quit [Ping timeout: 246 seconds]
23:10
jkline has quit [Quit: jkline]
23:10
sparrovv has quit [Remote host closed the connection]
23:11
chrishough has joined #ruby
23:11
sparrovv has joined #ruby
23:11
Centime has joined #ruby
23:11
PeterBoy has joined #ruby
23:12
jack_rabbit has joined #ruby
23:12
gr33n7007h has joined #ruby
23:12
kaspergrubbe_ has joined #ruby
23:12
<
Centime >
Hi. An application asks me to run 'gem install bundle', when I do it it works fine, but still, when trying to run the app again, it asks me for the same 'gem install bundle'
23:12
_shrine has joined #ruby
23:12
<
YamakasY >
guys how can I extract eth1 from this line ? img-01-eth1
23:12
agent_white has joined #ruby
23:12
<
Centime >
Is there anything more to do, like change a PATH or something ?
23:13
agent_white has quit [Read error: Connection reset by peer]
23:13
Cache_Money has quit [Ping timeout: 260 seconds]
23:13
<
jhass >
Centime: it's gem install bundler although the command is bundle
23:13
anaeem___ has joined #ruby
23:14
narcan has joined #ruby
23:14
<
jhass >
YamakasY: share text with a pastebin not via pictures. Also dragging pictures into your IRC client doesn't work
23:14
Cache_Money has joined #ruby
23:15
<
Centime >
jhass: sorry, I'm not sure what you mean. Should I run "bundle" instead of "gem install bundle" ?
23:15
armanghassemi_ has quit [Ping timeout: 260 seconds]
23:15
armanghassemi_ has joined #ruby
23:16
PeterBoy has quit [Client Quit]
23:16
<
YamakasY >
jhass: huh ? that small amount of code ?
23:16
sparrovv has quit [Ping timeout: 272 seconds]
23:16
<
YamakasY >
jhass: and I didn't paste any picture
23:16
<
jhass >
Centime: you should run gem install bundler instead of gem install bundle but run bundle instead of bundler
23:16
anaeem1_ has quit [Ping timeout: 250 seconds]
23:16
<
shevy >
YamakasY many ways. simplest is "img-01-eth1".split('-')[-1]
23:16
<
jhass >
oh, img- sounded like that
23:17
<
YamakasY >
jhass: no that is the servername :D
23:17
<
Centime >
jhass: Oh, ok !
23:17
<
YamakasY >
shevy: and set that to $foo = ?
23:17
jfutbol has quit [Remote host closed the connection]
23:17
skolma___ has quit []
23:17
<
YamakasY >
jhass: you fool :P
23:17
<
shevy >
you asked how to get "eth1"
23:17
<
shevy >
what you then do with this snippet is up to you
23:17
agent_white has joined #ruby
23:17
<
YamakasY >
shevy: yes, that's true :D
23:18
agent_white has quit [Read error: Connection reset by peer]
23:18
<
shevy >
some_var_yamakasy_wants_to_use_here = "img-01-eth1".split('-')[-1] # => "eth1"
23:18
fabrice31 has joined #ruby
23:18
<
shevy >
but in general, you rarely need to use $ variables in ruby
23:18
_shrine has quit [Ping timeout: 255 seconds]
23:18
<
YamakasY >
shevy: yeah I'm no using ruby very much myself... but puppet needs it sometimes :D
23:18
<
jhass >
and you never need to define them
23:18
<
shevy >
for variables that are not important, I usually use _
23:18
skolman_ has joined #ruby
23:20
<
YamakasY >
shevy: yes I already thought that :)
23:20
mfmfmfmfmfmf has quit [Remote host closed the connection]
23:20
<
YamakasY >
shevy: but that is a very long variable name :
23:21
<
YamakasY >
and finally \
23:21
<
shevy >
I wanted to counter your suggestion of using $foo
23:21
momomomomo has quit [Quit: momomomomo]
23:21
Asher has joined #ruby
23:22
<
YamakasY >
shevy: but let's say I call it img01-eth1
23:22
<
shevy >
the variable?
23:22
<
YamakasY >
it it than still -a ?
23:22
fabrice31 has quit [Ping timeout: 255 seconds]
23:22
<
YamakasY >
the value
23:22
<
shevy >
>> img01-eth1 = 'foo'
23:22
agent_white has joined #ruby
23:23
<
shevy >
you can not use -
23:23
agent_white has quit [Read error: Connection reset by peer]
23:23
<
benzrf >
i believe that parses as
23:23
<
benzrf >
img01(-(eth1 = 'foo'))
23:23
AlSquire has quit [Quit: This computer has gone to sleep]
23:23
<
YamakasY >
no I mean img01-eth1".split('-')[-1] # => "eth1"
23:23
<
YamakasY >
oh man I'm becoming a fool out of foo
23:24
bthesorceror has joined #ruby
23:24
<
benzrf >
>> nonexistent(puts "test")
23:24
cpruitt has joined #ruby
23:25
Takle has quit [Remote host closed the connection]
23:25
flowerhack has quit [Remote host closed the connection]
23:27
senayar has joined #ruby
23:27
cpruitt has quit [Client Quit]
23:27
agent_white has joined #ruby
23:28
agent_white has quit [Read error: Connection reset by peer]
23:28
Gyps has joined #ruby
23:28
<
jhass >
YamakasY: long descriptive variable names are a good thing ;)
23:28
<
YamakasY >
jhass: hehe
23:29
<
YamakasY >
jhass: ok, but what if my img-01-eth is a var that comes from int.name ? I cannot do "int.name" for it, that parses it
23:29
<
jhass >
I thought that's your value?
23:30
<
jhass >
as already said you can't have a var with that name
23:30
<
YamakasY >
jhass: yes I needed first to explain what I need
23:30
bootstrappm has joined #ruby
23:30
Cort3z has joined #ruby
23:30
<
jhass >
so int.name would be a method call
23:30
<
jhass >
I guess it returns your value "img-01-eth1"
23:30
ari-_-e has quit [Ping timeout: 240 seconds]
23:30
<
YamakasY >
it's from a loop
23:31
<
jhass >
so you can do interface = int.name.split('-').last
23:31
<
shevy >
YamakasY do you know what .split does? it will split your string into an array
23:31
skolman_ has quit [Ping timeout: 240 seconds]
23:32
<
shevy >
if you have a var to check against, you could use .grep(your_var) or perhaps .grep(/#{your_var}/
23:32
agent_white has joined #ruby
23:32
skolman has joined #ruby
23:33
agent_white has quit [Read error: Connection reset by peer]
23:33
TheNet has joined #ruby
23:33
ari-_-e has joined #ruby
23:33
<
YamakasY >
int.name.split('-').last
23:33
<
YamakasY >
undefined local variable or method `iface' for
23:33
<
YamakasY >
I use iface instead of interface
23:33
<
YamakasY >
shevy: yes I know
23:33
freerobby has joined #ruby
23:33
mfmfmfmfmfmf has joined #ruby
23:34
Cort3z has quit [Ping timeout: 250 seconds]
23:34
Gyps has left #ruby [#ruby]
23:34
bthesorceror has quit [Quit: bthesorceror]
23:36
nobitanobi has joined #ruby
23:37
nobitanobi has quit [Read error: No route to host]
23:38
agent_white has joined #ruby
23:38
agent_white has quit [Read error: Connection reset by peer]
23:38
nobitanobi has joined #ruby
23:38
mozzarella has quit [Quit: WeeChat 0.4.3]
23:38
mfmfmfmfmfmf has quit [Ping timeout: 260 seconds]
23:38
toastynerd has joined #ruby
23:38
Gu_______ has joined #ruby
23:39
kenneth has quit [Quit: Bye.]
23:39
Gu_______ has quit [Client Quit]
23:39
<
shevy >
damn you use erb
23:39
<
shevy >
I thought you use puppet
23:39
<
shevy >
and now you also use erb
23:39
seamon has quit [Quit: Zzzzzzz]
23:39
<
shevy >
you are going the wrong way into ruby
23:39
<
shevy >
the right way into ruby is by love, style and elegance
23:40
robbyoconnor has quit [Ping timeout: 260 seconds]
23:40
<
shevy >
this code rivals embedded php code
23:40
robbyoconnor has joined #ruby
23:40
<
shevy >
/bin/touch /etc/network/interfaces.d/<%= iface %>.conf
23:40
<
shevy >
how can your eyes not scream at this man!
23:40
<
YamakasY >
shevy: why not ?
23:41
<
shevy >
if I understand this code correctly
23:41
<
shevy >
it will simply put stuff into a text file right?
23:41
<
YamakasY >
shevy: no this is not puppet based yet
23:41
<
YamakasY >
it's from an enc
23:41
mozzarella has joined #ruby
23:41
<
shevy >
yeah I wondered, even puppet can not be as ugly
23:41
<
shevy >
here is what you should do
23:41
<
shevy >
write a class that does all those actions, including saving the file
23:42
<
shevy >
in your erb stuff, simply call that class then Bla.new
23:44
nobitanobi has quit [Ping timeout: 240 seconds]
23:44
<
YamakasY >
I need to get iface right :)
23:44
<
YamakasY >
it's provisioning
23:44
<
YamakasY >
no can't
23:44
<
YamakasY >
but that's not the case
23:44
<
YamakasY >
puppet is NOT in yet here
23:44
Shidash has quit [Quit: Leaving.]
23:44
agent_white has joined #ruby
23:44
gkagan has joined #ruby
23:44
marcel has quit [Ping timeout: 240 seconds]
23:44
toastynerd has quit [Ping timeout: 245 seconds]
23:44
<
shevy >
iface = int.name.split('-').last
23:44
Dreamer3 has quit [Quit: Computer has gone to sleep.]
23:45
<
shevy >
you call the method .name
23:45
<
shevy >
how do you know that int responds to .name?
23:45
Soliah has quit [Quit: Soliah]
23:46
<
YamakasY >
int.name gives me img-01-eth1
23:46
<
YamakasY >
but that doesn't work for my network :)
23:46
nszceta has quit []
23:47
marcel has joined #ruby
23:47
Madran is now known as Adran
23:47
gkagan has quit [Ping timeout: 255 seconds]
23:47
phutchin1 has quit [Ping timeout: 240 seconds]
23:48
agent_white has joined #ruby
23:48
agent_white has quit [Read error: Connection reset by peer]
23:48
<
shevy >
ok so int is not a string right?
23:48
<
shevy >
it is a special object
23:48
<
YamakasY >
it's an array
23:48
<
YamakasY >
or objetc... I'm not good at that :)
23:49
KatZilla has joined #ruby
23:49
phutchin1 has joined #ruby
23:49
seamon has joined #ruby
23:49
nanoyak has quit [Quit: Computer has gone to sleep.]
23:50
abuzze has joined #ruby
23:51
<
YamakasY >
shevy: I get an array of nics and that is what I do with it :) that loop
23:51
skolman has quit [Remote host closed the connection]
23:52
Takle has joined #ruby
23:52
zorak has quit [Remote host closed the connection]
23:53
agent_white has joined #ruby
23:53
agent_white has quit [Read error: Connection reset by peer]
23:55
moritzs has quit [Ping timeout: 250 seconds]
23:55
abuzze has quit [Ping timeout: 260 seconds]
23:55
benlieb has quit [Quit: benlieb]
23:55
moritzs has joined #ruby
23:58
agent_white has joined #ruby
23:58
startupality has quit [Quit: startupality]
23:58
agent_white has quit [Read error: Connection reset by peer]
23:58
startupality has joined #ruby
23:59
yubrew has joined #ruby
23:59
edwardly_ has joined #ruby