<pedahzur>
I have a situation where the unit tests for a script are contained within the script. So, you can run the test by doing script_name.rb --run-tests. This keeps things nice and compact, and all single-file. I'm trying to add test coverage with simplecov. I invoke simple cov at the top of the file using require 'simplecov' and SimpleCov.start. The tests run, but then when it exits, simplecov tells me: "Coverage report generated for
moos3 has joined #ruby
<pedahzur>
MiniTest to <dir>. 0.0 / 0.0 LOC (100.0%) covered." Huh? Ideas? I can post an abbreviated example to gist or some such if it helps explain.
B1n4r10 has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
TomyLobo has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
stunder has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
<baweaver>
you're far more likely to be chastised for putting your specs in the same file than get an answer for that.
<baweaver>
so I'll start: don't do that
charliesome has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
howard_ has joined #ruby
maletor has joined #ruby
PedramT has joined #ruby
charliesome has joined #ruby
Uber|Dragon has joined #ruby
ur5us has joined #ruby
dopie has joined #ruby
howard_ has quit [Ping timeout: 252 seconds]
uglybandersnatch has joined #ruby
johnmilton has quit [Quit: Namaste]
PedramT has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Quit: Lost terminal]
stunder has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
eregi has joined #ruby
<pedahzur>
baweaver: Best practice? Probably not. But for a single-file script that doesn't have a permanent home yet, it's much easier to put all the tests in the script itself, rather than create a whole new project, along with associated spec file, etc. Also, it's a script that lives in a files/ tree of a chef cookbook, so polluting that directory with spec files and other stuff isn't the best move either.
quazimodo has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 250 seconds]
`tim` has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moos3 has quit [Ping timeout: 248 seconds]
stunder has quit [Quit: WeeChat 1.4]
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 240 seconds]
machinewar has quit [Remote host closed the connection]
matsu has quit [Ping timeout: 264 seconds]
jackjackdripper2 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
baweaver has quit [Remote host closed the connection]
chipotle has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
zeroDivisible has quit [Quit: WeeChat 1.3]
baweaver has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
mistermocha has joined #ruby
pawnbox has joined #ruby
duderono_ has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
bjpenn has quit [Ping timeout: 248 seconds]
jackjackdripper has quit [Quit: Leaving.]
ebbflowgo has quit [Quit: ebbflowgo]
baweaver has quit [Remote host closed the connection]
uglybandersnatch has quit [Ping timeout: 264 seconds]
rubie has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
rmulligan has quit [Ping timeout: 252 seconds]
mfb2 has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
devbug has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
DmitryBochkarev has joined #ruby
babblebre has joined #ruby
djbkd has quit [Quit: My people need me...]
nando294021 has quit [Quit: Lost terminal]
gbgdev has joined #ruby
`tim` is now known as BuildTheWall
marr has quit [Ping timeout: 268 seconds]
ebbflowgo has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
poerror has joined #ruby
Wicaeed has left #ruby [#ruby]
uglybandersnatch has joined #ruby
swills has joined #ruby
elifoster has quit [Ping timeout: 244 seconds]
gbgdev has quit [Remote host closed the connection]
baweaver has joined #ruby
ebbflowgo has quit [Client Quit]
dopie has quit [Quit: Lost terminal]
ebbflowgo has joined #ruby
uglybandersnatch has quit [Ping timeout: 248 seconds]
baweaver has quit [Remote host closed the connection]
sneakerhax has quit [Quit: back later]
blackmesa has quit [Ping timeout: 276 seconds]
duderono_ has joined #ruby
sheerfish999 has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
ebbflowgo has quit [Quit: ebbflowgo]
mistermocha has joined #ruby
<sheerfish999>
error: file owned by ''ruby-json': 'usr/lib/ruby/gems/2.3.0/gems/json-1.8.3/tests/test_json_generic_object.rb' why ?
pedahzur has quit []
pawnbox has joined #ruby
uglybandersnatch has quit [Ping timeout: 268 seconds]
mistermocha has quit [Ping timeout: 244 seconds]
ochozero9 has joined #ruby
<ochozero9>
is there a way to use ruby to make a GUI for a c++ program maybe using some web UI ?
eregi has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
braincra- has joined #ruby
stardiviner has joined #ruby
duderono_ is now known as duderonomy
<ropeney>
ochozero9, short answer yes
poerror has quit [Ping timeout: 252 seconds]
_tc has quit [Ping timeout: 268 seconds]
sheerfish999 has left #ruby ["Leaving"]
<ropeney>
ochozero9, have a look at https://github.com/ffi/ffi and see if that fits your use case? Or making the c++ program have API access, or many many many different ways
elifoster has joined #ruby
braincrash has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker has joined #ruby
mwlang has joined #ruby
swills has quit [Remote host closed the connection]
Rinalds has joined #ruby
matsu has joined #ruby
Sucks has joined #ruby
Rinalds has quit [Read error: Connection reset by peer]
DLSteve has joined #ruby
avahey has joined #ruby
ariel_17 has quit [Quit: WeeChat 1.1.1]
Spami has quit [Quit: This computer has gone to sleep]
ebbflowgo has joined #ruby
blamedk has joined #ruby
workmad3 has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<ochozero9>
Is this for windows? I prefer x-platform and I use ubuntu/kubuntu/ and mint on my PCs/laptop
dubalubdub has joined #ruby
dubalubdub has quit [Remote host closed the connection]
<ropeney>
ochozero9, its not exclusive for windows.
mistermocha has quit [Ping timeout: 240 seconds]
cpruitt has quit [Ping timeout: 248 seconds]
B1n4r10 has quit [Ping timeout: 244 seconds]
Contigi has quit [Read error: Connection reset by peer]
jottr has joined #ruby
jottr_ has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
bigmac_ has joined #ruby
jyaworski has joined #ruby
norc_ has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
ledestin has joined #ruby
<shevy>
ochozero9 even ruby-gtk and ruby-qt is cross platform
merida has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
norc has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
<ochozero9>
Like there's a lot of javascript and ruby stuff online for UI. But I'm familiar with C. I don't know anything about the web and my focus is on embedded.
jolts has quit [Ping timeout: 252 seconds]
<ochozero9>
My only experience with any sort of graphical representation of code was a class i had in school on processing.org
mfb2 has joined #ruby
Guest89 has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
KensoDev has joined #ruby
bigmac_ is now known as i8igmac
jdawgaz has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
mfb2 has quit [Ping timeout: 244 seconds]
nando294021 has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
matsu has quit [Ping timeout: 264 seconds]
TheNet has joined #ruby
PedramT has joined #ruby
CBX has joined #ruby
blamedk has quit [Quit: Page closed]
ss_much has quit [Quit: Connection closed for inactivity]
A124 has quit [Read error: Connection reset by peer]
PedramT has quit [Ping timeout: 260 seconds]
bluOxigen_ has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 276 seconds]
A124 has joined #ruby
poerror has joined #ruby
rmulligan has joined #ruby
mistermocha has joined #ruby
Chagel has quit [Ping timeout: 244 seconds]
TheNet has quit [Quit: Leaving...]
BtcBen has joined #ruby
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
BuildTheWall has quit [Ping timeout: 264 seconds]
greenhat has quit [Ping timeout: 260 seconds]
nullwarp has quit [Ping timeout: 260 seconds]
elifoster has quit [Ping timeout: 260 seconds]
crankharder has quit [Ping timeout: 260 seconds]
connor_goodwolf has quit [Ping timeout: 260 seconds]
plonk_ has quit [Ping timeout: 260 seconds]
roger_rabbit has quit [Ping timeout: 260 seconds]
juanfra has quit [Ping timeout: 260 seconds]
Todd has quit [Ping timeout: 260 seconds]
mistermocha has quit [Remote host closed the connection]
`tim` has joined #ruby
elifoster|alt has joined #ruby
Chagel has joined #ruby
kanutux__ has quit [Quit: Leaving]
cpruitt has joined #ruby
fexilal has quit [Ping timeout: 246 seconds]
greenhat- has joined #ruby
nullwarp_ has joined #ruby
crankhar1er has joined #ruby
todd1 has joined #ruby
mwlang has quit [Quit: mwlang]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
eregi has joined #ruby
juanfra_ has joined #ruby
connor_g1odwolf has joined #ruby
eregi has quit [Ping timeout: 260 seconds]
juanfra has joined #ruby
uglybandersnatch has joined #ruby
B1n4r10 has joined #ruby
<ochozero9>
I rather learn ruby.. I wanted to learn perl because it has regex benefits for someone like me writing toy assemblers and dissasemblers but research told me that ruby is a modern replacement with the best regex support
Supplication has joined #ruby
Supplication has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
plonk has joined #ruby
plonk has joined #ruby
cdg has quit [Remote host closed the connection]
ebbflowgo has quit [Quit: ebbflowgo]
admin1 has joined #ruby
eregi has quit [Ping timeout: 246 seconds]
elifoster|alt is now known as elifoster
Chagel has quit [Remote host closed the connection]
roshanavand has joined #ruby
Chagel has joined #ruby
aeontech has joined #ruby
rubie has quit [Remote host closed the connection]
<shevy>
yeah ruby beats perl
x77686d has joined #ruby
pawnbox has joined #ruby
`tim` has quit [Ping timeout: 246 seconds]
`tim` has joined #ruby
sarlalian has quit [Quit: ZNC 1.6.1 - http://znc.in]
`tim` is now known as BuildTheWall
matsu has joined #ruby
sarlalian has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
pawnbox has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
poerror has quit [Ping timeout: 248 seconds]
CBX has quit [Quit: Leaving]
roshanavand has quit [Client Quit]
sarlalian has quit [Quit: ZNC 1.6.1 - http://znc.in]
sarlalian has joined #ruby
chipotle has quit [Quit: cheerio]
sarlalian has quit [Client Quit]
sarlalian has joined #ruby
whippythellama has quit [Ping timeout: 264 seconds]
rmulligan has quit [Remote host closed the connection]
safe has quit [Ping timeout: 268 seconds]
s00pcan has quit [Remote host closed the connection]
rmulligan has joined #ruby
s00pcan has joined #ruby
djbkd has quit [Remote host closed the connection]
safe has joined #ruby
icarus has joined #ruby
guardian has quit [Ping timeout: 268 seconds]
SebastianThorn has quit [Ping timeout: 268 seconds]
djbkd_ has joined #ruby
crankharder has joined #ruby
newircuser has quit [Quit: Page closed]
vdamewood has joined #ruby
rmulligan has quit [Remote host closed the connection]
rmulligan has joined #ruby
Trynemjoel has quit [Ping timeout: 244 seconds]
SebastianThorn has joined #ruby
statelesscode has joined #ruby
ereslibre has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 250 seconds]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
kam270 has quit [Ping timeout: 250 seconds]
crankharder has quit [*.net *.split]
BadQuanta has quit [*.net *.split]
djbkd_ has quit [*.net *.split]
hinbody has quit [*.net *.split]
ledestin has quit [*.net *.split]
amclain_ has quit [*.net *.split]
znz_jp has quit [*.net *.split]
d0nn1e has quit [*.net *.split]
andersh has quit [*.net *.split]
adambeynon has quit [*.net *.split]
pfg has quit [*.net *.split]
nyandoge has quit [*.net *.split]
jxf has quit [*.net *.split]
cbetta has quit [*.net *.split]
mburns has quit [*.net *.split]
hanmac has quit [*.net *.split]
msg31 has quit [*.net *.split]
podman_ has quit [*.net *.split]
kies has quit [*.net *.split]
crowell has quit [*.net *.split]
AlexRussia has quit [Ping timeout: 260 seconds]
duderonomy has quit [Ping timeout: 248 seconds]
cheeti has joined #ruby
Abrin_AWAY has quit [Ping timeout: 268 seconds]
bluOxigen has quit [Ping timeout: 248 seconds]
duncannz has joined #ruby
bluOxigen has joined #ruby
blackmesa has joined #ruby
Abrin_AWAY has joined #ruby
<cheeti>
Hi i am trying to parse "http://web.abc.com/%3E%22'%3E%3Cmy_tag_f4d8ba6507b37dbc07b182b323461a17/%3E" into mysql database but its giving syntax error if i decode or encode that string also giving same error how to solve this?
crankharder has joined #ruby
djbkd_ has joined #ruby
BadQuanta has joined #ruby
hinbody has joined #ruby
amclain_ has joined #ruby
pfg has joined #ruby
jxf has joined #ruby
msg31 has joined #ruby
kies has joined #ruby
andersh has joined #ruby
hanmac has joined #ruby
d0nn1e has joined #ruby
ledestin has joined #ruby
mburns has joined #ruby
adambeynon has joined #ruby
podman_ has joined #ruby
znz_jp has joined #ruby
cbetta has joined #ruby
crowell has joined #ruby
nyandoge has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
duderono_ has joined #ruby
<baweaver>
....how are you trying to send that to MySQL?
blackmesa has quit [Ping timeout: 276 seconds]
<cheeti>
baweaver using insert query
Trynemjoel has joined #ruby
<baweaver>
exact query
<baweaver>
what are you using?
<cheeti>
@con.query("INSERT INTO issue (bugurl) VALUES ('http://web.abc.com/%3E%22'%3E%3Cmy_tag_f4d8ba6507b37dbc07b182b323461a17/%3E')
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kam270 has joined #ruby
uglybandersnatch has quit [Ping timeout: 276 seconds]
<cheeti>
baweaver is that righr query i defined @con as db connection all simple columns are parsing onle this column is giving error because or special characters
Dreamer3_ has quit [Ping timeout: 246 seconds]
Dreamer3_ has joined #ruby
Dreamer3 has quit [Ping timeout: 246 seconds]
harryh has joined #ruby
Dreamer3 has joined #ruby
rmulligan has quit [Remote host closed the connection]
rmulligan has joined #ruby
kam270 has quit [Ping timeout: 240 seconds]
kam270 has joined #ruby
rmulligan has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 244 seconds]
rmulligan has joined #ruby
rmulligan has quit [Remote host closed the connection]
rmulligan has joined #ruby
rmulligan has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
djbkd_ has quit []
snguyen has joined #ruby
safe has quit [Read error: Connection reset by peer]
elifoster has quit [Ping timeout: 264 seconds]
rmulliga` has joined #ruby
rmulliga` has quit [Remote host closed the connection]
kirillzh has joined #ruby
rmulligan has joined #ruby
eregi has joined #ruby
ixti has quit [Ping timeout: 260 seconds]
Ikri has joined #ruby
adgtl has joined #ruby
ur5us has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
eregi has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
astrobun_ has joined #ruby
jud has joined #ruby
yes`r has joined #ruby
mistym has quit [Ping timeout: 250 seconds]
Xiti has quit [Quit: Xiti]
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
rubie has quit [Remote host closed the connection]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has quit [Quit: WeeChat 1.4]
dcunit3d has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
astrobun_ has quit [Remote host closed the connection]
cwenner has joined #ruby
aeontech has joined #ruby
aeontech has quit [Client Quit]
rubie has joined #ruby
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
norc has joined #ruby
Chagel_ has quit [Remote host closed the connection]
ruby-lang984 has joined #ruby
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]]
Chagel has quit [Remote host closed the connection]
ytti has joined #ruby
ta_ has quit [Remote host closed the connection]
armyriad has joined #ruby
tvw has joined #ruby
<User458764>
Hi, I would like to represent a coordinate system (N,E,S,W) in binary (00,01,10,11), the system can rotate to another direction by left or right. Is the binary of this system is good idea if so, when I am at North (00) and rotate to the left how do I do with a binary operation to have 11 (West)?
nerium has quit [Quit: nerium]
JohnBat26 has joined #ruby
howdoi has joined #ruby
Chagel has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Remote host closed the connection]
<Ox0dea>
User458764: With those semantics, rotation is just addition and subtraction mod-4.
<User458764>
Ox0deaThanks can you be a more precise I am not familiar with binary operation and mod - 4?
<mikar>
hi, can i tell the net/http library to skip the proxy for certain hosts? i.e. make it respect something like the no_proxy environment variable.
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Chagel has quit [Remote host closed the connection]
hanmac has joined #ruby
cwenner has joined #ruby
podman_ has joined #ruby
kies has joined #ruby
mburns has joined #ruby
cbetta has joined #ruby
hinbody has joined #ruby
BadQuanta has joined #ruby
pfg has joined #ruby
msg31 has joined #ruby
andersh has joined #ruby
adambeynon has joined #ruby
crankharder has joined #ruby
crowell has joined #ruby
znz_jp has joined #ruby
nyandoge has joined #ruby
jxf has joined #ruby
sandstrom has joined #ruby
jas02 has joined #ruby
aganov has joined #ruby
merida has quit [Remote host closed the connection]
merida has joined #ruby
Chagel has joined #ruby
rmulligan has quit [Ping timeout: 246 seconds]
scepticulous has quit [Ping timeout: 268 seconds]
y2mq37 has quit [Quit: Leaving]
Chagel has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
krz has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
terlar has joined #ruby
Chagel has joined #ruby
blackmesa has joined #ruby
Don_John has quit [Read error: Connection reset by peer]
marcdel_ has quit [Ping timeout: 264 seconds]
Chagel has quit [Remote host closed the connection]
jam__ has joined #ruby
toretore has joined #ruby
ytti has joined #ruby
21WAAEWI4 has joined #ruby
Abrin_AWAY has quit [Ping timeout: 250 seconds]
uglybandersnatch has quit [Ping timeout: 244 seconds]
Chagel has joined #ruby
connor_g1odwolf is now known as connor_goodwolf
htmldrum has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 268 seconds]
cwenner has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
ytti has joined #ruby
baweaver has quit [Remote host closed the connection]
anisha has joined #ruby
evidex has joined #ruby
evidex has quit [Client Quit]
evidex has joined #ruby
eregi has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
21WAAEWI4 has quit [Ping timeout: 240 seconds]
tenderlove has quit [Quit: Leaving...]
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
bjpenn has joined #ruby
andersh has quit [Max SendQ exceeded]
pfg has quit [Max SendQ exceeded]
jxf has quit [Max SendQ exceeded]
nyandoge has quit [Max SendQ exceeded]
pfg has joined #ruby
nyandoge has joined #ruby
jxf has joined #ruby
andersh has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
bricker has quit [Ping timeout: 260 seconds]
James has joined #ruby
Spami_ has joined #ruby
James is now known as Guest13710
eregi has quit [Ping timeout: 248 seconds]
yes`r has quit [Ping timeout: 244 seconds]
scepticulous has joined #ruby
Chagel has quit [Remote host closed the connection]
Spami has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
Guest39569 has quit [Ping timeout: 260 seconds]
joonty has quit [Ping timeout: 244 seconds]
statelesscode has quit [Quit: statelesscode]
vondruch has joined #ruby
rmulligan has joined #ruby
ziprar is now known as zipace
yardenbar has quit [Ping timeout: 244 seconds]
Chagel has joined #ruby
Chagel has quit [Remote host closed the connection]
solocshaw1 has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 is now known as solocshaw
jenrzzz has joined #ruby
PedramT has joined #ruby
Chagel has joined #ruby
last_staff has joined #ruby
PedramT has quit [Remote host closed the connection]
<norc>
And then again with pessimize it really is not a big hassle anyway.. :S
duckpuppy has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
idletask has quit [Ping timeout: 276 seconds]
rmulligan has joined #ruby
<workmad3>
norc: gems should still have pessimistic version constraints... I tend to use pessimistic constraints in a Gemfile as a marker for "Updating this is likely to cause issues" though
<workmad3>
norc: e.g. locking to a specific version of nokogiri due to build issues on a later version, or locking to a specific gem version because they're too loose on their own versioning and updating causes incompatibilities
platzhirsch has quit [Quit: Leaving.]
sandstrom has quit [Quit: My computer has gone to sleep.]
ponga has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
<norc>
workmad3: My point was just that if they are locked through Gemfile.lock, that you could just leave the pessimistic version contraints away anyway.
<norc>
But then I quickly realized that users might want to update gems as much as my project allows from time to time. :p
anisha has quit [Quit: This computer has gone to sleep]
ebbflowgo has quit [Quit: ebbflowgo]
anisha has joined #ruby
bronson has joined #ruby
nobitanobi has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
the_drow has joined #ruby
s00pcan_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
Noxilex has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
ebbflowgo has joined #ruby
sandstrom has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
ziyadb has joined #ruby
synthroid has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
IrishGringo has quit [Ping timeout: 268 seconds]
anisha has quit [Quit: This computer has gone to sleep]
ebbflowgo has quit [Client Quit]
uglybandersnatch has joined #ruby
helper2424 has quit [Ping timeout: 248 seconds]
baweaver has joined #ruby
_kfpratt has joined #ruby
<shevy>
weaksauce it is unnecessary
platzhirsch has joined #ruby
<weaksauce>
what makes it so shevy
<shevy>
weaksauce the things it attempts to solve
Xeago has quit [Remote host closed the connection]
roshanavand has joined #ruby
sdothum has joined #ruby
joonty has joined #ruby
<weaksauce>
?
ariel_17 has joined #ruby
kfpratt has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swills has quit [Ping timeout: 248 seconds]
brandthdl has quit [Ping timeout: 248 seconds]
baweaver has quit [Ping timeout: 246 seconds]
IrishGringo has joined #ruby
unl0ckd has joined #ruby
brandthdl has joined #ruby
unl0ckd has quit [Client Quit]
binaryplease has joined #ruby
uglybandersnatch has quit [Ping timeout: 260 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
malconis has joined #ruby
<shevy>
On linux, when a "kill -9" is sent to a ruby process, and it must terminate, is there a way for it to still write a log file before it has to terminate?
lacedem has joined #ruby
<icey>
shevy: kill -9 leaves nothing for the receiving process, there is no way to catch that
binaryplease has quit [Client Quit]
<shevy>
ok
anisha has joined #ruby
anisha has quit [Remote host closed the connection]
anisha has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
jaiks has quit [Read error: Connection reset by peer]
anisha has quit [Client Quit]
<hanmac>
shevy its like you want to sit down on a chair, but someone does pull the chair away ... its also to late for you to react to that ... same for the process when its killed with -9
BadQuanta has quit [Remote host closed the connection]
<lacedem>
Hello Guys. Does someone can advert me on how to interact with a gamepad crontroller that's recognize as /dev/input/event in linux. I found some gem files like revdev, joystick or artoo-joystick. So what is the best solution?
jaiks has joined #ruby
<shevy>
hanmac yeah, you own the chair I am sitting on :(
nobitanobi has quit [Remote host closed the connection]
<shevy>
Lacedem there used to be a SDL gem... rubygame. I think it also had joystick support thanks to SDL
mfaeh has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
mfaeh has joined #ruby
jyaworski has joined #ruby
<lacedem>
I also seen this solution while googling but I did'nt go further, I'll check sdl. Thx Shevy :)
aupadhye has quit [Quit: Leaving]
rmulligan has joined #ruby
dubek has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
jyaworski_ has joined #ruby
roshanavand has joined #ruby
AlexJakeGreen has joined #ruby
eregi has joined #ruby
anisha has joined #ruby
jyaworski has quit [Ping timeout: 248 seconds]
jyaworski_ is now known as jyaworski
AlexRussia has joined #ruby
rmulligan has quit [Ping timeout: 244 seconds]
ropeney has joined #ruby
drptbl has joined #ruby
eregi has quit [Ping timeout: 276 seconds]
ropeney has quit [Client Quit]
xue has quit [Quit: Leaving]
jottr has joined #ruby
SenpaiSilver has quit [Read error: Connection timed out]
SenpaiSilver has joined #ruby
mary5030 has quit [Remote host closed the connection]
Coldblackice_ has quit [Ping timeout: 250 seconds]
SenpaiSilver has quit [Max SendQ exceeded]
mary5030 has joined #ruby
anton1x has joined #ruby
SenpaiSilver has joined #ruby
SenpaiSilver has quit [Max SendQ exceeded]
SenpaiSilver has joined #ruby
SenpaiSilver has quit [Max SendQ exceeded]
mary5030 has quit [Ping timeout: 240 seconds]
SenpaiSilver has joined #ruby
nobitanobi has joined #ruby
armyriad has joined #ruby
SenpaiSilver has quit [Max SendQ exceeded]
nobitanobi has quit [Remote host closed the connection]
SenpaiSilver has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
blackmesa has joined #ruby
terlar has joined #ruby
SenpaiSilver has quit [Remote host closed the connection]
chouhoulis has joined #ruby
nobitanobi has joined #ruby
mary5030 has joined #ruby
mallu has joined #ruby
mallu has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
terlar has quit [Quit: WeeChat 1.4]
Xeago has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
terlar has joined #ruby
aryaching has joined #ruby
PedramT has joined #ruby
DoXiD has joined #ruby
aegis3121 has joined #ruby
<DoXiD>
Hey, what's the easiest way to download all required Gemfile requirements for a project? I've got a completely offline environment but need to install required gem files in order to build and run a open source project and there for need to manually download a ton of .gem files.
Snowy has quit [Remote host closed the connection]
anisha has joined #ruby
rippa has joined #ruby
<pushcx>
DoXiD: Run 'bundle install' and copy the directory bundle installs to over to your other computer. This won't work if the gems have compiled native code, though.
<DoXiD>
havenwood: Trying the "bundle package" atm, it sad something about entering a sudo password so i tried to add "--path vendor/bundle" and it's running now. Again, not sure what the result will be here but yea, I'm assuming it will do what you sad just that i needed that parameter.
<DoXiD>
havenwood: Gemstash will for sure be useful down the road haha
dcunit3d has quit [Ping timeout: 240 seconds]
PedramT has quit [Ping timeout: 244 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
PedramT has joined #ruby
pushcx has left #ruby [#ruby]
wnd has quit [Quit: Disconnecting from stoned server.]
wnd has joined #ruby
<m15k>
Sorry for the another noobish question: I need to initiliaze the database with "RAILS_ENV=production rake db:migrate" but the development part of database.yml is used. Any ideas why?
krz has quit [Ping timeout: 244 seconds]
`tim` has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
gbgdev has quit [Remote host closed the connection]
helper2424 has joined #ruby
data-kid has joined #ruby
DmitryBochkarev has joined #ruby
olivierjanss has joined #ruby
anisha has quit [Quit: Leaving]
last_staff1 has joined #ruby
<olivierjanss>
is there a way to pass something to a shell command (like Time.now)? This doesnt work: `sudo -u user mkdir /home/user/test.{Time.now}`
<data-kid>
is it possible to define a method that takes a symbol as an argument, call it sym, and then in the body of your method have something like obj.sym
ta_ has quit [Remote host closed the connection]
<havenwood>
m15k: How odd! I'd suggest also asking in #RubyOnRails since it's Rails-specific. PS - Noobish questions are welcome! (Not that this was one.)
<havenwood>
m15k: I'd suggest showing them a Gist of your whole database.yml.
<hanmac>
olivierjanss: you mean like "date" ? and if you want to use {Time.now} why dont you use "#{}" ? that does work inside `` too
PedramT has quit [Remote host closed the connection]
bronson has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
KensoDev has joined #ruby
codecop has quit [Remote host closed the connection]
codecop_ has quit [Remote host closed the connection]
sankaber has quit [Remote host closed the connection]
poerror has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
sankaber has joined #ruby
KensoDev has quit [Client Quit]
ariel_17 has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
Chagel has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
nfk|laptop has quit [Ping timeout: 244 seconds]
sergey_makagon has quit [Ping timeout: 240 seconds]
anton1x has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
hmm how big is a static compiled version of mruby? anyone knows?
djbkd has quit [Ping timeout: 252 seconds]
Chagel has joined #ruby
<b|ackwolf>
how can I use attr_writer to define total_count in this code? https://dpaste.de/Cxy5
yes`r has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
ruby-lang733 has quit [Ping timeout: 252 seconds]
<i8igmac>
can i run ruby in apache2 to replace php
weemsledeux has joined #ruby
<workmad3>
b|ackwolf: class << self; attr_writer :total_count; end
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has quit [Ping timeout: 264 seconds]
B1n4r10 has joined #ruby
<b|ackwolf>
workmad3, thanks
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mfb2 has joined #ruby
Chagel has quit [Ping timeout: 246 seconds]
duckpupp1 has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
hxegon has joined #ruby
icarus has quit [Ping timeout: 246 seconds]
Hammy_Work has joined #ruby
data-kid has quit [Quit: Lost terminal]
dopamean_ has joined #ruby
whippythellama has joined #ruby
aalmenar has joined #ruby
Yiota has quit [Remote host closed the connection]
platzhirsch has quit [Quit: Leaving.]
terlar has quit [Ping timeout: 248 seconds]
<havenwood>
shevy: embedding an mruby fizz buzz in C and compiling weighed in for me at about 395K
<havenwood>
i8igmac: yes
rodfersou is now known as rodfersou|lunch
Prominent has joined #ruby
rmulligan has joined #ruby
pawnbox has quit [Remote host closed the connection]
PedramT has joined #ruby
pawnbox has joined #ruby
<havenwood>
i8igmac: mod_ruby was a thing and these days there's passenger (mod_rack) or you might like avoiding an apache module entirely with rack-server-pages: https://github.com/migrs/rack-server-pages
synthroid has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
swedishfish has quit [Client Quit]
<crime>
I've seen concurrent-ruby, but I was hoping to keep it as light as possible. if I .freeze it, is it safe to call [] on it from different threads?
B3rg3lm1r has joined #ruby
<havenwood>
crime: yes
<crime>
dope, thanks mate.
<crime>
<3
yes`r has joined #ruby
<havenwood>
crime: in CRuby the GVL even gives you some write assurances
<tycoon177>
When I am in the views tutorial, I cannot get my list.html.erb to work properly. My rails server is telling me "No route matches {:action=>"new", :controller=>"time_off_request"}"
<tycoon177>
I'll upload my code for this to a gist
<adaedra>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Uber|Dragon has quit [Ping timeout: 260 seconds]
<tycoon177>
I'll ask there adaedra. Thank you!
duckpuppy has joined #ruby
SenpaiSilver has joined #ruby
last_staff has quit [Quit: last_staff]
zapata has quit [Quit: WeeChat 1.4]
mic_e has joined #ruby
intrigueD has joined #ruby
duckpuppy has quit [Client Quit]
duckpuppy has joined #ruby
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
zotherstupidguy has joined #ruby
brandthdl has quit [Quit: Lost terminal]
digitalcakes has quit [Quit: Leaving.]
snockerton has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
zotherstupidguy has quit [Ping timeout: 248 seconds]
mistermo_ has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
jehoesefat has quit []
jenrzzz has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
bronson has joined #ruby
rmulligan has joined #ruby
freerobby has quit [Quit: Leaving.]
mistermocha has joined #ruby
freerobby has joined #ruby
Prominent has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 248 seconds]
stannard_ has joined #ruby
PedramT has quit [Remote host closed the connection]
<crime>
alexherbo2: your hash is inside the array that gets returned
eurialo has quit [Ping timeout: 260 seconds]
<alexherbo2>
Which array?
<crime>
the one that gets returned
<alexherbo2>
I don’t understand
<alexherbo2>
in watch, I return an Hash
<alexherbo2>
in run_on_{event}s(events) method, events is an array now
<crime>
with three hashes in it
firstdayonthejob has joined #ruby
<fexilal>
Hi, I have 2 arrays. One is a 1-D Array (call it board), the other is 2-D array containing arrays of length 3 (combinations) .. how can I iterate over board with the indices from combinations (3 items at a time) ?
<eam>
crime: his outer hash is getting converted
<crime>
i see it
<alexherbo2>
eam: yes :/
_kfpratt has quit [Remote host closed the connection]
<eam>
I don't know this guard thing so I'm no help as to why. Go look up the watch method?
B4daBing73 has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
<havenwood>
alexherbo2: we can though help you get your hash back, unless you're just wondering why this particular guard method returns as it does
bjpenn has quit [Ping timeout: 276 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruby[bot]>
havenwood: # => {"modification"=>"{:foo=>\"../spec/rhizome_spec.rb\"}", "addition"=>"{:bar=>\"../spec/rhizome_spec.r ...check link for more (https://eval.in/535118)
<ruby[bot]>
havenwood: # => {"modification"=>"{:foo=>\"../spec/rhizome_spec.rb\"}", "addition"=>"{:bar=>\"../spec/rhizome_spec.r ...check link for more (https://eval.in/535119)
<alexherbo2>
havenwood: I can do Hash[*events]
<alexherbo2>
But I was surprised events gets converted…
<havenwood>
That was a bit spammy, sorry about that. I should have shortened the example.
duncannz has quit [Remote host closed the connection]
mfb2 has quit [Remote host closed the connection]
y2mq37 has joined #ruby
intrigueD has joined #ruby
<weaksauce>
baweaver cool talk
<baweaver>
danke
dionysus69 has quit [Ping timeout: 248 seconds]
fullofcaffeine has joined #ruby
DarthGandalf has joined #ruby
elifoster has quit [Ping timeout: 268 seconds]
gizless has joined #ruby
flopsec has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
babblebre has quit [Quit: Connection closed for inactivity]
gizmore has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
mallu has joined #ruby
SCHAAP137 has joined #ruby
mfb2 has joined #ruby
freakcoder has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
<weaksauce>
baweaver what's going on with the focus on the screen though?
dcunit3d has joined #ruby
kies has joined #ruby
bronson has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
<baweaver>
cameraman is clueless methinks
<baweaver>
unfortunate.
gizless has quit [Ping timeout: 244 seconds]
digitalcakes has quit [Quit: Leaving.]
<baweaver>
I can redo those sections and try and splice it in with theirs later.
sandstrom has joined #ruby
guest_ has joined #ruby
<guest_>
hmm.. hello..
<weaksauce>
baweaver bummer. have you tried history substring search from zprezto? your command !ssh would be just ssh<up> to give you all the ssh commands or commands with ssh in them
<weaksauce>
it's highlighted and awesome
<baweaver>
ctrl + r
<adaedra>
Guest_: hi!
guest_ is now known as tcdowney
<weaksauce>
baweaver yeah that was what I was using but this is better in delightful ways
roshanavand has quit [Quit: This computer has gone to sleep]
The_Phoenix has quit [Quit: Leaving.]
lemur has joined #ruby
kirun has joined #ruby
mfb2 has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
Vingador has quit [Ping timeout: 240 seconds]
<darix>
baweaver: fire that camera man :p
lemur has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
Uranio has joined #ruby
configged has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
digitalcakes has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
j3r0 has quit [Ping timeout: 246 seconds]
ariel_17 has quit [Ping timeout: 260 seconds]
flopsec has quit [Ping timeout: 244 seconds]
tcdowney has quit [Quit: Computer has gone to sleep.]
stannard_ has quit [Remote host closed the connection]
pdev_memories has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darix>
when ever there is the console window the focus starts hunting -.-
xgfnxftt has quit [Quit: Leaving.]
<quazimodo>
How do I define a named class that is isolated per rspec example or describe group ?
<shevy>
at least it was not recorded via a potato
<weaksauce>
potatoes focus better though
mistermocha has quit [Ping timeout: 244 seconds]
<baweaver>
There's a starch difference in quality
<baweaver>
quazimodo: ?xy
<shevy>
lol
<baweaver>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<baweaver>
in this case, you probably want stubbing
johnmilton has quit [Remote host closed the connection]
mistermocha has joined #ruby
kirillzh has joined #ruby
hxegon is now known as hxegon_AFK
mistermo_ has quit [Ping timeout: 260 seconds]
mdw has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]