00:07
grokify has joined #ruby
00:11
grokify has quit [Ping timeout: 260 seconds]
00:13
Rounin has quit [Ping timeout: 246 seconds]
00:20
gonix has quit [Ping timeout: 272 seconds]
00:21
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:38
gamara has joined #ruby
00:40
grokify has joined #ruby
00:45
grokify has quit [Ping timeout: 272 seconds]
00:58
markong has quit [Ping timeout: 272 seconds]
01:10
onyx has quit [Read error: Connection reset by peer]
01:14
grokify has joined #ruby
01:19
grokify has quit [Ping timeout: 272 seconds]
01:29
jpn has quit [Ping timeout: 272 seconds]
01:33
jpn has joined #ruby
01:35
hellstabber has quit [Quit: Connection closed for inactivity]
01:36
desnudopenguino has quit [Ping timeout: 272 seconds]
01:37
desnudopenguino has joined #ruby
01:38
jpn has quit [Ping timeout: 260 seconds]
01:39
gamara84 has joined #ruby
01:41
gamara has quit [Quit: Client closed]
01:42
Exa has quit [Ping timeout: 264 seconds]
01:43
Exa has joined #ruby
01:46
<
ruby[bot] >
gamara84: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use
https://gist.github.com
01:49
grokify has joined #ruby
01:49
<
AstrallyForged >
>Microsoft
01:51
<
gamara84 >
ruby seems like the language of memorization lol
01:53
<
gamara84 >
most painful imperative language, I found rust so much easier
01:53
grokify has quit [Ping timeout: 272 seconds]
02:06
gamara84 has quit [Quit: Client closed]
02:07
nirvdrum has joined #ruby
02:19
jpn has joined #ruby
02:22
grokify has joined #ruby
02:26
grokify has quit [Ping timeout: 260 seconds]
02:29
jpn has quit [Ping timeout: 272 seconds]
02:53
grokify has joined #ruby
02:58
grokify has quit [Ping timeout: 260 seconds]
03:00
Guimauve has joined #ruby
03:19
jpn has joined #ruby
03:27
grokify has joined #ruby
03:27
r3m has quit [Quit: WeeChat 3.8-dev]
03:28
jpn has quit [Ping timeout: 260 seconds]
03:28
r3m has joined #ruby
03:31
grokify has quit [Ping timeout: 272 seconds]
03:40
soknte5 has joined #ruby
03:40
jpn has joined #ruby
03:45
jpn has quit [Ping timeout: 272 seconds]
03:46
grokify has joined #ruby
03:46
D_A_N has quit [Read error: Connection reset by peer]
03:47
grokify has quit [Remote host closed the connection]
03:48
D_A_N has joined #ruby
03:49
Vonter has joined #ruby
04:00
D_A_N has quit [Read error: Connection reset by peer]
04:02
D_A_N has joined #ruby
04:03
ur5us has joined #ruby
04:07
Vonter has quit [Ping timeout: 272 seconds]
04:20
grokify has joined #ruby
04:22
Vonter has joined #ruby
04:22
cartdrige has joined #ruby
04:25
grokify has quit [Ping timeout: 272 seconds]
04:25
grokify_ has joined #ruby
04:25
toshiba__ has quit [Ping timeout: 272 seconds]
04:29
Guimauve has quit [Quit: Client closed]
04:33
jpn has joined #ruby
04:35
grokify_ has quit [Remote host closed the connection]
04:38
jpn has quit [Ping timeout: 272 seconds]
04:39
grokify has joined #ruby
04:46
Synthead has joined #ruby
04:46
<
Synthead >
is there a way to pretty-print a hash with 1.9 syntax?
04:47
<
Synthead >
i.e. a = { :a => "b" }; pp a # Should return {a: "b"}
05:08
<
leftylink >
I guess a map followed by a join would be in order. doubt there would be something built in
05:10
grokify has quit [Remote host closed the connection]
05:13
reset has quit [Quit: reset]
05:29
D_A_N has quit [Quit: leaving]
05:30
conjunctive has quit [*.net *.split]
05:30
miah has quit [*.net *.split]
05:31
D_A_N has joined #ruby
05:31
grokify has joined #ruby
05:31
conjunctive has joined #ruby
05:32
miah has joined #ruby
05:35
ur5us has quit [Read error: Connection reset by peer]
05:38
grokify has quit [Remote host closed the connection]
05:39
grokify has joined #ruby
05:40
jpn has joined #ruby
05:44
Synthead has quit [Quit: Leaving]
05:44
D_A_N has quit [Quit: leaving]
05:49
jpn has quit [Ping timeout: 272 seconds]
05:55
_whitelogger has joined #ruby
05:55
ross has joined #ruby
05:55
ross has quit [Changing host]
05:56
hexology has joined #ruby
05:56
isene has joined #ruby
05:56
peder has joined #ruby
06:02
grokify has quit [Remote host closed the connection]
06:03
grokify has joined #ruby
06:19
gamara has joined #ruby
06:22
grokify has quit [Remote host closed the connection]
06:23
grokify has joined #ruby
06:24
Sankalp has quit [Ping timeout: 272 seconds]
06:26
Sankalp has joined #ruby
06:27
grokify has quit [Ping timeout: 255 seconds]
06:33
crux73 has joined #ruby
06:36
cartdrige has quit [Ping timeout: 260 seconds]
06:36
jpn has joined #ruby
06:37
matoro has quit [Ping timeout: 246 seconds]
06:38
nirvdrum has quit [Quit: nirvdrum]
06:38
nirvdrum has joined #ruby
06:38
toshiba__ has joined #ruby
06:40
soknte5 has quit [Remote host closed the connection]
06:40
crux73 has quit [Ping timeout: 255 seconds]
06:41
cartdrige has joined #ruby
06:43
toshiba__ has quit [Ping timeout: 260 seconds]
06:46
matoro has joined #ruby
06:46
matoro has joined #ruby
06:46
matoro has quit [Changing host]
06:48
nirvdrum has quit [Quit: nirvdrum]
06:50
idiocrash has joined #ruby
06:56
szkl has quit [Quit: Connection closed for inactivity]
06:58
grokify has joined #ruby
07:02
grokify has quit [Ping timeout: 272 seconds]
07:22
jpn has quit [Ping timeout: 272 seconds]
07:29
jpn has joined #ruby
07:36
jpn has quit [Ping timeout: 260 seconds]
07:49
grokify has joined #ruby
07:54
grokify has quit [Ping timeout: 276 seconds]
08:02
jvalleroy has joined #ruby
08:04
gamara has quit [Ping timeout: 244 seconds]
08:04
crux73 has joined #ruby
08:04
cartdrige has quit [Ping timeout: 260 seconds]
08:16
hightower3 has quit [Remote host closed the connection]
08:16
hightower3 has joined #ruby
08:18
Rounin has joined #ruby
08:18
Rounin has quit [Changing host]
08:18
Rounin has joined #ruby
08:21
crux73 has quit [Quit: Leaving]
08:22
cartdrige has joined #ruby
08:23
grokify has joined #ruby
08:25
jpn has joined #ruby
08:27
grokify has quit [Ping timeout: 250 seconds]
08:29
crux73 has joined #ruby
08:30
jpn has quit [Ping timeout: 250 seconds]
08:31
cartdrige has quit [Ping timeout: 276 seconds]
08:41
artemon has joined #ruby
08:41
idiocrash has quit [Ping timeout: 272 seconds]
08:46
_ht has joined #ruby
08:47
idiocrash has joined #ruby
08:54
grokify has joined #ruby
08:59
grokify has quit [Ping timeout: 272 seconds]
09:28
grokify has joined #ruby
09:33
grokify has quit [Ping timeout: 250 seconds]
09:47
jpn has joined #ruby
09:49
infinityfye has joined #ruby
09:52
jpn has quit [Ping timeout: 272 seconds]
10:00
grokify has joined #ruby
10:04
grokify has quit [Ping timeout: 276 seconds]
10:09
rvalue has quit [Ping timeout: 272 seconds]
10:12
rvalue has joined #ruby
10:23
hrberg has quit [Ping timeout: 246 seconds]
10:23
rvalue has quit [Ping timeout: 276 seconds]
10:32
grokify has joined #ruby
10:37
grokify has quit [Ping timeout: 276 seconds]
10:41
jpn has joined #ruby
10:42
rvalue has joined #ruby
10:49
jpn has quit [Ping timeout: 276 seconds]
11:05
grokify has joined #ruby
11:10
grokify has quit [Ping timeout: 250 seconds]
11:19
royo25 has joined #ruby
11:26
royo25 has quit [Quit: Bye]
11:40
grokify has joined #ruby
11:44
ule has quit [Changing host]
11:44
ule has joined #ruby
11:45
grokify has quit [Ping timeout: 276 seconds]
11:47
idiocrash has quit [Ping timeout: 260 seconds]
12:10
toshiba__ has joined #ruby
12:13
crux73 has quit [Ping timeout: 276 seconds]
12:15
grokify has joined #ruby
12:19
grokify has quit [Ping timeout: 250 seconds]
12:22
crux73 has joined #ruby
12:23
jpn has joined #ruby
12:25
toshiba__ has quit [Ping timeout: 272 seconds]
12:26
cartdrige has joined #ruby
12:27
crux73 has quit [Ping timeout: 272 seconds]
12:29
otisolsen70 has joined #ruby
12:31
jpn has quit [Ping timeout: 276 seconds]
12:31
jpn has joined #ruby
12:36
jpn has quit [Ping timeout: 272 seconds]
12:37
gcd has quit [Remote host closed the connection]
12:42
gcd has joined #ruby
12:44
hellstabber has joined #ruby
12:49
grokify has joined #ruby
12:53
grokify has quit [Ping timeout: 250 seconds]
13:03
crux73 has joined #ruby
13:05
toshiba__ has joined #ruby
13:06
cartdrige has quit [Ping timeout: 276 seconds]
13:08
crux73 has quit [Ping timeout: 250 seconds]
13:08
crux73 has joined #ruby
13:11
cartdrige has joined #ruby
13:12
toshiba__ has quit [Ping timeout: 276 seconds]
13:13
crux73 has quit [Ping timeout: 272 seconds]
13:13
Furai has quit [Remote host closed the connection]
13:14
Furai has joined #ruby
13:21
hololeap has quit [Quit: Bye]
13:23
hololeap has joined #ruby
13:23
grokify has joined #ruby
13:26
cartdrige has quit [Ping timeout: 250 seconds]
13:27
grokify has quit [Ping timeout: 250 seconds]
13:43
wand has quit [Remote host closed the connection]
13:43
aeris has quit [Remote host closed the connection]
13:44
aeris has joined #ruby
13:54
wand has joined #ruby
13:54
D_A_N has joined #ruby
14:05
John_Ivan has joined #ruby
14:17
grokify has joined #ruby
14:26
grokify has quit [Remote host closed the connection]
14:28
grokify has joined #ruby
14:32
grokify has quit [Remote host closed the connection]
14:44
Furai has quit [Quit: WeeChat 3.7.1]
14:44
Furai has joined #ruby
14:52
mikecmpbll has quit [Read error: Connection reset by peer]
14:53
mikecmpbll has joined #ruby
14:58
reset has joined #ruby
15:15
___nick___ has joined #ruby
15:23
grokify has joined #ruby
15:23
___nick___ has joined #ruby
15:27
grokify has quit [Ping timeout: 272 seconds]
15:33
dionysus69 has joined #ruby
15:38
nirvdrum has joined #ruby
15:40
dionysus69 has quit [Ping timeout: 276 seconds]
15:50
r3m has quit [Quit: WeeChat 3.8-dev]
15:51
r3m has joined #ruby
16:00
jollyrogue[m] has quit [Quit: You have been kicked for being idle]
16:00
jpn has joined #ruby
16:05
jpn has quit [Ping timeout: 250 seconds]
16:23
rvalue has quit [Ping timeout: 272 seconds]
16:24
___nick___ has joined #ruby
16:25
___nick___ has quit [Client Quit]
16:26
wand has quit [Remote host closed the connection]
16:27
___nick___ has joined #ruby
16:27
desnudopenguino has quit [Ping timeout: 272 seconds]
16:29
grokify has joined #ruby
16:29
nirvdrum has quit [Quit: nirvdrum]
16:34
grokify has quit [Ping timeout: 250 seconds]
16:37
wand has joined #ruby
16:37
nirvdrum has joined #ruby
16:41
rvalue has joined #ruby
16:42
infinityfye has quit [Ping timeout: 272 seconds]
16:52
aeris has quit [Ping timeout: 258 seconds]
16:53
aeris has joined #ruby
17:00
jpn has joined #ruby
17:08
eddof13 has joined #ruby
17:08
cartdrige has joined #ruby
17:10
toshiba__ has joined #ruby
17:11
jpn has quit [Ping timeout: 276 seconds]
17:14
goldfish has joined #ruby
17:14
toshiba__ has quit [Client Quit]
17:15
cartdrige has quit [Ping timeout: 276 seconds]
17:16
cartdrige has joined #ruby
17:17
jpn has joined #ruby
17:21
grokify has joined #ruby
17:25
grokify has quit [Ping timeout: 260 seconds]
17:26
jpn has quit [Ping timeout: 250 seconds]
17:35
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
17:37
lagash has joined #ruby
17:39
eddof13 has joined #ruby
17:39
nirvdrum has quit [Quit: nirvdrum]
17:40
eddof13 has quit [Client Quit]
17:51
Guimauve has joined #ruby
17:56
grokify has joined #ruby
18:00
grokify has quit [Ping timeout: 250 seconds]
18:11
hololeap has quit [Quit: Bye]
18:11
kaivai has joined #ruby
18:12
hololeap has joined #ruby
18:47
grokify has joined #ruby
18:52
grokify has quit [Ping timeout: 250 seconds]
19:11
jetchisel has quit [Remote host closed the connection]
19:12
jetchisel has joined #ruby
19:15
kaivai has joined #ruby
19:21
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
19:21
grokify has joined #ruby
19:24
jetchisel has joined #ruby
19:25
grokify has quit [Ping timeout: 250 seconds]
19:26
crux73 has joined #ruby
19:28
toshiba__ has joined #ruby
19:28
cartdrige has quit [Ping timeout: 250 seconds]
19:31
crux73 has quit [Ping timeout: 250 seconds]
19:41
desnudopenguino has joined #ruby
19:42
infinityfye has joined #ruby
19:43
infinityfye has quit [Client Quit]
19:54
grokify has joined #ruby
19:59
grokify has quit [Ping timeout: 276 seconds]
20:01
some14u has joined #ruby
20:03
___nick___ has quit [Ping timeout: 250 seconds]
20:12
_ht has quit [Quit: _ht]
20:13
hightower3 has quit [Ping timeout: 276 seconds]
20:30
grokify has joined #ruby
20:35
grokify has quit [Ping timeout: 250 seconds]
20:39
jpn has joined #ruby
20:40
sandcat has joined #ruby
20:40
sandcat has left #ruby [#ruby]
20:40
hightower2 has joined #ruby
20:40
jess has joined #ruby
20:40
<
jess >
what should i be looking at for parsing HTML in ruby? additional note, i'm doing this for a jekyll plugin
20:41
<
jess >
the goal of what i'm doing is to find every html tag, see if it has "href" or "src", then make the url inside that attribute absolute if it isnt already
20:43
<
jess >
(i'm not sure if jekyll already allows me to access html tags and their attributes easily, that would be nice)
20:44
jpn has quit [Ping timeout: 276 seconds]
20:46
idiocrash has joined #ruby
20:47
<
weaksauce >
nokogiri being the heavyweight
20:47
<
weaksauce >
don't think there's anything that jekyll does for you wrt html
20:52
<
weaksauce >
might be a good guide
20:54
<
jess >
that does indeed look helpful, thank you
21:07
crux73 has joined #ruby
21:09
cartdrige has joined #ruby
21:09
toshiba__ has quit [Ping timeout: 250 seconds]
21:11
crux73 has quit [Ping timeout: 272 seconds]
21:12
Guest8685 has joined #ruby
21:12
crux73 has joined #ruby
21:13
Guest8685 has quit [Client Quit]
21:15
cartdrige has quit [Ping timeout: 272 seconds]
21:20
grokify has joined #ruby
21:25
grokify has quit [Ping timeout: 276 seconds]
21:37
toshiba__ has joined #ruby
21:40
crux73 has quit [Ping timeout: 272 seconds]
21:41
John_Ivan has quit [Ping timeout: 260 seconds]
21:44
hellstabber has quit [Quit: Connection closed for inactivity]
21:46
John_Ivan has joined #ruby
21:46
otisolsen70 has quit [Read error: Connection reset by peer]
22:10
grokify has joined #ruby
22:14
grokify has quit [Ping timeout: 276 seconds]
22:16
jpn has joined #ruby
22:19
finsternis has quit [Read error: Connection reset by peer]
22:20
jpn has quit [Ping timeout: 260 seconds]
22:21
gonix has joined #ruby
22:21
staff420 has quit [Ping timeout: 268 seconds]
22:29
Guimauve has quit [Quit: Client closed]
22:35
gonix has quit [Ping timeout: 260 seconds]
22:38
crux73 has joined #ruby
22:40
toshiba__ has quit [Ping timeout: 250 seconds]
22:57
markong has joined #ruby
23:24
crux73 has quit [Quit: Leaving]
23:25
<
libsys >
hello gals... I feel that something like what I want to do already exists in ruby, but I don't know how to express it
23:26
<
libsys >
I have an array with file extensions, and I need to check if a file exists with any of that extensions, then return that string
23:26
<
libsys >
something like...
23:28
<
libsys >
['ext1', 'ext2'].each { |ext| path= "/file.#{ext}"; return if File.exist?(path) }
23:29
<
libsys >
sorry... I wrote that wrong
23:29
cartdrige has joined #ruby
23:29
<
libsys >
it would be something like this: ['ext1', 'ext2'].each { |ext| path = "/file.#{ext}"; return file if File.exist?(path) }
23:31
<
libsys >
of course that doesn't work because each returns the original array... but I think probably something like that exists in Array or Enumerable functionality
23:33
<
libsys >
dang!... I wrote that wrong again. I'm sorry gals :( here it goes:
23:34
<
libsys >
['ext1', 'ext2'].each { |ext| path = "/file.#{ext}"; return path if File.exist?(path) }
23:36
aeris has quit [Ping timeout: 258 seconds]
23:42
c10l has quit [Quit: See ya! o/]
23:45
<
weaksauce >
libsys map?
23:46
<
weaksauce >
you can use map then compact to get just the files that exist as an array
23:49
_aeris_ has joined #ruby
23:51
<
leftylink >
pandabot ri Enumerable#filter_map
23:52
c10l has joined #ruby