<LiamW>
let's say that you want to find the shortest leftmost "balanced" block in bbcode (this is like the balanced parentheses problem, but I think it can't be solved correctly with the tree solution)
<LiamW>
"[b] stuff [/b]" should return the whole string, so should "[b] stuff [b] [/b]", but "[b]stuff[/b][/b]" should return "[b]stuff[/b]"
<LiamW>
and I swear this is not an x/y problem
<LiamW>
the opening block will /always/ be the first part of the string
<LiamW>
you can't solve it with regexps to begin with unless you were being pragmatic and limited it to some x amount of nested states
<LiamW>
but I want to fully handle nesting
<havenwood>
LiamW: oh, i misread your last example
<LiamW>
plus that won't get this scenario: '[b]foo[/b] [b]bar[/b]'
<LiamW>
the inner portion will be "foo[/b] [b]bar"
<havenwood>
what should it be?
<LiamW>
but I want it to get "[b]foo[/b]"
mwlang has quit [Quit: mwlang]
<havenwood>
LiamW: how about?: the_end = '[/b]'; s[0..s.index(the_end) + the_end.size.pred]
mwlang has joined #ruby
<havenwood>
LiamW: it works with the examples you've given at least
<havenwood>
or yeah, regexp
VladGh has quit [Ping timeout: 245 seconds]
<LiamW>
fair enough, I haven't explained very well: with [b] it doesn't ever make sense to go more than one level
<LiamW>
but [span][/span] etc could be nested to arbitrary levels
<havenwood>
LiamW: This sure looks like xml or html but with square braces instead of angle braces :P
<LiamW>
yup
mwlang has quit [Client Quit]
<LiamW>
that's what bbcode pretty much is
<LiamW>
"[span]x[span]y[/span]z[/span]a[/span]" => I want to get "[span]x[span]y[/span]z[/span]"
mwlang has joined #ruby
<havenwood>
s.tr '[]', '<>'
<havenwood>
:P
mwlang has quit [Client Quit]
<LiamW>
I mean, I'm writing this to replace a buggy old parser with XSS flaws
<LiamW>
so.
<LiamW>
and I can't use an off-the-shelf one because this language is too customized
Bish has quit [Ping timeout: 244 seconds]
d^sh_ has quit [Ping timeout: 260 seconds]
palms has joined #ruby
<LiamW>
I have the other language parts figured out
<LiamW>
I just have to handle this damn arbitrary nesting problem
byte512 has quit [Ping timeout: 256 seconds]
Bish has joined #ruby
<havenwood>
LiamW: granted i'm distracted at the moment but i don't quite follow the goal. i'd suggest posting a gist with description of why you're trying to do it and a bunch of examples (or better yet a failing minitest specs or tests)
Silthias has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
allcentury has joined #ruby
d^sh has joined #ruby
saltsa has joined #ruby
Silthias has joined #ruby
csk has joined #ruby
Axy has quit [Read error: Connection reset by peer]
<foofottufof>
Does anyone know which gtk is the best for little desktop ruby apps? I've seen lots of old info online but can't seem to find any consensus in 2016 for what 's really good. Any opinions? Thanks!
hinbody has quit [Quit: leaving]
GodFather has joined #ruby
gizless is now known as gizmore
benlieb has joined #ruby
benlieb has quit [Client Quit]
wpostma1 has joined #ruby
<pilne>
from what i've seen in various distros, gtk2 is still ubiquitous, but gtk3 has almost taken over
<LiamW>
gtk3 has better rb bindings as far as I know
<LiamW>
because of gir etc
<Nilium>
I think you'd probably want to look more at which gems are better maintained than GTK version at this point
marr has quit [Ping timeout: 245 seconds]
h1d has quit [Quit: h1d]
hinbody has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
Silthias has quit [Ping timeout: 245 seconds]
<foofottufof>
I've read a lot about QtRuby, Shoes, and gtk2 & gtk3. But I haven't enough experience to tell which ones are smaller projects or aren't so well suited to ruby; and which are really working well in 2016.
<daed>
i'd like to know as well
<foofottufof>
Also tk is built in apparently
<daed>
last time i looked at shoes was in 2008-2009
Silthias has joined #ruby
gener1c_ has joined #ruby
<foofottufof>
Thanks for the ideas ;)
<foofottufof>
I'll probably try a small project in each one and see what I can discover.
<LiamW>
side note: you could also use libffi and use gtk handles direcly
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Silthias has quit [Ping timeout: 244 seconds]
pwnd_nsfw has joined #ruby
Silthias has joined #ruby
yanigisawa has quit [Quit: WeeChat 0.4.2]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
ur5us has quit [Remote host closed the connection]
govg has joined #ruby
Devalo has joined #ruby
Littlemyu_ has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
Devalo has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
enterprisey has quit [Quit: Leaving]
blackwind_123 has joined #ruby
igniting has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
Yzguy has quit [Quit: Zzz...]
byte512 has quit [Ping timeout: 240 seconds]
railssmith has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
Silthias has joined #ruby
jcao219 has joined #ruby
nankyokusei has joined #ruby
pwnd_nsfw` has joined #ruby
rohit_ has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
Vile` has quit [Ping timeout: 268 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
arescorpio has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
creat has joined #ruby
gix has joined #ruby
A5101 has quit [Ping timeout: 245 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
ur5us has joined #ruby
Tempesta has quit [Quit: See ya!]
rohit__ has joined #ruby
rohit_ has quit [Ping timeout: 252 seconds]
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
palms has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
cyphase has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
ur5us has quit [Remote host closed the connection]
XV8 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
djbkd has joined #ruby
nankyokusei has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
drPoggs has quit [Ping timeout: 250 seconds]
Devalo has quit [Ping timeout: 246 seconds]
ace05 has joined #ruby
bluOxigen has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
ace05 has quit [Ping timeout: 248 seconds]
Savage has joined #ruby
jtd has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
rohit__ has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
rohit__ has joined #ruby
rohit__ has quit [Client Quit]
rohit__ has joined #ruby
jtd has joined #ruby
cyphase has quit [Ping timeout: 268 seconds]
CloCkWeRX has joined #ruby
govg has joined #ruby
aupadhye has joined #ruby
cyphase has joined #ruby
bigmac has quit [Quit: Leaving]
CloCkWeRX has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 240 seconds]
igniting has joined #ruby
Channel6 has quit [Quit: Leaving]
dionysus69 has joined #ruby
yardenbar has joined #ruby
nankyokusei has joined #ruby
ponga has quit []
ur5us has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 244 seconds]
blackbombay has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
drPoggs has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
etehtsea has joined #ruby
LoneHermit has joined #ruby
ace05 has joined #ruby
Devalo has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
agent_white has quit [Ping timeout: 258 seconds]
ace05 has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
ag4ve has quit [Ping timeout: 265 seconds]
nofxx_ has joined #ruby
CloCkWeRX has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
Ishido has joined #ruby
ag4ve has joined #ruby
<astrobunny>
named parameters /dance
<astrobunny>
bye bye options hash
lxsameer has joined #ruby
ur5us has joined #ruby
<blackbombay>
they've been around for a while :-)
<astrobunny>
yes
<astrobunny>
and ive been using them for a while
<astrobunny>
god bless them
<astrobunny>
deleting code ftw
<blackbombay>
i don't use them much so far.
<astrobunny>
the takeup has been slow in my code too
<astrobunny>
but its coming along
<astrobunny>
it doesnt make sense for some funcs
egg_ has joined #ruby
<astrobunny>
but its a blessing for a lot of them
<daed>
we still have production environments running on ruby 1.8.7
* daed
gags
<daed>
it's only the one, but still
konsolebox has joined #ruby
etehtsea has quit [Ping timeout: 260 seconds]
A5101 has joined #ruby
nankyokusei has joined #ruby
Silthias has quit [Ping timeout: 245 seconds]
Silthias has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
agent_white has joined #ruby
etehtsea has joined #ruby
futabachannel has quit [Quit: Leaving...]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
etehtsea has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
gizmore has quit [Remote host closed the connection]
gizmore has joined #ruby
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHermit has joined #ruby
rohit__ has quit [Ping timeout: 256 seconds]
gizmore has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
benlieb has quit [Client Quit]
<dminuoso>
I need some input. I got an image from a PDF that is marked with a "FlateDecode". Zlib happly inflates this, but the output does not match any image format I'm aware of.
vuoto has joined #ruby
<dminuoso>
OSX suggests the output is a VAX COFF...
pawnbox has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
<dminuoso>
The inflated data starts with a couple dozen \FF bytes at both the start and end, it's a bit weird.
gusrub_ has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
pawnbox has joined #ruby
dnicole has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
luckyruby has joined #ruby
conta1 has joined #ruby
edwinvdgraaf has joined #ruby
ag4ve has quit [Ping timeout: 258 seconds]
blaxter has joined #ruby
blaxter has quit [Remote host closed the connection]
ace05 has joined #ruby
charliesome has joined #ruby
blaxter has joined #ruby
nankyokusei has joined #ruby
edwinvdgraaf has quit [Ping timeout: 246 seconds]
VxJasonxV has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
aryaching has joined #ruby
<VxJasonxV>
I'm attempting to collaborate on a Ruby gem, this gem has example files inside of it's git repo that users are supposed to copy out, switch out some values, install the gem externally (directly or via bundler) then run the example file
<VxJasonxV>
I'm developing examples that are intended to test changes I'm making to the gem even if I never wind up committing the example file itself
c0mrad3 has joined #ruby
<VxJasonxV>
Is it possible to require sources from the file system so it uses my local changes?
ace05 has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<daed>
'from the file system'?
ace05 has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
<dminuoso>
VxJasonxV: Yes. Use the "path" directive in Bundler.
<VxJasonxV>
that's what I tried to explain. This is a file *inside* the gem. Installing the gem inside of itself doesn't make sense to me
<dminuoso>
What?
<dminuoso>
VxJasonxV: ?testcase
<dminuoso>
?testcase
<ruby[bot]>
dminuoso: I don't know anything about testcase
<dminuoso>
ruby[bot]: You dont know much, do you?
LoneHerm_ has quit [Ping timeout: 260 seconds]
<VxJasonxV>
not often
ace05 has quit [Remote host closed the connection]
<dminuoso>
VxJasonxV: Test with spec/minitest/whatever framework you have, *not* with examples/ files
<VxJasonxV>
my workspace is a gem's sources. It already has a Gemfile, which contains only codeclimate-test-reporter and gemspec
<dminuoso>
They exist for a reason.
<VxJasonxV>
that itself is difficult for a whole different reason, the primary author was working on a mocking server for test purposes, but that is well beyond my skill set
vuoto has quit [Remote host closed the connection]
<VxJasonxV>
because we don't want to send hundreds of what are essentially junk requests to the service whenever tests are run
<elomatreb>
Yzguy: Any reason for having the action behing a flag? Couldn't they just be subcommands?
<Yzguy>
not sure I understand, you mean like fusionmanage show versus fusionmanage --action show
<Yzguy>
I had thought about that, new to trollop so wasn't too sure on how to do that (mixing between flags/non-flag)
<elomatreb>
Yeah. This looks a little weird (Maybe it makes sense in the domain, not familiar)
ace05 has joined #ruby
<elomatreb>
Of course, it's perfectly valid this way. No reason to do extra work
<Yzguy>
Well I kinda of like the sub command thing with flags, just not sure how. if you have any references I would love to take a look
<Yzguy>
ideally because it would be cool to only have to specify the like protocol, ip, etc when the sub command is forward
<Yzguy>
err wait, i did that already :P but yeah I like the sub command idea
ace05 has quit [Remote host closed the connection]
iceWeasley has joined #ruby
<Yzguy>
ah, found a doc on it
<Yzguy>
I'll try it out! Thanks elomatreb
<Yzguy>
I also need to work on tests next :) but baby steps
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dionysus69 has joined #ruby
blaxter has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
A5101 has quit [Ping timeout: 268 seconds]
Yzguy has quit [Quit: Zzz...]
blaxter has joined #ruby
rohit__ has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
vuoto has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
vuoto has joined #ruby
JoshS has joined #ruby
Tempesta has joined #ruby
gingray has joined #ruby
tvw has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
modin has quit [Ping timeout: 246 seconds]
Hobbyboy has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
Savage has quit [Quit: Connection closed for inactivity]
modin has joined #ruby
yardenbar has joined #ruby
xrlk has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
Bish has quit [Remote host closed the connection]
agent_white has quit [Quit: brb sec]
TvL2386 has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
iceWeasley has quit [Quit: Page closed]
CloCkWeRX has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
_djbkd has quit [Remote host closed the connection]
<VxJasonxV>
I got it working by running the same initialization that the gemspec file does. moving the local lib onto the start of $LOAD_PATH (unshift), and then just using the normal 'require' call.
VxJasonxV has left #ruby ["de/part'ing"]
_djbkd has joined #ruby
ace05 has quit [Ping timeout: 240 seconds]
_djbkd has quit [Ping timeout: 260 seconds]
Silthias has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
Dimik has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
shaman42 has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
CloCkWeRX has joined #ruby
SesMan has joined #ruby
solocshaw has joined #ruby
nofxx_ has quit [Ping timeout: 258 seconds]
vondruch has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
RedFromage has joined #ruby
Hobbyboy has joined #ruby
SesMan has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 256 seconds]
Salih has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
nankyokusei has joined #ruby
edwinvdgraaf has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
nobitanobi has joined #ruby
shaman42 has joined #ruby
nobitano_ has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
aswen has joined #ruby
Silthias has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
andikr has joined #ruby
marr has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
aganov has joined #ruby
elifoster has quit [Quit: sleep]
Silthias1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Silthias has quit [Ping timeout: 246 seconds]
teclator has joined #ruby
<quazimodo>
I have something like like while line = file.gets; puts line; end
<quazimodo>
it's running on another thread, but i need to be able to kill that thread. I have no idea how, it doesn't respond to calls to kill it
<quazimodo>
in particular I'm using celluloid
luckyruby has quit [Quit: Leaving...]
<quazimodo>
i mean, I don't know how to 'idle' the celluloid actor in between reading from the stdout
pawnbox has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
palms has joined #ruby
flying has joined #ruby
<daed>
are you trapping signals?
<quazimodo>
no, i haven't begun this
j`ey has joined #ruby
<heftig>
with plain threads and no celluloid, Thread#raise and Thread#kill work just fine
<j`ey>
I have a script which used the Net::HTTP stuff to logon to a site
<quazimodo>
I'm happy for the thread/celluloid actor to block on read, as long as they and the main program respond to SIGINT
<j`ey>
the site's SSL Cert has changed, now I'm getting: 'net/http.rb:933:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)'
<quazimodo>
but i'm not sure how this works
<j`ey>
is there some local 'cache' of the cert of something?
vondruch has joined #ruby
ramfjord has joined #ruby
CloCkWeRX has joined #ruby
mikecmpbll has joined #ruby
ace05 has joined #ruby
ur5us has joined #ruby
<quazimodo>
this is so odd
<quazimodo>
how do people spawn another process and monitor it simply?
<quazimodo>
basically, i need my ruby program to spawn a node server and keep an eye on it in the development environment
<quazimodo>
I presume I need 1 more ruby thread to do this
k13nox has joined #ruby
palms has quit [Ping timeout: 260 seconds]
<manveru>
j`ey: look in /etc/ssl/certs
<manveru>
j`ey: alternatively your SSL_CERT_FILE env var
<daed>
or just set ssl verify to none
nankyokusei has joined #ruby
ferr has joined #ruby
ace05 has quit [Ping timeout: 248 seconds]
<dminuoso>
quazimodo: Depends on what you mean by monitoring.
<manveru>
if you don't care about security :P
Ishido has quit [Ping timeout: 240 seconds]
lenwood has joined #ruby
kareelee has joined #ruby
xrlk has joined #ruby
rohit__ has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<quazimodo>
dminuoso: how about just reading the stdout of the process and logging/puts'ing it
<quazimodo>
something simple to start with
<dminuoso>
quazimodo: I don't think you can kill a thread while its blocking by the way.
nankyokusei has quit [Ping timeout: 258 seconds]
<quazimodo>
yeah see that's what i'm getting at
Tropical has joined #ruby
Fernando-Basso has joined #ruby
<quazimodo>
i don't know these things :(
ocbtec has joined #ruby
koooge has quit [Quit: Leaving...]
<quazimodo>
maybe it's wise to throw a timeout around the blocking io?
Ropeney has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<dminuoso>
quazimodo: Mmm a quick test case revals that you can kill blocking threads.
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
GodFather has joined #ruby
k13nox has joined #ruby
k13nox has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
tyang has joined #ruby
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
nankyokusei has joined #ruby
sepp2k has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
<kke>
looks like i need to build a programming language on top of hashes.. something like: { skip_if: { db_driver: { is: [ 'mysql', 'galera' ], and: { db_host: { null: false } } } should create something like: `if (db_driver == 'mysql' || db_driver == 'galera') && !db_host.nil?` any tips, is there something i should be using?
nankyokusei has quit [Ping timeout: 244 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<manveru>
kke: you... what?
<apeiros>
it seems they have an AST in a hash
<apeiros>
and want to evaluate it
Snowy has quit [Ping timeout: 265 seconds]
<manveru>
how about something like liquid instead?
<manveru>
i'm mostly interested what "need" means :)
k13nox has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
Vile` has quit [Ping timeout: 256 seconds]
<kke>
can't use liquid, has to be yaml compatible
<apeiros>
isn't liquid a template thingy?
<manveru>
yeah
vuoto has quit [Remote host closed the connection]
<kke>
wasn't one of liquids intentions to remove all conditional logic from views?
nankyokusei has joined #ruby
vuoto has joined #ruby
<kke>
i think AST was the keyword i was after
<apeiros>
it's cute how every other template language sets out with that goal initially
<manveru>
i meant more the implementation of liquid than the usage :)
<blackbombay>
apeiros: some go a lot further than others. effigy for example.
d0nn1e has joined #ruby
<apeiros>
lynk?
<dminuoso>
apeiros: Even more cute how modern solutions even go back to the roots, realizing that mixing code and markup is extremely elegant. :p
<manveru>
kke: well, in the end you're gonna build your own programming language now :)
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
fmcgeough has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<apeiros>
dminuoso: yeah, it's difficult to do templating well. it's annoyingly easy to mess up no matter which variant you choose - all code outside of the template (akin what effigy seems to do), mixed, or all code in the template - all ways lead to hell eventually :-S
xrlk has quit [Ping timeout: 260 seconds]
k13nox has quit [Quit: Leaving...]
quazimodo has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
aupadhye has quit [Remote host closed the connection]
blackwind_123 has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
nettoweb has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Quit: Leaving]
Littlemyu_ has joined #ruby
aegis3121 has joined #ruby
jhack has joined #ruby
sgronblo has left #ruby [#ruby]
last_staff has quit [Quit: last_staff]
nankyokusei has joined #ruby
Hanynowsky has joined #ruby
Cymew has joined #ruby
<Hanynowsky>
hello guys
<Hanynowsky>
needs an urgent help
<Hanynowsky>
I am using a small Sinatra app
<Hanynowsky>
That serves as an API
nettoweb has joined #ruby
<Hanynowsky>
well, It receives too many http requests
<Hanynowsky>
and I get CONNECTION REFUSED
<Hanynowsky>
error
Cymew has left #ruby [#ruby]
<Hanynowsky>
How can i configure Sinatra to accept a big number of simultaneous requests
<Hanynowsky>
???
SCHAAP137 has joined #ruby
<blackbombay>
what web server are you using? it sounds like it dies.
swills has joined #ruby
<apeiros>
that might well not be a limitation of sinatra Hanynowsky
<Hanynowsky>
apeiros, so a limitation of the THIN server ?
<apeiros>
Hanynowsky: how many connections are we talking about?
swills has quit [Remote host closed the connection]
swills has joined #ruby
<Hanynowsky>
When you first start the sinatra app, it tells you : Max connections set to 1024
brendan- has joined #ruby
<apeiros>
yes, see ^
<Hanynowsky>
But I can't figure out where to change that setting
cdg has joined #ruby
<Hanynowsky>
sinatra and thin were installed as GEMS
<Hanynowsky>
apeiros, hummm !
nankyokusei has joined #ruby
<Hanynowsky>
What if I lock sinatra to server requests synchronosly ?
<Hanynowsky>
synchronously
<Hanynowsky>
Would it make sure all requests pass through even though ot takes more time to be served
tlaxkit has joined #ruby
<apeiros>
no idea
<Hanynowsky>
ok thanks :)
<Hanynowsky>
I am gonna try
vuoto has quit [Remote host closed the connection]
medved_ has joined #ruby
vuoto has joined #ruby
ramortegui has joined #ruby
nankyoku_ has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
Savage has joined #ruby
nankyokusei has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nankyoku_ has quit [Ping timeout: 244 seconds]
Beams has joined #ruby
binaryplease has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
millerti has joined #ruby
eclm has joined #ruby
rfoust has joined #ruby
_sfiguser has joined #ruby
zamasu has joined #ruby
<zamasu>
It is possible to use multiple languages with Yard?
<zamasu>
Spanish, English...
dviola has joined #ruby
malconis has joined #ruby
binaryplease has quit [Quit: binaryplease]
spiette has quit [Ping timeout: 265 seconds]
spiette has joined #ruby
Helheim has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
malconis has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
pawnbox_ has joined #ruby
allcentury has joined #ruby
workmad3 has joined #ruby
DLSteve has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
MissionCritical has joined #ruby
DroidBurgundy has joined #ruby
grug is now known as GRUG-THE-THUG
shinnya has joined #ruby
malconis has joined #ruby
bluOxigen has quit [Remote host closed the connection]
Littlemyu_ has quit [Ping timeout: 260 seconds]
binaryplease has joined #ruby
Snowy has joined #ruby
tuxaddicted has quit [Ping timeout: 268 seconds]
flyingX has joined #ruby
Rodya_ has joined #ruby
bluOxigen has joined #ruby
flying has quit [Ping timeout: 240 seconds]
saslam has joined #ruby
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
conta has quit [Quit: conta]
rippa has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
blackmesa has quit [Quit: WeeChat 1.5]
bluOxigen has joined #ruby
saslam has quit [Ping timeout: 268 seconds]
igniting has quit [Ping timeout: 252 seconds]
xaxisx_ has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
binaryplease has quit [Ping timeout: 246 seconds]
ace05 has joined #ruby
xaxisx has quit [Ping timeout: 265 seconds]
medved_ has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
geek876__ has joined #ruby
dionysus69 has joined #ruby
ace05 has quit [Ping timeout: 246 seconds]
gregf_ has joined #ruby
ta_ has quit [Remote host closed the connection]
<geek876__>
Hello , quick question, I want to get the timezone offset from locatime in ruby. When I do this 'Time.now.getlocal.zone' I get GMT but I want to retrieve +01:00 or +00:00 depending on if we are in british summer or winter time
Guest43733 has quit [Quit: Oh shit the geek died!]
enterprisey has joined #ruby
ldnunes has quit [Ping timeout: 268 seconds]
borkdude has joined #ruby
borkdude has quit [Excess Flood]
borkdude has joined #ruby
ruby045 has joined #ruby
conta has quit [Ping timeout: 240 seconds]
borkdude has left #ruby [#ruby]
synthroid has quit [Remote host closed the connection]
<apeiros>
toretore: oooh! I never knew about the : modifier for %z. that's nice!
<apeiros>
handicraftsman: if subl lags for you, rubymine would probably not be a viable choice even if it was free ;-) (not that that makes anything better)
<blackbombay>
i thought apeiros knew everything.
nankyokusei has joined #ruby
spacenoid has joined #ruby
<apeiros>
blackbombay: I do. my omniscience just happens to be a non-linear function of the timecube.
<spacenoid>
what a great time to join, please go on =p
<apeiros>
oh wait… timecube has gone… nooooo
hightower3 has quit [Ping timeout: 260 seconds]
<chris2>
thymecube is still there iirc
hightower2 has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
hightower2 has joined #ruby
dn` has quit [Ping timeout: 246 seconds]
<apeiros>
stumbled over an interview with the creator. watched 3min. decided I can't take that much stupidity at this time. already far too much of that floating around nowadays :-S
nankyokusei has quit [Ping timeout: 256 seconds]
<chris2>
how true
<apeiros>
aaaand I probably should go OT with that :D
dn` has joined #ruby
<handicraftsman>
@apeiros, it started to lag after update
<toretore>
timecube for president
<pagios>
how many bytes are reserved by default to a char in ruby
<pagios>
2?
<toretore>
you can't resist the bellybutton logic
<toretore>
pagios: depends on encoding
<chris2>
pagios: depends on the encoding. default is utf8
<pagios>
so 8 byteS?
Rodya_ has quit [Remote host closed the connection]
<pagios>
per char
<toretore>
and utf8 is variable
* baweaver
slowly puts down ?offtopic
<apeiros>
utf-8 means 1-5 bytes atm
<chris2>
1 byte per char when ascii
<pagios>
1.5?
<apeiros>
1 to 5
<apeiros>
not 1.5
<pagios>
i need exact number
<apeiros>
variable, as others already said
<chris2>
there is no exact number
<apeiros>
you won't get one. that's not how it works.
<pagios>
as i am sending 80bytes of characters
<handicraftsman>
I'll try configuring emacs
<pagios>
apeiros, i need tosend 80 bytes of char exacgtly
<chris2>
then use BINARY, and it will be 1 byte = 1 char
<apeiros>
well, 80 bytes of characters in utf-8 can be anything from 16 to 80 characters
<havenwood>
pagios: so that's between 16 and 80 chars
ldnunes has joined #ruby
handicraftsman has left #ruby ["Leaving"]
<pagios>
i need the exact number i cant send something in between
<toretore>
then you send 80 bytes, not 80 bytes of characters
<apeiros>
then you're either doing something wrong using utf-8, or have another misunderstanding
<pagios>
coz in python it is exactly a number
<blackbombay>
apeiros: lol
<chris2>
in python its the same :P
<apeiros>
pagios: yeah, no. then it's not utf-8. but it may still be unicode.
<pagios>
if i send 'A'*2700 it means i am sending 2700bytes +
<chris2>
same in ruby
<toretore>
not if it's utf 16
<pagios>
i am not specifying the utf
<apeiros>
pagios: you do understand what "variable" means, yes?
enterprisey has quit [Remote host closed the connection]
<chris2>
use .bytesize to measure the length in bytes
<apeiros>
2700 times "A" in utf-8 will be 2700 bytes in *all* systems which correctly implement utf-8.
marr has joined #ruby
tyang_ has joined #ruby
<chris2>
use .byteslice(0,80) to send 80 bytes, no matter the encoding
<havenwood>
pagios: len(bytearray("😑")) #=> 4
<havenwood>
pagios: it totally depends on the character in utf-8, in python or whatever lang
lenwood has quit [Remote host closed the connection]
lenwood has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
<toretore>
timecube can encode every conceivable character in half a byte
<apeiros>
if you have 80 bytes exactly in your message you either have some kind of restriction (e.g. "only ascii"), padding, or incomplete sequences.
<apeiros>
that's assuming that your protocol truly and really prescribes utf-8.
TheDoctor has joined #ruby
<TheDoctor>
Yeah, timecube, wasn't a great idea
<TheDoctor>
would not recommend
<TheDoctor>
alonsy!
TheDoctor has quit [Client Quit]
tyang has quit [Ping timeout: 258 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
<pagios>
havenwood, so if i foce a utf-8 a char would be 1 byte exactly?
<toretore>
pagios: explain in more detail what it is you're trying to do
edwinvdgraaf has joined #ruby
<pagios>
studying buffer overflows
<pagios>
and i need to send exact number of bytes
hanine_ has joined #ruby
<toretore>
so where does yout talk of characters come from?
<pagios>
to make the remote machine behave in a specific way
<chris2>
then use binary strings
Hanynowsky has quit [Read error: Connection reset by peer]
hanine__ has joined #ruby
<apeiros>
pagios: I think you don't understand character vs. byte yet. IMO you should learn about what means what first.
<pagios>
a char is a number of byte depdning the encoding set no?
<toretore>
it's exactly something like that which can create a buffer overflow
<pabs>
pagios: utf-8 and utf-16 are both variable-width encodings
<pagios>
in utf-16 1 char is 16 bit
<pabs>
that is, the number of bytes that it takes to encode a character vary depending on the character
<pagios>
i understand that
<pabs>
pagios: that's incorrect, utf-16 is variable-width (look up surrogate pairs)
<pagios>
ok
tlaxkit has quit [Remote host closed the connection]
<pagios>
this applies to all programming languages or only ruby
<toretore>
pagios: you just have to remove from your mind the idea that byte and character are the same
tlaxkit has joined #ruby
<apeiros>
pagios: this applies to all programming languages
<apeiros>
as said - it's not utf-8 or -16 etc. otherwise
<pagios>
what should i google to understand this theory
<geek876__>
@apeiros: Referencing your earlier gist https://eval.in/677360, I think this will always evaluate to +00:00 regardless of the offset is either 0 or 1. If it is 1, it should evaluate to +01:00 but it won't
virgil has joined #ruby
jjhgwe has joined #ruby
<apeiros>
geek876__: 01:00 would have an offset of 3600
enterprisey has quit [Remote host closed the connection]
bikram has joined #ruby
railssmith has quit [Ping timeout: 268 seconds]
<bikram>
Anybody on?
jenrzzz has quit [Ping timeout: 256 seconds]
ace05 has quit [Ping timeout: 252 seconds]
Derperperd has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
SCHAAP137 has joined #ruby
whathappens has joined #ruby
geek876__ has quit [Ping timeout: 260 seconds]
pilne has joined #ruby
xrlk has joined #ruby
<havenwood>
bikram: Have a Ruby question?
whathappens has quit [Read error: Connection timed out]
whathappens has joined #ruby
firstdayonthejob has joined #ruby
gheegh has quit [Ping timeout: 240 seconds]
<ddffg>
show me please sample code with poltergeist
enterprisey has joined #ruby
<bikram>
Yeah havenwood, I was working with some general trees. Basically, what I was trying to acheive was to list files and files in a tree structure once they are requested from the remote server.
<bikram>
I don't know if this is the right question to ask here.
ramfjord has joined #ruby
A5101 has joined #ruby
nankyokusei has joined #ruby
SCHAAP137 has quit [Ping timeout: 245 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.6]
chris349 has joined #ruby
splud has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
zacts has joined #ruby
<bikram>
havenwood: Generally speaking, that's all about queues and stacks I guess. But, how is it done, like structuring files and folders as that of `tree -r` command??
nankyokusei has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
jenrzzz has joined #ruby
matheusmoreira has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
VeryBewitching has joined #ruby
matheusmoreira has joined #ruby
enterprisey has quit [Remote host closed the connection]
Rodya_ has joined #ruby
dhollinger has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
<havenwood>
bikram: Say more about what you're doing? Are you searching for the structure or trying to find an appropriate data type to store it or? It seems the Find module might be applicable but you'll have to say more: https://docs.ruby-lang.org/en/2.3.0/Find.html
SCHAAP137 has joined #ruby
_djbkd has joined #ruby
dhollinger has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
aryaching has joined #ruby
wopi has joined #ruby
<bikram>
havenwood: Thank you very much. Here's my scenario, I wanted to create a local structure of files and folders from github repo. I am using `mechanize` gem to to request and find files and folders. Now, once folder is detected, you have to find it's sub folders and files and so on. The problem is how do you list files and folders in a structure, a tree, a hash or may be some other data structure.
gusrub_ has joined #ruby
<toretore>
you know github has an api right
gusrub__ has joined #ruby
<bikram>
toretore: Yeah right. But it doesn't simply let you list all files and folders as far as I know.
<bikram>
You go to remote repo, fetch files and folders, record them, go for each folders, record files and folders and so on. That's recursive, but I am not able to work on that.
<bikram>
I don't want to use any API for now, if that works.
<baweaver>
You can also dig a hole with a spoon
<baweaver>
doesn't mean it's smart or effective
<bikram>
baweaver: lol
dhollinger has joined #ruby
<bikram>
I am not pretty good at ruby, I am working on it, that's why I didn't go for API.
GodFather has quit [Ping timeout: 256 seconds]
<bikram>
Any help would be greatly appreciated.
<baweaver>
The API will be easier
Fernando-Basso has quit [Quit: Leaving]
paha80 has joined #ruby
paha80 has quit [Remote host closed the connection]
paha80 has joined #ruby
<bikram>
baweaver: yeah, true that. I wana go hard way, so that I can more things on the way.
<baweaver>
suit yourself
<bikram>
hehe
paha80 has quit [Remote host closed the connection]
paha80 has joined #ruby
symm- has joined #ruby
paha80 has quit [Remote host closed the connection]
paha80 has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
GodFather has joined #ruby
claudiuinberlin has joined #ruby
gusrub_ has joined #ruby
mpwin has joined #ruby
paha80 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
tomphp has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
tdy has quit [Ping timeout: 260 seconds]
paha80 has joined #ruby
paha80 has quit [Client Quit]
mtkd has quit [Ping timeout: 268 seconds]
A5101 has quit [Ping timeout: 258 seconds]
mtkd has joined #ruby
tyang_ has joined #ruby
jeremyhall has joined #ruby
claudiuinberlin has quit [Ping timeout: 256 seconds]
ldnunes has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
chris2 has quit [Ping timeout: 258 seconds]
ldnunes has joined #ruby
tyang__ has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
radic has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
nocco has quit [Remote host closed the connection]
vuoto has joined #ruby
nocco has joined #ruby
enterprisey has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
nocco has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
nocco has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
nocco has quit [Remote host closed the connection]
kingja has joined #ruby
nocco has joined #ruby
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
biberu has quit []
quazimodo has joined #ruby
jnj has joined #ruby
<jnj>
Could anyone tell me why this line of code will throw an error: unless ip == "localhost" || ip.include? ".", but using or in place of || does not?
tyang__ has joined #ruby
nocco has quit [Ping timeout: 260 seconds]
phantompain has quit [Ping timeout: 250 seconds]
<apeiros>
jnj: because of precedence
workmad3 has joined #ruby
<apeiros>
also, a) always provide errors you get, and b) errors are raised, not thrown (throw means something else in ruby)
aufi has quit [Ping timeout: 252 seconds]
<LiamW>
segfaults notwithstanding
* LiamW
has seen one too many a ruby core dump
C0deMaver1ck has joined #ruby
<jnj>
apeiros: thanks, I switched around ip == "localhost" and put ip.include in the front! And duly noted, thanks.
<apeiros>
o0
<apeiros>
that might not do what you think it does, though
<apeiros>
you should use parens
nocco has joined #ruby
tyang_ has quit [Ping timeout: 258 seconds]
<LiamW>
yeah this sounds like you need ip.include?(".")
nocco has quit [Remote host closed the connection]
ace05 has quit [Read error: Connection reset by peer]
croberts is now known as Toledo-bbl
rafadc has joined #ruby
synthroid has quit []
elastix has joined #ruby
kbdkode has joined #ruby
balazs has joined #ruby
<bovis>
When exporting strings to a yaml file with .to_yaml, I get dates that read "2016-09-09", but when they're imported with YAML.load, I get #<Date: 2016-09-09 ((2457641j,0s,0n),+0s,2299161j)>, which does not respond to .length, of course, which is what I need.
<bovis>
Any way to export with quotes to fix that? Or just import without the cruft?
<apeiros>
uh, you're exporting dates there, not strings
<apeiros>
hence you get back dates, not strings, when importing
<bovis>
apeiros: I try to export with DateTime.now.strftime("%Y-%m-%d")
<bovis>
well, the program uses that as its formatting
<bovis>
the date is generated as I showed, put into an array of hashes, and saved to the yaml file with .to_yaml -- nothing in between
<bovis>
what could I do wrong?
wopi has left #ruby [#ruby]
balazs has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
jenrzzz has quit [Ping timeout: 246 seconds]
<apeiros>
without your code, the best I can do is riddle.
<apeiros>
or repeat what I already told you
chadwtaylor has quit [Remote host closed the connection]
AlexRussia has joined #ruby
<bovis>
right, a poor suggestion on my part
allcentury has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
<bovis>
can you tell YAML to output with quotes for strings?
<apeiros>
you can debug by inspecting your data in between and verify it truly is what you expect it to be.
jnj has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
<apeiros>
no, you can't tell yaml how to format built-in data types. and there's no need either. it does it correctly.
balazs has joined #ruby
jnj has joined #ruby
honore has joined #ruby
jenrzzz has joined #ruby
<bovis>
I'll dig some more
<bovis>
thanks
rafadc has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
rafadc has joined #ruby
Olipro has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
csk has quit [Quit: ZZZzzz…]
nofxx has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
kingja has quit [Quit: kingja]
pwnd_nsfw has joined #ruby
vifino has quit [Ping timeout: 256 seconds]
elastix has quit [Quit: Leaving]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
allcentury has joined #ruby
vifino has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
teclator has quit [Quit: No Ping reply in 180 seconds.]
AlexRussia has joined #ruby
teclator has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jnj has quit [Quit: Leaving]
<pilne>
i am coming to the conclusion that i don't *really* have to worry about if there is a gem for what I want to do in ruby, as long as there is a well doccumented *something* that exposes a clean c-api?
phantompain has quit [Ping timeout: 250 seconds]
xavier2 has joined #ruby
Derperperd has joined #ruby
<eam>
pilne: yes, if you're comfortable with writing a wrapper
AlexRussia has quit [Ping timeout: 256 seconds]
<eam>
it's not terribly difficult
teclator has quit [Quit: No Ping reply in 180 seconds.]
<xrlk>
trivial even
<xavier2>
Hey, I've become quite the neat freak recently and I was wondering how Bundler works. Does it shove gems neatly in let's say a project's subfolder like npm does?
firstdayonthejob has quit [Ping timeout: 260 seconds]
chopin has joined #ruby
jenrzzz has joined #ruby
<xavier2>
I want to try out Ruby and eventually Rails as well but I'd like to make sure everything stays nice and tight and I don't end up with loose files that I won't know the purpose of all over my filesystem
saslam_ has quit [Ping timeout: 248 seconds]
teclator has joined #ruby
AlexRussia has joined #ruby
<nofxx>
xavier2, think npm -g well configured
* Nilium
looks at his ~/bin directory and thinks "loose files"
<Nilium>
So many things
<nofxx>
It's ~/.gem ... way smarter...
rafadc has quit [Ping timeout: 246 seconds]
<nofxx>
Nilium, gem insn't there.. it's inside ~/.gem too, you should have it on your $PATH
<xavier2>
If I have project X and I install gem a then I start project Y, what prevents Y from seeing a then?
<nofxx>
nothing, that's the point
mpwin has quit [Quit: Leaving...]
<xavier2>
What if I wanted Y to not be able to access any of a's libraries / tools?
<nofxx>
that's just stupid
<xavier2>
How is that?
<xavier2>
let's say I have gems a and b that may conflict
<nofxx>
system install/ user install / project install... npm is by default project, gem by default user
rafadc has joined #ruby
<xavier2>
I want a on project X and b on project Y
chadwtaylor has joined #ruby
<nofxx>
xavier2, that doesn't happen, you require what you need
<nofxx>
just because it can 'see' doesnt mean it will be read/run whatever see?
<pilne>
i try and just gem install bundler, and a linter or two into my ruby-install location, and then use bundler to install gems into /vendor inside each project
<xavier2>
What about different versions of the same gem though?
<nofxx>
xavier2, no problem either.. you can have all versions
<nofxx>
and require any specific one
<xavier2>
hmm
<pilne>
gems don't don crap inside a ruby script/app unless they are required
ur5us has quit [Remote host closed the connection]
<pilne>
don=do
<nofxx>
exactly
<xavier2>
Well then :P
phantompain has joined #ruby
dnicole has joined #ruby
<nofxx>
xavier2, which OS? maybe there's no --user-isntall, so gem asks for root, not the best option
<nofxx>
check /etc/gemrc
<xavier2>
My last argument would be what if I want project-specific gem installs to make sure my gemfile's up to date and that I don't end up requiring something that's already been installed from another project without thinking about adding it - without relying on tests?
rafadc has quit [Ping timeout: 265 seconds]
<xavier2>
nofxx: gentoo - I haven't installed anything yet. Python's virtualenv creeped me to no end on my last install
<nofxx>
bundle install / bundle check will do that already
<nofxx>
xavier2, nah, don't use those multiversion envs... ruby has a lot too.. rbenv, rvm...
<Nilium>
rbenv is nice.
<Nilium>
And chruby.
<pilne>
i use chruby/ruby-install
<nofxx>
extra uneeded problem
<Nilium>
rvm's a little crufty but it still works.
<pilne>
after rvm assploded on me a couple times
<pilne>
but i was rubynoob then
<pilne>
so it was probably my fault :)
<Nilium>
caveat: I don't know if it actually still works and I just assume it does because I don't remember anyone saying it didn't.
rafadc has joined #ruby
koooge has joined #ruby
SeepingN_ is now known as SeepingN
<nofxx>
you can install a 2+ ruby version, jruby, and whatever else on your OS...
<nofxx>
JustWorks™
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
ag4ve has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ag4ve has quit [Max SendQ exceeded]
ag4ve has joined #ruby
<nofxx>
also: ruby didn't came out on a bathroom, it started well taught, hence how quickly the v1->v2 transition was. Just to see point check out python2, python3 or angular...
kechja has quit [Ping timeout: 248 seconds]
<nofxx>
There's a great twit by some angular dev: "It's a complete rewrite, everything will change"
CausaMortis has joined #ruby
<xrlk>
nice
Jackneill_ has quit [Remote host closed the connection]
<xavier2>
hehe
<CausaMortis>
Hey guys, newb here. In a project I work on, I found a method that specified its parameters like so (parameter1:, parameter2:). It seems that the values do get passed but when they are empty the method does not error. What do I search for to better grasp what is going on here? It seems like parameter1:, is short for parameter1: nil, correct?