<zenspider>
I hate that "api" now means "http stuff"...
<tofutoon>
havenwood: That only works for Rack apps. I'm looking for tools that can test apis written in any language. In other words, testing by doing the equivalent of making curl requests and analyzing the responses.
triangles2 has joined #ruby
<tofutoon>
havenwood: 'framework-independent api' was probably misleading... I meant an api written in any language.
optiz0r has quit [Ping timeout: 246 seconds]
zapata has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
OTORelic4 has quit [Ping timeout: 268 seconds]
triangles has quit [Ping timeout: 268 seconds]
<tofutoon>
zenspider: What term would you prefer for http apis?
libastral has quit [Ping timeout: 250 seconds]
OTORelic4 has joined #ruby
aryaching_ has joined #ruby
Asher has quit [Ping timeout: 244 seconds]
Asher has joined #ruby
aryaching has quit [Ping timeout: 258 seconds]
A_Drone has quit [Remote host closed the connection]
libastral has joined #ruby
A_Drone has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
montanonic has joined #ruby
armyriad has quit [Quit: Leaving]
armyriad has joined #ruby
SteenJobs has joined #ruby
zapata has joined #ruby
LoneHermit has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Coldblackice has quit [Ping timeout: 246 seconds]
yeticry has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
hahuang62 has quit [Ping timeout: 258 seconds]
SteenJobs has quit [Quit: peaceee]
LoneHerm_ has joined #ruby
bradleyprice has joined #ruby
ascarter has joined #ruby
gbgdev_ has joined #ruby
yeticry has joined #ruby
bradleyprice has quit [Ping timeout: 258 seconds]
gbgdev has quit [Ping timeout: 250 seconds]
<z64>
probbably that you just be more specific lol - "http api", or "REST api".. etc.
aryaching has joined #ruby
aryaching_ has quit [Ping timeout: 264 seconds]
montanonic has quit [Ping timeout: 240 seconds]
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver_away is now known as baweaver
dmarr has quit [Remote host closed the connection]
bradleyprice has joined #ruby
hanmac has quit [Ping timeout: 245 seconds]
StoBrendo has quit [Ping timeout: 245 seconds]
mscs has joined #ruby
SpiffTR has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SpiffTR has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 250 seconds]
ascarter has joined #ruby
boon_ has joined #ruby
beilabs has joined #ruby
ryan_notabot has quit [Remote host closed the connection]
hanmac has joined #ruby
z64 has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
arescorpio has quit [Quit: Leaving.]
LoneHerm_ has joined #ruby
OTORelic4 has quit [Ping timeout: 258 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
osieln has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
hutch34 has joined #ruby
roger_rabbit has quit [Ping timeout: 246 seconds]
matp has quit [Remote host closed the connection]
A_Drone has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 250 seconds]
matp has joined #ruby
A_Drone has joined #ruby
ReK2 has quit [Remote host closed the connection]
ReK2 has joined #ruby
bturker has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
A_Drone has quit [Ping timeout: 258 seconds]
yeticry has quit [Read error: Connection reset by peer]
triangles2 has quit [Quit: Leaving]
antoniobeyah has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
yeticry has joined #ruby
chouhoulis has joined #ruby
hahuang62 has joined #ruby
jphase has joined #ruby
saneax-_-|AFK is now known as saneax
optiz0r has joined #ruby
<hays>
anyone messed with serial comms? looks like there is a gem.. i wonder how hard it would be to replace minicom with a ruby script
chouhoulis has quit [Ping timeout: 250 seconds]
harai_ has joined #ruby
nankyokusei has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
pawnbox has quit [Remote host closed the connection]
gusrub has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 268 seconds]
iMadper has joined #ruby
ascarter has joined #ruby
SpiffTR has joined #ruby
pawnbox has joined #ruby
nadir is now known as comradenadir
SpiffTR has quit [Ping timeout: 265 seconds]
comradenadir is now known as nadir
pawnbox has quit [Remote host closed the connection]
kies has quit [Ping timeout: 250 seconds]
gusrub has joined #ruby
madsa_ has quit [Ping timeout: 250 seconds]
madsa has joined #ruby
charliesome has joined #ruby
pawnbox has joined #ruby
reverberations has quit [Ping timeout: 268 seconds]
hahuang62 has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 258 seconds]
aryaching has joined #ruby
_sfiguser has quit [Remote host closed the connection]
voucher has joined #ruby
kies has joined #ruby
gix has joined #ruby
voucher has quit [Client Quit]
jtdoncas_ has quit [Quit: WeeChat 1.5]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
jphase has quit []
jphase has joined #ruby
sp4rrow_ has quit [Quit: The Internet needs a break and I need a cookie]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
beilabs has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
pawnbox has quit [Remote host closed the connection]
SpiffTR has joined #ruby
aryaching has quit [Ping timeout: 258 seconds]
beilabs has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
beilabs has quit [Read error: No route to host]
beilabs has joined #ruby
SpiffTR has quit [Ping timeout: 258 seconds]
axisys has quit [Quit: leaving]
axisys has joined #ruby
A_Drone has joined #ruby
Rutix has quit []
preyalone has joined #ruby
aryaching has joined #ruby
hahuang62 has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
pawnbox has joined #ruby
charliesome has joined #ruby
sharms has quit [Ping timeout: 250 seconds]
chopin has joined #ruby
mooe has joined #ruby
ta_ has quit [Remote host closed the connection]
bturker has joined #ruby
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
johnny56_ has quit [Ping timeout: 246 seconds]
bturker has quit [Ping timeout: 256 seconds]
jaguarmagenta has quit [Remote host closed the connection]
brent__ has quit [Quit: Connection closed for inactivity]
blackwind_123 has quit [Ping timeout: 250 seconds]
johnny56_ has joined #ruby
jaguarmagenta has joined #ruby
tofutoon has left #ruby [#ruby]
chopin has quit [Ping timeout: 248 seconds]
blackwind_123 has joined #ruby
hahuang62 has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
charliesome has joined #ruby
pawnbox has quit [Remote host closed the connection]
preyalone has quit [Quit: Connection closed for inactivity]
biberu has joined #ruby
hutch34 has quit [Ping timeout: 248 seconds]
bturker has joined #ruby
frozengeek____ has quit [Quit: frozengeek____]
harai_ has quit [Ping timeout: 250 seconds]
vondruch_ has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
Ropeney has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
SesMan has joined #ruby
dionysus69 has joined #ruby
mark_66 has joined #ruby
claudiuinberlin has joined #ruby
gbgdev_ has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
graywolf has joined #ruby
<graywolf>
Greetings :) I've found XMLRPC::Server class, looks cool and simple to use, but how can I add authentification to such a think? Just want to add password/username to it.. documentation mentions password/username for XMLRPC::Client, but not for server. It's just not possible or did I miss something?
<zenspider>
I would think that usually you'd set up auth on a regular web server and have this server behind it
aufi has joined #ruby
nankyokusei has joined #ruby
<graywolf>
hm, sounds like a pita.. I guess I just get by without auth all togerther
<graywolf>
thanks anyway :)
nankyokusei has quit [Ping timeout: 245 seconds]
SpiffTR has quit [Quit: Leaving.]
QoQOoO has joined #ruby
aupadhye has joined #ruby
r3vDev has joined #ruby
vondruch_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
astrobunny has quit [Remote host closed the connection]
cocomo has joined #ruby
<cocomo>
ruby has an absolute garbage package management system, i am trying to run a program written in this hipster language and its like i need to take a course on Ruby
<zenspider>
cocomo: thanks for sharing! wow!
codfection has joined #ruby
<zenspider>
cocomo: did you want to figure out your problem or did you just want to rant?
astrobunny has joined #ruby
frozengeek____ has joined #ruby
<cocomo>
when i run jekyll serv it tells me that I am using wrong package version... well i didn't install that damn package ruby did. its not my fault.
<cocomo>
i am trying to run github pages website offline
Humdai has joined #ruby
<zenspider>
I doubt it said package...
<zenspider>
what did the error actually say?
OS-18137 has left #ruby [#ruby]
<cocomo>
"you have already activated colorator 1.1.0, but your Gemfile require colorator 0.1. Prepending `bundle exec` to your command may solve this."
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider>
how are you running it?
<cocomo>
i did that bundle exec jekyll serv and it says `fatal: 'jekyll serv' could not be found. You may need to install the jekyll-serv gem or a related gem to abe able to use this subcommand'
<zenspider>
different problem entirely... almost like it has nothing to do with versions
<dminuoso>
TomyWork: What warmup are we talking about?
<zenspider>
I'd suggest you use the benchmark-ips gem instead
<dminuoso>
^- listen to zenspider
GodFather has joined #ruby
<zenspider>
neither will tell you steps taken. that can usually be reasoned by learning what regexps are and what they do under the hood, basic shape at least... until then, benchmark-ips is really easy
SpiffTR has quit [Quit: Leaving.]
<zenspider>
TomyWork: how bad is the regexp?
Dimik has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 265 seconds]
unshadow has joined #ruby
Olipro has joined #ruby
<TomyWork>
zenspider well i have an existing regex, it shouldn't backtrack more than one character
tsunamie has quit [Ping timeout: 256 seconds]
<TomyWork>
so not too bad
<TomyWork>
but i want to add a negative lookahead part to it
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
<TomyWork>
right now it's like blahblah[[:space:]]*.*?[[:space:]]* and i want to make sure that .* part doesnt contain a certain string, so i want to change it to blahblah[[:space:]]*(?!.*?a certain string).*?[[:space:]]*
djbkd has quit [Remote host closed the connection]
AustinMatherne has quit [Ping timeout: 250 seconds]
<manveru>
require may lead to included modules, but so may any eval
AustinMatherne has joined #ruby
djellemah has quit [Remote host closed the connection]
<dminuoso>
yaw: Yess there is, you just dump code inside the file.
Emmanuel_Chanel has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<dminuoso>
yaw: All require does is execute code, which means "do something when xxx has been required" is solved by just writing code in xxx.
platzhirsch has quit [Quit: WeeChat 1.4]
claudiuinberlin has quit [Ping timeout: 258 seconds]
cyclonis_ has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blackbom1 has joined #ruby
<yaw>
ok. thanks dminuoso and manveru :D
symm- has quit [Ping timeout: 256 seconds]
d0lph1n98 has quit [Quit: leaving]
cyclonis has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
colstrom has quit []
colstrom has joined #ruby
nadir has joined #ruby
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Iacobus__ has quit []
Iacobus__ has joined #ruby
djellemah has joined #ruby
maattdd has joined #ruby
vayan has quit []
kuSuSE has joined #ruby
vayan has joined #ruby
aaronwed1 has quit [Ping timeout: 258 seconds]
esc4rg0t has joined #ruby
<esc4rg0t>
Is there a way to keep carriage returns when using "File.open(...).each_line do |line| ..."? It seems that the 'linefeed' is kept in the string, 'carriagereturn' is not there anymore,...
<dminuoso>
esc4rg0t: You can control this through encodings.
<esc4rg0t>
dminuoso: interesting. My file is UTF-8, I read the file in UTF-8,...what am I missing?oO
<dminuoso>
esc4rg0t: String#encode accepts crlf_newline: value and universal_newline: value
dmnd has quit []
<apeiros>
esc4rg0t: \r\n remains for me. are you on windows?
dmnd has joined #ruby
<esc4rg0t>
apeiros: Yes indeed, Windows...because I have to ;-)
<apeiros>
welcome to window's insanity of text vs. binary mode
<dminuoso>
apeiros: It's settings
<dminuoso>
sec
Burgestrand has joined #ruby
<esc4rg0t>
dminuoso: Hm,...
<dminuoso>
esc4rg0t: are you opening the file in binary mode?
amitchellbullard has quit []
Macaveli has joined #ruby
<apeiros>
esc4rg0t: iirc text mode (default) will strip the \r out
amitchellbullard has joined #ruby
<apeiros>
IMO use binary mode always on windows
<dminuoso>
apeiros: It shouldn't. Only binary removes it.
<dminuoso>
or..
<apeiros>
dminuoso: pretty sure you got that wrong way round ;-p
<dminuoso>
you may be right apeiros
<dminuoso>
Yeah
<dminuoso>
All my windows development uses vagrant... :P
blackbom1 has quit [Ping timeout: 258 seconds]
<esc4rg0t>
apeiros: Very nice! Thanks for that, you just safed me many hours of try and error :-D
ryan_notabot has joined #ruby
<esc4rg0t>
apeiros: although I don't really understand what Windows is doing here,...but yeah, changing to binary fixed it. I will have to read up on that,...
herbmillerjr has joined #ruby
<dminuoso>
apeiros: Honestly the whole topic of locales creates too many problems anyway.
<dminuoso>
esc4rg0t: Note that this forces the encoding to ASCII-8BIT though.
<apeiros>
environment based interpretation of data is problematic
<apeiros>
and honestly I don't understand how anybody ever considered it to be a good idea
<dminuoso>
apeiros: Things such as "time" or "location" are inherently environment based. I dont think you can ever get around the issue entirely.
<esc4rg0t>
dminuoso: Well, I can live with that I guess.
<apeiros>
dminuoso: you can have windows' binary mode without binary encoding iirc
<apeiros>
can't test, though, as I don't have a windows :)
<dminuoso>
apeiros: geographic coordinates are a pure nightmare if not everything is WGS 84.
<dminuoso>
apeiros: mmm
johnmilton has joined #ruby
<apeiros>
3/5/11
<apeiros>
is that: 3rd may 2011? 5th march 2011? 11th may 2003? something else?
<dminuoso>
At least for that we have ISO.
<apeiros>
praise the iso
<dminuoso>
apeiros: Though it gets more disgusting when you think about issues such as leap seconds.
<dminuoso>
The whole concept of "time" as humans use it is just deeply flawed.
gbgdev_ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
<dminuoso>
Life would be much easier if you used Minkowski spacetime diagrams instead of calendars.
gbgdev has quit [Ping timeout: 250 seconds]
<dminuoso>
Clearly.
<apeiros>
life would be easier if we were 1 dimensional beings. no space, no time.
<dminuoso>
apeiros: There's sufficient evidence to indicate that our universe is two dimensional rather than three dimensional in terms of space dimensions.
<dminuoso>
Enough to be considered a theory.
<apeiros>
timecubed evidence?
<dminuoso>
apeiros: Huh?
* apeiros
remembers 4d with options to 11d or 13d…
<apeiros>
first time I hear it was really 2d?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
z64 has joined #ruby
<dminuoso>
apeiros: No that's about something else. It's a principle based on blackhole thermodynamics. Essentially it suggests that very much like a hologram, the universe is two-dimensional in nature - with the third being just an appearance.
<dminuoso>
(Stricly talking about space dimensions only)
rodfersou is now known as rodfersou|afk
Macaveli has quit [Ping timeout: 265 seconds]
fredlinhares1 has joined #ruby
fredlinhares1 has quit [Client Quit]
jaruga___ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
<dminuoso>
apeiros: Leonard Susskind and Gerard 't Hooft are responsible for the so-called holographic principle in case you care to do some research on thet opic.
synthroid has joined #ruby
<apeiros>
won't have the time
<apeiros>
also I have a hard time imagining how we don't fall apart having a "hole" through our whole body. something tells me that an appearance wouldn't suffice to keep us together.
<dminuoso>
apeiros: One of the core things that inspired the idea was that a black holes entropy increases with its area rather than its volume - suggesting that there's something really weird.
<dminuoso>
Based on this the holographic principle was created to resolve the black hole information paradox.
blackbom1 has joined #ruby
Lildirt has quit [Ping timeout: 246 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ishigoya- has joined #ruby
elastix has quit [Quit: Leaving]
troter__________ has quit []
troter__________ has joined #ruby
Lildirt has joined #ruby
psychicist__ has quit [Ping timeout: 256 seconds]
c355e3b has joined #ruby
blackbom1 has quit [Ping timeout: 268 seconds]
hutch34 has joined #ruby
Macaveli has joined #ruby
pawnbox has joined #ruby
hahuang62 has joined #ruby
e1z0 has joined #ruby
r3vDev has joined #ruby
LoneHermit has joined #ruby
konsolebox has joined #ruby
hahuang62 has quit [Ping timeout: 240 seconds]
e1z0 has quit [Ping timeout: 250 seconds]
LoneHermit has quit [Ping timeout: 268 seconds]
brendan- has joined #ruby
Cymew has quit [Remote host closed the connection]
blackmesa has joined #ruby
gmci has quit []
gmci has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
fmcgeough has joined #ruby
psychicist__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uranellus has quit [Quit: ZNC 1.6.1 - http://znc.in]
claudiuinberlin has joined #ruby
workmad3 has joined #ruby
brendan- has joined #ruby
konsolebox has quit [Ping timeout: 246 seconds]
frozengeek____ has quit [Quit: frozengeek____]
frozengeek____ has joined #ruby
Emmanuel_Chanel has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubiesnperls has joined #ruby
gnufied has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blackmesa has quit [Quit: WeeChat 1.5]
symm- has joined #ruby
<jokke>
hey
<rubiesnperls>
i have a syntax issue. and i've no idea what's wrong. methodName( :symbol, hashKey: :symbol2 ) /error unexpected :, expecting )
<jokke>
is it possible to exclude parts of a file from line count for rubocop?
charliesome has joined #ruby
<jokke>
i'm writing a sinatra api and use swagger blocks for documentation. they tend to use up alot of lines but aren't code per-se
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
emilkarl has quit [Quit: emilkarl]
jaguarmagenta has joined #ruby
Lildirt has quit [Ping timeout: 256 seconds]
bturker has joined #ruby
<z64>
jokke: so, you want the line length cop, but want to ignore things like comments?
synthroid has quit [Remote host closed the connection]
hahuang62 has joined #ruby
Semtex-H has joined #ruby
etehtsea has quit [Ping timeout: 245 seconds]
raul782 has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
SpiffTR has joined #ruby
millerti has joined #ruby
hahuang62 has quit [Ping timeout: 246 seconds]
BLuEGoD has quit [Quit: WeeChat 1.5]
etehtsea has joined #ruby
aufi has quit [Quit: Leaving]
saneax-_-|AFK is now known as saneax
LoneHermit has quit [Remote host closed the connection]
Lildirt has quit [Ping timeout: 265 seconds]
symm- has quit [Ping timeout: 246 seconds]
eightbitraptor has quit [Ping timeout: 258 seconds]
braincrash has joined #ruby
<KiderSpiel>
anyone here?
<apeiros>
no
aryaching has joined #ruby
mark_66 has quit [Remote host closed the connection]
cyclonis has joined #ruby
Fernando-Basso has joined #ruby
iMadper is now known as iMadper|afk
<KiderSpiel>
Do you even lift, bro?
eightbitraptor has joined #ruby
mark_66 has joined #ruby
teclator has joined #ruby
<apeiros>
bro? why are you insulting me?
<KiderSpiel>
Holy shit!
wugy has quit []
<KiderSpiel>
Asking a question about Ruby, nobody drops a char
<tobiasvl>
it's not a question about ruby, it's a question about heroku :P
<maloik>
KiderSpiel there are quite a few logging addons for Heroku, look into them
Lildirt has joined #ruby
<KiderSpiel>
tobiasvl smart idiot
<apeiros>
KiderSpiel: so yeah, nobody had an answer when you asked. big deal. happens.
<maloik>
(although Heroku has logging of its own, they don't get wiped at all)
<apeiros>
!kick KiderSpiel don't be rude
KiderSpiel was kicked from #ruby by ruby[bot] [don't be rude]
<tobiasvl>
hehe
<maloik>
:D
Guest66815 is now known as marahin
cyclonis has quit [Ping timeout: 265 seconds]
marahin has quit [Changing host]
marahin has joined #ruby
maattdd has quit [Ping timeout: 258 seconds]
Burgestrand has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lildirt has quit [Ping timeout: 250 seconds]
emilkarl has quit [Quit: emilkarl]
nettoweb has joined #ruby
antoniobeyah has joined #ruby
antoniobeyah has quit [Client Quit]
chouhoulis has joined #ruby
maattdd has joined #ruby
bradleyprice has joined #ruby
saneax is now known as saneax-_-|AFK
aganov has quit [Remote host closed the connection]
antoniobeyah has joined #ruby
Ishido has joined #ruby
Guest12386 has joined #ruby
bradleyprice has quit [Ping timeout: 264 seconds]
<shynoob>
I am new to Ruby and Rails framework, where can I find a learning process structured in a way that helps me build a website as well teaches me simultaneously?
e1z0 has joined #ruby
M-travis has joined #ruby
emilkarl has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
madsa_ has joined #ruby
splud has joined #ruby
bradleyprice has joined #ruby
dionysus69 has joined #ruby
<z64>
imo, starting with 'vanilla' ruby is a good idea. you might try these:
<gener1c>
hey , if i use net/ftp is there a way to add a callback when there is a disconnect due to timeout?
jhass has quit [Ping timeout: 268 seconds]
saneax-_-|AFK is now known as saneax
bradleyp_ has joined #ruby
Derderderd has joined #ruby
[reed] has joined #ruby
[reed] has quit [Changing host]
[reed] has joined #ruby
Trynemjoel has quit [Ping timeout: 246 seconds]
<ddffg>
hi, after the last update does not work chruby
bradleyprice has quit [Ping timeout: 258 seconds]
<ddffg>
need to point out explicity "chruby 2.3.1"
jhass has joined #ruby
Lildirt has joined #ruby
bradleyprice has joined #ruby
bradley__ has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
bradleyp_ has quit [Ping timeout: 260 seconds]
yaw has joined #ruby
Derderderd has quit [Ping timeout: 246 seconds]
swills has joined #ruby
<OTORelic4>
^
<OTORelic4>
exit
Trynemjoel has joined #ruby
OTORelic4 has quit [Quit: WeeChat 1.4]
moufl has quit [Quit: fuck it.]
Gravious has joined #ruby
<Gravious>
Hello there seem to be a plethora of libraries that provide cli stuff
<Gravious>
Any suggestions?
moufl has joined #ruby
<Gravious>
by cli stuff, I means tools for putting together a standard cli app
h1fuelce_ has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
Devalo has quit [Remote host closed the connection]
konsolebox has joined #ruby
tsunamie has quit [Ping timeout: 256 seconds]
SpiffTR has quit [Ping timeout: 250 seconds]
iMadper|afk has quit [Remote host closed the connection]
iMadper|afk has joined #ruby
newdan has joined #ruby
r3vDev has quit [Ping timeout: 240 seconds]
<newdan>
Anyone know of a good form validator/builder that isn't tied to Rails? I'm doing a Sinatra app. I *could* write it out by hand, just curious if there's a tool I should be using
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
* Gravious
picks commander at random
tsunamie has joined #ruby
<baweaver>
Gravious: Thor / Highline / OptParser (built in) tend to be the common ones I see
synthroid has joined #ruby
<baweaver>
newdan: not offhand, I'd have to look one up :/
<Gravious>
baweaver, Oh, I'll take a look at those then, thanks :)
Macaveli has joined #ruby
nankyokusei has joined #ruby
* canton7
used to like Trollop
<baweaver>
Though googling 'Sinatra Form Builder' looks like it has some decent content.
antoniobeyah has quit [Quit: antoniobeyah]
<newdan>
baweaver: I'm already doing that so no worries :) Mostly just curious if anyone did know one offhand
LoneHerm_ has joined #ruby
<baweaver>
Immediate idea was to look into Padrino and what it was doing, but didn't find anything there worth mentioning.
pulgolino has joined #ruby
KiderSpiel has joined #ruby
KiderSpiel has quit [Client Quit]
preyalone has joined #ruby
emilkarl has quit [Quit: emilkarl]
<shynoob>
hi, what is ruby awesome at?
SpiffTR has joined #ruby
<baweaver>
what are you wanting to do?
nankyokusei has quit [Ping timeout: 258 seconds]
Hyuk has joined #ruby
Lildirt has quit [Ping timeout: 248 seconds]
<shynoob>
I want to know the answers from those who use more than 1 language & are not fixated at ruby itself!
jahmalz has joined #ruby
<shynoob>
just for iknowledge purposes
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver>
It tends to live around Security, System Administration, and Web Development.
LoneHerm_ has quit [Ping timeout: 248 seconds]
<baweaver>
Though with JRuby it can sneak into a few more areas.
Lildirt has joined #ruby
<newdan>
shynoob: I also really like rake as a make replacement, even on otherwise non-Ruby projects
<shynoob>
ok
<Gravious>
baweaver, Thor's real nice, thanks!
djbkd__ has quit [Read error: Connection reset by peer]
<sts>
hello folks. how can I influnce the load path of bundler? I'd like to ship my dependencies in a certain directory and put an executable into /usr/bin/myapp, which loads libraries via bundler.
djbkd has joined #ruby
<baweaver>
gem_name.gemspec
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver>
I'd say it's more of a matter of preference there
<baweaver>
I see no real issue with using it like that considering the small size of the classes
<sts>
baweaver: was this related to my question?
claw has quit [Read error: Connection reset by peer]
bradleyp_ has joined #ruby
<havenwood>
LyndsySimon: The way you linked to is nice because you don't end up with an anonymous class in your ancestry.
<baweaver>
sts: the gemspec one, yeah
<baweaver>
specifically bindir, executables, and require_paths
prestorium has quit [Remote host closed the connection]
<LyndsySimon>
havenwood: K, thx. It seems more compact and easy to read, but I wanted to be sure there wasn't some impact I wasn't aware of.
<havenwood>
LyndsySimon: Nope, it's good!
cyclonis has joined #ruby
bradleyprice has quit [Ping timeout: 258 seconds]
<sts>
baweaver: not sure whether I miss something, but I don't want to install the dependencies as gems or anyhow else system wide, but ship them in a specific directory.
<sts>
baweaver: the problem is the entrence point, where I usually call require 'bundler/setup', is outside the directory of the Gemfile & Gemfile.lock.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sts>
baweaver: /usr/share/myapp/Gemfile, /usr/share/myapp/vendor; And then I've got a /usr/bin/myapp
TomyWork has quit [Remote host closed the connection]
antoniobeyah has joined #ruby
Devalo has joined #ruby
Lildirt has quit [Ping timeout: 248 seconds]
Mrgoose has quit [Ping timeout: 248 seconds]
cyclonis has quit [Ping timeout: 250 seconds]
<baweaver>
be back in a bit, meetings.
<LyndsySimon>
I've implemented a new auth system for a Rails app, and I want to test it in sandbox and later production without relying on it yet. Is there a way to run a method for a given period of time, but to terminate it and continue to return the response if it takes too long?
<LyndsySimon>
I'd just split it off into a delayed_job, but I need to be able to set a cookie on the response if at all possible.
Snickers has joined #ruby
aufi has joined #ruby
<Gravious>
dumb question: if it's save to / in paths on ruby for all platforms then why is there a File.join method?
beilabs has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
centrx has joined #ruby
rysiek|pl has joined #ruby
<rysiek|pl>
hi all
frozengeek____ has quit [Quit: frozengeek____]
<rysiek|pl>
a ruby newbie here
Lildirt has joined #ruby
<havenwood>
rysiek|pl: welcome
Derderderd has quit [Ping timeout: 245 seconds]
conta has joined #ruby
<rysiek|pl>
I'd like to test out rails and omniauth (I actually need too understand omniauth for a thing I'm doing), what would be the easiest way to get set-up with them and start hacking?
SpiffTR has joined #ruby
nankyokusei has joined #ruby
Ax has joined #ruby
Snickers has joined #ruby
newdan has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
LoneHermit has joined #ruby
Ax has quit [Read error: Connection reset by peer]
marr has quit [Read error: Connection reset by peer]
<Papierkorb>
rysiek|pl: There's #RubyOnRails for rails questions
pawnbox_ has quit [Remote host closed the connection]
gry has quit [Quit: restarting...]
Lord_of_Life has quit [Excess Flood]
railssmith has joined #ruby
Lord_of_Life has joined #ruby
madsa_ has quit [Ping timeout: 265 seconds]
<dminuoso>
havenwood, we only get micro patches that change Ruby syntax instead.
<dminuoso>
Much more fun this way.
<dminuoso>
Keeps you on your feet.
boon_ has left #ruby [#ruby]
<baweaver>
Just bracing for the 2/3 divide
<dminuoso>
2/3 divide?
Lildirt has joined #ruby
<miah>
when 2 goes to 3, and people are using 2 still
<miah>
like the python world
<dminuoso>
Seems to have been working pretty great for C++
Ax has joined #ruby
<baweaver>
We just have to not screw up puts and we should be good ;)
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doberman has joined #ruby
<doberman>
good morning (UGM)
roger_rabbit has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
<Gravious>
i've said it before
<Gravious>
but i'm loving this language
<centrx>
It's the best
Ax has quit [Quit: Ax]
yeticry has quit [Ping timeout: 258 seconds]
Gravious has quit [Quit: Lost terminal]
<doberman>
currently working on packaging ruby into rpm, and I'm facing little issue with build system, nothing i can't solve by patching or monkey code: ruby build system ignores archprefixdir for shared libs (libruby.so*) and places it into LIBPREFIX/ARCH. so question why ruby configure does not allow to set archlibdir, is there a reason for it?
yeticry has joined #ruby
Tanfrieze has joined #ruby
<doberman>
welp here goes my hope for patching up configure.in - SL 6 autoconfig is < .67 version and I'm not permitted to fix/upgrade it
laudiacay has left #ruby ["WeeChat 1.5"]
tvw has quit []
workmad3 has quit [Ping timeout: 248 seconds]
muelleme has joined #ruby
reverberations has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
yeticry has quit [Ping timeout: 256 seconds]
jaruga___ has quit [Read error: Connection reset by peer]
jaruga___ has joined #ruby
yeticry has joined #ruby
bturker has joined #ruby
Anonymoose2 has quit [Ping timeout: 268 seconds]
bradleyprice has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
d0lph1n98 has quit [Quit: leaving]
bradleyp_ has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
hutch34 has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
raul782 has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
nofxx has joined #ruby
emilkarl has joined #ruby
shakes has joined #ruby
shakes has quit [Client Quit]
cdg has quit [Remote host closed the connection]
LoneHermit has joined #ruby
ta_ has joined #ruby
marxarelli is now known as marxarelli|afk
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
marsjaninzmarsa has joined #ruby
LoneHermit has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
pwnd_nsfw` has quit [Read error: Connection reset by peer]
djbkd_ has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
claudiuinberlin has quit [Remote host closed the connection]
benlieb has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
pwnd_nsfw has joined #ruby
emilkarl has quit [Quit: emilkarl]
cyclonis has joined #ruby
awc has joined #ruby
benlieb has quit [Client Quit]
cyclonis has quit [Ping timeout: 246 seconds]
machinewar has joined #ruby
<machinewar>
are pessimistic constraints the favored approach for handling gem version contraints
<machinewar>
I know my app will use Gemfile.lock for source of truth, but this is more for updating gems
dminuoso has quit [Changing host]
dminuoso has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
awc has joined #ruby
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
<dminuoso>
machinewar, yes.
<dminuoso>
machinewar, there may be special cases as usual - but generally every gem should have a pessimistic constraint to it.
<machinewar>
dminuoso: thanks, and another question, does bundler use this when resolving version requirement issues for dependencies
awc has quit [Client Quit]
<machinewar>
i.e. will it automatically update a gem if a later version is requried by another gem and it falls within your constraint
<machinewar>
hopefully that question makes sense
<dminuoso>
machinewar, think about it for a second.
chouhoulis has quit [Ping timeout: 245 seconds]
<machinewar>
my intuition says yes
<dminuoso>
machinewar, if the Gemfile.lock did not forcibly pin a version it would be quite worthless.
<machinewar>
thats the whole point
<dminuoso>
machinewar, you can quickly experiment this thoguh.
chouhoul_ has quit [Ping timeout: 245 seconds]
cocomo has quit [Quit: leaving]
johnmilton has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
marxarelli|afk is now known as marxarelli
<dminuoso>
machinewar, first add a gem rack with version '= 1.4.7', bundle install and then add sinatra '~> 1.4.7' and watch what happens if you run bundle install sinatra
|RicharD| has joined #ruby
<machinewar>
kk willl give it a go
splud_ has joined #ruby
splud has quit [Ping timeout: 256 seconds]
splud_ is now known as splud
rodfersou has quit [Quit: leaving]
sparch has quit [Ping timeout: 268 seconds]
<machinewar>
ahh so it says you have to manually update it
<machinewar>
because its locked at a specific version
claudiuinberlin has quit [Remote host closed the connection]
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
claudiuinberlin has joined #ruby
<dminuoso>
machinewar, I'm not sure from the top off my head what a generic "bundle install" would do though. I think it should revisit all dependency to satisify the dependencies of all gems.
<dminuoso>
But that's just a feeling./
<dminuoso>
machinewar, if you would test me and let me know that would be great.
<machinewar>
dminuoso: okay yea I just tried it on a pretty large legacy app lol I'm sure if I deleted my gemfile lock it would resolve them as you're saying
hi-from-velope-o has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<hi-from-velope-o>
a maximally painful life and a maximally painful death to those involved in censoring child porn or enforcing cp laws.
<dminuoso>
machinewar, no need to delete the gemfile lock. bundle update should probably take care of it
ldnunes has quit [Quit: Leaving]
symm- has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
Definity2 has quit [Ping timeout: 245 seconds]
roychri has joined #ruby
|RicharD| has quit [Ping timeout: 250 seconds]
armin has quit [Ping timeout: 248 seconds]
|RicharD| has joined #ruby
Cohedrin has joined #ruby
<miah>
i am in the hell of self signed certs, self hosted gem repository (sonatype nexus), and ruby ssl verification errors
<miah>
i'm praying to matz
cippaciong has joined #ruby
<dminuoso>
miah, you probably forgot the honorary mention of nobu in the beginning of your prayer.
<dminuoso>
Common mistake.
benlieb has joined #ruby
<miah>
ah yes, of course
Snickers has joined #ruby
OTORelic has joined #ruby
b0nn has quit [Ping timeout: 260 seconds]
schemanic has joined #ruby
<schemanic>
hi. using the DateTime library and DateTime.now, how would I check if my now is the nth of a month?
<miah>
that prayer worked. i am humbled by matz and nobu
Snickers has quit [Quit: Snickers]
nankyokusei has quit [Ping timeout: 268 seconds]
<dminuoso>
miah, told you.
Devalo has quit [Remote host closed the connection]
<dminuoso>
Only quality advice in here.
Devalo has joined #ruby
symm- has joined #ruby
<cippaciong>
Hello. I have a quite complex (to me at least) question, I don't even think is 100% ruby related but I'm writing my software in ruby so I thought of asking here. I'm developing a Telegram bot whose task is to download incoming audio files, convert them to another format, send the converted file to an external service using their api and send a reply to the user based on the external service api. Now, since
<cippaciong>
conversion and elaboration from the external service may take some time I'd like to perform those tasks in an asynchronous way. How would you do that?
futilegames has joined #ruby
<cippaciong>
Just to give some context, this is not production code and I'm just a student. The main reason I'm doing this is to learn new things so I won't mind if solution would be a bit over architected
gbgdev_ has joined #ruby
<cippaciong>
Actually, I'd rather go for the over architected solution but, knowing that is over architected :)
gbgdev has quit [Ping timeout: 245 seconds]
<dminuoso>
cippaciong, for simplicity I would use a single sidekiq job for the entire thing.
Devalo has quit [Ping timeout: 240 seconds]
<dminuoso>
(This allows me to not worry about synchronization and ease error handling)
<doberman>
cippaciong, perform tasks async? Simple way - threads, more complex - subprocesses, alternative - Eventmachine, if load is super big and require scaling i would use sidekiq/Resque
<cippaciong>
So far I have been looking at resque/sidekiq, sucker punch and wisper (for pub/sub)
<dminuoso>
cippaciong, if you need something stable for production I would go straight for redis - there's just too many free goodies that come with it.
<dminuoso>
(regardless of whether you use resque/sidekiq)
<dminuoso>
sidekiq/rescue is also stupidly easy to implement and scales really well - at the small cost of introducing an extra service you need to manage somehow.
<dminuoso>
(eventmachine, threading, processes - all of them require you actually writing code to make it work)
<doberman>
am i visible here? just checking, because my question was successfully ignored...
<dminuoso>
doberman, no.
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<dminuoso>
:o)
<cippaciong>
My main dubt is this. With a structure similar to this one: https://github.com/atipugin/telegram-bot-ruby#usage with all the code inside the block and using long polling instead of webhooks, can I implement that?
<dminuoso>
cippaciong, is the API under your control?
ryan_notabot has quit [Quit: Leaving]
ddffg has quit [Quit: Leaving]
ryan_notabot has joined #ruby
<cippaciong>
what do you mean?
<doberman>
yes you can, just need write process
lxsameer has quit [Quit: WeeChat 1.6]
cyclonis has joined #ruby
<cippaciong>
doberman: do you have any reference for implementing something like this using threads?
<dminuoso>
cippaciong, you can do it both ways. though webhooks should be preferrable.
<dminuoso>
polling is so 1993 when there was no websockets.
<doberman>
1993 was good year though
<cippaciong>
yeah, I know it's bad, in fact I have another bot set up with webkooks.
<cippaciong>
I just don't get how I can start a thread from the block, and get back there once it has finished
<doberman>
but how to write multi-threaded there are a lot of sources in the web
<dminuoso>
cippaciong, you think about it the wrong way.
<doberman>
^
millerti has joined #ruby
<cippaciong>
enlighten me :)
Fernando-Basso has quit [Quit: WeeChat 1.6]
conta has joined #ruby
<cippaciong>
I suspected I was getting it wrong..
cyclonis has quit [Ping timeout: 260 seconds]
diego_k has quit [Ping timeout: 258 seconds]
<cippaciong>
Do you mean I should spawn multiple threads running a bot instance?
diegok has joined #ruby
tristanp has joined #ruby
preyalone has joined #ruby
clebrun has joined #ruby
conta has quit [Ping timeout: 264 seconds]
<clebrun>
have a question, why doesn't this work?
<clebrun>
>> def foo; { block: &block }; end
<dminuoso>
clebrun, can you explain what you mean by "doesn't this work?
Guest43 has joined #ruby
<dminuoso>
Ah
<clebrun>
sorry dminuoso, it throws a syntax error on the &
whathappens has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
Guest43 has joined #ruby
Guest43 has quit [Changing host]
<doberman>
cippaciong, lets think about it for second. got answer few questions for yourself: do you care about reliability? scaling?
Guest43 is now known as Rufus
<doberman>
cippaciong: if answer is yes to one of them - go with sidekiq/rescue
<dminuoso>
clebrun, I'm staring at this. Will let you know when I have an answer.
whathappens has joined #ruby
<doberman>
cippaciong: if both "no" - and you don't wanna deal with threads go with eventmachine
<cippaciong>
doberman: at the moment: not.
<clebrun>
dminuoso: I feel like it should work, but I found a way to do it:
<clebrun>
>> def foo(&block); { block: block }; end
<dminuoso>
clebrun, you can't bind a block to an object inside the body, only inside the params list
<havenwood>
clebrun: You can't have a block argument (&block) as the value in a Hash. You can use the proc representing the block `block` or the return value `block.call`.
<cippaciong>
doberman: I care more about understanding why I was thinking about it in the wrong way.
<dminuoso>
clebrun, the reason is that unless you specify it as &block in params, there is no object for you to refer to.
nofxx has quit [Read error: Connection reset by peer]
<dminuoso>
i.e. there is no such thing as "block"
<cippaciong>
because thtat's what I'm missing
<dminuoso>
clebrun, though I feel like what you wrote should be a thing.
<dminuoso>
i.e. you might want to do something like if block_given?; foo = █ do_stuff_with(foo); end
sp4rrow has quit [Read error: Connection reset by peer]
<dminuoso>
What do you think havenwood?
<havenwood>
dminuoso: When you want a block to be a thing to pass around, proc.
<dminuoso>
havenwood, My point is I think it would be cool to be able to bind a block to a proc/lambda explicitly.
<dminuoso>
In code.
sp4rrow has joined #ruby
<dminuoso>
Not in a params list.
<cippaciong>
doberman: let's say I decide to go with threads. What should I put in a single thread? A whole instance of the bot with its block?
nikivi has quit [Quit: irc]
marr has joined #ruby
<havenwood>
dminuoso: mm, yeah there's some sugar in there that might be a little bitter tasting
<doberman>
cippaciong: obviously processing
dcluna has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
<dminuoso>
clebrun, interestingly you got me so confused - what you wrote felt so natural and made immediate sense to me that I did not even question the validity of it.
last_staff has joined #ruby
mikeXsh has joined #ruby
cdg has joined #ruby
centrx has quit []
<doberman>
cippaciong: simple way - Sinatra app to handle web-hooks, received '/do-your-work' with file x -> start thread(x) that going to encode file(x), result = submit output(x'), submit user result (result);
symm- has joined #ruby
<doberman>
cippaciong: if its make sense, I'm not best at explaining myself :)
<cippaciong>
doberman: I don't understand, I'm sorry. If I move the conversion and elaboration on another thread (I know how to do that) how can I send back the reply to the bot block? Because I can send replies only from there
<cippaciong>
doberman: yes, that's make sense
<cippaciong>
probably I should just go with webhooks and stop bothering about long polling, would make things easier
chouhoulis has joined #ruby
<doberman>
cippaciong: long pulling a bit more complex
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<doberman>
for long pulling use ready to go solution like rescue/sidekiq - would make your life easy :)
<cippaciong>
got it :)
<dminuoso>
It kind of depends on what you do though. I have several places where I do long-polling because the overhead of introducing websockets here or event-based messaging there can easily amount to too much effort.
chouhoul_ has joined #ruby
<dminuoso>
It's a toss-up either way usually.
<doberman>
orrr
<doberman>
you can go fancy
<doberman>
and use websockets :)
fxa90id has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<dminuoso>
doberman, effort. I would like something usuable for rails and don't get me started on ActionCable.
pookie_ has quit [Quit: All for nothing]
chouhoul_ has joined #ruby
<cippaciong>
doberman: unfortunately Telegrams offers only long polling and webhooks :)
<cippaciong>
anyway, you gave me a lot to think about, you have been very helpful. Thanks doberman dminuoso
<doberman>
you are very welcome
<doberman>
< works on very complex workflows for video processing for cable company, and we where on drugs, i guess, to choose ruby for that :)
<doberman>
*were
benlieb has quit [Quit: benlieb]
<dminuoso>
doberman, do you regret the choice?
chouhoulis has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
<doberman>
sometimes, but later i began to exploit c ext where I need speed stuff out
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<doberman>
don't get me wrong I love ruby, my private stuff is almost excessively on ruby, but ruby is resource hungry and a bit slow (i like improvements made in =>2.0)
last_staff has quit [Quit: last_staff]
LoneHermit has joined #ruby
LoneHermit has quit [Ping timeout: 265 seconds]
kies has quit [Ping timeout: 258 seconds]
machinewar has quit []
bturker has joined #ruby
<antoniobeyah>
doberman: are you running cruby or jruby?
<doberman>
cruby
<antoniobeyah>
ah, ic
blackpajamas has joined #ruby
<antoniobeyah>
i’ve had good results with jruby
<antoniobeyah>
don’t think I would attempt to run mri in prod
<doberman>
why not?
GodFather has quit [Ping timeout: 260 seconds]
<antoniobeyah>
speed, debugability. jvm is an understood platform
<antoniobeyah>
a bit of a strawman there, but point remains
<doberman>
never been big fun girl of java, and leadership here would kill me even for suggesting java :)
bturker has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
<antoniobeyah>
i use mri for the stuff that runs in jenkins though
<antoniobeyah>
short lived stuff
<dminuoso>
antoniobeyah, I don't know about you - but LLVM and GDB / valgrind are about some of the most mature debuggers out there. There's not many Java tools that get even close.
<antoniobeyah>
i don’t even think I can find one person on my floor that knows how to use gdb
<antoniobeyah>
visualvm on the other hand...
<clebrun>
dminuoso: That's what I felt. I've been learning FP languages, and it's kind of got me frustrated with how inconsistent ruby is with first class functions
claudiuinberlin has quit []
<doberman>
<- knows how to use gdb, LLDB, big c background :)
montanonic has joined #ruby
<doberman>
java on other hand, idk how to debug :)
<antoniobeyah>
last time I had to use gdb was to get a core dump to extract a heap dump for a stuck jvm
<clebrun>
JAVA - "Wolf fence and pray and chill?"
<antoniobeyah>
before that was really just ollydbg
jaruga___ has quit [Quit: jaruga___]
<antoniobeyah>
windows ;)
johnmilton has joined #ruby
<antoniobeyah>
how do you handle symbols / the vm for ruby with gdb?
d0nn1e has quit [Ping timeout: 258 seconds]
nofxx has joined #ruby
<antoniobeyah>
have a collection of macros you use or something?
kies has joined #ruby
d0nn1e has joined #ruby
last_staff has joined #ruby
whathappens has quit [Remote host closed the connection]
<doberman>
honestly, i have not had change to use c debuggers on ruby processes yet
<doberman>
but good question, i would probably look into it sooner or later
last_staff has quit [Client Quit]
<dminuoso>
antoniobeyah, stuck jvm. I would like my CPU to get stuck
johnmilton has quit [Remote host closed the connection]
<dminuoso>
*hint*
whathappens has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
<dminuoso>
antoniobeyah, what kind of symbols are you talking about?
<antoniobeyah>
debugging symbols
<dminuoso>
Ruby has these.
<dminuoso>
or are you talking about debugging the ruby vm?
gloscombe has joined #ruby
muelleme has quit [Ping timeout: 248 seconds]
<antoniobeyah>
yeah, the ruby vm
<antoniobeyah>
you would have to compile ruby with special flags for it to work properly right?
yeticry has joined #ruby
<antoniobeyah>
(i’m just curious more than anything, I don’t actually need to do it)
<antoniobeyah>
and I would think it would get even hairier when native extension are in play
<antoniobeyah>
its starting to sound like a fun weekend project the more I talk about it ;)
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
scootaloo has joined #ruby
cyclonis has joined #ruby
<dminuoso>
antoniobeyah, yes.
sp4rrow has joined #ruby
gbgdev has joined #ruby
<dminuoso>
antoniobeyah, most of the time debugging the VM is only useful for the developers of Ruby itself - so it's not really a matter for debuggability for the user.
<antoniobeyah>
gotcha, i thought you would have needed to do something special to get the calls to the c function names to align up with the ruby function names
<antoniobeyah>
since function calls boil down to a few c functions (assuming mri)
bradleyp_ has quit [Remote host closed the connection]
<antoniobeyah>
and that you would have to do something special to get accurate backtraces
<dminuoso>
antoniobeyah, no. There's basically a function that lets you bind c functions to ruby methods. It all happens at compile time.
gbgdev_ has quit [Ping timeout: 240 seconds]
bradleyprice has joined #ruby
<antoniobeyah>
ah, i must be out of date
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
<dminuoso>
antoniobeyah, errr it happens at runtime.. but based on code that is mostly compiled in Ruby itself.
<dminuoso>
doberman, no you actually nailed it on the head.
raul782 has quit [Remote host closed the connection]
<dminuoso>
Far more qualified than my link.
biberu has quit []
<strass_>
alright
<strass_>
apt install libssl1.0-dev got it
<strass_>
thanks so much. I searched for hours last week
<doberman>
strass_: \m/
nankyokusei has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #ruby
tildes has quit [Ping timeout: 258 seconds]
jcao219 has joined #ruby
<strass_>
oh damn... did I do something wrong? It compiled but says I don't have permissions to install gems. This is my first time using on debian rather than installing on osx via brew
<doberman>
try sudo
<strass_>
I installed using rbenv. is this my system ruby?
<strass_>
I thought you weren't uspposed to use sudo for gems
jaguarmagenta has quit [Remote host closed the connection]
saslam has quit [Read error: Connection reset by peer]
<strass_>
thanks very much doberman, dminuoso, c-c
bradleyprice has quit [Remote host closed the connection]
<doberman>
okay now my holywars, Still building rpm package for ruby 2.3.3, now time to split gems into sub package, that raises question - do gems consider to be sharable between ruby versions/implementations, i know that RVM separate them per ruby, what about general opinion, I need it to know where to place them correctly
bradleyprice has joined #ruby
<doberman>
strass_: welcome
<c-c>
gl!
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
<havenwood>
doberman: If it's the same Ruby engine and ABI gems can be shared.
<c-c>
doberman: well, you can install system wide or home
<c-c>
doberman: I wonder if you actually want chruby or rvm or rbenv
cyclonis has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoul_ has quit []
Cohedrin has joined #ruby
<doberman>
havenwood: ruby engine/ABI can change in future.
<havenwood>
doberman: Though the default is --no-env-shebang so gem binaries will be hard-linked against the Ruby that installed them.
<havenwood>
doberman: You can set `gem: "env-shebang"` in your .gemrc if you want.
<havenwood>
doberman: The Engine is like CRuby or JRuby, just implementations. The ABI changes with MINOR versions.
<havenwood>
but not with TEENY
chouhoulis has joined #ruby
|RicharD| has quit [Quit: Sto andando via]
synthroi_ has quit []
<doberman>
c-c: idea is go get away from rvm, we package our software into rpms, so wanna have fixed versioning
<c-c>
heh doesn't rvm enable fixed versions...
<c-c>
lol I don't even want to think about that right now
bradleyprice has quit [Ping timeout: 268 seconds]
<doberman>
havenwood: im pondering about %{_datadir}/rubygems/{major.minor} - /usr/share/rubygems/2.3/
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has joined #ruby
cyclonis has quit [Ping timeout: 258 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
joanftt[m] has joined #ruby
friday has quit [Ping timeout: 252 seconds]
<doberman>
c-c: its long story, i feel you all will fall into sleep before i finish typing it, but very short we wanna do system wide ruby across hosts and use package manager, so we do automated deployments of our code (sh*t tons of projects) and also solve project deps
<c-c>
sounds like would be easier to use a vm image or docker or lxc or such
kith has quit [Quit: kith]
<dminuoso>
docker, configuration management like puppet, orchestration like ansible..
<dminuoso>
there's quite a few industry-grade duct tape solutions.
friday has joined #ruby
bradleyprice has joined #ruby
<doberman>
that is kinda our plan: reproducible vm images, puppet+ansible and projects packaged into rpms :)
kinduff has joined #ruby
<c-c>
everybodys plan
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<doberman>
we also want lock developers into use limited set of gems/versions, that security team approved, to avoid problems with mim replacement during deployment
<strass_>
Your user account isn't allowed to install to the system Rubygems. You can cancel this installation and run: bundle install --path vendor/bundle to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to Rubygems using sudo.
<strass_>
what would you recommend?
<doberman>
did you install ruby systemwide?
<doberman>
strass_: ^
<strass_>
Not sure I just used rbenv install 2.3.3
<strass_>
not as sudo or anything
<strass_>
when I do rbenv versions I see * 2.3.3 (set by /home/strass/.rbenv/version)
tercenya has quit [Remote host closed the connection]
<doberman>
strass_: please do which ruby, which gem, gem env
tercenya has joined #ruby
<doberman>
and link results
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
cyclonis has joined #ruby
Derderderd has quit [Ping timeout: 258 seconds]
<strass_>
which ruby: /home/strass/.rbenv/shims/ruby
<strass_>
which gem: /home/strass/.rbenv/shims/gem
<c-c>
strass_: do collect all such info in one pastie or gist
<strass_>
oh I missed an rvm line
<strass_>
wonder if thats it
<doberman>
rvm?
<strass_>
hmm, that line is commented out in my zshrc... wonder where it's coming from
<strass_>
ruby version manager, rbenv alternative
<doberman>
you got choose between rvm and rubyenv
<strass_>
yeah I thought I got all the references
<havenwood>
the correct choice between rbenv and rvm is chruby :-P
<doberman>
havenwood: lol
<workmad3>
doberman: sounds like you'll want to be running your own private gem server for approved gems
<strass_>
hmm not sure where that last shell path is coming from though. the line is commented out in my zshrc
<doberman>
try open new session
<doberman>
or do source ~/.zshrc
<doberman>
oh wait it want unset
<doberman>
start new session and try
<strass_>
ok brb
strass_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
strass_ has joined #ruby
<strass_>
alright new session cleared it. whoops ;)
yeticry has quit [Quit: leaving]
<strass_>
and now I seem to be able to install gems correctly
<strass_>
guess I never restarted last week
<doberman>
yay to all mighty new session
friday has quit [Changing host]
friday has joined #ruby
<strass_>
new problem: Your bundle is locked to activesupport (3.2.22.2), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of activesupport (3.2.22.2) has removed it. You'll need to update your bundle to a different version of activesupport (3.2.22.2) that hasn't been removed in order to install.
<strass_>
Run `bundle install` to install missing gems
<doberman>
bundle updatew
<strass_>
can I just take the version # away from gemfile?
<doberman>
*bundle update
z64 has quit [Quit: can i go home now?]
<strass_>
ok now I get: Your bundle is locked to execjs (2.7.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of execjs (2.7.0) has removed it. You'll need to update your bundle to a different version of execjs (2.7.0) that hasn't been removed in order to install.
<jamiejackson>
i'm trying to test a function with minitest. i'm new to ruby. how do i get an instance of the file under test so i can call a method on it?
fmcgeough has joined #ruby
<Sh4D0wD_>
How did we get here from OpenSSL to debugging gem, I'm no familiar with serve and away from desktop to check
<Sh4D0wD_>
jamiejackson: file? Do you mean File as class File?
gbgdev has joined #ruby
<c-c>
strass_: so, perhaps some lib is missing
<havenwood>
jamiejackson: Inside a `def setup` or `before do` (depending on spec or test style) you can set `@thing = Thing.new`
pulgolino has quit [Remote host closed the connection]
<Sh4D0wD_>
In any case you can do def setup; @thing= Thing.new; end
<Sh4D0wD_>
And use @thing inside your tests methods
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jamiejackson>
the file starts with "module ApplicationHelper", fwiw.
<jamiejackson>
(the file under test)
<Sh4D0wD_>
You lost me there right now
<Sh4D0wD_>
But I guess you need require your file
<c-c>
jamiejackson: to make things simple for you and others..
<c-c>
jamiejackson: make a simple pastie or gist, with your problem scenario presented
<strass_>
Sh4D0wD_, dunno this is the next error. this repo worked on OS X with no issues but now I get all these gem errors...
<c-c>
strass_: do you use bundler?
charliesome has joined #ruby
Zamyatin has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<Sh4D0wD_>
We figured bundler now he had problem somewhere inside gem, from him gemfile I can only assume he got servo from somewhere else (git link) and later changed to gem name, version
<Sh4D0wD_>
And one from git and that one version matched
<Sh4D0wD_>
But had different code
<jamiejackson>
okay, here's what i have. i was trying to unit test in the rails way (for the first time), but i couldn't get it to skip all the db generation stuff. i don't need that since this function under test has no db dependencies. anyway, so no i'm trying minitest directly: