adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.1, 2.7.3, 2.6.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
evdubs_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
evdubs has quit [Ping timeout: 260 seconds]
icarus has quit [Ping timeout: 268 seconds]
dviola has quit [Changing host]
dviola has joined #ruby
<havenwood> LACampbell: I was multitasking and forgot you'd shown the code. Yeah, so nice we can just use Async now with examples like the code you showed. :)
<havenwood> Just add two `Async do`s and it *just works*.
<havenwood> Well, and install the async gem.
<havenwood> It should probably go ahead and get moved to sdlib.
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
gearnode has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
wallacer has quit [Ping timeout: 276 seconds]
icarus has joined #ruby
wallacer has joined #ruby
TCZ has quit [Quit: oh eh ah]
Nahra has quit [Remote host closed the connection]
andremedeiros has quit [Quit: ZNC 1.8.2 - https://znc.in]
andremedeiros has joined #ruby
evdubs__ has joined #ruby
evdubs_ has quit [Ping timeout: 240 seconds]
evdubs has joined #ruby
evdubs__ has quit [Ping timeout: 240 seconds]
dpl_ has quit [Ping timeout: 260 seconds]
shtirlic has joined #ruby
shtirlic has quit [Ping timeout: 260 seconds]
icarus has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
Rudd0 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
gix has quit [Ping timeout: 240 seconds]
MalkbabY has joined #ruby
cuerbot has quit [Read error: Connection reset by peer]
MalkbabY_ has quit [Ping timeout: 268 seconds]
elcuervo has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
Spitfire has quit [Remote host closed the connection]
jenrzzz has joined #ruby
thinkpad has quit [Ping timeout: 246 seconds]
thinkpad has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
tekacs has quit [Quit: Disappearing... *poof*]
jenrzzz has joined #ruby
Qchmqs has quit [Ping timeout: 245 seconds]
tekacs has joined #ruby
ChmEarl has quit [Quit: Leaving]
envex has quit [Ping timeout: 265 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
pyra has quit [Ping timeout: 245 seconds]
envex has joined #ruby
pyra has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
pyra has quit [Quit: Konversation terminated!]
thinkpad has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
thinkpad has joined #ruby
thinkpad has quit [Read error: Connection reset by peer]
thinkpad has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
m27frogy has quit [Ping timeout: 240 seconds]
icarus has joined #ruby
thinkpad has quit [Read error: Connection reset by peer]
thinkpad has joined #ruby
Rudd0 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
User4588 has quit [Remote host closed the connection]
User458764 has quit [Remote host closed the connection]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<LACampbell> node.js/express in clustered mode (ie, it multiplexes it across $nproc CPUs) is slower until you get to about concurrent connections. it's about a 25% faster at 1,000 concurrent connections. beyond that they both fall apart. TL;DR I don't really think ruby is that "slow" anymore.
<LACampbell> *slower until you get to about 100 concurrent connections
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
jenrzzz has joined #ruby
dhollinger has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
neshpion has quit [Quit: neshpion]
jenrzzz__ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
con3 has quit [Quit: ZNC 1.8.2 - https://znc.in]
con3 has joined #ruby
jetchisel has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
pyra has joined #ruby
maroloccio has quit [Quit: WeeChat 2.3]
ur5us__ has quit [Ping timeout: 250 seconds]
evdubs_ has joined #ruby
dhollinger has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
hkais has joined #ruby
evdubs__ has joined #ruby
jetchisel has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
evdubs_ has quit [Ping timeout: 240 seconds]
jenrzzz__ has quit [Read error: Connection reset by peer]
Celphi has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
Phoebus has quit [Ping timeout: 245 seconds]
evdubs_ has joined #ruby
Phoebus has joined #ruby
wallacer has quit [Ping timeout: 245 seconds]
ELLIOTTCABLE has quit [Ping timeout: 245 seconds]
icarus has quit [Quit: leaving]
ELLIOTTCABLE has joined #ruby
wallacer has joined #ruby
hahuang65 has joined #ruby
Celphi has joined #ruby
jenrzzz_ has joined #ruby
evdubs__ has quit [Ping timeout: 268 seconds]
evdubs has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
evdubs_ has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
thinkpad has quit [Ping timeout: 240 seconds]
thinkpad has joined #ruby
Net has quit [Ping timeout: 245 seconds]
Net has joined #ruby
ReinH_ has joined #ruby
hahuang65 has quit [Ping timeout: 245 seconds]
CustosLimen has quit [Ping timeout: 245 seconds]
ReinH has quit [Ping timeout: 245 seconds]
ReinH_ is now known as ReinH
MentalPower has quit [Ping timeout: 245 seconds]
MentalPower has joined #ruby
hahuang65 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
CustosLimen has joined #ruby
fowl has quit [Ping timeout: 245 seconds]
ua_ has quit [Ping timeout: 245 seconds]
wallacer has quit [Ping timeout: 245 seconds]
Caius has quit [Ping timeout: 245 seconds]
Caius has joined #ruby
meimeix has quit [Ping timeout: 245 seconds]
siasmj has quit [Ping timeout: 245 seconds]
Caius is now known as Guest16363
fowl has joined #ruby
Guest16363 has quit [Excess Flood]
roger_rabbit has quit [Ping timeout: 245 seconds]
siasmj has joined #ruby
Ca1us has joined #ruby
Ca1us has joined #ruby
ua_ has joined #ruby
roger_rabbit has joined #ruby
meimeix has joined #ruby
wallacer has joined #ruby
jenrzzz_ has joined #ruby
MalkbabY_ has joined #ruby
gearnode has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
gearnode has quit [Client Quit]
gearnode has joined #ruby
dpl_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
ideentwickler has quit [Ping timeout: 258 seconds]
ideentwickler has joined #ruby
shtirlic has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
jenrzzz_ has joined #ruby
teclator has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
postmodern has quit [Quit: Leaving]
ideentwickler has quit [Ping timeout: 252 seconds]
ideentwickler has joined #ruby
dpl_ has quit [Ping timeout: 268 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
con3 has quit [Quit: ZNC 1.8.2 - https://znc.in]
con3 has joined #ruby
dpl_ has joined #ruby
jenrzzz_ has joined #ruby
iftheshoefritz has joined #ruby
iftheshoefritz has quit [Client Quit]
al2o3-cr has quit [Quit: WeeChat 3.1]
jenrzzz_ has quit [Ping timeout: 268 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
ur5us__ has joined #ruby
jla has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz__ has joined #ruby
Pe9le9 has joined #ruby
Pe9le9 has quit [Quit: Leaving]
Pe9le9 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Pe9le9 has quit [Client Quit]
Pe9le9 has joined #ruby
ur5us__ has quit [Ping timeout: 250 seconds]
Nahra has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
AndreYuhai has joined #ruby
<AndreYuhai> I've got a Rails 6 project which has webpacker and React. I want to run the tests on Circle CI, so when building the environment do I install webpacker again with "rails webpacker:install"? This just includes webpacker in the project and I do not need to run it again when I clone my repo to another machine, right?
<AndreYuhai> My circle.yml has this part https://paste.ofcode.org/SPBVP8iuJkbxTkNfDn3iKx
<AndreYuhai> Does that make sense to install webpacker again? Isn't it just including the webpacker inside the project? I don't quite get it.
ur5us__ has joined #ruby
hkais has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
jla has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jammanbo has joined #ruby
kktt007 has quit [Quit: Idle for 30+ days]
hkais has joined #ruby
Ca1us is now known as Caius
jenrzzz has quit [Ping timeout: 268 seconds]
jla has joined #ruby
sagax has joined #ruby
ur5us__ has quit [Remote host closed the connection]
ur5us__ has joined #ruby
RougeR has joined #ruby
jenrzzz has joined #ruby
jenrzzz__ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
kristof[m]1 has joined #ruby
pyra has quit [Quit: Konversation terminated!]
alexherbo20 has joined #ruby
alexherbo20 is now known as alexherbo2
sagax has quit [Ping timeout: 252 seconds]
MalkbabY has joined #ruby
jenrzzz has joined #ruby
MalkbabY_ has quit [Ping timeout: 246 seconds]
rhe8 has joined #ruby
rhe has quit [Ping timeout: 246 seconds]
rhe8 is now known as rhe
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
cd has quit [Quit: cd]
jenrzzz has quit [Ping timeout: 240 seconds]
Axy has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
ur5us__ has quit [Ping timeout: 245 seconds]
AndreYuhai has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
AndreYuhai has joined #ruby
AndreYuhai has quit [Ping timeout: 246 seconds]
Pe9le9 has quit [Quit: Leaving]
Pe9le9 has joined #ruby
TomyWork has joined #ruby
aef_ has quit [Remote host closed the connection]
cliluw has quit [Ping timeout: 252 seconds]
aef has joined #ruby
AndreYuhai has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jla has quit [Ping timeout: 265 seconds]
sagax has joined #ruby
shtirlic_ has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
shtirlic has quit [Ping timeout: 265 seconds]
m27frogy has joined #ruby
andremedeiros has joined #ruby
shtirlic has joined #ruby
shtirlic_ has quit [Ping timeout: 245 seconds]
jla has joined #ruby
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
jetchisel has quit [Ping timeout: 245 seconds]
hkais1 has joined #ruby
hkais has quit [Ping timeout: 245 seconds]
vondruch has quit [Ping timeout: 246 seconds]
jla has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
vondruch has joined #ruby
Qchmqs has joined #ruby
GodFather has joined #ruby
<alexherbo2> hello
<alexherbo2> what is the convention for referring to methods from a module with `extend self`?, for example in rspec, should we refer them as `#method_name` or `.method_name` (for `self.method_name`. also about `initialize`, is it `#new` or `.new`?
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
cow[moo] has joined #ruby
JeffJefftyJeff has joined #ruby
TCZ has joined #ruby
alexherbo27 has joined #ruby
alexherbo2 has quit [Ping timeout: 245 seconds]
alexherbo27 is now known as alexherbo2
JeffJefftyJeff has left #ruby [#ruby]
dpl_ has quit [Quit: dpl_]
JeffJefftyJeff has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
jenrzzz has joined #ruby
houhoulis has joined #ruby
jimms has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
Qchmqs has quit [Ping timeout: 240 seconds]
thinkpad has quit [Ping timeout: 260 seconds]
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
linoge has joined #ruby
thinkpad has joined #ruby
jammanbo has quit []
TCZ has quit [Quit: oh eh ah]
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 260 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
ChmEarl has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch_ has joined #ruby
vondruch_ has quit [Remote host closed the connection]
vondruch_ has joined #ruby
vondruch_ is now known as vondruch
houhoulis has quit [Remote host closed the connection]
jenrzzz has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
micah has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<micah> I've got a rack application that I'm wanting to put into a container, I thought I could do 'bundle install --standalone' so I wouldn't need bundler on the system, but even with that I need to have bundler installed to get things to work, what am I missing here?
jla has joined #ruby
Qchmqs has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
Qchmqs has quit [Quit: leaving]
MalkbabY_ is now known as MalkbabY
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
<havenwood> micah: "A space separated list of groups to install has to be specified."
<micah> havenwood: hum, what are 'groups' in this context?
<havenwood> micah: I see `bundle package` used a lot more often but `bundle install --standalone=default` for example.
<havenwood> micah: Groups folk choose to define are often :test and :development, but you can have arbitrary ones too.
<havenwood> micah: It's the #group directive in your Gemfile.
<havenwood> micah: Like: group :test, development do
<havenwood> micah: Anything outside a group is in the :default group.
<micah> ah ok, lets see if that works
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
jenrzzz has joined #ruby
<micah> havenwood: annoyingly, it seems like passenger still fails with: Message from application: cannot load such file -- bundler/setup (LoadError)
jla has quit [Ping timeout: 252 seconds]
<havenwood> micah: What version of Ruby and Bundler?
<micah> the bundler install --standalone=default did create a bundle/bundler/setup.rb
<havenwood> micah: Ah, so just not in load path?
<micah> havenwood: ruby 2.5.5 and bundler 1.17.3
<havenwood> micah: Try with Bundler 2.2?
jla has joined #ruby
<micah> havenwood: maybe not in the load path, i'm not sure how I specify that
<havenwood> micah: There are a bunch of ways, like adding to $LOAD_PATH within Ruby or running Ruby with the -I flag.
jenrzzz has quit [Ping timeout: 260 seconds]
<havenwood> micah: -Idirectory specify $LOAD_PATH directory (may be used more than once)
<havenwood> micah: Look at `$LOAD_PATH` within Ruby.
<havenwood> &>> $LOAD_PATH.class
<rubydoc> # => Array (https://carc.in/#/r/ay5f)
<havenwood> &>> $LOAD_PATH
<rubydoc> # => ["/usr/lib/ruby/site_ruby/3.0.0", "/usr/lib/ruby/site_ruby/3.0.0/x86_64-linux", "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/vendor_ruby/3.0.0", "/usr/lib/ruby/vendor_ruby/3.0.0/x86_64-linux", "/usr/lib/ruby/vendor_ruby", "/usr/lib/ruby/3.0.0", "/usr/lib/ruby/3.0.0/x86_64-linux"] (https://carc.in/#/r/ay5g)
<micah> i tried adding to the top of my app: $LOAD_PATH << File.join(File.dirname(__FILE__), "bundle") but that didn't seem to change things
<havenwood> micah: The dirname of __FILE__ is __dir__. I'd not expect a `bundle/` dir in `__dir__`.
<hkais1> someone around to help me? having redmine / RoRs app under ubuntu 20.04 which is reporting regularly https://paste.aes.pm/?655341d990e57c6b#DAfzrLQBkTJtHSexkpvZ4cxRn4cPr4kbenuUs179Kx1W
<hkais1> tried already to add RUBYOPT=--disable=frozen-string-literal but also does not help (env var is from .erb traced, so it is surely set)
<havenwood> micah: Which directory contains? bundler/
<havenwood> micah: That's the question for $LOAD_PATH.
<micah> havenwood: ./bundle/bundler/setup.rb
<havenwood> micah: Ah, so there is a bundle/ dir in __dir__ then. I couldn't remember where standalone put it.
<micah> yeah, it makes a bundle/ruby dir as well
rkoller has joined #ruby
<havenwood> micah: You should use full paths with $LOAD_PATH.
<havenwood> micah: Take a look at it after adding.
<havenwood> micah: File.dirname __FILE__ #=> "."
<havenwood> micah: File.expand_path __dir__
<havenwood> &>> File.dirname __FILE__
<rubydoc> # => "." (https://carc.in/#/r/ay5h)
<havenwood> &>> File.expand_path __dir__
<rubydoc> stderr: -e:4:in `expand_path': no implicit conversion of nil into String (TypeError)... check link for more (https://carc.in/#/r/ay5i)
<havenwood> (Server hides path, right.)
Pe9le9 has quit [Remote host closed the connection]
<havenwood> It'll work outside a sandbox though. Just carc being prudent.
<havenwood> hkais1: It's actually very strange for frozen string literals to be enabled by default without a magic comment at the top of each file.
<havenwood> hkais1: Why is your system configured like that? Where did this box come from? Did you install Ruby? How?
<AndreYuhai> /1/
<hkais1> it is default redmine install incl. all deps from Ubuntu 20.04
<AndreYuhai> Oh sorry :D
AndreYuhai has quit [Quit: leaving]
<havenwood> hkais1: Ubuntu by default won't have this behavior. Sanity check if strings are frozen outside redmine?
<hkais1> havenwood: sadly i have no clue "what outside" means?
<hkais1> what files to check?
<havenwood> hkais1: Run these three commands and see which blow up:
<havenwood> ruby -e "'' << 'whee'"
<havenwood> ruby --disable-frozen-string-literal -e "'' << 'whee'"
<havenwood> ruby --enable-frozen-string-literal -e "'' << 'whee'"
<hkais1> as the www-data user?
<havenwood> hkais1: It's "normal" for the first two to exit with 0 and return nothing.
<havenwood> hkais1: It's "normal" for the third to exit 1 and raise a FrozenError.
<havenwood> hkais1: As the user you're having this issue with.
<havenwood> hkais1: Also, handling of frozen strings is *fixed* in redmine 4.1 so just update!
<hkais1> havenwood: cannot update without leaving ubuntu package system. but for this do not have enough knowlege on ruby, rors, gems + passanger to do this "manual management of redmine"
<havenwood> hkais1: Do redmine folk have any suggestions?
<hkais1> as root it behaves like you named it
<hkais1> moment
<hkais1> as www-data just failing to execute the commands :(
<hkais1> checking
micah has left #ruby [#ruby]
<hkais1> same behaviour as www-data
hkais1 is now known as hkais
<hkais> havenwood: i have asked it also in redmine list, will update here if I am getting answers
<adam12> Has anybody seen DelegateClass + pretty_print work before? https://carc.in/#/r/ay5t I’m not sure I ever have.
<adam12> Doh.
TCZ has joined #ruby
jenrzzz has joined #ruby
<adam12> I guess that explains it. Commit is from 2008 too. No wonder it’s never worked. https://github.com/ruby/ruby/commit/f9c35bce1b7514234464dccef5a5afe8e9b05c08
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
evdubs_ has joined #ruby
evdubs has quit [Ping timeout: 240 seconds]
<adam12> hkais: Have you considered runny Redmine as a Docker image?
<hkais> adam12: do you have a good recommendation? would be an option, but anyway would need also a management of security updates of the services in the image
<hkais> as recommendation mean a well managed docker image
<adam12> hkais: Use the official one. https://hub.docker.com/_/redmine
Rounin has quit [Remote host closed the connection]
<adam12> hkais: I’d probably just run the official one + sign up to any newsletter for Redmine to keep track of security fixes. Maybe even have something poll the feed for https://www.redmine.org/projects/redmine/news. Maybe you could create an account and have it email you automatically.
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 265 seconds]
howdoi has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
pwnd_7 has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
pwnd_ has quit [Read error: Connection reset by peer]
pwnd_7 is now known as pwnd_
gix has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
jenrzzz has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
lockweel has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
shokohsc68 has joined #ruby
shokohsc6 has quit [Ping timeout: 265 seconds]
vs^ has joined #ruby
TCZ has quit [Quit: oh eh ah]
DTZUZU has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Ping timeout: 246 seconds]
DTZUZU has joined #ruby
jla has quit [Ping timeout: 252 seconds]
shtirlic has quit [Ping timeout: 245 seconds]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hkais has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #ruby
cd has joined #ruby
MalkbabY_ has joined #ruby
lucasb has joined #ruby
MalkbabY has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
rrootss[m] has joined #ruby
TomyWork has quit [Remote host closed the connection]
RougeR has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 268 seconds]
hkais has joined #ruby
jimms has quit [Quit: Leaving]
vs^ has quit []
Technodrome has joined #ruby
jenrzzz has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jla has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
evdubs__ has joined #ruby
evdubs_ has quit [Ping timeout: 268 seconds]
lockweel has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 265 seconds]
stryek has joined #ruby
shtirlic has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jla has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Rudd0 has quit [Read error: Connection reset by peer]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
shtirlic has quit [Ping timeout: 245 seconds]
deathwishdave has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Nahra has quit [Ping timeout: 245 seconds]
alexherbo2 has joined #ruby
con3 has quit [Remote host closed the connection]
coniptor has quit [Ping timeout: 246 seconds]
con3 has joined #ruby
coniptor has joined #ruby
hkais has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andremedeiros has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 245 seconds]
andremedeiros has joined #ruby
TCZ has joined #ruby
jenrzzz has joined #ruby
deathwishdave has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz_ has quit [Ping timeout: 265 seconds]
ur5us__ has joined #ruby
cd has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
pyra has joined #ruby
TCZ has quit [Quit: oh eh ah]
jenrzzz has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Rudd0 has joined #ruby
gearnode has quit [Ping timeout: 245 seconds]
linoge has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
camilasan has quit [Quit: No Ping reply in 180 seconds.]
camilasan has joined #ruby
hiroaki_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
MalkbabY has joined #ruby
MalkbabY_ has quit [Ping timeout: 265 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
AndreYuhai has joined #ruby
<AndreYuhai> Can I set a default for a regexp group so that when there's no much it returns that default instead?
<AndreYuhai> Because now if even a letter doesn't match the whole expression returns nil even though some groups have actually matching value
<nakilon> can't be done with a single regex
<nakilon> you can make each group description less strict and then apply stricter regex to a group on the net check
<nakilon> smth like
alexherbo2 has joined #ruby
<nakilon> if /\A(?<name>\S+) (?<surname>\S+)\z/ =~ str ; fail "bad name" unless /\A[A-Z][a-z]+\z/ =~ name ; fail "bad surname" unless /\A[A-Z][a-z]+\z/ =~ surname ; end
<nakilon> instead of /\A[A-Z][a-z]+ [A-Z][a-z]+\z/ =~ str
<AndreYuhai> nakilon, Makes sense! I will try that thanks.
<AndreYuhai> What was \S though? I know \s is whitespace
<AndreYuhai> Oh okay non-white space
<AndreYuhai> Got it
bvdw has quit [Quit: Ping timeout (120 seconds)]
bvdw has joined #ruby
gearnode has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
Technodrome has joined #ruby
Azure|dc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
evdubs__ is now known as evdubs