kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fernando-Basso has quit [Remote host closed the connection]
<leftylink>
I see *a* bug, but it doesn't explain the fact that the stderr is not present
<phaul>
leftylink: shoot
<phaul>
I mean what is the bug?
<leftylink>
... upon review in irb, the bug I found is not a bug. that is too bad (I had thought that prepend doesn't mutate, but I was thinking of the newly-added delete_suffix and delete_prefix)
<leftylink>
this is going to cause me all sorts of confusion in the future, I am sure of it
<leftylink>
having to remember what I need to add ! to and what I don't
<phaul>
it's quite a bit ad hoc.
dar123 has quit [Ping timeout: 246 seconds]
<phaul>
! means surprising to Matz. not a very useful definition
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
txdv has joined #ruby
gb_away has quit [Quit: One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em.]
gb_away has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
gb_away has quit [Quit: One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em.]
gb_away has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
DTZUZO has quit [Ping timeout: 250 seconds]
UnknownSoldier has joined #ruby
UnknownSoldier is now known as \tau
jcarl43 has quit [Quit: WeeChat 2.4]
gb_away has quit [Quit: One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em.]
gb_away has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has quit [Ping timeout: 250 seconds]
gb_away has quit [Client Quit]
gb_away has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
lunarkitty7 has quit [Ping timeout: 252 seconds]
gb_away has quit [Quit: One disk to rule them all, One disk to bind them, One disk to hold the files And in the darkness grind 'em.]
gb_away has joined #ruby
agent_white has quit [Quit: brb]
agent_white has joined #ruby
gb_away has quit [Client Quit]
h3ll0w0rld has joined #ruby
ogres has joined #ruby
ascarter has joined #ruby
lunarkitty7 has joined #ruby
mangold has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
code_zombie has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fluxAeon>
ugh, any reason why running the exact same repo on a newly built server that literally matches production would cause rails->webpack to not compile properly? same node, same npm, same rbenv, same nvm, same ruby, same rails, same package.json, same Gemfile... it's driving me NUTS!
<fluxAeon>
i posted up on upwork.com to find some contracting help and no one is up to the task and i want to drink whiskey
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
dsmythe_ has joined #ruby
dsmythe has quit [Ping timeout: 250 seconds]
tdy has joined #ruby
gell5 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
burak_ has joined #ruby
dsmythe has joined #ruby
AndreYuhai has quit [Ping timeout: 245 seconds]
dsmythe_ has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
maryo_ has joined #ruby
Azure has joined #ruby
maryo has quit [Ping timeout: 244 seconds]
tdy has quit [Ping timeout: 268 seconds]
gell5 has joined #ruby
gell5 has quit [Remote host closed the connection]
ramfjord has joined #ruby
jelera has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
jmcgnh_ has joined #ruby
jmcgnh has quit [Ping timeout: 250 seconds]
jmcgnh_ is now known as jmcgnh
liuyiwen has joined #ruby
duderonomy has joined #ruby
DmitryBochkarev has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
pupsikov has joined #ruby
gell5 has joined #ruby
jenrzzz has joined #ruby
gell5 has quit [Ping timeout: 246 seconds]
DmitryBochkarev has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
braincrash has quit [Quit: bye bye]
jenrzzz has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
braincrash has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has joined #ruby
gb_away has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
liuyiwen has quit [Quit: liuyiwen]
houhoulis has joined #ruby
<masquino>
w/exit
<masquino>
oops
jelera has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
masquino has quit [Quit: WeeChat 2.4]
liuyiwen has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
mangold has quit [Ping timeout: 240 seconds]
uplime has joined #ruby
gell5 has joined #ruby
gell5 has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
mangold has joined #ruby
cthulchu_ has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
uplime has quit [Remote host closed the connection]
gix- has joined #ruby
gix has quit [Disconnected by services]
Swyper has quit [Remote host closed the connection]
mondz has quit [Ping timeout: 255 seconds]
doodlebug has quit [Remote host closed the connection]
abaiste has joined #ruby
gell5 has joined #ruby
maryo_ has quit [Quit: Leaving]
mangold has quit [Quit: This computer has gone to sleep]
gell5 has quit [Ping timeout: 244 seconds]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imadper has joined #ruby
millerti has quit [Ping timeout: 255 seconds]
liuyiwen has left #ruby [#ruby]
liuyiwen has joined #ruby
liuyiwen has quit [Quit: liuyiwen]
cedum has joined #ruby
Swyper has joined #ruby
segy has quit [Ping timeout: 268 seconds]
cedum has quit [Ping timeout: 250 seconds]
Swyper has quit [Ping timeout: 250 seconds]
dsmythe has quit [Ping timeout: 255 seconds]
segy has joined #ruby
esrse has joined #ruby
gell5 has joined #ruby
dsmythe has joined #ruby
gell5 has quit [Ping timeout: 244 seconds]
segy has quit [Ping timeout: 250 seconds]
\tau has quit [Remote host closed the connection]
segy has joined #ruby
gix- has quit [Ping timeout: 255 seconds]
DmitryBochkarev has joined #ruby
Inline has quit [Quit: Leaving]
ferr has joined #ruby
liuyiwen has joined #ruby
gell5 has joined #ruby
_whitelogger has joined #ruby
segy has quit [Ping timeout: 246 seconds]
gell5 has quit [Ping timeout: 250 seconds]
segy has joined #ruby
<garyserj>
this is a ruby question rather than a rails question, but i see this syntax in rails form.text_field :email, id: :email, class: :email and it puzzles me 'cos id: :email looks to me like a key value pair (is it?), but if I try in irb aaa={:a=>:4} that doesn't work. It looks like the value(of the key value pair) can't be a symbol, only the key is. You can say aaa={a:"abc"} but not
<garyserj>
aaa={a::abc} so i'm a but confused over what that syntax id: :email means in terms of ruby?
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
AntoFox has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 244 seconds]
hightower2 has joined #ruby
kapil____ has joined #ruby
gell5 has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
imadper has quit [Remote host closed the connection]
ascarter has joined #ruby
hightower2 has joined #ruby
gell5 has quit [Ping timeout: 246 seconds]
sauvin has joined #ruby
schleppel has joined #ruby
h3ll0w0rld has quit [Quit: Konversation terminated!]
h3ll0w0rld has joined #ruby
hightower2 has quit [Ping timeout: 255 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waronline has joined #ruby
DTZUZO has joined #ruby
Swyper has joined #ruby
gell5 has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
gell5 has quit [Ping timeout: 245 seconds]
cedum has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has joined #ruby
houhoulis has quit [Remote host closed the connection]
<havenwood>
garyserj: You just need a space: {a: :abc}
<havenwood>
garyserj: You can do `class: :email` but not `class::email`
<havenwood>
garyserj: Two colons is a different thing to the parser.
mangold has joined #ruby
<ytti>
garyserj, {:a => :4} is non-sensical, as 4 cannot be cast into a symbol
<ytti>
garyserj, {a: 4} is syntactic sugar for {:a => 4}
<havenwood>
garyserj: fwiw, you could do: {a: :"4"}
<marz>
I can run my app via bundle exec rail s, but I'm getting an error when running bundle exec rails console due to environment variables . . . I've tried specifying -e development to make sure both are running in the same environment though.
<marz>
It's possible to run the console in development environment right?
cedum has quit [Ping timeout: 258 seconds]
liuyiwen has left #ruby [#ruby]
<havenwood>
marz: yup, most folk run it in dev
<havenwood>
marz: what's the error you
<havenwood>
you're running into*
<marz>
I'm requiring a third party library, Podio, and I'm trying to authenticate to it, it appears that it can't see my environment variables though
<havenwood>
luckily, in Ruby we omit semicolons ;)
<uplime>
i used to dislike how ruby was written
<uplime>
now im in sort of a stockholm scenario where it looks really nice
gell5 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
dsmythe has quit [Read error: Connection reset by peer]
dsmythe has joined #ruby
alem0lars has joined #ruby
lxsameer has joined #ruby
_joes_ has joined #ruby
BH23 has joined #ruby
sesame has joined #ruby
<garyserj>
I have a method ddd that takes two parameters. And I try to call it ddd {:g=>"aaa"},{:r=>"www"} but why does that give a syntax error regarding => and }?
szu has joined #ruby
szu has left #ruby [#ruby]
<havenwood>
garyserj: you just need to use parens around the argument, to signal it's not a block
<havenwood>
garyserj: This would be interpreted as a block: ddd {
<havenwood>
garyserj: This would be interpreted as an argument: ddd({
Swyper has quit [Ping timeout: 255 seconds]
wald0 has joined #ruby
<linuus>
If you're updating an error message for an exception, would you consider that a breaking change or just a patch/minor?
<linuus>
Theoretically someone _could_ rely on the message, right?
ur5us has joined #ruby
def_jam has joined #ruby
eb0t has quit [Ping timeout: 250 seconds]
eb0t_ has joined #ruby
eblip has quit [Ping timeout: 250 seconds]
gell5 has joined #ruby
Swyper has joined #ruby
def_jam is now known as eblip
eb0t_ is now known as eb0t
hightower2 has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
kyrylo has joined #ruby
gell5 has quit [Ping timeout: 250 seconds]
szu has joined #ruby
abaiste has quit []
Swyper has quit [Ping timeout: 246 seconds]
szu has left #ruby [#ruby]
Swyper has joined #ruby
hph^ has joined #ruby
<garyserj>
thanks. I can see now how if the last argument contains {..} then you need parens around the arguments list, but why does this give a syntax error ddd {:g=>"aaa"},r:"www" My last argument has no {...} so why is there an issue?
dar123 has joined #ruby
<ryouba>
good mornign!
<ryouba>
morning*
<ryouba>
phaul, i have one of my wierd questions again that might be related to the nature of things in ruby
<ryouba>
why does `x=Time.now;case x.class;when Time then p "it's time";else p "didn't work";end` not work as (I) expect(ed)?
reber has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
dionysus69_ has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
prestori_ has joined #ruby
dionysus69 has joined #ruby
dionysus69_ has quit [Ping timeout: 246 seconds]
prestorium has quit [Ping timeout: 255 seconds]
prestori_ has quit [Read error: Connection reset by peer]
prestorium has joined #ruby
zeroquake has joined #ruby
zeroquake has quit [Client Quit]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_joes_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
laaron has quit [Remote host closed the connection]
gell5 has joined #ruby
waronline has quit [Remote host closed the connection]
<garyserj>
ryouba: i don't know, but any idea with my question, it looks easier?
<phaul>
ryouba: that's because case on a class cases on the class. Classes are values.
gell5 has quit [Ping timeout: 244 seconds]
<phaul>
case uses "triqual" operator. case x ; when a happens if a === x. whatch this:
<ytti>
it should be noted that === does not test for exact class
<ytti>
for exact test, #instance_of?
<ytti>
Number === 1 is true, but 1.instance_of? Numeric is false
<ytti>
s/Number/Numberic/
<ytti>
jesus christ, without typos
DTZUZO has quit [Ping timeout: 244 seconds]
blackbaba has joined #ruby
<phaul>
garyserj: a { blah }, r is probably parsed as method_name block comma unexpected. Ruby is only 1 token lookahead
ojbfe7 has joined #ruby
ojbfe7 has quit [Quit: Bye]
laaron has joined #ruby
DTZUZO has joined #ruby
def_jam has joined #ruby
eb0t_ has joined #ruby
eblip has quit [Ping timeout: 245 seconds]
eb0t has quit [Ping timeout: 255 seconds]
<garyserj>
ah ok, thanks.. so any { } for a hash, in any of a method's arguments, requires parens around the list of arguments?
<phaul>
I think so
<garyserj>
thanks
jenrzzz has joined #ruby
blackbaba_ has joined #ruby
blackbaba has quit [Ping timeout: 246 seconds]
lunarkitty7 has quit [Ping timeout: 258 seconds]
blackbaba_ is now known as blackbaba
<garyserj>
phaul: suppose i do want to pass a block then, followed by a value. ddd {a=1},2 gives an error
<phaul>
you cant. Blocks are special. Only last position and they are not counted in arity
jenrzzz has quit [Ping timeout: 255 seconds]
<phaul>
soo calling method without block won't cause arity errors even if the method expects blocks
<phaul>
I mean 1 block
<garyserj>
so since a block can only be in the last position, why should a {} for a hash in an argument prior to the last position, cause a need for parens around all arguments?
dviola has joined #ruby
<garyserj>
similarly, if {block},r makes no sense, then why isn't it seen as {hash},r Why should it attempt to view an argument prior to the last argument, as a block. There is no ambiguity with an argument prior to the last argument
<phaul>
because it's ambiguous. To see the ambiguity resolved you would need to read past the {} argument. but ruby can't/doesn't
mangold_ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
<garyserj>
sounds primitive to state there's a syntax error without reading as far as the end of the line
<phaul>
I think every programming language does this
<phaul>
depending on the syntax, it might not be as obvious. But almost everything uses LARL parsers
<garyserj>
well, if other languages do that, it doesn't seem so absurd 'cos they don't try to be clever like ruby does with skipping parens (skipping parens on a basis of ambiguity, when the interpreter isn't really spotting ambiguity properly 'cos it doesn't read to the end of a line)
gell5 has joined #ruby
<phaul>
ryouba: yes, but case doesn't care about ==. It only cares about ===
<garyserj>
ryouba: yeah well sometimes I have to read other code, like the scaffolding rails generates.
ur5us has quit [Ping timeout: 244 seconds]
<ytti>
like everything in ruby === is in no way magic, it's just def ===(other)
<ryouba>
garyserj: in that case blame rails, not ruby. they have their own culture and it's not one always enjoyed by the ruby community at large.
<ytti>
so class is free to do what ever it wants
<ytti>
i.e. Class === Time is syntactic sugar for Class.===(Time)
<ytti>
well, slightly magic, magic is that some methods can be called without .
lunarkitty7 has joined #ruby
gell5 has quit [Ping timeout: 245 seconds]
<ryouba>
ytti: it's just that it's a new thing to me
esrse has quit [Ping timeout: 250 seconds]
eb0t_ is now known as eblip
def_jam is now known as eb0t
Jonopoly has joined #ruby
Swyper has joined #ruby
<phaul>
ryouba: as ytti says it's somewhat ad-hoc, my model that works most of the time is a === b if assuming a is something that b can belong to then b.belongs_to a otherwise if a == b (belongs to not like rails belongs to)
mangold_ has quit [Quit: This computer has gone to sleep]
gell5 has quit [Ping timeout: 245 seconds]
lele has quit [Ping timeout: 252 seconds]
<al2o3-cr>
phaul: the e.g you showed above respectively use : `rb_mod_eqq, range_eqq, rb_reg_eqq, rb_int_equal, rb_str_equal` while array uses plain old `rb_equal`
lele has joined #ruby
szulak_ has joined #ruby
<al2o3-cr>
Array needs rb_arr_eqq so we can do [1,2,3] === 2 for inclusion
jelera has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SuperLag has joined #ruby
SuperL4g has joined #ruby
<depesz>
hi. is there any currently supported formatter for ruby code? i found https://rubygems.org/gems/tidy but it looks to be abandoned
regedit has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
andikr has quit [Remote host closed the connection]
fanta1 has joined #ruby
prestorium has quit [Remote host closed the connection]
AJA4350 has joined #ruby
prestorium has joined #ruby
<adam12>
depesz: There's a few. Standard can do some minimal formatting (since it's built on Rubocop which can format). There's also Rufo. I imagine there are more.
<depesz>
any that is recommended?
<adam12>
depesz: Not that I know of. At least, none the community seem to be rallying behind.
zeroquake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<depesz>
ok. thanks. will check, compare, and see :)
<adam12>
:)
jelera has joined #ruby
ascarter has joined #ruby
rprimus has quit [Ping timeout: 252 seconds]
rprimus has joined #ruby
tlarevo has quit [Remote host closed the connection]
alem0lars has quit [Remote host closed the connection]
_joes_ has quit [Ping timeout: 244 seconds]
BH23 has quit [Ping timeout: 245 seconds]
zeroquake has joined #ruby
polishdub has joined #ruby
alem0lars has joined #ruby
Dbugger has quit [Quit: Leaving]
UnknownSoldier has quit [Remote host closed the connection]
fanta1 has quit [Quit: fanta1]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fluxAeon_ has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
<baweaver>
havenwood: It brings me great joy to do this
schleppel has quit [Quit: Konversation terminated!]
tdy1 has quit [Ping timeout: 255 seconds]
cliluw has joined #ruby
hiroaki has quit [Ping timeout: 240 seconds]
hiroaki has joined #ruby
ramfjord has joined #ruby
<adam12>
:O
<zenspider>
adam12: sam phippen is working on rubyfmt.
<adam12>
zenspider: Right! That's the other one I saw recently.
Iarfen has joined #ruby
<zenspider>
baweaver: "Scala’s pattern matching wildcards" ... what pattern matching does NOT have _ wildcards? racket, haskell, ... I can't think of one that I've used that doesn't... and I'd be willing to guess, predate
* baweaver
shrugs
<baweaver>
That's the one that came to mind immediately
<baweaver>
Also a note not to write articles at 2am
<zenspider>
I don't think I understand the deconstruct_keys example at all.
hiroaki has quit [Ping timeout: 240 seconds]
hiroaki has joined #ruby
<zenspider>
I would assume it'd be to avoid adding to_ary to everything you want to deconstruct on, but the example given doesn't really suggest that?
<baweaver>
Honestly me either
UnknownSoldier has quit [Remote host closed the connection]
<baweaver>
The keys bit confuses me, and it seems really prone to race conditions
<baweaver>
I'll need to poke Nightly for a while to see what in the world it's even doing.
hightower2 has joined #ruby
Swyper has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
hiroaki has joined #ruby
jenrzzz has joined #ruby
AJA4351 has joined #ruby
zeroquake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
tdy1 has joined #ruby
Swyper has joined #ruby
<zenspider>
the whole thing feels kinda clunky and experimental still
dsmythe has quit [Ping timeout: 258 seconds]
<baweaver>
zenspider: Fair.
<baweaver>
It feels like we all gave a ton of input and they went their own way
<baweaver>
Some of it got in but they've really taken it in another direction for other parts.