00:19
johnny has left #ruby [Leaving]
00:22
moldorcoder7 has quit [Ping timeout: 252 seconds]
00:24
jpn has joined #ruby
00:25
markong has quit [Ping timeout: 268 seconds]
00:29
jpn has quit [Ping timeout: 252 seconds]
00:49
nirvdrum has joined #ruby
00:54
nirvdrum has quit [Ping timeout: 268 seconds]
00:59
sylario has quit [Quit: Connection closed for inactivity]
01:42
nirvdrum has joined #ruby
01:47
nirvdrum has quit [Ping timeout: 252 seconds]
02:12
jpn has joined #ruby
02:17
jpn has quit [Ping timeout: 252 seconds]
02:23
nirvdrum has joined #ruby
02:58
EternalSunshine has joined #ruby
03:08
Sankalp- has joined #ruby
03:09
Ziyan has joined #ruby
03:09
Sankalp has quit [Ping timeout: 268 seconds]
03:09
Sankalp- is now known as Sankalp
03:13
nirvdrum has quit [Quit: nirvdrum]
03:13
nirvdrum has joined #ruby
03:43
perdent has quit [Ping timeout: 252 seconds]
03:49
rhe has quit [Ping timeout: 268 seconds]
03:51
nirvdrum has quit [Quit: nirvdrum]
03:53
nirvdrum has joined #ruby
03:56
nirvdrum has quit [Read error: Connection reset by peer]
04:00
jpn has joined #ruby
04:00
nirvdrum has joined #ruby
04:06
jpn has quit [Ping timeout: 268 seconds]
04:07
Sophira has quit [Quit: Reconnecting]
04:07
Sophira has joined #ruby
04:28
nirvdrum has quit [Quit: nirvdrum]
04:38
rhe has joined #ruby
05:02
perrierjouet has quit [*.net *.split]
05:02
IsoLinCHiP has quit [*.net *.split]
05:02
andrea[m]1 has quit [*.net *.split]
05:02
cuppajoeman has quit [*.net *.split]
05:02
cnsvc has quit [*.net *.split]
05:02
JayDoubleu__ has quit [*.net *.split]
05:02
gigamo has quit [*.net *.split]
05:02
itok has quit [*.net *.split]
05:02
jtperreault has quit [*.net *.split]
05:02
marahin has quit [*.net *.split]
05:02
marahin has joined #ruby
05:02
IsoLinCHiP has joined #ruby
05:02
cnsvc has joined #ruby
05:02
cuppajoeman has joined #ruby
05:02
JayDoubleu__ has joined #ruby
05:02
jtperreault has joined #ruby
05:02
gigamo has joined #ruby
05:02
perrierjouet has joined #ruby
05:02
itok has joined #ruby
05:02
jpn has joined #ruby
05:05
andrea[m]1 has joined #ruby
05:07
jpn has quit [Ping timeout: 252 seconds]
05:16
Linux_Kerio has joined #ruby
05:17
repo has quit [*.net *.split]
05:17
wnd has quit [*.net *.split]
05:17
benjaminwil has quit [*.net *.split]
05:17
wnd has joined #ruby
05:17
benjaminwil has joined #ruby
05:17
repo has joined #ruby
05:18
repo is now known as Guest5727
05:25
peer has quit [Changing host]
05:25
peer has joined #ruby
05:25
Ziyan has quit [Ping timeout: 244 seconds]
05:30
Ziyan has joined #ruby
05:34
Ziyan has quit [Read error: Connection reset by peer]
05:35
Ziyan has joined #ruby
05:53
eddof13 has joined #ruby
05:54
Ziyan has quit [Ping timeout: 264 seconds]
05:56
Ziyan has joined #ruby
05:58
eddof13 has quit [Ping timeout: 252 seconds]
06:10
gigamo has quit [Changing host]
06:10
gigamo has joined #ruby
06:21
Ziyan has quit [Ping timeout: 255 seconds]
06:22
Ziyan has joined #ruby
06:44
jpn has joined #ruby
06:46
Ziyan has quit [Ping timeout: 240 seconds]
06:49
jpn has quit [Ping timeout: 252 seconds]
06:49
Ziyan has joined #ruby
06:58
arg_ has joined #ruby
07:02
protektwar has joined #ruby
07:02
protektwar has quit [Changing host]
07:02
protektwar has joined #ruby
07:06
perdent has joined #ruby
07:10
ur5us has joined #ruby
07:13
Ziyan has quit [Ping timeout: 256 seconds]
07:14
Ziyan has joined #ruby
07:23
_ht has joined #ruby
07:25
Rounin has joined #ruby
07:38
Ziyan has quit [Ping timeout: 248 seconds]
07:40
rvalue has quit [Read error: Connection reset by peer]
07:40
rvalue has joined #ruby
07:42
Ziyan has joined #ruby
07:55
jpn has joined #ruby
07:58
justache has joined #ruby
08:01
perdent has quit [Quit: Client closed]
08:05
Ziyan has quit [Ping timeout: 248 seconds]
08:07
Ziyan has joined #ruby
08:33
Ziyan has quit [Ping timeout: 268 seconds]
08:35
Ziyan has joined #ruby
08:41
jpn has quit [Ping timeout: 252 seconds]
08:44
jpn has joined #ruby
08:59
Ziyan has quit [Ping timeout: 256 seconds]
09:00
Ziyan has joined #ruby
09:24
Ziyan has quit [Ping timeout: 252 seconds]
09:27
Ziyan has joined #ruby
09:31
moldorcoder7 has joined #ruby
09:52
Ziyan has quit [Ping timeout: 256 seconds]
09:52
phryk has joined #ruby
09:52
justache has joined #ruby
09:53
ur5us has quit [Ping timeout: 256 seconds]
09:54
Ziyan has joined #ruby
09:59
jpn has quit [Ping timeout: 256 seconds]
10:01
teclator has joined #ruby
10:07
arg_ has quit [Quit: Connection closed for inactivity]
10:17
Ziyan has quit [Ping timeout: 248 seconds]
10:19
justache has quit [Remote host closed the connection]
10:20
Ziyan has joined #ruby
10:20
justache has joined #ruby
10:27
justache has quit [Remote host closed the connection]
10:28
justache has joined #ruby
10:29
justache has quit [Remote host closed the connection]
10:29
justache has joined #ruby
10:36
jpn has joined #ruby
10:36
justache has quit [Remote host closed the connection]
10:37
justache has joined #ruby
10:42
justache has quit [Remote host closed the connection]
10:43
justache has joined #ruby
10:48
justache has quit [Remote host closed the connection]
10:49
rhe has quit [Quit: ~ *]
10:50
ur5us has joined #ruby
10:51
rhe has joined #ruby
11:00
justache has joined #ruby
11:03
justache has quit [Remote host closed the connection]
11:03
justache has joined #ruby
11:06
John_Ivan has quit [Read error: Connection reset by peer]
11:07
John_Ivan has joined #ruby
11:11
Ziyan has quit [Ping timeout: 268 seconds]
11:13
jpn has quit [Ping timeout: 252 seconds]
11:13
Ziyan has joined #ruby
11:21
justache has joined #ruby
11:23
gr33n7007h has quit [Ping timeout: 268 seconds]
11:26
gr33n7007h has joined #ruby
11:38
Ziyan has quit [Ping timeout: 256 seconds]
11:39
Ziyan has joined #ruby
11:43
rhe has quit [Ping timeout: 256 seconds]
11:44
<
Zerock >
Is it absolutely taboo to have executables in a gem not in the "bin" directory? I'm writing a program and I currently have the executable in the root of the project for ease of use. Putting it in a bin directory makes it annoying to run in place.
11:50
protektwar has quit [Ping timeout: 248 seconds]
11:52
markong has joined #ruby
12:09
rhe has joined #ruby
12:15
justache has joined #ruby
12:16
rhe has quit [Ping timeout: 248 seconds]
12:21
nirvdrum has joined #ruby
12:23
dminuoso has left #ruby [WeeChat 3.5]
12:28
nirvdrum has quit [Quit: nirvdrum]
12:42
Guest5727 is now known as repo
12:43
repo is now known as Guest4515
12:44
Guest4515 has quit [Quit: WeeChat 3.5]
12:44
repo1 has joined #ruby
12:52
Ziyan_ has joined #ruby
12:54
nirvdrum has joined #ruby
12:55
Ziyan has quit [Ping timeout: 268 seconds]
12:57
Ziyan_ has quit [Ping timeout: 244 seconds]
12:57
Ziyan has joined #ruby
13:35
nirvdrum has quit [Quit: nirvdrum]
13:37
nirvdrum has joined #ruby
13:39
nirvdrum has quit [Client Quit]
13:57
gr33n7007h has quit [Ping timeout: 256 seconds]
14:00
gr33n7007h has joined #ruby
14:09
nirvdrum has joined #ruby
14:11
John_Ivan has quit [Quit: Ghost of the future.]
14:22
protektwar has joined #ruby
14:22
protektwar has quit [Changing host]
14:22
protektwar has joined #ruby
14:50
justache has quit [Remote host closed the connection]
14:50
justache has joined #ruby
14:52
nirvdrum has quit [Quit: nirvdrum]
14:53
shokohsc has quit [Read error: Connection reset by peer]
14:55
shokohsc has joined #ruby
14:59
protektwar has quit [Ping timeout: 248 seconds]
15:06
hightower2 has joined #ruby
15:20
<
rapha >
Zerock: the exe folder jhass[m] mentions is also the convention used by bundler-made Gems.
15:20
<
Zerock >
as stated, my executable is in the root of the project. my question is whether that's going to upset a lot of people
15:20
<
Zerock >
putting it in an exe directory is not materially different from putting it in a bin directory
15:21
<
rapha >
havenwood: had gotten around to trying it out meanwhile. Still scared of the Asterisk from my C(++) days. In Ruby it's a very well-mannered symbol actually.
15:21
<
rapha >
Zerock: isn't that more about keeping things nice and tidy and what that means to the author of the Gem, personally?
15:22
<
Zerock >
rapha: I'm very new to Ruby and have never packaged a gem before. I know that some communities/repositories have strict guidelines for how things should be organized in a package
15:22
<
rapha >
Are you writing a Gem for a pre-existing project then?
15:23
<
Zerock >
yes, but it's my own project
15:24
<
Zerock >
I've wrapped up everything I want to include in version 1.0 and I'm looking up how to write a gemspec, and it seems clear that you are expected to have a separate directory for the executable. My question is whether that is going to be a big deal to people or if it's just a suggestion
15:24
<
jhass[m] >
We're not easily annoyed by having to write bin/foo while testing, I doubt we'll be easily annoyed by having not to :P
15:25
<
Zerock >
righto, that's what I wanted to know
15:25
<
jhass[m] >
FWIW I've seen people running around with PATH="bin:..."
15:25
<
rapha >
[... on this]
15:26
<
rapha >
jhass[m]: annoyedly, i sometimes do that during Gem development. but not as part of ~/.bashrc.
15:27
<
jhass[m] >
Generally Ruby's community mindset is pretty flexible though
15:27
<
rapha >
That's what I meant. Maybe section was the wrong term, sorry.
15:28
<
jhass[m] >
Don't worry too much. Honestly you'll probably not have many people contributing in the first place unless extremely lucky....
15:29
<
Zerock >
jhass[m]: interestingly I did already have a stranger contribute to this project but he promptly vanished after his change got merged lawl
15:30
<
Zerock >
I think that was his random good deed for the day or something
15:30
<
rapha >
The beauty of GitHub
15:35
desnudopenguino has joined #ruby
15:40
splud has quit [Ping timeout: 255 seconds]
15:42
gr33n7007h has quit [Ping timeout: 256 seconds]
15:44
gr33n7007h has joined #ruby
15:48
rhe has joined #ruby
15:59
ur5us has quit [Ping timeout: 256 seconds]
16:00
splud has joined #ruby
16:04
ur5us has joined #ruby
16:06
rvalue has quit [Read error: Connection reset by peer]
16:06
rvalue has joined #ruby
16:14
protektwar has joined #ruby
16:14
protektwar has joined #ruby
16:14
protektwar has quit [Changing host]
17:01
ur5us has quit [Ping timeout: 256 seconds]
17:23
howdoi has joined #ruby
17:26
jpn has joined #ruby
17:31
jpn has quit [Ping timeout: 256 seconds]
17:40
r3m has quit [Quit: WeeChat 3.7-dev]
17:41
r3m has joined #ruby
18:07
dostoyevsky2 has quit [Ping timeout: 264 seconds]
18:14
dostoyevsky2 has joined #ruby
18:30
arg_ has joined #ruby
18:35
protektwar has quit [Ping timeout: 256 seconds]
18:35
markong has quit [Ping timeout: 252 seconds]
18:43
Ziyan has quit [Ping timeout: 244 seconds]
18:45
Ziyan has joined #ruby
19:01
vandees has joined #ruby
19:03
protektwar has joined #ruby
19:03
protektwar has joined #ruby
19:09
Ziyan has quit [Ping timeout: 255 seconds]
19:11
Ziyan has joined #ruby
19:15
jpn has joined #ruby
19:19
protektwar has quit [Ping timeout: 248 seconds]
19:19
jpn has quit [Ping timeout: 256 seconds]
19:33
eladhel has joined #ruby
19:34
_root has joined #ruby
19:48
eladhel has quit [Ping timeout: 252 seconds]
19:52
<
axisys >
is there a difference between %w(bar qaz).include? foo and %w(bar qaz).include?(foo) when foo="bar" ?
19:54
_ht has quit [Remote host closed the connection]
19:58
<
Zerock >
axisys: those are the exact same. parentheses are (usually) optional in ruby.
19:59
<
ccooke >
axisys: brackets are optional in general, but they are sometimes necessary when you are passing a block. "method(foo) { code }" is equivalent to "method(foo, &block)" (where 'block' is an anonymous block of "{ code }". However, "method foo { code }" is equivalent to method( foo(&block) )
19:59
<
Zerock >
I have found some edge cases where omitting the parens would break something, but those two syntaxes are the exact same call
19:59
vandees has quit [Ping timeout: 256 seconds]
19:59
<
ccooke >
(There are a few other cases, but that's the most common)
20:00
<
Zerock >
edge cases like: if foo bar || baz qux
20:00
<
Zerock >
I think the lack of parens runs up against operator priority
20:02
vandees has joined #ruby
20:02
<
ccooke >
or to put it another way, there is an implied parenthesis operator that has a lower priority than some other operators.
20:06
<
ccooke >
(It's not in the operator table, mind, but it would sometimes be easier to explain things if it was)
20:30
<
leftylin1 >
and then you have some absolute travesty like
20:30
<
leftylin1 >
pandabot: rb puts {1 => 2}
20:30
<
pandabot >
- 1 more lines - stderr: -e:2: warning: One-line pattern matching is experimental, and the behavior may change in future vers ... 13 more chars -
https://carc.in/#/r/dm4h
20:31
<
leftylin1 >
pandabot: rb puts {a: 1}
20:31
<
leftylin1 >
and like you could 100% see instances where someone would actually want to output a hash
20:31
<
leftylin1 >
so, parentheses required
20:33
<
ccooke >
Amusingly...
20:33
<
ccooke >
pandabot: rb purs **{a: 1}
20:33
<
ccooke >
pandabot: rb puts **{a: 1}
20:34
<
ccooke >
Bah. But yes, you
*can* output it with some - in this case - nasty syntactic saccharine :-D
20:42
<
axisys >
Zerock, ccooke: 😱
20:49
arg_ has quit [Quit: Connection closed for inactivity]
20:50
jpn has joined #ruby
20:55
arg_ has joined #ruby
21:02
hightower3 has joined #ruby
21:04
hightower2 has quit [Ping timeout: 252 seconds]
21:05
jpn has quit [Ping timeout: 248 seconds]
21:08
Linux_Kerio has quit [Ping timeout: 244 seconds]
21:08
jpn has joined #ruby
21:11
markong has joined #ruby
21:56
John_Ivan has joined #ruby
22:00
jpn has quit [Ping timeout: 248 seconds]
22:16
sagax has joined #ruby
22:47
jpn has joined #ruby
22:52
jpn has quit [Ping timeout: 252 seconds]
23:15
ur5us has joined #ruby
23:25
EternalSunshine has quit [Read error: Connection reset by peer]
23:29
arg_ has quit [Quit: Connection closed for inactivity]
23:41
ur5us has quit [Ping timeout: 256 seconds]
23:42
jpn has joined #ruby
23:49
jpn has quit [Ping timeout: 252 seconds]
23:51
Aminda has quit [Ping timeout: 268 seconds]
23:53
Aminda has joined #ruby