<cagomez>
Should I just move those lines into the BaseCommand instance itself? the proc seems kind of gratuitous and I have no real reason to pass a proc into the base command. by doing so, I can test the behavior
schneider has joined #ruby
elchingadou has quit [Quit: Leaving]
chouhoulis has quit [Remote host closed the connection]
kmurphy4 has joined #ruby
<baweaver>
cagomez: Why are you using a command pattern?
<baweaver>
This seems like you could just use items.map(fn)
<baweaver>
Command patterns make very little sense in languages with functions.
<baweaver>
A command is a verb in the context of a noun. Functions are in essence verbs. Coercing them to nouns (Objects) doesn't always make sense, and this is especially true in languages like Ruby and Javascript.
schneider has joined #ruby
<baweaver>
So short version cagomez, you don't really need the Command pattern in Ruby.
alfiemax has quit [Ping timeout: 255 seconds]
<cagomez>
I guess it's not strictly a "command". We have a convention of `DoXCommand` because it enforces the SRP
<baweaver>
GoF patterns don't make sense in languages with functional features.
schneider has quit [Ping timeout: 248 seconds]
caleBOT has joined #ruby
<baweaver>
I'd have to see the actual code used but I have a feeling you're making it more complicated than it needs to be.
caleBOT_ has joined #ruby
chouhoulis has joined #ruby
<cagomez>
baweaver, I probably am. I have a knack for that :\
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
schneider has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 268 seconds]
cagomez has quit [Read error: Connection reset by peer]
schneider has joined #ruby
alfiemax_ has joined #ruby
ciscam has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
AJA4350 has quit [Quit: AJA4350]
bmurt has joined #ruby
chouhoulis has quit [Remote host closed the connection]
ciscam has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
schneider has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
n0m4d1c has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.1]
schneider has quit [Ping timeout: 248 seconds]
alfiemax_ has quit [Remote host closed the connection]
Janky has quit []
alfiemax has joined #ruby
memo1 has joined #ruby
schneider has joined #ruby
tomaw has quit [Ping timeout: 619 seconds]
schneider has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
arescorpio has joined #ruby
tomaw has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
caleBOT_ has quit [Remote host closed the connection]
caleBOT has quit [Remote host closed the connection]
mroutis has quit [Ping timeout: 248 seconds]
schneider has joined #ruby
_antares_ has joined #ruby
pilne has quit [Quit: Leaving]
schneider has quit [Ping timeout: 240 seconds]
ryzokuken has quit [Remote host closed the connection]
_antares_ has quit [Ping timeout: 240 seconds]
ciscam has quit [Ping timeout: 248 seconds]
schneider has joined #ruby
ciscam has joined #ruby
<tuskkk___>
how do I seed some data for rspec feature spec?
_antares_ has quit [Remote host closed the connection]
_antares_ has joined #ruby
schneider has joined #ruby
d_kam has quit [Quit: Be back later ...]
<CuriousMind>
ok thank you
<dminuoso>
Im trying to install a package but gem says error. What do?
<dminuoso>
Radar can you help?
* dminuoso
sharpens his sword
schneider has quit [Ping timeout: 240 seconds]
c0ncealed1 has quit [Ping timeout: 260 seconds]
n0m4d1c has joined #ruby
c0ncealed1 has joined #ruby
tonini has joined #ruby
<baweaver>
pointed question?
<dminuoso>
baweaver: Yes it is. Radar is basically forced to provide a meaningful answer now.
anisha has joined #ruby
schneider has joined #ruby
<CuriousMind>
I did 'gem install pg' and I was unable to install it. I did 'brew install postgresql' which apparently installed the app but when I do gem list I don't see it. How come?
_antares_ has quit [Remote host closed the connection]
tonini is now known as zastav
zastav is now known as tonini
hotpancakes has quit []
schneider has quit [Ping timeout: 248 seconds]
za1b1tsu has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
_antares_ has joined #ruby
schneider has joined #ruby
CuriousMind has quit [Quit: Page closed]
_antares_ has quit [Remote host closed the connection]
_antares_ has joined #ruby
donofrio has quit [Remote host closed the connection]
n0m4d1c has quit [Read error: Connection reset by peer]
n0m4d1c has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
n0m4d1c_ has joined #ruby
sauvin has joined #ruby
ur5us has quit [Remote host closed the connection]
schneider has joined #ruby
apeiros has joined #ruby
domhnall has joined #ruby
n0m4d1c has quit [Ping timeout: 256 seconds]
<domhnall>
hi, im looking to use ruby 2.5 while I have 2.4 install. How would I make the switch? Im on FreeBSD...checking documentation also.
anisha_ has joined #ruby
anisha has quit [Read error: Connection reset by peer]
n13z has quit [Ping timeout: 260 seconds]
n0m4d1c_ has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 264 seconds]
chris349 has quit [Ping timeout: 264 seconds]
<domhnall>
hm, something about rvm seems useful. though I installed it but command not available.
<domhnall>
rebooting.
domhnall has quit [Quit: leaving]
hays has quit [Ping timeout: 248 seconds]
schneider has joined #ruby
Asher1 has joined #ruby
n0m4d1c has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
Asher has quit [Ping timeout: 276 seconds]
Asher1 has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
lytol has quit [Remote host closed the connection]
caleBOT_ has quit [Ping timeout: 260 seconds]
caleBOT has quit [Ping timeout: 260 seconds]
schleppel has joined #ruby
schneider has joined #ruby
Asher has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
jenrzzz has joined #ruby
d_kam has joined #ruby
domhnall has joined #ruby
schneider has joined #ruby
mtkd has joined #ruby
apeiros has quit [Remote host closed the connection]
d_kam has quit [Ping timeout: 240 seconds]
chris349 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 256 seconds]
_antares_ has quit [Remote host closed the connection]
dc1 has joined #ruby
_antares_ has joined #ruby
reber has joined #ruby
7GHAAT31H has joined #ruby
aufi has quit [Ping timeout: 256 seconds]
_antares_ has quit [Remote host closed the connection]
reber has quit [Remote host closed the connection]
7GHAAT31H has quit [Remote host closed the connection]
reber has joined #ruby
schneider has joined #ruby
Burgestrand has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
shiroeni has joined #ruby
memo1 has quit [Ping timeout: 260 seconds]
_antares_ has joined #ruby
dc1 has quit [Ping timeout: 276 seconds]
ryzokuken has joined #ruby
schneider has joined #ruby
jottr has joined #ruby
d_kam has joined #ruby
sanscoeur has joined #ruby
Burgestrand has quit [Quit: Closing time!]
schneider has quit [Ping timeout: 268 seconds]
Burgestrand has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
domhnall has left #ruby [#ruby]
schneider has joined #ruby
_antares_ has quit [Remote host closed the connection]
d_kam has quit [Quit: Be back later ...]
Burgestrand has quit [Quit: Closing time!]
schneider has quit [Ping timeout: 260 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
_antares_ has joined #ruby
_antares_ has quit [Ping timeout: 276 seconds]
sidx64_ has joined #ruby
sidx64 has quit [Ping timeout: 255 seconds]
caleBOT has joined #ruby
sidx64 has joined #ruby
apeiros has joined #ruby
drale2k_ has joined #ruby
sidx64_ has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
schneider has joined #ruby
biberu has joined #ruby
caleBOT has quit [Ping timeout: 256 seconds]
vondruch has quit [Ping timeout: 248 seconds]
schneider has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
n13z has joined #ruby
ramfjord has joined #ruby
Tempesta has quit [Quit: See ya!]
TinkerT has quit [Read error: Connection reset by peer]
TinkerT has joined #ruby
Tempesta has joined #ruby
mlkkk has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
suukim has joined #ruby
andikr has joined #ruby
Burgestrand has joined #ruby
schneider has joined #ruby
anisha_ has quit [Ping timeout: 264 seconds]
sysvalve has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 268 seconds]
anisha has joined #ruby
blackmesa1 has joined #ruby
sphenxes has quit [Ping timeout: 248 seconds]
<shiroeni>
/ buffer 13
shiroeni has quit [Quit: WeeChat 2.1]
claudiuinberlin has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
sphenxes has joined #ruby
blackmesa1 has quit [Ping timeout: 255 seconds]
n0m4d1c has joined #ruby
TomyWork has joined #ruby
ellcs1 has left #ruby [#ruby]
n0m4d1c has quit [Ping timeout: 256 seconds]
blackmesa1 has joined #ruby
amar has joined #ruby
amar has quit [Remote host closed the connection]
schneider has joined #ruby
schneider has quit [Client Quit]
mikecmpbll has joined #ruby
Burgestrand has quit [Quit: Closing time!]
Nussi has quit [Quit: WeeChat 2.1]
schneider has joined #ruby
Burgestrand has joined #ruby
sysvalve has quit [Read error: Connection reset by peer]
sysvalve has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
hahuang65 has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
claudiuinberlin has quit [Ping timeout: 260 seconds]
d_kam has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
mtkd has joined #ruby
d_kam has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby
XB23 has joined #ruby
mikecmpbll has joined #ruby
_antares_ has joined #ruby
jottr has joined #ruby
guille-moe has joined #ruby
_antares_ has quit [Ping timeout: 276 seconds]
amar has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
amar has quit [Ping timeout: 256 seconds]
amar has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
amar has quit [Remote host closed the connection]
amar has joined #ruby
sanscoeur has quit [Remote host closed the connection]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
amar has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
guille-moe has quit [Quit: guille-moe]
guille-moe has joined #ruby
KeyJoo has joined #ruby
KeyJoo has quit [Max SendQ exceeded]
KeyJoo has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
NL3limin4t0r has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
conta has joined #ruby
minimalism has quit [Quit: minimalism]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<NL3limin4t0r>
Do you guys know where the best place is to ask a simple xpath question? I checked the #xpath channel, but that seems to be empty.
caleBOT_ has quit [Ping timeout: 265 seconds]
caleBOT has quit [Ping timeout: 265 seconds]
<NL3limin4t0r>
I was wondering if in Nokigiri I could write the following:
synthroid has quit [Remote host closed the connection]
oleo has joined #ruby
Asher has joined #ruby
karapetyan has quit [Remote host closed the connection]
synthroid has joined #ruby
karapetyan has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 256 seconds]
marens_ is now known as marens
suukim has quit [Quit: Konversation terminated!]
k0mpa has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
_antares_ has joined #ruby
sidx64 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
sidx64 has quit [Client Quit]
govg has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
apparition has quit [Quit: Bye]
_antares_ has quit [Ping timeout: 255 seconds]
nowhere_man has joined #ruby
blackmesa1 has joined #ruby
n0m4d1c has joined #ruby
coderphive has joined #ruby
venmx has joined #ruby
Beams has quit [Quit: .]
coderphive has quit [Quit: coderphive]
grilix_ has joined #ruby
chouhoulis has joined #ruby
coderphive has joined #ruby
venmx has quit [Quit: leaving]
karapety_ has joined #ruby
venmx has joined #ruby
mtkd has quit []
Beams has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
mtkd has joined #ruby
cyberg has joined #ruby
XB23 has quit [Remote host closed the connection]
banisterfiend has joined #ruby
Cavallari has quit [Quit: Cavallari]
nayena has quit [Ping timeout: 248 seconds]
excel_girl has joined #ruby
<excel_girl>
Good morning. Is there a beginner friendly resource for someone who has some python experience? I am looking for a list that names a certain library in Python and names a corresponding library in python.
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<excel_girl>
havenwood: Thank you so much! This is awesome
<darix>
excel_girl: just using the search on rubygems.org might be a good start too
<darix>
depending on the libraries you need
<excel_girl>
I was looking for simple libraries like -- os, subprocess, requests, json, datetime, shutil(for moving files), email(for sending email) and what not
<excel_girl>
darix: ^^^^^^^^^^^^^^^
<darix>
ah
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
<darix>
excel_girl: os/subprocess => popen* and friends. I guess. requests ... depending on what exact use case ... I liked "httpclient", faraday also seems popular, mechanize
cagomez has joined #ruby
<darix>
datetime might require at most a require 'date'
<darix>
shtuils = fileutils
schneider has quit [Ping timeout: 240 seconds]
<darix>
email = I can really recommend the "mail" gem
<excel_girl>
mnemon: No I haven't. I will now. Thank you :)
<darix>
oh and yes stdlib docs
n0m4d1c has quit [Remote host closed the connection]
n0m4d1c has joined #ruby
raynold has quit []
schneider has joined #ruby
_antares_ has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 248 seconds]
tonini has quit [Quit: Connection closed for inactivity]
n0m4d1c has quit [Ping timeout: 265 seconds]
schneider has quit [Ping timeout: 248 seconds]
_antares_ has quit [Ping timeout: 256 seconds]
Beams has quit [Quit: .]
RougeT430 has joined #ruby
schneider has joined #ruby
Beams has joined #ruby
chocoelho has joined #ruby
RougeR has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
DTZUZO has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
chocoelho has quit [Client Quit]
chouhoulis has joined #ruby
biberu\ has joined #ruby
chouhoul_ has joined #ruby
chocoelho has joined #ruby
chouhou__ has joined #ruby
chouhou__ has quit [Read error: Connection reset by peer]
chouhou__ has joined #ruby
dano has quit [Quit: Leaving]
synthroid has quit [Remote host closed the connection]
biberu has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
chouhoul_ has quit [Ping timeout: 255 seconds]
mtkd has quit []
guille-moe has quit [Remote host closed the connection]
guille-moe has joined #ruby
mtkd has joined #ruby
rouget430__ has joined #ruby
synthroid has joined #ruby
jcarl43 has joined #ruby
RougeT430 has quit [Ping timeout: 248 seconds]
amar_ has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyLobo has joined #ruby
chocoelho has quit [Remote host closed the connection]
chocoelho has joined #ruby
amar has quit [Ping timeout: 256 seconds]
andikr has quit [Remote host closed the connection]
excel_girl has quit [Quit: Page closed]
amar_ has quit [Ping timeout: 260 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
blackmesa1 has quit [Ping timeout: 255 seconds]
blackmesa1 has joined #ruby
Asher has joined #ruby
alfiemax has joined #ruby
Dbugger has joined #ruby
conta1 has quit [Ping timeout: 248 seconds]
Asher has quit [Ping timeout: 248 seconds]
anisha has quit [Quit: This computer has gone to sleep]
anisha has joined #ruby
mlkkk has quit [Remote host closed the connection]
sysvalve has quit [Quit: Leaving]
anisha has quit [Client Quit]
_antares_ has joined #ruby
regedit has joined #ruby
mohsen_1 has joined #ruby
blackmesa1 has quit [Ping timeout: 276 seconds]
Asher has joined #ruby
karapety_ has quit [Remote host closed the connection]
chocoelho has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
darkhanb has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nitric has joined #ruby
kevinburke has joined #ruby
guille-moe has quit [Remote host closed the connection]
MedubzZ has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
ryzokuken has joined #ruby
ixti has joined #ruby
MedubzZ has quit [Quit: Leaving]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guille-moe has joined #ruby
leslie has joined #ruby
chouhou__ has quit [Remote host closed the connection]
howdoi has joined #ruby
chouhoulis has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
chocoelho has joined #ruby
chouhoul_ has joined #ruby
<havenwood>
baweaver: +1 .:
chouhou__ has joined #ruby
chouho___ has joined #ruby
chouh____ has joined #ruby
ixti has quit [Quit: WeeChat 2.1]
chouhoulis has quit [Ping timeout: 265 seconds]
ixti has joined #ruby
chouhoulis has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
cschneid_ has joined #ruby
chouhoul_ has joined #ruby
chocoelho has quit [Read error: Connection reset by peer]
<havenwood>
ericx2x: IMHO, nodejs is your best bet for a Javascript runtime.
raynold has joined #ruby
MedubzZ has quit [Client Quit]
raynold has quit [Excess Flood]
dviola has joined #ruby
raynold has joined #ruby
banisterfiend has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
amar has joined #ruby
Beams has quit [Quit: .]
Eiam has joined #ruby
karapetyan has joined #ruby
Beams has joined #ruby
_antares_ has quit [Remote host closed the connection]
amar has quit [Ping timeout: 248 seconds]
sanscoeur has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
graft has quit [Ping timeout: 240 seconds]
sidx64_ has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_antares_ has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldepandis has joined #ruby
sidx64 has quit [Ping timeout: 240 seconds]
chocoelho has quit [Quit: Konversation terminated!]
chocoelho has joined #ruby
MedubzZ has joined #ruby
MedubzZ has quit [Client Quit]
memo1 has quit [Ping timeout: 240 seconds]
graft has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
<ericx2x>
Thanks for the info havenwood
<ericx2x>
Not exactly sure what a JSRuntime is though? Does rails have a JS runtime? I'll have to look it up later
<ericx2x>
Right now I'm just focusing on getting my rails app over to another server and figuring out all the random errors along the way... like this? https://imgur.com/a/lVbj47y
<havenwood>
ericx2x: That just means a JavaScript runtime. The JavaScript language.
<ericx2x>
Oh, so JS Runtime is what lets you use JS code and that has to be downloaded onto the machine. Got it
alfiemax has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
Dbugger has quit [Quit: Leaving]
<ericx2x>
Sorry to ask another question so soon but what would you do if you got this error? https://imgur.com/a/lVbj47y
SeepingN has joined #ruby
Beams has quit [Quit: .]
<Eiam>
ericx2x: I'd learn how to read backtraces!
<Eiam>
ericx2x: its telling you that it cannot find one of your requirements
GodFather has joined #ruby
<Eiam>
you may need to be more specific in your require path, or modify your env variables
Mike11 has joined #ruby
caleBOT_ has quit [Remote host closed the connection]
caleBOT has quit [Remote host closed the connection]
mtkd has quit []
sidx64_ has quit [Read error: Connection reset by peer]
<ericx2x>
Thanks for the response Eiam but I don't know what you mean. Where can I be more specific in my require path or modify my env variables? I'll look into this. Sorry if my newbness is annoying :x
<Eiam>
so when your code in /home/name/vendor/bundle etc etc is executing, it hits "require kgio_ext"
<Eiam>
then it goes to FIND kgio_ext and it cannot, hence the error
<Eiam>
so you can be more specific about where it is, "require_relative "../blah/kgio_exit" "
<Eiam>
or you can ensure that Ruby has more search paths to look in when it tries on its own
<ericx2x>
Do I need to be more specific in my Gemfile ?
<Eiam>
no thats not what the gemfile does
<Eiam>
ericx2x: have you run bundle install?
<Eiam>
do you know that kgio_ext has been installed?
<ericx2x>
Sec on that. I've done multiple bundle installs because I'm trying to deploy.. let me see if there is any differences with the types of bundle installs I do
pskosinski has quit [Ping timeout: 240 seconds]
_antares_ has quit [Remote host closed the connection]
<ericx2x>
so in "vim vendor/bundle/ruby/2.3.0/gems/kgio-2.9.3/lib/kgio.rb" there is on line 21 "require 'kgio_ext'"
amelliaa has joined #ruby
mikecmpbll has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
<ericx2x>
I need to be more specific on this line Eiam? I don't even know what kgio_ext is or how to ensure it gets required
flips has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
<Eiam>
ericx2x: and what are your load paths? ruby -e 'puts $:'
caleBOT_ has quit [Remote host closed the connection]
caleBOT has quit [Remote host closed the connection]
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
nitric_ has joined #ruby
nitric has quit [Ping timeout: 256 seconds]
alex`` has joined #ruby
alex`` has quit [Read error: Connection reset by peer]
nima_m has quit [Quit: nima_m]
nima_m has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
apeiros has quit [Read error: Connection reset by peer]
kmurphy4 has joined #ruby
hinbody has joined #ruby
hinbody has left #ruby [#ruby]
GodFather has joined #ruby
alfiemax has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
RougeT430 has joined #ruby
nima_m has quit [Quit: nima_m]
noodle has joined #ruby
vondruch has joined #ruby
alex`` has joined #ruby
venmx has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
schneider has joined #ruby
kapil___ has joined #ruby
apeiros has joined #ruby
minimalism has joined #ruby
rgb-one has quit [Quit: Konversation terminated!]
keggsmurph21 has joined #ruby
kmurphy4 has quit [Quit: Leaving]
amar has joined #ruby
venmx has quit [Remote host closed the connection]
jamiejackson has quit [Ping timeout: 256 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
dionysus70 is now known as dionysus69
jenrzzz has joined #ruby
chocoelho has quit [Quit: Konversation terminated!]
chocoelho has joined #ruby
kirun has joined #ruby
tdy has quit [Ping timeout: 264 seconds]
tolerablyjake has joined #ruby
tolerablyjake has quit [Client Quit]
tolerablyjake has joined #ruby
<ericx2x>
Eiam, ... I just had to delete my bundle folder.. I'm an idiot hah
jamiejackson has joined #ruby
jcalla has quit [Quit: Leaving]
schleppel has quit [Quit: Konversation terminated!]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocoelho has quit [Quit: Konversation terminated!]
chocoelho_ has joined #ruby
ldnunes has quit [Quit: Leaving]
chocoelho has joined #ruby
chocoelho_ has quit [Read error: Connection reset by peer]
Dbugger has joined #ruby
synthroid has quit []
tolerablyjake has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
memo1 has joined #ruby
jenrzzz_ has joined #ruby
sidx64 has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
karapetyan has joined #ruby
Exagone313 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
caleBOT__ has joined #ruby
caleBO___ has joined #ruby
sameerynho has quit [Ping timeout: 248 seconds]
sidx64 has quit [Ping timeout: 256 seconds]
Mike11 has quit [Quit: Leaving.]
_antares_ has joined #ruby
caleBOT_ has quit [Ping timeout: 256 seconds]
caleBOT has quit [Ping timeout: 256 seconds]
Cavallari has quit [Quit: Cavallari]
chocoelho has quit [Read error: Connection reset by peer]
chocoelho_ has joined #ruby
* tolerablyjake
waves
coderphive has quit [Quit: coderphive]
<tolerablyjake>
I'm trying to write a regex that captures is a string starts with "the" and ends in "app"
<tolerablyjake>
I have this working: %r{^(?<the>the)?.*(?<app>(?<=app))?$}i
<tolerablyjake>
Does anyone here know a better way to do that? I'm not super great at this sort of thing
_antares_ has quit [Ping timeout: 268 seconds]
<apeiros>
tolerablyjake: why do you capture a look-ahead? it'll always be empty
<apeiros>
or actually a look-behind
<apeiros>
and your "the" and "app" parts are optional - why?
dinfuehr has quit [Ping timeout: 240 seconds]
<tolerablyjake>
apeiros cause I have no idea what i'm doing : ) . I'm trying to tell by the match data if either or matched, if the look behind matches I get an empty string, and I get nil if it doesn't
ramfjord has quit [Ping timeout: 256 seconds]
* tolerablyjake
getting more code to share
<apeiros>
you said "starts with 'the' ***AND*** ends in 'app'"
chocoelho_ has quit [Remote host closed the connection]
mtkd has quit []
<tolerablyjake>
apeiros sorry, my first question wasn't very clear. I want to know both. The gist has more code that hopefully gives a better idea what I'm shooting for
<apeiros>
title.sub(/\A(The )?/, 'The ').sub(/( app)?\z/, ' app')
ramfjord has quit [Ping timeout: 268 seconds]
kirun has quit [Quit: Konversation terminated!]
<apeiros>
throw in some //i flags if necessary
<tolerablyjake>
nice, I like that, a lot clearer. I had just learned about the ? after parens a minute ago
<tolerablyjake>
thanks!
<apeiros>
yw
<apeiros>
? are quantifiers which can be applied to anything. it's the same as {0,1}
<apeiros>
also notice that ^ is not begin of string, but begin of (any) line. \A is begin of string.
<apeiros>
same for $, it's end of line. \z is end of string.
dc1 has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
claw has quit [Ping timeout: 256 seconds]
claw has joined #ruby
cadillac_ has quit [Ping timeout: 248 seconds]
tdy has joined #ruby
<tolerablyjake>
nice, good to know
chocoelho has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
ramfjord has joined #ruby
ca7un has joined #ruby
chocoelho_ has joined #ruby
chocoelho has quit [Read error: Connection reset by peer]
<ericx2x>
I have nginx pointing to my rails folder in myapp/public but it won't display anything unless I place an index.html file in there... Is there supposed to be one in there?
mlkkk has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
<nickjj>
ericx2x, try adjusting your try_files to load your upstream before an index.html
<nickjj>
it follows the order you place them, so if your upstream doesn't match it will fallback to index.html -- which means if you don't supply your upstream, it won't even know to look for it
Guest62531 has quit [Quit: ZNC 1.6.5 - http://znc.in]
<ericx2x>
nicj thanks but i'm a little lost there.. I created index.html myself.
<ericx2x>
upstream meaning what? 'myapp/public'?
joro_ has quit [Remote host closed the connection]
<ericx2x>
ahh finally got it to work
ca7un has quit [Ping timeout: 256 seconds]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
elphe has joined #ruby
ericx2x has quit [Remote host closed the connection]
chocoelho_ has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
amar has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
laska has joined #ruby
Dbugger has quit [Remote host closed the connection]
clemens3 has quit [Ping timeout: 240 seconds]
amelliaa has quit [Quit: -]
<laska>
can someone recommend an extensive resource on functional programming in ruby for a novice?
ramfjord has quit [Ping timeout: 260 seconds]
laska has quit [Quit: leaving]
laska has joined #ruby
ramfjord has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocoelho_ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
coderphive has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Remote host closed the connection]
elphe has joined #ruby
n0m4d1c has quit [Ping timeout: 256 seconds]
cthulchu has quit [Ping timeout: 248 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
icarus has joined #ruby
n0m4d1c has joined #ruby
samosaphile has joined #ruby
coderphive has quit [Quit: coderphive]
tdy has quit [Ping timeout: 240 seconds]
samosaphile has quit [Client Quit]
marr has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
hays has joined #ruby
<hays>
are there release schedules for ruby
cschneid_ has quit [Ping timeout: 248 seconds]
<hays>
e.g. are there notional dates for 2.5.2 and 2.6?
<hays>
looks like maybe every 3 months for bugfix releases
<hays>
and maybe yearly for minor version bumps
<hays>
although interestingly the mid-year sems to get skipped a fair bit
ramfjord has joined #ruby
kapil___ has joined #ruby
<elomatreb>
A new ruby version gets released every Christmas, with bugfix releases as necessary
<hays>
just judging by the pattern, looks like minor releases happen in december typically, then there's a release in march and september (mostly)