DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jshjsh has quit [Ping timeout: 248 seconds]
gigetoo has quit [Ping timeout: 248 seconds]
rudisimo has quit [Remote host closed the connection]
__Yiota has joined #ruby
rudisimo has joined #ruby
gigetoo has joined #ruby
matp has quit [Remote host closed the connection]
matp has joined #ruby
nankyokusei has joined #ruby
SeepingN has joined #ruby
rudisimo has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChaosBringer has joined #ruby
ICantCook has joined #ruby
cdg_ has quit [Ping timeout: 255 seconds]
ICantCook has quit [Client Quit]
cdg has quit [Ping timeout: 252 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
KensoDev has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KensoDev has quit [Client Quit]
nankyokusei has joined #ruby
aep has quit [Ping timeout: 240 seconds]
boxrick1 has quit [Ping timeout: 240 seconds]
rudisimo has joined #ruby
rudisimo has quit [Client Quit]
nankyokusei has quit [Ping timeout: 240 seconds]
boxrick1 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 252 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
rikai has joined #ruby
xcyclist has joined #ruby
<xcyclist>
How do I make my ruby raise keep going up until caught or at the top?
aep has joined #ruby
gloscombe has quit [Quit: gloscombe]
saneax is now known as saneax-_-|AFK
JeanCarloMachado has joined #ruby
<SeepingN>
insuring each level has something to catch it
milardovich has joined #ruby
<SeepingN>
if you can't control that.... *shrug*
<xcyclist>
So there is nothing to just make a setting so that it goes up forever?
<xcyclist>
I can control anything I want, but I don't want piles of ugly relay code. Why is that necessary?
gusrub has quit [Remote host closed the connection]
nobitanobi has joined #ruby
<xcyclist>
Much easier just to exit.
ecuanaso has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
myk267 has quit [Quit: Uh oh!]
nobitanobi has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
<My_Hearing>
I'm not sure what you mean, if you have three methods, foo which calls bar which calls baz and an exception is raised inside baz when you have a begin/rescue/end inside foo, that rescue in foo will be used, you don't need one in bar too
<Radar>
?code xcyclist
<ruby[bot]>
xcyclist: We can't help you without your code, please post it to https://gist.github.com
<xcyclist>
I don't have code. I simply want to raise an exception that goes up forever to the end of the program.
<xcyclist>
Isn't that about the simplest question on the planet?
<Radar>
hahahahahaha
<Radar>
No.
<xcyclist>
Why does one need code to ask that?
<xcyclist>
Either you can do it or you cannot.
<Radar>
!mute xcyclist
<Radar>
Had about enough of that attitude tyvm. Cool off for 15 mins.
ocbtec has quit [Quit: leaving]
nankyokusei has quit [Ping timeout: 264 seconds]
xcyclist has quit [Quit: Page closed]
mim1k|work has quit [Ping timeout: 240 seconds]
<Radar>
If you have a problem with code, it's typically assumed that you can show some code for the problem you're asking about.
<Radar>
!unmute xyclist
<ruby[bot]>
Radar: I could not identify any mutes matching the nick "xyclist"
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
bmurt has joined #ruby
cyphase has quit [Ping timeout: 245 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
Tau has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 240 seconds]
whathappens has quit [Remote host closed the connection]
gigetoo has joined #ruby
cyphase has joined #ruby
FrostyBytes has joined #ruby
<FrostyBytes>
greetings ruby afficionados. I want to start a process without a subshell. That is, I want the ruby process to directly be the parent of the launched process, without a shell in the sandwich. how to do this?
<SeepingN>
exec?
nankyokusei has quit [Ping timeout: 245 seconds]
<FrostyBytes>
well exec would overlap the current process, so I need at least fork+exec
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mahpoul22 has joined #ruby
Definity has quit [Ping timeout: 260 seconds]
BTRE has quit [Quit: Leaving]
cdg has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
Pupeno has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
gigetoo has joined #ruby
xen0fon has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Pupeno has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
xen0fon has quit [Client Quit]
JeanCarloMachado has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
matthewd has quit [Ping timeout: 240 seconds]
csplugins has joined #ruby
milardovich has joined #ruby
<csplugins>
Hello. date = Time.new date = date.year.to_s + "-" + date.month.to_s + "-" date.day.to_s I am using this to name a file. My problem is I want Jan 9, 2017 to display as 2017-01-09 but it is saving as 2017-1-9. How can I resolve this?
koldbrutality has quit [Remote host closed the connection]
whathappens has quit [Quit: Leaving...]
genpaku has quit [Remote host closed the connection]
cibs has joined #ruby
raspado has quit [Remote host closed the connection]
sniffer has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 245 seconds]
arescorpio has joined #ruby
gigetoo has joined #ruby
e1z0_ has joined #ruby
devon21 has joined #ruby
sniffer has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
UserJosh has quit [Ping timeout: 256 seconds]
howdoi has joined #ruby
etehtsea has joined #ruby
pilne has quit [Quit: Quitting!]
tref has quit [Quit: tref]
duderonomy has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 252 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
msmith has quit [Remote host closed the connection]
msmith has joined #ruby
gigetoo has joined #ruby
msmith has quit [Remote host closed the connection]
msmith has joined #ruby
msmith has quit [Remote host closed the connection]
nankyokusei has joined #ruby
harai has quit [Ping timeout: 245 seconds]
tectonic has quit []
djbkd_ has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
gigetoo has joined #ruby
bkxd has joined #ruby
devon21 has quit [Quit: devon21]
milardovich has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 245 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
Devalo has joined #ruby
LiquidInsect has quit [Read error: Connection reset by peer]
aryaching has quit [Ping timeout: 245 seconds]
LiquidInsect has joined #ruby
tristanp has joined #ruby
harai has joined #ruby
Devalo has quit [Ping timeout: 276 seconds]
enterprisey has joined #ruby
redhedded1 has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
xall_ has joined #ruby
aryaching has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
ecuanaso has joined #ruby
iloveamerica1 has quit [Quit: Page closed]
Rufus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
nanoz has quit [Ping timeout: 245 seconds]
JoshS has joined #ruby
Bluebell_ has left #ruby [#ruby]
dopamean1 has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 256 seconds]
DoctorMonocular has joined #ruby
gigetoo has joined #ruby
nobitanobi has joined #ruby
dopamean1 has quit [Client Quit]
<DoctorMonocular>
I'm having an issue with Rubymine where it won't run my rails app, saying [No Rails Found in SDK], but rails is totally there and works from the terminal for the same project. I see stuff on google going back to 2009, but nothing that fixes it or applies to the latest rubymine. Does anyone know what the issue might be?
<chaos95>
DoctorMonocular: you could try #idea-users also
<DoctorMonocular>
oh nice, I didn't know aboutthat channel
harai has quit [Ping timeout: 264 seconds]
msmith has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
last_staff has joined #ruby
Puffball has quit [Remote host closed the connection]
bjpenn has joined #ruby
__Yiota has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
gix has quit [Ping timeout: 260 seconds]
<FrostyBytes>
what's the fastest way to create a string of X bytes?
<FrostyBytes>
I know "".rjust(X) works but is that fast?
<baweaver>
FrostyBytes: you can look at the C code for it
<baweaver>
though I think by that point you're being pedantic about it
bkxd has joined #ruby
gix has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
bkxd has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
cdg has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 260 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
xall_ has joined #ruby
Cohedrin_ has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brybeecher_ has quit [Remote host closed the connection]
ifctj has joined #ruby
tildes has joined #ruby
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #ruby
Puffball has quit [Remote host closed the connection]
brent__ has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
<Radar>
gry: try `bundle exec jekyll build ...`
djbkd_ has joined #ruby
depesz has joined #ruby
ifctj has quit [Ping timeout: 276 seconds]
saneax-_-|AFK is now known as saneax
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
ur5us has quit [Remote host closed the connection]
sdothum has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
ur5us has joined #ruby
harai has joined #ruby
grh has quit [Ping timeout: 240 seconds]
unshadow has quit [Ping timeout: 245 seconds]
agent_white has quit [Quit: night]
ifctj has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Makorak has joined #ruby
bjpenn has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 264 seconds]
Makorak has quit [Client Quit]
bkxd has quit [Ping timeout: 240 seconds]
Kug3lis_off is now known as Kug3lis
gigetoo has joined #ruby
ech011 has joined #ruby
JoshS has joined #ruby
JeanCarloMachado has joined #ruby
djbkd_ has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 245 seconds]
gigetoo has quit [Ping timeout: 245 seconds]
Kug3lis is now known as Kug3lis_off
gigetoo has joined #ruby
msmith has joined #ruby
bjpenn has joined #ruby
Axy has joined #ruby
Azulinho has quit [Ping timeout: 276 seconds]
ifctj has quit [Ping timeout: 264 seconds]
Azulinho has joined #ruby
aganov has joined #ruby
Mia has quit [Ping timeout: 264 seconds]
davezd has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
coldfront has joined #ruby
Axy has quit [Ping timeout: 248 seconds]
ech011 has quit []
anisha has joined #ruby
andremaha has joined #ruby
ur5us has quit [Remote host closed the connection]
FrostyBytes has quit [Quit: Page closed]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
tdy has joined #ruby
Mia has joined #ruby
[dmp] has quit [Quit: WeeChat 1.3]
Puffball has joined #ruby
ifctj has joined #ruby
andremaha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[dmp] has joined #ruby
patarr has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
gigetoo has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harfangk has joined #ruby
Puffball has quit [Remote host closed the connection]
conta has joined #ruby
grh has joined #ruby
nankyokusei has joined #ruby
vuoto has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
msmith has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
dionysus69 has joined #ruby
zamuro has joined #ruby
youch has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
nofxxx has joined #ruby
nankyokusei has quit [Ping timeout: 264 seconds]
ifctj has quit [Ping timeout: 240 seconds]
<zamuro>
Hello, guys... Let's say I've got two ActiveRecord models (A and B) and I'd like to pass a verification in model C that checks if there's A.id and B.id are in a given record. Do I pass a query on model and throw a conditional into the controller?
nofxx has quit [Ping timeout: 248 seconds]
blaxter has joined #ruby
SesMan has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
ur5us has quit [Remote host closed the connection]
bkxd has joined #ruby
gigetoo has joined #ruby
kassav has joined #ruby
Snickers has joined #ruby
xen0fon has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
blaxter has quit [Quit: foo]
ta has joined #ruby
frozengeek___ has joined #ruby
andikr has joined #ruby
Devalo has joined #ruby
csk157_ has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
larcara has joined #ruby
TomyWork has joined #ruby
gigetoo has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
unshadow has joined #ruby
frozengeek___ has quit [Quit: frozengeek___]
ur5us has joined #ruby
lxsameer has joined #ruby
charliesome has joined #ruby
mark_66 has joined #ruby
Ishido has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
last_staff has joined #ruby
<manveru>
?ror zamuro
<ruby[bot]>
zamuro: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
antgel has joined #ruby
nofxxx has quit [Ping timeout: 264 seconds]
asperon has joined #ruby
asperon has left #ruby [#ruby]
gettup has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
cstrahan has quit [Quit: Connection closed for inactivity]
Pupeno has quit [Remote host closed the connection]
gigetoo has quit [Read error: Connection reset by peer]
xall_ has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
jshjsh has joined #ruby
aupadhye has joined #ruby
blaxter has joined #ruby
nobitanobi has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
andremaha has joined #ruby
j3r0 has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
lxsameer has joined #ruby
Mia has quit [Read error: Connection reset by peer]
UserJosh has joined #ruby
stoffus has joined #ruby
gigetoo has joined #ruby
ddffg has joined #ruby
Mia has joined #ruby
frozengeek___ has joined #ruby
jshjsh has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
jackjackdripper has joined #ruby
UserJosh is now known as JoshS
toretore has joined #ruby
nettoweb has joined #ruby
duper has quit [Read error: Connection reset by peer]
duper has joined #ruby
gigetoo has quit [Ping timeout: 258 seconds]
frozengeek___ has quit [Quit: frozengeek___]
jfxonq has joined #ruby
bkxd has joined #ruby
gigetoo has joined #ruby
ecuanaso has joined #ruby
hutch34 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
ocbtec has joined #ruby
mikecmpbll has joined #ruby
andremaha has quit [Ping timeout: 245 seconds]
hutch34 has quit [Ping timeout: 276 seconds]
xall has joined #ruby
Silthias has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
Silthias1 has quit [Ping timeout: 240 seconds]
jsrn_ has joined #ruby
gigetoo has joined #ruby
ur5us has quit [Remote host closed the connection]
harai has quit [Ping timeout: 252 seconds]
flying has joined #ruby
harai has joined #ruby
kassav has quit [Read error: No route to host]
ledestin has joined #ruby
kassav_ has joined #ruby
kassav_ is now known as kassav
ReK2 has quit [Ping timeout: 264 seconds]
jaruga_____ has joined #ruby
jaruga_____ is now known as jaruga______
jaruga______ has quit [Client Quit]
jaruga_____ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jaruga_____ is now known as jaruga______
jaruga______ has quit [Client Quit]
jaruga_____ has joined #ruby
mim1k|work has joined #ruby
jaruga_____ is now known as jaruga______
pandaant has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
Mortomes|Work has joined #ruby
bjpenn has quit [Ping timeout: 248 seconds]
Trynemjoel has joined #ruby
matthewd has quit [Ping timeout: 252 seconds]
montanonic has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
matthewd has joined #ruby
ferr1 has joined #ruby
gigetoo has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
teclator has quit [Ping timeout: 248 seconds]
Fernando-Basso has joined #ruby
DoubleMalt has joined #ruby
<MadWasp>
How would I version a gem that is an extension of another gem and always depends on a specific version of that one?
helpa has quit [Remote host closed the connection]
helpa-bot has joined #ruby
<apeiros>
MadWasp: probably lockstep versioning
Beams has joined #ruby
<apeiros>
(same version as the gem it depends on)
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
helpa-bot has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
helpa has joined #ruby
<MadWasp>
but then i couldn’t introduce breaking changes into my own gem
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
<MadWasp>
or well i couldn’t signal it by changing the version
andremaha has joined #ruby
msmith has joined #ruby
m4rCsi_ has joined #ruby
kassav has quit [Quit: kassav]
gigetoo has joined #ruby
kassav has joined #ruby
nankyokusei has joined #ruby
<andremaha>
Anyone knows any good scraper gem? Something like phatnom.js
unshadow has quit [Ping timeout: 240 seconds]
youch has joined #ruby
kassav has quit [Remote host closed the connection]
frmendes has joined #ruby
kassav__ has joined #ruby
kassav__ is now known as kassav_
<blackbombay>
andremaha: what do you want to do?
nankyokusei has quit [Ping timeout: 255 seconds]
<andremaha>
I want to take a web page load the contents and then go though it - and extract some of it. For instance: h1#title
<MadWasp>
apeiros: any other idea?
<andremaha>
Great would be a ajax support - for the parts of the page that are loading asynchronously
youch has quit [Ping timeout: 248 seconds]
<apeiros>
MadWasp: not really. maybe <your-version>-<dependentgem-version> and have a proper gemspec. not sure where that could lead to problems, though.
<MadWasp>
i guess you can’t use ~> or => anymore then
<apeiros>
andremaha: phantomjs exists for ruby. I'd use capybara as the driver. it's like a DBI layer but for browsers.
<apeiros>
MadWasp: that should still work if your gemspec fits
<apeiros>
it'll select the highest version which satisfies the conditions
neuraload has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
<andremaha>
Ok, so capybara + poltergeist + running phantomjs intance.
<andremaha>
Got you. Thanks. Will try that.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
Burgestrand has joined #ruby
charliesome has joined #ruby
bkxd has joined #ruby
aswen has joined #ruby
Puffball has joined #ruby
omphe has joined #ruby
Burgestrand has quit [Client Quit]
UnknownSoldier has joined #ruby
Burgestrand has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
workmad3 has joined #ruby
UnknownSoldier is now known as tau
gigetoo has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
gigetoo has joined #ruby
Puffball has quit [Remote host closed the connection]
Devalo has joined #ruby
aswen has quit [Quit: WeeChat 1.5]
Puffball has joined #ruby
harai has quit [Ping timeout: 258 seconds]
elaptics has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
<A124>
Is there a better short way to check if number is in array, or if not array, they are equal then this?:
Fernando-Basso has quit [Quit: WeeChat 1.5]
<A124>
[object].flatten.include?
Fernando-Basso has joined #ruby
msmith has quit [Ping timeout: 255 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
frozengeek___ has joined #ruby
<apeiros>
that's horrible. why do you have once an array and once a number?
<apeiros>
note that flatten will kill nested arrays.
<A124>
Yeah, do not need nested arrays.
<A124>
Just... for people writing config that put one element or multiple.
<A124>
To handle that case.
despai has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
Pumukel has joined #ruby
JeanCarloMachado has joined #ruby
<herwin>
Array(object).include? would be a bit cleaner
<herwin>
until object is a nil
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeyraof has quit [Quit: This computer has gone to sleep]
psychicist__ has joined #ruby
psychicist__ has quit [Client Quit]
aganov has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
sepp2k has joined #ruby
kassav_ has quit [Quit: kassav_]
kassav__ has joined #ruby
banisterfiend has joined #ruby
kassav__ is now known as kassav_
alibby1 has joined #ruby
alibby has quit [Read error: Connection reset by peer]
Pupeno has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
DoubleMalt has joined #ruby
meinside has joined #ruby
gigetoo has joined #ruby
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
Kug3lis_off is now known as Kug3lis
jshjsh has joined #ruby
JoshS has quit [Disconnected by services]
jshjsh is now known as JoshS
coldfront has quit []
psychicist__ has joined #ruby
Kug3lis is now known as Kug3lis_off
flyingX has joined #ruby
larcara has quit [Remote host closed the connection]
larcara has joined #ruby
pandaant has quit [Remote host closed the connection]
flying has quit [Ping timeout: 255 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
bjpenn has joined #ruby
gigetoo has joined #ruby
Ishido has quit [Remote host closed the connection]
larcara has quit [Ping timeout: 240 seconds]
andremaha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
andremaha has joined #ruby
andremaha has quit [Client Quit]
bjpenn has quit [Ping timeout: 252 seconds]
Julianee has joined #ruby
bkxd has joined #ruby
Julianee has quit [Client Quit]
patarr has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
eggshke has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
Ishido has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
simmibadhan has joined #ruby
jshjsh has joined #ruby
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Ping timeout: 276 seconds]
simmibadhan is now known as simmi
omphe has joined #ruby
simmi is now known as simmib
JoshS has quit [Ping timeout: 240 seconds]
frmendes has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
xall has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
c355e3b has joined #ruby
Otterfox has joined #ruby
xall has joined #ruby
Vingador has joined #ruby
Vingador has quit [Remote host closed the connection]
gregf_ has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
meshsmith has joined #ruby
lele has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
Silthias1 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Ishido has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 255 seconds]
aganov has joined #ruby
slackbotgz has joined #ruby
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lenwood has quit [Ping timeout: 252 seconds]
jackjackdripper has quit [Quit: Leaving.]
omphe has joined #ruby
omphe has quit [Client Quit]
gigetoo has quit [Ping timeout: 255 seconds]
larcara has joined #ruby
gigetoo has joined #ruby
Sammichmaker has quit [Ping timeout: 255 seconds]
senayar has joined #ruby
lele has joined #ruby
nankyokusei has joined #ruby
genpaku has joined #ruby
Puffball has quit [Remote host closed the connection]
gigetoo has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
gigetoo has joined #ruby
teclator has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
cgibsonmm has joined #ruby
omphe has joined #ruby
<gry>
Hello?
omphe has quit [Client Quit]
dionysus70 is now known as dionysus69
<gry>
http://dpaste.com/35CPNX1.txt I do not get why it refuses to see, I already installed this gem just one command away
Pumukel has quit [Remote host closed the connection]
<gry>
Please, it's EU morning, I would suggest someone to peek in :)
<gry>
(I'm in the unfortunate UTC+11 tz -- meaning I miss out on the wonderful 'day' and keep asking questions at 'night', and end up asking in void most of the time)
slackbotgz has quit [Remote host closed the connection]
ledestin has joined #ruby
<cgibsonmm>
NOTICE <gry> whats question
bkxd has quit [Ping timeout: 258 seconds]
CloCkWeRX has quit [Quit: Leaving.]
psychicist__ has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
blackbom1 has joined #ruby
ImUs3r has joined #ruby
<Mon_Ouie>
Is the gem in your Gemfile? Bundler only allows you to activate gems that have been configured for this project, not those you have installed globally
machinewar has joined #ruby
<cgibsonmm>
gry: Whats question
<machinewar>
any way to add to a URI, so initialized with URI("http://www.myapp.com") but then send requests to various endpoints?
<gry>
i already added /home/private/.gem/ruby/2.3/bin to $PATH
<gry>
so what can i do from there
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackbombay has quit [Ping timeout: 252 seconds]
<gry>
'gem install jekyll-gettext-plugin' - '1 gem installed' - jekyll build --destination /home/public/ -> Yikes! It looks like you don't have jekyll-gettext-plugin or one of its dependencies installed
msmith has joined #ruby
<gry>
it's like 'A, but no A for you'
ledestin has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 264 seconds]
<gry>
i don't know where it is looking
<Mon_Ouie>
I don't think gem install does anything for bundler, I think it's 'bundle update' or 'bundle install'
gregf_ has quit [Ping timeout: 260 seconds]
<blackbom1>
Mon_Ouie: youre right.
<gry>
bundle install jekyll-gettext-plugin
<gry>
ERROR: "bundle install" was called with arguments ["jekyll-gettext-plugin"]
<gry>
Usage: "bundle install [OPTIONS]"
<Mon_Ouie>
Just "bundle install", no arguments
<Mon_Ouie>
Should install all the dependencies specified in the Gemfile
omphe has joined #ruby
gigetoo has joined #ruby
jessiepuls has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gry>
(i put the gettext into the plugins loop in Gemfile, and the error message is less readable now)
Definity has joined #ruby
meshsmith_ has joined #ruby
<Mon_Ouie>
Now pry is the gem that's missing from the Gemfile it looks like
<A124>
Is there a way to set private method public?
<A124>
private_class_method probably. hm.
meshsmith_ has quit [Remote host closed the connection]
larcara has quit [Ping timeout: 258 seconds]
<Mon_Ouie>
Yes, by calling Class#public… why though?
cgibsonmm has quit []
meshsmith has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 258 seconds]
omphe has joined #ruby
<gry>
Mon_Ouie, I installed pry. It is back to the generic ''cannot load such file -- jekyll-gettext-plugin''. How do I know which dependency it needs?
howdoi has quit [Quit: Connection closed for inactivity]
<aep>
where do i get net/imap from?
<aep>
doesnt appear to be a gem or something
gigetoo has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
<blackbom1>
stdlib?
cdg has joined #ruby
ImUs3r has quit [Ping timeout: 240 seconds]
gettup has quit [Ping timeout: 248 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
jeffreylevesque has quit [Ping timeout: 255 seconds]
ImUs3r has joined #ruby
squ has quit [Remote host closed the connection]
raspado has joined #ruby
bkxd has joined #ruby
kassav_ has quit [Quit: kassav_]
gigetoo has quit [Ping timeout: 260 seconds]
kassav__ has joined #ruby
kassav__ is now known as kassav_
gigetoo has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.7]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Otterfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saneax is now known as saneax-_-|AFK
psychicist__ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
raspado has quit [Quit: Leaving...]
raspado has joined #ruby
raspado has quit [Client Quit]
amagawdd has joined #ruby
tlahtoani has joined #ruby
<banisterfiend>
3
gigetoo has quit [Ping timeout: 264 seconds]
<apeiros>
2
<Mon_Ouie>
1
gigetoo has joined #ruby
<apeiros>
0
<apeiros>
🎉
rwb has joined #ruby
<apeiros>
🎉🎉🎉
psychicist__ has quit [Ping timeout: 255 seconds]
msmith has joined #ruby
bungoman_ has joined #ruby
nankyokusei has joined #ruby
simmib has quit [Remote host closed the connection]
loechel has joined #ruby
simmib has joined #ruby
simmib has quit [Remote host closed the connection]
bungoman has quit [Ping timeout: 255 seconds]
DoubleMalt has quit [Ping timeout: 264 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
warrshrike has joined #ruby
<warrshrike>
hey
nankyokusei has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
msmith has quit [Ping timeout: 255 seconds]
larcara has quit [Remote host closed the connection]
larcara has joined #ruby
<warrshrike>
im trying to match phone numbers with this regex
<warrshrike>
(?:\+?|\b)[0-9|-]{11}\b
jessiepuls has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
machinewar has quit []
<warrshrike>
how can i make it work even if there is space i.e. 0925 585855
gigetoo has joined #ruby
<warrshrike>
and how can i make it work for variable lengths
<toretore>
firstly, define exactly what it is you're trying to match
<apeiros>
{min,max} is the quantifier notation for variable lengths
<toretore>
we can't infer that from a regex that doesn't match
<apeiros>
but you'll probably find that matching phone numbers will be quickly quite difficult with a regex. there are gems which probably do a better job.
gigetoo has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
gigetoo has joined #ruby
OMSQ has joined #ruby
<havenwood>
brodul: Nokogiri isn't related to images but issues with it's deps on libxml2 and libxslt are notorious and it's interesting to look at how they've handled them.
andremaha has quit [Read error: Connection reset by peer]
AKPWD has quit [Ping timeout: 255 seconds]
AKPWD has joined #ruby
tomphp has joined #ruby
ur5us has joined #ruby
cdg has joined #ruby
yehowyada has quit [Ping timeout: 240 seconds]
yehowyada has joined #ruby
tomphp has quit [Client Quit]
malconis has quit [Read error: Connection reset by peer]
Pupeno has quit [Remote host closed the connection]
tomphp has joined #ruby
hahuang61 has joined #ruby
maddmaxx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
yehowyada has quit [Client Quit]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
gigetoo has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
renchan has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
anjen has joined #ruby
Devalo has joined #ruby
snath has left #ruby ["Leaving"]
tristanp has joined #ruby
moei has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
mas8899 has joined #ruby
<mas8899>
Trying to iterate a query.execute for a prepared statement will print "<SQLite3::ResultSet:0x0055bdd8df8090>" Instead of the actual result. any help?
<mas8899>
just iterated again inside the result set.
* baweaver
looks at `derpy with a sparkle in his eye and a dark grin
<baweaver>
&ri SQLite3::ResultSet
<`derpy>
No results
Otterfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Otterfox has joined #ruby
Otterfox has quit [Client Quit]
ramfjord has joined #ruby
kht has quit [Ping timeout: 276 seconds]
lanc has joined #ruby
GinoManWrx has quit [Quit: Leaving]
chridal has left #ruby ["WeeChat 1.5-dev"]
anjen has quit [Quit: anjen]
Snickers has quit [Quit: Snickers]
bkxd has joined #ruby
lenwood has quit [Ping timeout: 255 seconds]
lanc has quit [Remote host closed the connection]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
ivanskie has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
rmandev has quit [Quit: WeeChat 1.4]
bkxd has quit [Ping timeout: 248 seconds]
Jamdaman has quit [Quit: Ex-Chat]
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has joined #ruby
JoshS has joined #ruby
tildes has quit [Ping timeout: 252 seconds]
govg has quit [Ping timeout: 240 seconds]
ivanskie has quit [Ping timeout: 264 seconds]
ab-rex has joined #ruby
Snickers has joined #ruby
jdawgaz has joined #ruby
xen0fon has quit [Remote host closed the connection]
Pumukel has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
gigetoo has joined #ruby
marxarelli has joined #ruby
rwb has joined #ruby
harai has quit [Ping timeout: 240 seconds]
charnel has quit [Remote host closed the connection]
ramortegui has quit [Remote host closed the connection]
kht has joined #ruby
bmurt has joined #ruby
tlahtoani has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
tdump has joined #ruby
gigetoo has joined #ruby
mas8899 has quit [Remote host closed the connection]
nobitanobi has joined #ruby
bmurt has quit [Ping timeout: 252 seconds]
Cohedrin_ has joined #ruby
<tdump>
hey when passing an operator to inject/reduce is the ampersand necessary? The code I wrote works either way, but what is the correct/preferred syntax? e.g. arr.reduce(:+) or arr.reduce(&:+)
<tdump>
also, am I correct in that if I wanted to apply conditionals to reduce I'd have to make a code block and declare a variable?
DroidBurgundy has quit [Remote host closed the connection]
ivanskie has joined #ruby
DroidBurgundy has joined #ruby
<tdump>
like only add even numbers, or is that something that I would use an each loop for? Ruby has a lot of iterators
<Papierkorb>
tdump: The ampersand is not "necessary", but that's because #reduce is coded to accept both. The non-ampersand version is told to be a tad faster, so I use it over the block version
<Papierkorb>
tdump: I'd #select those values first I'm interested in and then #reduce
saneax-_-|AFK is now known as saneax
Cohedrin_ has quit [Client Quit]
<tdump>
Papierkorb Thanks! I'll ommit the ampersand. #select, is that ruby's version of filter?
<Papierkorb>
tdump: I think other languages and libraries call it #filter, yes
<tdump>
Papierkorb Thanks again bud. That was very helpful.
<Papierkorb>
cheers
nobitanobi has quit [Ping timeout: 264 seconds]
DroidBurgundy has quit [Ping timeout: 245 seconds]
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has joined #ruby
SeepingN has joined #ruby
msmith has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
ivanskie has left #ruby ["Closing Window"]
ivanskie has joined #ruby
gigetoo has quit [Ping timeout: 256 seconds]
gigetoo has joined #ruby
kht has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]