havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
ResidentBiscuit has quit [Remote host closed the connection]
harryzerg has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
ResidentBiscuit has joined #ruby
Yzguy has quit [Quit: Cya]
ResidentBiscuit has quit [Remote host closed the connection]
micalexander has left #ruby [#ruby]
ResidentBiscuit has joined #ruby
wilbert_ has quit [Ping timeout: 260 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
t-recx has joined #ruby
anisha has joined #ruby
anisha has quit [Client Quit]
harryzerg has quit [Quit: Leaving...]
enterprisey has joined #ruby
jenrzzz has joined #ruby
Dimik has joined #ruby
milardovich has quit [Remote host closed the connection]
_whitelogger has joined #ruby
wilbert_ has joined #ruby
xco has quit [Quit: xco]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
jenrzzz has quit [Read error: Connection reset by peer]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
milardovich has joined #ruby
xco has quit [Client Quit]
dlitvak has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
knight33 has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
marr has quit [Ping timeout: 240 seconds]
xco has joined #ruby
xco has quit [Client Quit]
SuperLag has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
knight33 has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
jenrzzz has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
iomotoko has quit [Quit: leaving]
iomotoko has joined #ruby
chouhoulis has joined #ruby
jak has quit [Remote host closed the connection]
jak has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
bkxd_ has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
meshsmith has quit [Remote host closed the connection]
bkxd_ has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 260 seconds]
arescorpio has joined #ruby
d^sh has quit [Ping timeout: 276 seconds]
d^sh has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
solocshaw has joined #ruby
t-recx has quit [Quit: t-recx]
snowcrshd has quit [Remote host closed the connection]
gizmore|2 has joined #ruby
snowcrshd has joined #ruby
gizmore has quit [Ping timeout: 268 seconds]
aglorei has joined #ruby
snowcrshd has quit [Ping timeout: 255 seconds]
jottr_ has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
TheBloke has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
ascarter has joined #ruby
solocshaw has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
ascarter_ has joined #ruby
Immune has quit [Quit: ZzzZZZzzzz]
ascarter has quit [Ping timeout: 276 seconds]
watersoul has quit [Ping timeout: 240 seconds]
ascarter_ has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
harryzerg has joined #ruby
bambanx has joined #ruby
mokiwis has joined #ruby
mokiwis has quit [Client Quit]
bkxd has joined #ruby
cadillac_ has quit [Ping timeout: 255 seconds]
bkxd_ has joined #ruby
watersoul has joined #ruby
watersoul has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
watersoul has joined #ruby
zacts has quit [Ping timeout: 276 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
zacts has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
FastJack has quit [Ping timeout: 258 seconds]
Harzilein has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
nicesignal has quit [Quit: WeeChat 1.4]
jottr_ has joined #ruby
mvensky has joined #ruby
nicesignal has joined #ruby
rubyconfused has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
<rubyconfused> hi
<rubyconfused> I am getting some ruby syntax errors with the following code:
zacts has quit [Quit: WeeChat 1.9]
<rubyconfused> the ruby interpreter gives me this: syntax error, unexpected ')', expecting => (SyntaxError)
<rubyconfused> for line 14 and 21
zacts has joined #ruby
<rubyconfused> running it through rubocop gives the following: E: unexpected token tRPAREN (Using Ruby 2.1 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
<rubyconfused> any help would be greatly appreciated
<mvensky> try cutting out blocks first
<mvensky> then adding back to find error
jak has quit [Remote host closed the connection]
jak has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
<rubyconfused> mvensky: I have identified the offending line
<rubyconfused> it is line 14
<rubyconfused> removing it fixes things
<rubyconfused> but it still doesn't explain why
<rubyconfused> I can't figure out why that particular line is bad
<mkaito> mvensky: **s3_options
<mkaito> that doesn't fix the syntax error
<mvensky> interesting; perhaps the S3.new does not like the **s3_options
<mkaito> but it's how it should be. you'll want to splat the hash in there.
domgetter has joined #ruby
<rubyconfused> what does splatting it do?
<mkaito> it turns the hash into keyword arguments, kinda
w0b has joined #ruby
<mkaito> I'm not a fan of putting that kind of syntax on an introduction of any kind, but shrine does it.
<mkaito> after putting the hash before the Shrine.storages call in the else branch and splatting the hash in the other branch, rubocop does no longer scream at me for that gist.
<rubyconfused> I did that and I am not getting this: W: Useless assignment to variable - `s3_options`.
<rubyconfused> for the first conditional
<mkaito> s/not/now/?
<rubyconfused> yes
<mkaito> in the true branch?
<rubyconfused> in line 3
<rubyconfused> yes
<mkaito> it's not useless unless you mistyped the variable name
<mkaito> that said, there's no point in making a separate hash if you only use those options once
<rubyconfused> a bit of context: I am debugging this because dokku is unable to build my project due to line 21 getting nil hash errors
<mkaito> that's useful if you want the same options for cache and store
<texasmynsted> is there not a #rails channel?
<rubyconfused> this is not ...quite rails
<mkaito> well that's because you're using the variable before declaring it
<mkaito> texasmynsted: his problem is clearly ruby... even if he's using it for rails. as in, he doesn't know that he needs to declare a variable before using it :P
<texasmynsted> what server should I use in order to take fully advantage of multi-threading of JRuby? Can this be the same as the server used for C-Ruby?
<rubyconfused> mkaito: texasmynsted: yup! silly mistake :)
<texasmynsted> irrc passenger would work this way but one needed to upgrade to enterprise to get full multi-threading support.
<mkaito> tried puma?
<mkaito> it's usually the one touted as super duper multi threading mojo jojo
snowcrshd has joined #ruby
<texasmynsted> I thought perhaps _my_ question was more rails-ish
<mkaito> sure is
<mkaito> maybe
cschneid_ has quit [Read error: Connection reset by peer]
<mkaito> I use puma, but not for rails. :P
<rubyconfused> mkaito: thanks a ton!
<mkaito> np
<texasmynsted> heh ok
cschneid_ has joined #ruby
snowcrshd has quit [Ping timeout: 255 seconds]
sleepee has quit [Ping timeout: 276 seconds]
<rubyconfused> mkaito: attempted to push to server, getting these errors: syntax error, unexpected ')', expecting => on lines 13 and 24
<rubyconfused> rubocop output is clean, - no warnings
<mkaito> it's probably balking at the new hash syntax
<mkaito> foo: bar is sugar for :foo => bar
<mkaito> what ruby version does your server thing use?
<mkaito> I say 'new', but that was added in friggen 1.9
<rubyconfused> 2.3.4
jenrzzz has joined #ruby
<mkaito> well then it should not have an issue with that
<rubyconfused> here's the log
<mkaito> your error message said you're using 2.1
<mkaito> why don't you try matching your local version, for one?
<mkaito> usually a good idea
<rubyconfused> local version is 2.4
<rubyconfused> that's just rubocop using 2.1 syntax
<mkaito> kk
<mkaito> anything else in that log? because that's not very interesting :P
gnufied has quit [Quit: Leaving]
w0b has quit [Quit: -a- IRC for Android 2.1.20]
<mkaito> also, post me an updated version of your code
micalexander has joined #ruby
micalexander has left #ruby [#ruby]
<rubyconfused> hold on, just changed server version to match local env
montanonic has quit [Ping timeout: 248 seconds]
<rubyconfused> interesting, all problem magically disappeared :D
<rubyconfused> mkaito: thanks
<mkaito> yeah, matching versions are usually a good idea :P
<mkaito> happy to help
gix has quit [Ping timeout: 260 seconds]
gix has joined #ruby
kappy has quit [Quit: leaving]
rubyconfused has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
domgetter has quit [Ping timeout: 248 seconds]
harryzerg has quit [Quit: Leaving...]
jottr_ has joined #ruby
camonz has joined #ruby
jottr_ has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
enterprisey has quit [Remote host closed the connection]
bashusr has joined #ruby
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jcast has quit [Ping timeout: 258 seconds]
jcast has joined #ruby
muelleme_ has joined #ruby
muelleme_ has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
ascarter has quit [Ping timeout: 276 seconds]
jottr_ has joined #ruby
ur5us has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
NeutronStarr has quit [Quit: WeeChat 1.4]
jottr_ has quit [Ping timeout: 260 seconds]
wilbert_ has quit [Ping timeout: 260 seconds]
jak has quit [Remote host closed the connection]
jak has joined #ruby
snowcrshd has joined #ruby
uZiel has joined #ruby
domgetter has joined #ruby
snowcrshd has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
benhalverson has joined #ruby
xco has joined #ruby
ur5us has joined #ruby
FastJack has joined #ruby
bashusr has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 276 seconds]
arescorpio has quit [Quit: Leaving.]
Hess has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
NeutronStarr has joined #ruby
V1s1ble has quit [Ping timeout: 246 seconds]
raul782 has joined #ruby
solocshaw has joined #ruby
djbkd has joined #ruby
bambanx has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
milardovich has joined #ruby
snowcrshd has joined #ruby
dionysus69 has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
jottr_ has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
snowcrshd has quit [Ping timeout: 255 seconds]
bambanx has joined #ruby
yepobebot has joined #ruby
bambanx has quit [Client Quit]
enterprisey has joined #ruby
xco has quit [Quit: xco]
xco has joined #ruby
xco has quit [Client Quit]
solocshaw has quit [Quit: solocshaw]
tommylommykins has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xco has quit [Client Quit]
Dreamer3 has joined #ruby
andrzejku has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
xMopxShell is now known as xmopxshell
xco has joined #ruby
xco has quit [Client Quit]
xmopxshell is now known as xMopxShell
xco has joined #ruby
xco has quit [Client Quit]
charliesome has joined #ruby
dasher00 has quit [Ping timeout: 248 seconds]
cjk101010 has quit [Ping timeout: 240 seconds]
dasher00 has joined #ruby
jak has quit [Remote host closed the connection]
jak has joined #ruby
enterprisey has quit [Remote host closed the connection]
montanonic has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
PaulCape_ has joined #ruby
cam27 has quit [Quit: cam27]
bkxd_ has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
solocshaw has quit [Ping timeout: 248 seconds]
solocshaw has joined #ruby
Hess has quit [Ping timeout: 260 seconds]
cjk101010 has joined #ruby
ascarter has joined #ruby
unshadow has joined #ruby
unshadow has quit [Client Quit]
unshadow has joined #ruby
cjk101010 has quit [Ping timeout: 240 seconds]
ascarter has quit [Ping timeout: 260 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snowcrshd has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anisha has joined #ruby
jottr_ has joined #ruby
charliesome has joined #ruby
fxa90id has joined #ruby
snowcrshd has quit [Ping timeout: 255 seconds]
antgel has joined #ruby
ResidentBiscuit has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
scrooloose has quit [Ping timeout: 255 seconds]
ResidentBiscuit has quit [Ping timeout: 276 seconds]
scrooloose has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 248 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
raul782 has quit []
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
s1kx has quit [Quit: s1kx]
bkxd has joined #ruby
cjk101010 has joined #ruby
sneakerhax has quit [Ping timeout: 246 seconds]
bkxd_ has joined #ruby
charliesome has joined #ruby
benhalverson has left #ruby [#ruby]
alex`` has joined #ruby
psychicist__ has joined #ruby
djbkd has quit [Remote host closed the connection]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
FastJack has quit [Ping timeout: 258 seconds]
nofxxxx has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
nofxxx has quit [Ping timeout: 240 seconds]
_main_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
__main__ has quit [Read error: Connection reset by peer]
_main_ has joined #ruby
yeticry_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
FastJack has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
conta has joined #ruby
TheBloke has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
jak has quit [Remote host closed the connection]
jak has joined #ruby
ddddddd has joined #ruby
zacts has quit [Ping timeout: 255 seconds]
bkxd_ has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
zacts has joined #ruby
PaulCape_ has quit [Read error: Connection reset by peer]
PaulCapestany has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
MarkBilk has joined #ruby
MarkBilk__ has quit [Ping timeout: 258 seconds]
chmurifree has quit [Ping timeout: 240 seconds]
unshadow has quit [Quit: leaving]
domgetter has quit [Ping timeout: 240 seconds]
alex`` has quit [Quit: WeeChat 1.8]
alex`` has joined #ruby
snowcrshd has joined #ruby
snowcrshd has quit [Ping timeout: 246 seconds]
chmurifree has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alex`` has quit [Quit: WeeChat 1.8]
jottr_ has joined #ruby
Fysicus has quit [Quit: The Truth Is Just An Excuse For A Lack Of Imagination]
charliesome has joined #ruby
sleepee has joined #ruby
muelleme_ has joined #ruby
milardovich has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
latemus has joined #ruby
alex`` has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby
latemus_ has joined #ruby
latemus has quit [Ping timeout: 268 seconds]
marr has joined #ruby
mattpotter has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
montanonic has quit [Ping timeout: 276 seconds]
bkxd_ has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snowcrshd has joined #ruby
charliesome has joined #ruby
snowcrshd has quit [Ping timeout: 255 seconds]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yepobebot has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
ResidentBiscuit has joined #ruby
ascarter has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
Fernando-Basso has joined #ruby
hnanon_ has joined #ruby
<hnanon_> I have a string that I want to sequentially append numbers to. Is a regex the simplest way? For example:
<hnanon_> where I look for a "-" in the atring, if it exists, extract the number, convert it to an integer, add one to it, convert it to a string, then append it?
troulouliou_div2 has joined #ruby
_whitelogger has joined #ruby
mattpotter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<muelleme_> did you try .next on your string?
scott4000_ is now known as scott4000
<muelleme_> depending on how exactly your string looks like, that might already do the trick
jottr_ has joined #ruby
charliesome has joined #ruby
nOwz has joined #ruby
jak has quit [Remote host closed the connection]
jak has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
<hnanon_> muelleme: The string looks like "234253"
<hnanon_> All numbers, in other words.
jottr_ has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.9]
<hnanon_> Oh, wow. .next does indeed work.
<hnanon_> Thank you.
nicolai86_ has quit [Remote host closed the connection]
nicolai86 has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
PaulCape_ has joined #ruby
bkxd_ has joined #ruby
quobo has joined #ruby
mtkd has joined #ruby
yepobebot has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
snowcrshd has joined #ruby
hnanon_ has quit [Quit: Page closed]
snowcrshd has quit [Ping timeout: 255 seconds]
_whitelogger has joined #ruby
andrzejku has joined #ruby
lxsameer has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
conta has quit [Ping timeout: 240 seconds]
alex`` has quit [Quit: WeeChat 1.8]
_whitelogger has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
antgel has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 248 seconds]
conta has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
yepobebot has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 268 seconds]
uZiel has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
snowcrshd has joined #ruby
snowcrshd has quit [Remote host closed the connection]
snowcrshd has joined #ruby
conta has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
jak has quit [Remote host closed the connection]
jak has joined #ruby
agent_white has quit [Quit: bai]
sleepee has quit [Ping timeout: 268 seconds]
vuoto has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
isBEKaml has joined #ruby
yepobebot has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
isBEKaml has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
alex`` has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
romankapitonov has joined #ruby
jottr_ has joined #ruby
ResidentBiscuit has joined #ruby
minimalism has quit [Quit: minimalism]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
sleepee has joined #ruby
minimalism has joined #ruby
uZiel has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
yepobebot has quit [Quit: Leaving]
romankapitonov has quit [Read error: Connection reset by peer]
mathys has joined #ruby
antgel has joined #ruby
<lxsameer> hey folk, is there any one who used webpacker gem before ? I like to know about your experience with it
mattp__ has joined #ruby
Harzilein has joined #ruby
romankapitonov has joined #ruby
my123 has joined #ruby
my123 has joined #ruby
my123_ has quit [Ping timeout: 255 seconds]
snowcrshd has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
griffindy has joined #ruby
jak has quit [Remote host closed the connection]
jak has joined #ruby
mathys has quit [Quit: Leaving]
ledestin has joined #ruby
snowcrshd has joined #ruby
jak_ has joined #ruby
jak has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 260 seconds]
mattp__ has quit [Ping timeout: 255 seconds]
snowcrshd has quit [Ping timeout: 240 seconds]
tgragnato has joined #ruby
chouhoulis has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
DoubleMalt has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
ledestin has joined #ruby
ascarter has joined #ruby
ledestin has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
latemus_ has quit [Ping timeout: 248 seconds]
ascarter has quit [Ping timeout: 248 seconds]
<rapha> But hey, perhaps if the ruby-hipster-culture dies, then perhaps that'll do the community some good.
<havenwood> rapha: Computerworld runs that story for every top ten language once a month. Click bait.
<rapha> Hmm, I'll shut up then :)
<havenwood> Is Javascript in decline? Find out in the link!
<havenwood> :-P
<rapha> :-D
jottr_ has quit [Quit: WeeChat 1.8]
isBEKaml has joined #ruby
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
uZiel has quit [Ping timeout: 248 seconds]
ResidentBiscuit has quit []
conta has joined #ruby
chouhoulis has quit [Remote host closed the connection]
snowcrshd has joined #ruby
snowcrshd has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n5ken has joined #ruby
xco has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
n5ken has quit [Quit: Page closed]
muelleme_ has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
cadillac__ has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
cadillac__ is now known as cadillac_
shinnya has joined #ruby
mathys has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
sleepee has quit [Ping timeout: 260 seconds]
eoconnell has joined #ruby
vuoto_ has joined #ruby
vuoto has quit [Quit: Lost terminal]
vuoto_ has quit [Killed (Sigyn (Spam is off topic on freenode.))]
Guest16226 is now known as mnemon
mnemon is now known as Guest52455
Guest52455 has quit [Quit: Reconnecting]
mnem has joined #ruby
conta has quit [Quit: conta]
konsolebox has joined #ruby
sepp2k has joined #ruby
cam27 has joined #ruby
PatrikasZvaigzde has quit [Ping timeout: 240 seconds]
PatrikasZvaigzde has joined #ruby
quobo has joined #ruby
johnzorn has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
PatrikasZvaigzde has quit [Ping timeout: 240 seconds]
muelleme_ has joined #ruby
snowcrshd has joined #ruby
isBEKaml has quit [Ping timeout: 268 seconds]
__Yiota has joined #ruby
mrconfused has joined #ruby
snowcrshd has quit [Ping timeout: 255 seconds]
isBEKaml has joined #ruby
isBEKaml has quit [Changing host]
isBEKaml has joined #ruby
conta has joined #ruby
xco has quit [Quit: xco]
xco has joined #ruby
xco has quit [Client Quit]
doublemalt_ has joined #ruby
xco has joined #ruby
eoconnell has quit [Ping timeout: 268 seconds]
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
cseder has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
wilbert_ has joined #ruby
PatrikasZvaigzde has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
DoubleMalt has quit [Ping timeout: 268 seconds]
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
xco has quit [Client Quit]
A124 has quit [Ping timeout: 248 seconds]
A124 has joined #ruby
nowhere_man has quit [Remote host closed the connection]
camonz has quit [Quit: Linkinus - http://linkinus.com]
mesamoo has joined #ruby
nowhere_man has joined #ruby
dviola has joined #ruby
my123 has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 268 seconds]
marr has quit [Ping timeout: 240 seconds]
mathys has quit [Quit: Leaving]
my123 has joined #ruby
my123 has quit [Changing host]
my123 has joined #ruby
V1s1ble has joined #ruby
V1s1ble has joined #ruby
V1s1ble has quit [Changing host]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
dionysus69 has quit [Quit: dionysus69]
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
rohitpaulk has joined #ruby
uZiel has joined #ruby
cam27 has quit [Quit: cam27]
sleepee has joined #ruby
brent__ has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
eljimmy has joined #ruby
eljimmy has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
zacts has quit [Ping timeout: 246 seconds]
yosafbridge has quit [Quit: Leaving]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gothicsouth has joined #ruby
xrlk has joined #ruby
yosafbridge has joined #ruby
brent__ has quit [Remote host closed the connection]
cseder has joined #ruby
wilbert_ has quit [Ping timeout: 248 seconds]
zacts has joined #ruby
dcunit3d has joined #ruby
ascarter has joined #ruby
PaulCape_ has quit [Quit: .]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
ascarter has quit [Ping timeout: 240 seconds]
snowcrshd has joined #ruby
snowcrshd has quit [Ping timeout: 240 seconds]
antgel has quit [Ping timeout: 255 seconds]
montanonic has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
conta has joined #ruby
isBEKaml has quit [Ping timeout: 268 seconds]
tgragnato_ has joined #ruby
tgragnato has quit [Ping timeout: 260 seconds]
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
mnem is now known as mnemon
milardovich has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
brent__ has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel_ has joined #ruby
uZiel_ has quit [Ping timeout: 248 seconds]
DeeJayh has joined #ruby
__Yiota has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 248 seconds]
Renich has joined #ruby
antgel has joined #ruby
perniciouscaffei has joined #ruby
Renich has quit [Ping timeout: 255 seconds]
domgetter has joined #ruby
Renich has joined #ruby
andikr has joined #ruby
sleepee has quit [Ping timeout: 268 seconds]
antgel has quit [Ping timeout: 246 seconds]
snowcrshd has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
cyphase has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
_sfiguser has joined #ruby
johnny56_ has joined #ruby
solocshaw has quit [Quit: solocshaw]
solocshaw has joined #ruby
gothicsouth has joined #ruby
marr has joined #ruby
im0nde has joined #ruby
aruns has joined #ruby
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
<aruns> Hey guys, I'm looking into using Ruby as a templating language for a simple HTML site I'm working on, was wondering if you guys had any recommendations for libraries I could use to embed my Ruby code in HTML templates without using Rails.
<lupine> it's called erb. or maybe haml
<aruns> I'm using Ruby 2.4.1 on Ubuntu 16.04, Webrick looks like it might be an option.
<aruns> I tried Erb but it doesn't seem to work under Apache.
<aruns> Guessing I need a server that's compatible with Ruby.
tgragnato_ has quit [Quit: Sto andando via]
montanonic has quit [Ping timeout: 240 seconds]
<Papierkorb> aruns: Webrick is dog slow, you can use thin or puma instead. Also, there are other much smaller web frameworks than Rails, `sinatra` is popular, but I also want to recommend `roda` for that task. As templating language, sure there is erb, but I like `haml` much more.
<apeiros> aruns: templating is only the part which converts text into other text, interpolating some variables and potentially control structures
<apeiros> aruns: the thing you seem to be looking for is how to run ruby via a webserver, that goes way beyond templating.
<apeiros> most common way is to use <any webserver> + rack + <any ruby backend>
<apeiros> where <any webserver> is often puma, nginx+passenger or apache+passenger.
<apeiros> and <any ruby backend> is often sinatra or rails. you can build a plain rack app too, though
meshsmith has joined #ruby
<apeiros> as for the "templating engine" option (which would be part of the <any backend>): slim, haml and erb are common choices
DeeJayh has quit [Read error: Connection reset by peer]
<aruns> Well I'm setting up a Docker container for it, I'll probably go for NGINX.
PaulCapestany has joined #ruby
andikr has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ruby
<aruns> Thanks, guys, I think I've got enough now for my setup.
xco has joined #ruby
<Papierkorb> NGINX is really good, its HTTP Proxy stuff should work just fine
clemens3 has joined #ruby
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 255 seconds]
solocshaw1 is now known as solocshaw
<aruns> Papierkorb: Yeah I wrote some URL rewrites in NGINX for a client site and found its syntax to be much cleaner than Apache's
milardovich has joined #ruby
<Papierkorb> aruns: Not only that, it's also much much faster. to me it seems that apache has only limited use-cases left where it's better than other solutions, for other use-cases, go with NGINX
inukshuk_ has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
stryek_ has joined #ruby
learningRuby has joined #ruby
inukshuk_ has quit [Quit: leaving]
stryek has quit [Ping timeout: 260 seconds]
xco has quit [Quit: xco]
xco has joined #ruby
cyphase has joined #ruby
zacts has quit [Ping timeout: 246 seconds]
<learningRuby> Question: The book “The Ruby Programming Language” says: ‘Chapter 4 covers primary expressions in Ruby—literals, variable references, method invocations, and assignments”. But how is a method invocation a primary expression? It seems to me that it's composed of several values/components: object, method, arguments. Can anyone explain?
zacts has joined #ruby
solocshaw has quit [Remote host closed the connection]
brent__ has joined #ruby
solocshaw has joined #ruby
Cohedrin_ has joined #ruby
solocshaw has quit [Remote host closed the connection]
ascarter has joined #ruby
brent__ has quit [Remote host closed the connection]
HoierM_ has joined #ruby
jaruga________ has joined #ruby
<ineb> learningRuby: and why do you think a method invocation is a primary expression?
ascarter has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
cpruitt has joined #ruby
solocshaw has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
cpruitt has quit [Quit: cpruitt]
petruff has joined #ruby
<learningRuby> ineb: I don't think that, the book “The Ruby Programming Language” (by Matz and David Flanagan) seems to say so in the quote I gave above.
petruff has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s1kx has joined #ruby
hfp_work has quit [Quit: bye]
milardovich has quit [Ping timeout: 248 seconds]
petruff has joined #ruby
<ineb> i see
brent__ has joined #ruby
<learningRuby> ineb: The way the book defines primary expression is like an ultimate expression, that don't have subexpressions. Maybe is there some method invocations that are like that? I don't know, but it doesn't seem so when I think about it. Or maybe that was a little mistake in the writing of the book. That's what I'm trying to figure out.
milardovich has joined #ruby
<learningRuby> ineb: the book seems to be quite precise and well written.. and it had three authors collaborating on it, so I find unlikely to be a mistake.
wilbert_ has joined #ruby
doublemalt_ has quit [Quit: Leaving]
<ineb> i see your point. method invocations theoretically could be composed by primary expressions you mentioned, yet there is no operator to do so and i think the book therefore is tagging it as primary expression
anisha has joined #ruby
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
anisha has quit [Ping timeout: 260 seconds]
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
brent__ has quit [Remote host closed the connection]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<learningRuby> ineb: mmm I see. But the book doesn't seem to differentiate primary expressions from compound expressions based on operators. For example, see this quote from the book: “It is worth noting that many literals, such as numbers, are primary expressions—the simplest possible expressions not composed of simpler expressions. Other literals, such as array
<learningRuby> and hash literals and double-quoted strings that use interpolation, include subexpressions and are therefore not primary expressions.” -> So, here as you see the book defines expressions as primary or compound based on whether it has sub expressions.
<learningRuby> But then later it calls method invocations as being primary expressions, and it doesn't elaborate on it. So I'm confused.
quobo has joined #ruby
petruff has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
<ineb> yes, but maybe my argument holds. for example string interpolations are no primary expression because they can be constructed with operators. 'i mean ' + ' like this.'. this holds true for hashes and arrays aswell. however, when it comes to method invocations, i can think of no way to do it with any operator
rubylegend2092 has joined #ruby
rubylegend2092 has quit [Remote host closed the connection]
rubylegend2092 has joined #ruby
astrobunny has joined #ruby
wilbert_ has quit [Quit: wilbert_]
kthibodeaux has joined #ruby
kthibodeaux has quit [Client Quit]
rubylegend2092 has quit [Remote host closed the connection]
rubylegend2092 has joined #ruby
fredlinhares has joined #ruby
montanonic has joined #ruby
brent__ has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
psychicist__ has quit [Ping timeout: 248 seconds]
brent__ has quit [Remote host closed the connection]
rubylegend2092 has quit [Remote host closed the connection]
rubylegend2092 has joined #ruby
<fredlinhares> Where can I find a tutorial about how to create a lexer in Ruby?
<rubylegend2092> #rubyonrails
BTRE has quit [Read error: Connection reset by peer]
snowcrshd has quit []
xco has quit [Quit: xco]
jaruga________ has quit [Quit: jaruga________]
xrlk has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 240 seconds]
GinoMan has joined #ruby
learningRuby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ta_ has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
GinoMan has quit [Remote host closed the connection]
GinoMan has joined #ruby
learningRuby has joined #ruby
shakes has joined #ruby
xrlk has joined #ruby
aruns has quit [Quit: leaving]
fredlinhares has quit [Ping timeout: 248 seconds]
fredlinhares has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
clemens3 has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
<darix> fredlinhares: there are parser libraries for that.
<darix> fredlinhares: racc, ruby-ll, ragel just to name a few
jackjackdripper has joined #ruby
tau has joined #ruby
muelleme_ has quit [Ping timeout: 268 seconds]
BTRE has joined #ruby
troulouliou_div2 has joined #ruby
zapata has joined #ruby
xrlk has quit [Remote host closed the connection]
cschneid_ has quit [Read error: Connection reset by peer]
<fredlinhares> darix, I will check it.
cschneid_ has joined #ruby
fredlinhares has quit [Quit: WeeChat 1.8]
ddd12 has joined #ruby
ddd12 has quit [Remote host closed the connection]
ddd12 has joined #ruby
ddd12 has quit [Max SendQ exceeded]
<learningRuby> ineb: ooh I see. I didn't know that you could write hashes and arrays with operators, interesting.
sepp2k has quit [Read error: Connection reset by peer]
ddd12 has joined #ruby
gigetoo has quit [Ping timeout: 268 seconds]
sleepee has joined #ruby
__Yiota has joined #ruby
FernandoBasso has joined #ruby
gigetoo has joined #ruby
montanonic has quit [Ping timeout: 276 seconds]
petruff has joined #ruby
Neptu has quit [Ping timeout: 240 seconds]
Neptu has joined #ruby
learningRuby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dcunit3d has quit [Ping timeout: 260 seconds]
learningRuby has joined #ruby
Cohedrin_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Quit: WeeChat 1.8]
herbmillerjr has quit [Quit: Konversation terminated!]
herbmillerjr has joined #ruby
dcunit3d has joined #ruby
muelleme_ has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
muelleme_ has quit [Ping timeout: 240 seconds]
choke_ has quit [Ping timeout: 276 seconds]
jak_ has quit [Remote host closed the connection]
jak_ has joined #ruby
xrlk has joined #ruby
learningRuby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
choke has joined #ruby
texasmynsted has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Ping timeout: 268 seconds]
PaulCape_ has joined #ruby
texasmynsted has joined #ruby
__Yiota has joined #ruby
sleepee has quit [Quit: Leaving]
cyphase_eviltwin has joined #ruby
domgetter has quit [Ping timeout: 260 seconds]
lxsameer has quit [Quit: WeeChat 1.8]
troulouliou_div2 has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 276 seconds]
FernandoBasso has quit [Quit: Leaving]
agent_white has joined #ruby
alveric2 has joined #ruby
alveric1 has quit [Ping timeout: 268 seconds]
Renich has quit [Quit: Renich]
mrconfused has quit [Ping timeout: 246 seconds]
tau has quit [Remote host closed the connection]
fxa90id has quit [Ping timeout: 268 seconds]
moei has quit [Quit: Leaving...]
marius has joined #ruby
ddddddd has quit [Ping timeout: 248 seconds]