gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivsushruth has quit []
icebourg has joined #ruby
krz has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<i8igmac>
string.scan(/test/)[0].to_s => ["test"]
<i8igmac>
how do i get string with out []
<i8igmac>
after scan
Vols has joined #ruby
krz has joined #ruby
<i8igmac>
"[\"test\"]"
<i8igmac>
["test"]
<Radar>
"test" ?
<Radar>
what is string?
sevvie has quit [Ping timeout: 244 seconds]
_blizzy_ has quit [Ping timeout: 256 seconds]
ismaelga has quit [Read error: Connection reset by peer]
bintelli has quit [Quit: Page closed]
lessless has joined #ruby
weemsledeux has joined #ruby
Eiam_ has joined #ruby
Mia has joined #ruby
tvw has quit [Read error: Connection reset by peer]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
sivsushruth has joined #ruby
sent1nel has quit [Remote host closed the connection]
gsd has joined #ruby
Vols is now known as Volsus
fedexo has joined #ruby
gsd has quit [Max SendQ exceeded]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
ElderFain has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
gsd has joined #ruby
sent1nel has joined #ruby
<ElderFain>
If I want to define a function that takes some values def func(first:1, second:2, operation: &block) and then takes a block to execute , say the block in this case checks to see if second is > some value inside the block.. is what i'm after here Procs ?
claptor has quit [Quit: this channel is bakas]
sevvie has joined #ruby
<i8igmac>
string ="testing some testing... some more testing... and some more testing"
Pupeno has joined #ruby
<i8igmac>
wait, i guess its like a node
<mozzarellaaaaaaa>
ElderFain: yes
<mozzarellaaaaaaa>
that's very vague, so I can't tell you it's the best way of doing what you want to do, but you can do that
arescorpio has quit [Quit: Leaving.]
Pupeno has quit [Ping timeout: 264 seconds]
balazs has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<axighi>
for instance: a method called "get_some_value" which returns a number
<Radar>
axighi: Third time's a charm: SHOW US THE CODE.
<Radar>
And the output.
Lildirt has quit [Ping timeout: 252 seconds]
<Radar>
Pretty please with a cherry on top?
bruno- has joined #ruby
bashusr has joined #ruby
brackson has quit [Ping timeout: 256 seconds]
<Eiam_>
okay
<Radar>
Eiam: I say that as someone who doesn't have intimate knowledge of how Sinatra handles requests.
braincrash has quit [Ping timeout: 250 seconds]
<Eiam_>
its probalby something to do with modular applications vs classic
<Eiam_>
im reading
<Radar>
Er, not handles request. Brainfart.
<Radar>
I meant how Sinatra handles its delegating.
bruno- has quit [Ping timeout: 245 seconds]
jobewan has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
paradisaeidae has quit [Ping timeout: 256 seconds]
iotouch has joined #ruby
p2-m2 has joined #ruby
<Radar>
axighi: Let's continue this conversation here :)
<Radar>
axighi: [1,2,3].sum not cutting it for you?
<Radar>
Or whatever the stdlib method is
paradisaeidae has joined #ruby
<Radar>
[obj1, obj2].map(&:some_method).inject(0) { |sum, n| sum + n }
<sevenseacat>
look ma no rails!
<p2-m2>
hi is anyone working on a project that needs help? (I can help with a small pay in return)
mwlang has quit [Quit: mwlang]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sivsushruth has quit [Ping timeout: 256 seconds]
duncannz has joined #ruby
sivsushruth has joined #ruby
icebourg has quit []
iotouch has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
blueOxigen has quit [Ping timeout: 244 seconds]
tcrypt has quit [Remote host closed the connection]
bluOxigen has joined #ruby
tcrypt has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 264 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
sjuxax has quit [Quit: Leaving.]
fedexo has quit [Ping timeout: 265 seconds]
ebernhardson has joined #ruby
d34th4ck3r has joined #ruby
narcan has joined #ruby
narcan has quit [Max SendQ exceeded]
chipotle has joined #ruby
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
tagrudev has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Read error: Connection reset by peer]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has left #ruby [#ruby]
krz has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iotouch has joined #ruby
chipotle has quit [Quit: cheerio]
edwinvdgraaf has quit [Remote host closed the connection]
Volsus has quit [Quit: Leaving]
aganov has joined #ruby
threh has quit [Quit: Leaving]
penzur has quit [Quit: quit]
zorak8 has quit [Ping timeout: 276 seconds]
djbkd_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
codecop has joined #ruby
Lucky__ has quit [Ping timeout: 264 seconds]
ponga has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
swgillespie has joined #ruby
sent1nel has joined #ruby
astrobunny has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
bricker has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
thatslifeson has quit [Remote host closed the connection]
_ixti_ has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 265 seconds]
sent1nel has quit [Ping timeout: 272 seconds]
duderonomy has quit [Read error: Connection reset by peer]
iamninja_ has quit [Read error: Connection reset by peer]
zenspider has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
zenspider has joined #ruby
Soda has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
<ngr>
from inside a Gem, is there a way to get the path to the application code using the gem? the path to the Gemfile the gem was listed or so?
<Radar>
ngr: "application code"?
<Radar>
What kind of application?
jack_rabbit has joined #ruby
tcrypt has quit [Remote host closed the connection]
<ngr>
It's going to be an internal micro-framework based on Grape and I make heavy assumptions about how the 'app code' is stuctured. For example I want to automatically require all the files inside the 'models' directory without having to write any line of code in the app itself
duderonomy has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
<ngr>
it's gonna be a Rack application, so ideally all I want in the config.ru is a "require 'my_micro_framework'" and then "run MyMicroframework::App"
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar>
Grape is not so fun imo
<zotherstupidguy>
ngr if you have a repo, it will be easier to get suggestions
<zotherstupidguy>
a micro-api framework, inspired by almost-sinatra
<Radar>
I've not heard of it. Do you have a link to it so I can check it out?
<ngr>
Radar: this is not a question of Grape or not, because I'm already using it in a about seven micro-services that are currently rails applications. However I feel that rails is totally overkill and since Grape is self-sufficient I wanted to remove all the overhead (i.e. rails-stuff, except ActiveRecord of course)
sinkensabe has joined #ruby
<Radar>
ok
<Radar>
ngr: Rails does this by defining an APP_ROOT constant in config/application.rb, which is loaded when the Rails server starts.
<Radar>
ngr: You could define that constant in config.ru and then reference that in your framework's code.
<ngr>
Radar: that sounds excatly like what I need, thanks a lot!
<zotherstupidguy>
see, yeah, sorry memory failed me again
<zotherstupidguy>
Radar thanks
<ngr>
Radar: okay I see why you dislike it, hopefully I'll have a more pleasing experience
<ngr>
okay, back to work. thanks for your input Radar, zotherstupidguy :)
<Radar>
np :)
<zotherstupidguy>
cheers :)
lxsameer has quit [Ping timeout: 252 seconds]
<flughafen>
moin
arturaz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdark has joined #ruby
fgo has joined #ruby
dodobrain has quit [Quit: bye... o/]
kblake has joined #ruby
ponga has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
the .read statement in sqlite3
<shevy>
is still going today
<shevy>
so now it's the third day
<shevy>
56M Apr 28 08:28 foo.sqlite3
p2-m2 has left #ruby [#ruby]
djbkd_ has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vire has joined #ruby
vire has quit [Max SendQ exceeded]
lfox has joined #ruby
kblake has quit [Ping timeout: 276 seconds]
djellemah_ is now known as djellemah
lxsameer has joined #ruby
Oka has quit [Quit: さようなら]
alex__ has joined #ruby
aganov has quit [Read error: Connection reset by peer]
SOLDIERz has joined #ruby
juanpablo___ has joined #ruby
alex__ has quit [Client Quit]
aganov has joined #ruby
Brozo has quit [Quit: Leaving...]
gagrio has joined #ruby
ta has quit [Remote host closed the connection]
gazay has joined #ruby
krz has joined #ruby
<Radar>
haha
juanpablo___ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
sivsushruth has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
Azure has quit [Read error: Connection reset by peer]
<c-c>
Someone ping me?
<Radar>
c-c: no
<c-c>
must have been yesterday, past lastlog
mengu has joined #ruby
Azure has joined #ruby
mengu has quit [Client Quit]
axighi1 has joined #ruby
axighi has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
kyrylo has joined #ruby
bruno- has joined #ruby
sent1nel has joined #ruby
<certainty>
moin guys
ponga has quit [Quit: Leaving...]
haxrbyte has joined #ruby
relix has joined #ruby
<shevy>
ping c-c
<shevy>
ping c-c
<shevy>
ping c-c
<ebernhardson>
pong
<shevy>
ack
<c-c>
helo
sent1nel has quit [Ping timeout: 244 seconds]
<shevy>
certainty will you write ruby code today?
<certainty>
shevy: yes
<certainty>
shevy: and you?
bruno- has quit [Ping timeout: 265 seconds]
wwwBUKOLAYcom has quit [Ping timeout: 250 seconds]
d34th4ck3r has quit [Quit: Ciao]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ayaz has joined #ruby
amclain has quit [Quit: Leaving]
Igorshp has joined #ruby
swgillespie has joined #ruby
swgillespie has quit [Client Quit]
<certainty>
shevy: are you going to write lisp code today?
gauke has joined #ruby
<shevy>
no :(
iamninja_ has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
<shevy>
but some ruby code. I need to write some ruby script that manages my video collection
ponga has joined #ruby
TheHodge has joined #ruby
iamninja_ has joined #ruby
gh has joined #ruby
<certainty>
shevy: so serious stuff xD
piotrj has joined #ruby
<shevy>
I lost about 3 external HDDs in the last ~5 months or so. I think I even lost some videos because of that, when the last one went down without having all the backups from it...
<shevy>
yeah!
<shevy>
I barely make use of the old TV anymore
<shevy>
save sometimes for news
<certainty>
have fun
msgodf has joined #ruby
hgl has quit [Excess Flood]
fgo has quit [Ping timeout: 265 seconds]
gh has quit [Client Quit]
wottam has joined #ruby
hgl has joined #ruby
jack_rabbit has quit [Ping timeout: 248 seconds]
vire has joined #ruby
wottam has quit [Client Quit]
Igorshp has quit [Remote host closed the connection]
doertedev has joined #ruby
User458764 has joined #ruby
piotrj has quit [Remote host closed the connection]
workmad3 has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]]
ohaibbq has joined #ruby
tcrypt has joined #ruby
terlar has joined #ruby
edwinvdgraaf has joined #ruby
jeromelanteri has joined #ruby
kies has quit [Ping timeout: 255 seconds]
astrobunny has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
tcrypt has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
<hanmac>
shevy i will write more rwx code over the current week ... there is a new widget that i want to implement into my code
chinmay_dd has quit [Quit: Leaving]
alex88 has joined #ruby
gauke has quit [Ping timeout: 256 seconds]
gauke_ is now known as gauke
rdark has quit [Quit: leaving]
bricker has joined #ruby
rdark has joined #ruby
sohrab has quit [Ping timeout: 250 seconds]
piotrj has joined #ruby
banister has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
dvlwrk has quit [Ping timeout: 265 seconds]
neanderslob has quit [Quit: No Ping reply in 180 seconds.]
bluOxigen has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
piotrj has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
bluOxigen has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd_ has quit [Remote host closed the connection]
aufi has joined #ruby
lordkryss has joined #ruby
kies has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
irklcn has joined #ruby
haxrbyte_ has joined #ruby
SOLDIERz has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
haxrbyte has quit [Ping timeout: 265 seconds]
lessless has joined #ruby
livathinos has joined #ruby
mooe has joined #ruby
NotABadThing has joined #ruby
NotABadThing has quit [Client Quit]
wolflee__ has quit [Read error: Connection reset by peer]
wolflee__ has joined #ruby
RegulationD has joined #ruby
wolflee__ has quit [Read error: Connection reset by peer]
jimms has joined #ruby
wolflee__ has joined #ruby
crazysim has joined #ruby
terlar has quit [Quit: WeeChat 1.1.1]
charliesome has joined #ruby
towski_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
antgel has quit [Ping timeout: 240 seconds]
<adaedra>
Hi
astrobunny has joined #ruby
antgel has joined #ruby
allenn has joined #ruby
ki0 has joined #ruby
marr has joined #ruby
SouL_|_ has quit [Ping timeout: 264 seconds]
ta has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<flughafen>
hey
chipotle has joined #ruby
SouL_|_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
ta has joined #ruby
chipotle has quit [Max SendQ exceeded]
hewenhong has joined #ruby
chipotle has joined #ruby
musashi1 has joined #ruby
chipotle has quit [Client Quit]
piotrj has joined #ruby
bruno- has joined #ruby
tesuji has joined #ruby
ohaibbq has quit [Quit: Leaving...]
badhatter has joined #ruby
badhatter has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
neanderslob has joined #ruby
musashi1 has quit [Ping timeout: 255 seconds]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
piotrj has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
banister has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
ghr has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
wolflee__ has quit [Read error: Connection reset by peer]
wolflee__ has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
iamninja_ has joined #ruby
baash05 has quit [Quit: Leaving.]
<certainty>
flughafen: o/
hgl has quit [Max SendQ exceeded]
wolflee___ has joined #ruby
<flughafen>
certainty: \o
hgl has joined #ruby
tomphp has joined #ruby
chthon has joined #ruby
anisha has joined #ruby
wolflee__ has quit [Ping timeout: 240 seconds]
granthatcher has joined #ruby
granthatcher is now known as granthatcher|awa
granthatcher|awa has quit [Max SendQ exceeded]
granthatcher has joined #ruby
<flughafen>
certainty: how was your weekend? sevenseacat ?
<flughafen>
who here was using gitlab?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
piotrj has joined #ruby
Igorshp has joined #ruby
Musashi007 has joined #ruby
fgo has joined #ruby
<sevenseacat>
flughafen: cant complain. i did bugger all, sat on my butt and played video games. you? :)
postmodern has quit [Quit: Leaving]
ki0_ has joined #ruby
withnale has quit [Ping timeout: 250 seconds]
soahccc has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
quazimodo has quit [Ping timeout: 276 seconds]
piotrj has quit [Remote host closed the connection]
sameerynho has joined #ruby
soahccc has joined #ruby
rcs has quit [Ping timeout: 256 seconds]
marr123 has joined #ruby
marr has quit [Ping timeout: 250 seconds]
bennyklo2z has quit [Ping timeout: 256 seconds]
Bish has quit [Ping timeout: 256 seconds]
bennyklo1z has joined #ruby
ki0 has quit [Ping timeout: 250 seconds]
hollywood has quit [Ping timeout: 256 seconds]
Killerkeksdose has quit [Ping timeout: 256 seconds]
eregon has quit [Ping timeout: 256 seconds]
sent1nel has joined #ruby
Killerkeksdose has joined #ruby
vroomanj has quit [Ping timeout: 250 seconds]
jimms has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
fgo has quit [Ping timeout: 265 seconds]
eregon has joined #ruby
withnale has joined #ruby
jimms has joined #ruby
QKO has quit [Ping timeout: 250 seconds]
mburns has quit [Ping timeout: 250 seconds]
hollywood has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
Guest24 has quit [Max SendQ exceeded]
QKO has joined #ruby
Cust0sL1men has joined #ruby
lele has joined #ruby
rcs has joined #ruby
mburns has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
vroomanj has joined #ruby
Zai00 has joined #ruby
Bish has joined #ruby
<Musashi007>
sounds like a great day.. what’d you play? :P
sent1nel has quit [Ping timeout: 250 seconds]
Zai00 has quit [Client Quit]
hewenhong has quit [Remote host closed the connection]
hewenhong has joined #ruby
<sevenseacat>
elder scrolls online \o/
SOLDIERz has joined #ruby
juanpablo___ has joined #ruby
lidenskap has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
<apeiros>
hearthstone, starcraft, this war of mine
<flughafen>
sevenseacat: went climbing, put motorcycle together, went and saw avengers. i took my bike to get it's check , i can ride now but need to get a new rear tire in a month
<apeiros>
but this war of mine is depressing
Spami has joined #ruby
<Musashi007>
I just started playing hearthstone
hewenhon_ has joined #ruby
<Musashi007>
do you play on NA, apeiros?
juanpablo___ has quit [Ping timeout: 240 seconds]
Olipro- has quit [Ping timeout: 252 seconds]
<apeiros>
Musashi007: europe
<Musashi007>
nod
nfk has joined #ruby
bricker has quit [Ping timeout: 276 seconds]
Spami has quit [Client Quit]
quimrstorres has joined #ruby
<flughafen>
sevenseacat: did yuo slay any dragons or elders?
krz has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
hewenhong has quit [Ping timeout: 255 seconds]
elaptics_away is now known as elaptics
<sevenseacat>
flughafen: unfortunately no.
<flughafen>
boooooooo!
<flughafen>
did you get to ride any dragons?
<sevenseacat>
i have this war of mine on my steam wishlist
* flughafen
is unfamiliar with eso
Pumukel has quit [Ping timeout: 265 seconds]
* flughafen
used to play wow.
matcouto has joined #ruby
<sevenseacat>
eso is awesome. that's all you need to know.
Zai00 has joined #ruby
<flughafen>
sevenseacat: if you play it, it must be so awesome my brains would explode
<sevenseacat>
hah
roshanavand has joined #ruby
zzing_ has joined #ruby
lxsameer_ has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
zzing has quit [Read error: Connection reset by peer]
Olipro- has joined #ruby
bim has joined #ruby
<flughafen>
sevenseacat: what class you do prefer to play?
bim is now known as Guest93011
duncannz has quit [Ping timeout: 250 seconds]
<flughafen>
i'm a level 7 airport
bluOxigen has quit [Ping timeout: 245 seconds]
<sevenseacat>
haha
krz has joined #ruby
<sevenseacat>
i'm a vr11 dragonknight! \o/
sameerynho has quit [Ping timeout: 264 seconds]
krz is now known as Guest40729
bluOxigen has joined #ruby
<flughafen>
i like big dragons and i can't deny, you other brothers can't deny, when a dragon walks in with that itty bitty waist and those big wings in your face
<flughafen>
err. /me should learn how to rap
piotrj has joined #ruby
lkba_ has quit [Ping timeout: 250 seconds]
piotrj has quit [Remote host closed the connection]
* flughafen
casts "flight delayed" against sevenseacat
marr123 is now known as marr
* sevenseacat
blocks it with an 'alternate airline' defense
DEA7TH has joined #ruby
* flughafen
mwahahahahas.
roshanavand has quit [Ping timeout: 244 seconds]
* flughafen
casts "lost luggage"
<flughafen>
now you've lost your sword!
<sevenseacat>
you assume I have the 'baggage allowance' perk
<sevenseacat>
i do not
* flughafen
cries
quimrstorres has joined #ruby
<flughafen>
if you were a sorcerer you'd be lucky to not get charged to bring a wand on board
piotrj has joined #ruby
psyprus has joined #ruby
* sevenseacat
uses a snowstorm on flughafen
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat>
ohhhh yeah
jobewan has quit [Ping timeout: 264 seconds]
<sevenseacat>
take that
chipotle has joined #ruby
* flughafen
notifies sevenseacat that my runways are heated and are immune to snowstorms
<sevenseacat>
clever... clever
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
chipotle has quit [Max SendQ exceeded]
charliesome has joined #ruby
chipotle has joined #ruby
lolmaus has joined #ruby
* flughafen
will agree to a truce if you agree to buy a 17$ cheese sandwich
Pumukel has joined #ruby
<sevenseacat>
deal. but only if i get to knock over a vending machine afterwards.
* flughafen
shakes your hand. "agreed"
<sevenseacat>
last time i was an an airport, a machine ate my $10. i was annoyed.
<flughafen>
what kind of machine takes 10$?
Olipro- has quit [Ping timeout: 252 seconds]
lessless has quit [Ping timeout: 250 seconds]
piotrj has quit [Read error: Connection reset by peer]
<sevenseacat>
erm, all machines around here
<flughafen>
i guess everything is for no good reason expensive in aus
piotrj has joined #ruby
<sevenseacat>
well i put the $10 in to buy a $4.50 bottle of coke so yeah
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
havenwood has quit [Remote host closed the connection]
<flughafen>
sevenseacat: is water there cheap or free with meals? in germany water always costs money and is usually as expensive as beer(in a restaurant)
gregf_ has quit [Quit: leaving]
<sevenseacat>
most places will give you chilled tap water for free. if you want filtered/bottled/anything fancy, then you pay normal prices
<flughafen>
ok
huddy has joined #ruby
User458764 has joined #ruby
workmad3 has joined #ruby
SouL_|_ has quit [Ping timeout: 248 seconds]
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby
zzing_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
Olipro- has joined #ruby
jottr has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
SOLDIERz has joined #ruby
c0m0 has joined #ruby
OnBrokenWings has joined #ruby
basiclaser has joined #ruby
SOLDIERz has quit [Client Quit]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
SOLDIERz has joined #ruby
Olipro- has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
quimrstorres has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 272 seconds]
sivsushruth has joined #ruby
SOLDIERz has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 252 seconds]
SOLDIERz has joined #ruby
granthatcher_ has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
djbkd_ has joined #ruby
fgo has joined #ruby
granthatcher has quit [Ping timeout: 272 seconds]
badhatter has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
pandaant has joined #ruby
mtakkman has joined #ruby
Stichoza has joined #ruby
yfeldblum has joined #ruby
granthatcher_ has quit [Read error: No route to host]
granthatcher has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
raddazong is now known as madhatter
madhatter has quit [Changing host]
madhatter has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
tacotaco_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
piotrj has quit [Remote host closed the connection]
piotrj has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
shellfu_afk has quit [Read error: Connection reset by peer]
leafybasil has quit [Remote host closed the connection]
baash05 has joined #ruby
lidenskap has joined #ruby
Musashi007 has quit [Quit: Musashi007]
RegulationD has quit [Ping timeout: 276 seconds]
lidenskap has quit [Ping timeout: 240 seconds]
Guest93011 has quit [Remote host closed the connection]
baash05 has left #ruby [#ruby]
gfawcettpq has quit [Ping timeout: 245 seconds]
axighi1 has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
lolmaus_ has joined #ruby
LJT has joined #ruby
sameerynho has joined #ruby
tacotaco_ has joined #ruby
bim has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
bim is now known as Guest3350
Mohan_ has quit [Ping timeout: 250 seconds]
lxsameer_ has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
C1V0 has quit []
Mohan_ has joined #ruby
User458764 has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
quimrstorres has quit [Remote host closed the connection]
quimrstorres has joined #ruby
Mohan_ has quit [Ping timeout: 252 seconds]
gr33n7001 has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
lxsameer_ has joined #ruby
Mohan_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jottr has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
AlphaAtom has joined #ruby
iasoon has joined #ruby
User458764 has joined #ruby
michael_mbp has quit [Excess Flood]
jud has joined #ruby
jud has joined #ruby
quimrstorres has joined #ruby
michael_mbp has joined #ruby
LJT has quit [Remote host closed the connection]
LJT has joined #ruby
leafybasil has joined #ruby
jimms has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
gregf_ has joined #ruby
kblake has joined #ruby
Spami has joined #ruby
ARCADIVS has joined #ruby
hewenhon_ has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kblake has quit [Ping timeout: 252 seconds]
piotrj has quit [Remote host closed the connection]
tvw has joined #ruby
piotrj has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Akagi201 has joined #ruby
aufi has left #ruby ["Konversation terminated!"]
bruno- has joined #ruby
quimrstorres has joined #ruby
asaf has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
roshanavand has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
terlar has quit [Client Quit]
terlar has joined #ruby
OnBrokenWings has quit [Quit: Leaving]
A205B064 has quit [Ping timeout: 245 seconds]
piotrj has quit [Remote host closed the connection]
juanpablo___ has joined #ruby
Rickmasta has joined #ruby
piotrj has joined #ruby
bruno- has joined #ruby
fo2x has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
Guest3350 has quit []
juanpablo___ has quit [Ping timeout: 252 seconds]
sivsushruth has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: zzz]
sivsushruth has joined #ruby
bim has joined #ruby
bim has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 245 seconds]
shredding has quit [Ping timeout: 248 seconds]
tessi_zz has quit [Ping timeout: 265 seconds]
asaf has quit [Ping timeout: 246 seconds]
decoponio has joined #ruby
mostlybadfly has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
haxrbyte_ has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
jokke has quit [Ping timeout: 265 seconds]
haxrbyte has joined #ruby
jokke has joined #ruby
doodlehaus has joined #ruby
FIGO_ is now known as Platini
Akagi201 has quit []
Musashi007 has joined #ruby
shortCircuit__ has joined #ruby
<shortCircuit__>
hi
<shortCircuit__>
I did this Hash[*instance_variables.map { |v| [v.to_sym, v] }.flatten] and I got {:@profiles=>:@profiles, :@sort_by=>:@sort_by, :@age_from=>:@age_from] , how to make it profiles: @profiles ?
yeticry has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
antgel has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cheerio]
_blizzy_ has joined #ruby
<shortCircuit__>
Hash[*instance_variables.map { |v| [v.to_s.delete("@").to_sym, v] }.flatten] this works but seems :(
yeticry has joined #ruby
<jhass>
[v[1..-1], v]
<apeiros>
shortCircuit__: you realize that :foo => bar is *the same* as foo: bar?
antgel has joined #ruby
<apeiros>
ah, you talk about dropping the @, not the syntax :D
<shortCircuit__>
yeah
<apeiros>
jhass' solution is IMO better. also drop the flatten and splat
<shortCircuit__>
um, I tried SearchForm.new(Profile.brides, param).attributes .. it says undefined
sivsushruth has joined #ruby
<jhass>
mh, apparently not, yrah
<adaedra>
apeiros: tbf, people are not always aware that they are using outdated software
iotouch has quit [Quit: This computer has gone to sleep]
<jhass>
why do you unpack them into instance variables though? AR keeps an @attributes hash, a fairly sane choice IMO
<apeiros>
adaedra: sure. I still give advice assuming they use current software. and if they run into troubles I tell them to state the version they use.
<shortCircuit__>
I will recheck, maybe I was doing something wrong
<shortCircuit__>
but they are doing def attributes; { 'name' => @name }; end , can't it be done dynamically ? I can do that static assignment always
piotrj has quit [Remote host closed the connection]
asmodlol has joined #ruby
rodfersou has joined #ruby
oo_ has quit [Remote host closed the connection]
Robert__ has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
gfawcettpq has joined #ruby
<jhass>
shortCircuit__: I'd say don't unpack the params into instance variables, keep them as a hash
<jhass>
and delegate to the hash
<jhass>
I'm still not 100% sure whether they delegate missing calls to the hash returned by attributes, docs seem to suggest yes, examples and code not so much
<shortCircuit__>
ok, will di
<shortCircuit__>
*do
<shevy>
do you guys like the perl 6 "say" ?
jimms has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
Zai00 has joined #ruby
<gregf_>
shevy: "say" as in the say statement?
inavele has joined #ruby
zotherstupidguy has joined #ruby
<shevy>
I think so
<shevy>
I am wondering why they changed that
<shevy>
they could have continued with the perl5 perhaps instead?
quimrstorres has quit [Remote host closed the connection]
<gregf_>
well its available in perl 5 as well. >= 5.10.x as well i guess
iasoon has joined #ruby
<gregf_>
Perl 6 is quite different from Perl 5. Perl6 'could be' more closer to Ruby
pwattste has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
NinjaOps has joined #ruby
pandaant has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
quimrstorres has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
zotherstupidguy has quit [Quit: leaving]
RegulationD has joined #ruby
arturaz has joined #ruby
Musashi007 has quit [Quit: Musashi007]
SOLDIERz has joined #ruby
hiyosi has joined #ruby
nfk|laptop has joined #ruby
lidenskap has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
mdw has joined #ruby
inavele has quit [Ping timeout: 256 seconds]
Zai00 has quit [Ping timeout: 250 seconds]
Zai00 has joined #ruby
piotrj has joined #ruby
<DaniG2k>
hey guys I'm trying to make my first Gem :) I am just trying to do something really basic to get it running.
lidenskap has quit [Ping timeout: 252 seconds]
<DaniG2k>
I've run 'bundle gem mygem' and it created the files I need
<DaniG2k>
say I add a bit of code to print out "Hello world". how would I use this gem locally?
<DaniG2k>
just require 'mygem' ?
jimms has quit [Remote host closed the connection]
<apeiros>
[\w\W] <-- what do you think this means?
pwattste has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
@ mdw
reinaldob has quit [Ping timeout: 256 seconds]
<mdw>
apeiros everything >.<
reinald__ has joined #ruby
<toretore>
lol
<toretore>
[\w\W]
<apeiros>
mdw: ok, I think you know now where to look ;-)
zotherstupidguy has joined #ruby
reinaldob has joined #ruby
<apeiros>
I think you want (?:[^\\]|\\[^n])+ instead of [\w\W]
lordkryss has quit [Quit: Connection closed for inactivity]
<mdw>
sigh, i wish i understood that
<mdw>
it works :-)
reinaldo_ has quit [Ping timeout: 240 seconds]
<apeiros>
read it step by step. it's not that complicated once you figure it ;-)
constantinexvi has joined #ruby
<mdw>
going to try
<apeiros>
in english: either a non-slash character, or a slash followed by anything but "n"
reinald__ has quit [Ping timeout: 272 seconds]
<apeiros>
and one or more of that
haxrbyte_ has joined #ruby
iotouch has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
keen__ has quit [Read error: Connection reset by peer]
<apeiros>
oh, you actually use [\w\W] quite often… you probably should investigate those uses too… because as you said, that's basically . with //m flag (i.e.: any character)
<DaniG2k>
hey guys I'm making a very basic gem (my first). All I am trying to do is be able to configure the object via a block. It seems to be working with the RSpec I've written but when I try to require 'zuijin' via irb, I get a LoadError
<jhass>
another wild guess: you made that modification but don't test with irb/ruby -Ilib and didn't rerun rake install to update the installed version
<DaniG2k>
probably ~_~ yes
<DaniG2k>
haha
<DaniG2k>
i ran bundle
<DaniG2k>
fack
pandaant has quit [Remote host closed the connection]
<DaniG2k>
forgot about rake install
vikaton has joined #ruby
<DaniG2k>
hmm
<jhass>
well, ruby/irb -Ilib or bundle exec ruby/irb is the better way to test anyway
<DaniG2k>
jhass: I raun rake install now
<DaniG2k>
getting a similar error message: LoadError: cannot load such file -- zuijin/configuration
mdw has quit [Ping timeout: 245 seconds]
<jhass>
I have to keep making wild guesses :/
yfeldblum has quit [Ping timeout: 256 seconds]
_blizzy_ has quit [Ping timeout: 256 seconds]
<jhass>
so number 3: the file is not included into the built gem because whatever your gemspec's spec.files looks like doesn't include it
<apeiros>
ok, so it's actually 9 pieces of information you need in the gemspec.
<apeiros>
(note: date is not needed)
hewenhong has joined #ruby
fgo has joined #ruby
Guest40729 has quit [Ping timeout: 245 seconds]
anisha has joined #ruby
Matadoer has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 265 seconds]
allcentury has quit [Ping timeout: 265 seconds]
<DaniG2k>
"Gotcha: For newly created folder/file, do not forget to add one entry in hola.gemspec file, as shown-"
<DaniG2k>
-_-
<DaniG2k>
fml
wottam has joined #ruby
<apeiros>
the gemspec is ruby code. Dir.glob is your friend.
piotrj has quit [Remote host closed the connection]
<apeiros>
or understanding that git shellout which bundler produces.
piotrj has joined #ruby
<apeiros>
IMO a bad pattern, though (the git shellout)
Matadoer has joined #ruby
<DaniG2k>
apeiros: it runs a git command to list files, splits it on \x0 and rejects via a regex (matches that begin with either test, spec or features get rejected)
Dreamer3 has joined #ruby
<DaniG2k>
i get that part
<DaniG2k>
not sure why that's the default though
<DaniG2k>
shoudl I just files += Dir.glob myfiles
<zotherstupidguy>
i agree with apeiros
<apeiros>
that's on you to decide
<jhass>
DaniG2k: you need to figure out under what conditions git ls-files lists files
Rickmasta has joined #ruby
jerematic has quit []
bim has joined #ruby
piotrj has quit [Ping timeout: 255 seconds]
bim is now known as Guest80065
jud has joined #ruby
<DaniG2k>
jhass: is it dumb to include everything in lib?
<apeiros>
even if I'm not addressed: yes, it is.
TPBallbag has quit [Ping timeout: 265 seconds]
<apeiros>
neither tests, executables, documentation nor readme or license belong there
<jhass>
I usually do Dir["{lib,spec}/**/*.rb"] tbh
<apeiros>
and tons and tons of other stuff
thatslifeson has joined #ruby
<jhass>
+ other dirs as needed of course
antgel has joined #ruby
GriffinHeart has joined #ruby
<apeiros>
mhm, I use multiple Dir instead of {} as I find it more readable. + %w[] with a list of remaining files
piotrj has joined #ruby
piotrj has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
hewenhong has quit [Remote host closed the connection]
<DaniG2k>
thanks that worked
<DaniG2k>
phew, finally
<DaniG2k>
took a while
hewenhong has joined #ruby
Junaos has quit [Remote host closed the connection]
hewenhon_ has joined #ruby
SouL_|_ has quit [Ping timeout: 256 seconds]
jobewan has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
failshell has joined #ruby
tus has joined #ruby
rbennacer has joined #ruby
JDiPierro has joined #ruby
CloCkWeRX has joined #ruby
Junaos has joined #ruby
jobewan has quit [Client Quit]
ismaelga has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
hewenhong has quit [Ping timeout: 244 seconds]
_main_ has joined #ruby
Junaos has quit [Client Quit]
hewenhon_ has quit [Read error: Connection reset by peer]
hewenhong has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
Junaos has joined #ruby
Junaos has quit [Remote host closed the connection]
delinquentme has quit [Ping timeout: 256 seconds]
segfalt has quit [Quit: segfalt]
Junaos has joined #ruby
quimrsto_ has joined #ruby
quimrstorres has quit [Ping timeout: 250 seconds]
quimrsto_ has quit [Remote host closed the connection]
Junaos has quit [Remote host closed the connection]
_main_ is now known as __main__
gheegh has joined #ruby
Junaos has joined #ruby
bmurt has joined #ruby
Matadoer has quit [Ping timeout: 264 seconds]
shazaum has joined #ruby
inukshuk has quit [Ping timeout: 272 seconds]
Matachines has joined #ruby
Matadoer has joined #ruby
inukshuk has joined #ruby
jerius has joined #ruby
shazaum has quit [Client Quit]
juanpablo___ has joined #ruby
ascarter has joined #ruby
lidenskap has joined #ruby
qwertme has joined #ruby
Pumukel has joined #ruby
_ixti_ has joined #ruby
DaniG2k has quit [Ping timeout: 252 seconds]
Pumukel has quit [Excess Flood]
cmckee has joined #ruby
cpt_yossarian has quit [Quit: And then he took off.]
Pumukel has joined #ruby
doodlehaus has joined #ruby
juanpablo___ has quit [Ping timeout: 248 seconds]
allcentury has joined #ruby
lidenskap has quit [Ping timeout: 245 seconds]
hewenhong has quit []
freerobby has joined #ruby
Guest80065 has quit [Remote host closed the connection]
thiagovsk has joined #ruby
lavros has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
potpib has joined #ruby
delinquentme has joined #ruby
riotjone_ is now known as riotjones
antgel has quit [Ping timeout: 250 seconds]
SouL_|_ has joined #ruby
griffindy has joined #ruby
cmckee has quit [Quit: cmckee]
RegulationD has joined #ruby
sivsushruth has quit [Ping timeout: 240 seconds]
sivsushruth has joined #ruby
asmodchan has joined #ruby
julian-delphiki has quit [Read error: Connection reset by peer]
julian-delphiki has joined #ruby
mrmargolis has joined #ruby
nettoweb has joined #ruby
Gadgetoid has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
asmodlol has quit [Ping timeout: 240 seconds]
DexterLB has quit [Ping timeout: 248 seconds]
axighi1 has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gadgetoid has joined #ruby
SouL_|_ has quit [Ping timeout: 276 seconds]
oddmunds has quit [Ping timeout: 245 seconds]
CustosLimen has quit [Ping timeout: 245 seconds]
paulcsmith has joined #ruby
Scient has quit [Ping timeout: 245 seconds]
terlar has quit [Read error: No route to host]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oddmunds has joined #ruby
sent1nel has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
tesuji has quit [Ping timeout: 248 seconds]
lxsameer_ has quit [Quit: Leaving]
marens has joined #ruby
DexterLB has joined #ruby
n1x has joined #ruby
Scient has joined #ruby
terlar has joined #ruby
sevenseacat has joined #ruby
SOLDIERz has joined #ruby
CustosLimen has joined #ruby
quimrstorres has joined #ruby
sent1nel has quit [Ping timeout: 245 seconds]
terlar has quit [Client Quit]
roshanavand has joined #ruby
terlar has joined #ruby
yaw has joined #ruby
Guest40729 has joined #ruby
yaw has quit [Max SendQ exceeded]
yaw has joined #ruby
alex88 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ArchRogem has joined #ruby
fryguy9 has joined #ruby
LJT has quit [Quit: Sleeping...]
LJT has joined #ruby
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest40729 has quit [Ping timeout: 272 seconds]
Matachines has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
iotouch has joined #ruby
Feyn has quit [Quit: Leaving]
\13k has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
DexterLB has quit [Ping timeout: 248 seconds]
weemsledeux has quit [Remote host closed the connection]
roshanavand has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwattste has joined #ruby
astrobunny has joined #ruby
Rickmasta has joined #ruby
zotherstupidguy has joined #ruby
DexterLB has joined #ruby
iotouch has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
zorak8 has joined #ruby
mary5030 has quit [Remote host closed the connection]
n1x has quit []
mary5030 has joined #ruby
matchaw has quit [Remote host closed the connection]
LJT has quit [Quit: Sleeping...]
raseboro has joined #ruby
bim has joined #ruby
matchaw has joined #ruby
bim is now known as Guest45718
LJT has joined #ruby
LJT has quit [Remote host closed the connection]
banister has joined #ruby
DaniG2k has joined #ruby
platzhirsch has left #ruby [#ruby]
zorak8 has quit [Ping timeout: 244 seconds]
raseboro has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
LJT has joined #ruby
RegulationD has quit [Remote host closed the connection]
Guest45718 has quit [Remote host closed the connection]
[k- has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
zorak8 has joined #ruby
lkba has joined #ruby
RegulationD has joined #ruby
relix has quit [Read error: Connection reset by peer]
iotouch has joined #ruby
a346 has joined #ruby
relix has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
segfalt has joined #ruby
ndrei has joined #ruby
Sh0rtWave has joined #ruby
freerobby has joined #ruby
bim has joined #ruby
<Sh0rtWave>
Hi all
<apeiros>
hi Sh0rtWave
<Sh0rtWave>
I'm installing kyotocabinet-ruby, and encountering the dreaded "You have to install development tools first" error.
kblake has joined #ruby
momomomomo has joined #ruby
bim is now known as Guest84652
piotrj has joined #ruby
<sevenseacat>
did you install the development tools? :)
mdw has joined #ruby
<Sh0rtWave>
That's a good question.
<Sh0rtWave>
Because I thought I did.
* apeiros
assumed that more information would follow…
<Sh0rtWave>
Hold one whilst I gather it.
<apeiros>
well, or an actual question :-p
<Sh0rtWave>
It claims lack of libraries or headers
<Sh0rtWave>
And specifically, kccommon.h
thatslifeson has quit [Read error: Connection reset by peer]
<Sh0rtWave>
What exactly is that?
ixti has joined #ruby
<adaedra>
Ok
<Sh0rtWave>
(I just got to the log file after sudoing insanely)
<adaedra>
Operating system, what command you attempted, what output did you got?
drizz has quit [Ping timeout: 240 seconds]
thatslifeson has joined #ruby
<Sh0rtWave>
Oh I think I see
<Sh0rtWave>
I hate that.
zorak8 has quit [Ping timeout: 264 seconds]
<Sh0rtWave>
I hate when I start to ask a question and then answer it myself.
<Sh0rtWave>
Grrr
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sh0rtWave>
I think/hope
<apeiros>
easy work around: phrase your full question first, then go to the channel ;-)
drizz has joined #ruby
<Sh0rtWave>
Well, guess not.
iotouch has quit [Quit: This computer has gone to sleep]
<adaedra>
Sh0rtWave: haha, happens to me all the time. Apparrently, /join is a really good help
<Sh0rtWave>
Ok so here's the real error: checking for kccommon.h... *** extconf.rb failed ***
_ixti_ has quit [Ping timeout: 255 seconds]
<Sh0rtWave>
I would think kccommon.h is a kyotocabinet header file.
<Sh0rtWave>
I have kyotocabinet and kyotocabinet-devel installed, so you'd think that would solve that problem.
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
<adaedra>
<adaedra> Operating system, what command you attempted, what output did you got?
<Sh0rtWave>
It mentions a mkmf.log file, but where the hell does that go?
<adaedra>
and by output, I mean whole trace
<Sh0rtWave>
The OS is scientific linux.
<wasamasa>
"checking for reading ability... *** check failed ***"
<Sh0rtWave>
getting to a pastebin. I have to work under certain restrictions, so forgive my slowness.
<adaedra>
No problem
<mdw>
apeiros (thankyou for your help earlier) I understand reggex is greedy because of my use of the non-capturing group (?:.)+ is there a way I can restrict this group so I can capture the middle string '@@ -55,6 +32,8 @@'
giuseppesolinas has quit [Quit: This computer has gone to sleep]
devaraya has joined #ruby
LJT has quit [Quit: Sleeping...]
<adaedra>
did you look in /usr/local/rvm/gems/ruby-1.9.3-p551/extensions/x86_64-linux/1.9.1/kyotocabinet-ruby-1.27.1/ ?
juanpablo___ has joined #ruby
shevy has joined #ruby
<adaedra>
and. Oh, ruby 1.9.3 !
<Sh0rtWave>
Let's presume I'm a neophyte in this area, I'm installing Ruby and such to support a larger application, and I'm not really in on which version is which. I installed what was recommended for the package.
nfk|laptop has quit [Quit: yawn]
<wasamasa>
`pkgfile kccommon.h` tells me that the kyotocabinet package has this header
<Sh0rtWave>
Yup
RegulationD has quit [Remote host closed the connection]
<Sh0rtWave>
I installed kyotocabinet.devel
<wasamasa>
on debian-like systems you may need to install -devel versions of packages to have headers
<Sh0rtWave>
Did that
<wasamasa>
can you `locate` the file?
<wasamasa>
just to check whether it's merely looking in the wrong place
<Sh0rtWave>
yup, it's there
icebourg has joined #ruby
<Sh0rtWave>
that's why I started to lose my mind
giuseppesolinas has joined #ruby
<Sh0rtWave>
well, hell
<Sh0rtWave>
7zip
<adaedra>
"It's there"
<adaedra>
Where is it?
<Sh0rtWave>
It's in the right place. I seem to be missing a compat package for 7zip
<Sh0rtWave>
I just don't think I needed to go down as far as I had to find that out. D:
piotrj has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
riotjones has quit [Remote host closed the connection]
<adaedra>
GeorgesLeYeti est doux
<GeorgesLeYeti>
:D
<adaedra>
Or something like that
<GeorgesLeYeti>
Je sais je sais.
roshanavand has left #ruby [#ruby]
<GeorgesLeYeti>
I try to be practical. :p
Mon_Ouie has joined #ruby
<adaedra>
Sh0rtWave: no problem, I was just noticing. 1.9.3 becomes to be very old, by the way.
Filete has joined #ruby
EagleDelta has joined #ruby
segfalt has quit [Quit: segfalt]
shellfu_afk has joined #ruby
<Sh0rtWave>
Well I think I got to the bottom of it.
<Sh0rtWave>
missing compression libs
<Sh0rtWave>
7zip, xz, and zo.
<dudedudeman>
mornnnninngggggg
<adaedra>
bloody dependencies.
shellfu_afk is now known as shellfu
<adaedra>
Is it planned to ditch C extensions in Ruby, like JRuby did?
mostlybadfly has joined #ruby
<GeorgesLeYeti>
I'd like to remove every spaces before ? or ! or : But i'm not so good with regex. I found the solution: str.gsub(/(s+)?\?/, "?").gsub(/(s+)?\!/, "!")... but is it possible to make it with only 1 gsub ?
pwattste has quit [Remote host closed the connection]
<adaedra>
yes
<adaedra>
use \\1
<wasamasa>
adaedra: lol, would you prefer downloading megabytes of jars instead?
<Sh0rtWave>
Yes, well, more irritating is because of system restrictions that make it hard to get to the bottom of things.
<Sh0rtWave>
chroot jails, all that jazz
hanmac has quit [Remote host closed the connection]
<adaedra>
First to raise the issue was TrimEnable afaik
hiyosi has joined #ruby
<wasamasa>
I'm glad I jumped ship early
segfalt has joined #ruby
thatslifeson has quit [Remote host closed the connection]
sent1nel has joined #ruby
philip1 is now known as phutchins
<adaedra>
It's not often that you build kexts
sevenseacat has quit [Quit: Me dun like you no more.]
jimms has joined #ruby
Alina-malina has joined #ruby
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fryguy9 has quit [Read error: Connection reset by peer]
segfalt has quit [Read error: Connection reset by peer]
kp666 has quit [Remote host closed the connection]
fryguy9 has joined #ruby
bobbrez has joined #ruby
plukevdh has joined #ruby
Guest40729 has joined #ruby
jimms has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
segfalt has joined #ruby
jottr has joined #ruby
Guest40729 has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
agarie has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<havenwood>
i don't use any OS X packages with kexts afaik
freerobby has joined #ruby
ponga has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
Guest40729 has joined #ruby
blackmesa has joined #ruby
Jackneill has joined #ruby
ascarter has quit [Max SendQ exceeded]
Squarepy has quit [Quit: Leaving]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
scripore has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
LJT has joined #ruby
<strcmp1>
kernel extensions? sound fun to write anyway.
jimms has joined #ruby
LJT has quit [Client Quit]
evanjs has quit [Remote host closed the connection]
sinkensabe has joined #ruby
cpt_yossarian has joined #ruby
evanjs has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
aganov has quit [Quit: Leaving]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
gauke has quit [Quit: gauke]
dfinninger has joined #ruby
strcmp1 has quit [Quit: Leaving]
Billias has quit [Read error: Connection reset by peer]
C0deMaver1ck is now known as ZERO_C00L
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has quit [Max SendQ exceeded]
RegulationD has joined #ruby
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
User458764 has joined #ruby
kobain has joined #ruby
shortCircuit__ has quit [Read error: Connection reset by peer]
thatslifeson has joined #ruby
jimms has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
snockerton has joined #ruby
Billias has joined #ruby
kobain has joined #ruby
segfalt has quit [Quit: segfalt]
jimms has joined #ruby
noteugene has joined #ruby
Abhijit has joined #ruby
kobain has quit [Max SendQ exceeded]
Abhijit has left #ruby [#ruby]
kobain has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
rdark has quit [Quit: leaving]
rdark has joined #ruby
<noteugene>
Hi people, I have a process with run-away memory consumption. I gdb'ed to it, and used ObjectSpace.dump_all to dump the heap. It looks like the most of memory is consumed by objects that don't have "marked":true gc flag on them, and no reference in that heap. Does anyone know how that could be possible?
nettoweb has joined #ruby
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
gagrio has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
icebourg has joined #ruby
sohrab has joined #ruby
lfox has joined #ruby
platzhirsch has joined #ruby
agarie has quit [Remote host closed the connection]
segfalt has joined #ruby
juanpaucar has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 245 seconds]
<platzhirsch>
what's again the Ruby method to iterate over an array and create a hash out of it? .inject?
msgodf has quit [Remote host closed the connection]
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
<[k->
oh i missed that :(
<[k->
im sad now
ascarter has joined #ruby
<shevy>
hmm... if I have string1 = "abc" and string2 = "abcdef" ... how I can qualify how identical these two strings are? should I use match-percentage? like I assume... 50% identical?
Spami has joined #ruby
<adaedra>
But your solution looks better, [k-, so there's that
konsolebox has joined #ruby
lolmaus_ has joined #ruby
bricker has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has quit [Client Quit]
zachrab has quit [Remote host closed the connection]
<Mon_Ouie>
shevy: You could use Levenshtein distance (or look up other string distance algorithms)
<shevy>
oh right
zachrab has joined #ruby
<shevy>
I think gem has had that inbuilt too hmm
<havenwood>
shevy: yup
<shevy>
yeah I remember it now
<shevy>
havenwood showed me
<shevy>
and I stored the code :-)
<shevy>
>> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'shevy', 'chevy'
<ebernhardson>
rubocop is complaining about some cucumber code that looks like `hash["doesnotexist"].should == nil` saying i should use nil? but if i change it do `hash["doesnotexist"].should nil?` then i get `expected #<FalseClass:0> => false\n got #<NilClass:$> => nil`. Where did that false come from?
quimrstorres has quit [Remote host closed the connection]
<shevy>
the guy is very ambitious, last comit: 2 hours ago \o/
geggam_ has joined #ruby
<Mon_Ouie>
Ruby has warnings for use of '==' when you don't use the result of it (because it assumes == is supposed to be side-effect free, so not using the result of it would make no sense)
<adaedra>
The same way, you have be_true, be_truthy, be_false, be_falsy
<shevy>
do_be_do_be_doo
RegulationD has quit [Ping timeout: 244 seconds]
<adaedra>
Mon_Ouie: which is right, when you think about it
geggam_ is now known as geggam
<adaedra>
I don't want == to have side effects
pandaant has joined #ruby
<shevy>
you want it to be a baguette
<shevy>
c===========>
<shevy>
now it is more a baguette
User458764 has joined #ruby
<shevy>
ah well perhaps not
<shevy>
the reverse of a c is not a >
<adaedra>
.
<Mon_Ouie>
Well how do you think 'foo.should == true' works?
<[k->
lol when == has side effects you cant be sure if the result of == can be trusted
<ebernhardson>
i suppose being new to ruby, i was thinking == would be passed as an unresolved function that could be resolved by should. essentially a function pointer or however ruby calls it
<shevy>
just like in PHP!
<[k->
ruby functions are not first class?
anisha has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 276 seconds]
havenwood has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
<adaedra>
Mon_Ouie: I know it's the case. But saying that == is supposed to be side-effect-less still makes sense.
<[k->
( foo.should ) == (true)
<Mon_Ouie>
They are — or well, there are no functions and methods aren't really first class, but you can pass blocks to functions and represent them as Proc, which are first class objects)
<hanmac>
[k- no they are all economy class ;P
agarie has joined #ruby
<[k->
you can def foo.should arg = nil
Musashi007 has quit [Quit: Musashi007]
<Senjai>
ebernhardson: Are you talking about rspec?
<ebernhardson>
Senjai: yes
bluOxigen has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
djbkd_ has joined #ruby
Filete has joined #ruby
bluOxigen has joined #ruby
sent1nel has quit [Remote host closed the connection]
<Senjai>
ebernhardson: Rspec monkey patches should into object
sevvie has quit [Remote host closed the connection]
<Senjai>
ebernhardson: Generally, bad practice. You probably want expect(thing).to eql(something_else)
<Senjai>
as should is deprecated
sevvie has joined #ruby
<shadeslayer>
how does one use Process:UID.switch?
<shadeslayer>
anyone got a example?
djbkd_ has quit [Read error: Connection reset by peer]
claw_ has quit [Quit: No Ping reply in 210 seconds.]
<shadeslayer>
I want to switch from the super user to a regular user and then back
quimrsto_ has quit [Remote host closed the connection]
<ebernhardson>
Senjai: interesting, didn't realize that. this test suite i just inherited has over 100 uses of should, guess i have some work to do :)
Musashi007 has joined #ruby
djbkd_ has joined #ruby
<Senjai>
ebernhardson: It's really bad :P, in older versions its fine, but if your version supports expect() you're going to want to use it
kubunto has joined #ruby
giuseppesolinas has joined #ruby
<kubunto>
cucumber is ruby's testing suite right?
<Senjai>
ebernhardson: If your interesting in replacing the bad syntax, you can expecitly set the syntax to expect to disable the should syntax
Filete has quit [Ping timeout: 255 seconds]
<jhass>
kubunto: there are many different testing frameworks for ruby, cucumber is one
quimrstorres has joined #ruby
<Senjai>
kubunto: No, minitest is the default, rspec is a variation of minitest
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robertodecurnex has joined #ruby
pandaant has quit [Remote host closed the connection]
<Senjai>
kubunto: Cucumber is yet another framework
<Senjai>
kubunto: I highly recommend against cucumber
<kubunto>
jhass: i thought so but I did not remember
hjlsteffens has joined #ruby
<kubunto>
Senjai: any particular reason?
<Senjai>
kubunto: Yes, it was designed for non programmers to write tests, but practically, its only programmers that write tests.
<Senjai>
kubunto: You have to write a bunch of regexes to support the natural language of it, its cumbersome
Mon_Ouie has quit [Ping timeout: 252 seconds]
<Senjai>
Its best to just use minitest, or rspec
<Senjai>
I find rspecs DSL very explicit when written correctly in terms of understanding. But it is like learning a new language
<Senjai>
and a lot of people hate it
<Senjai>
but I <3 it
<kubunto>
Senjai: i ask because it came up on a job description
sevvie has quit [Remote host closed the connection]
djbkd has joined #ruby
<havenn>
Senjai: good mornin'!
Hijiri has quit [Quit: WeeChat 1.0.1]
<Senjai>
mornin
claw has joined #ruby
rejerson69_ has quit [Ping timeout: 256 seconds]
<havenn>
pontiki: ruby-install ruby 2.1.6
<Senjai>
havenn: ruby install only has 2.1.3 no?
fgo has quit [Ping timeout: 252 seconds]
<Senjai>
I just reinstalled ruby install, and I only got 2.1.3 out of it
<pontiki>
i would like to, but i don't get to control the bloddy damn .ruby-version file :(
<Senjai>
pontiki: lol what? :( It should just be "2.1"
<pontiki>
see previous statement
<Senjai>
I know, I'm just ranting
<Senjai>
Thats not a fun setup :(
thumpba has joined #ruby
<havenn>
Senjai: ruby-install doesn't automatically update versions and checksum definitions quite yet. it will in an upcoming release. but you can install versions by just providing the version and checksum yourself, like: ruby-install ruby 2.1.6 --sha256 7b5233be35a4a7fbd64923e42efb70b7bebd455d9d6f9d4001b3b3a6e0aa6ce9
scripore has joined #ruby
<pontiki>
well, there's more to rant about. one is 2.1.1, another is 2.1.0, and i have use them both
<havenn>
Senjai: how'd you install it?
<Senjai>
havenn: via ruby build iirc
<havenn>
deja vu
<Senjai>
havenn: If it wasn't written in shell, I would actually contribute and add that ability to automatically add definitions
shevy has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<Senjai>
But I have no intention to learn that much shell :(
<pontiki>
thanks for the patch, tho, havenn
<havenn>
Senjai: are you talking ruby-build and i'm talking ruby-install?
zotherstupidguy has quit [Ping timeout: 276 seconds]
<havenn>
pontiki: de nada
<Senjai>
havenn: nono, ruby install
<havenn>
pontiki: but 2.1.6!
<Senjai>
But i got 2.1.6 from ruby build because ruby install didnt have it
<Senjai>
iirc
zotherstupidguy has joined #ruby
tvw has quit [Remote host closed the connection]
thumpba_ has joined #ruby
<havenn>
Senjai: you can `make update` before `sudo make install` to fetch latest definitions including 2.1.6 from ruby-versions for now. but yeah, it'll be *soon*.
blackmesa has quit [Ping timeout: 244 seconds]
shevy has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<Senjai>
havenn: Im guessing your a contributor?
jimms has quit [Remote host closed the connection]
<Senjai>
I will keep the make update trick in mind
<havenn>
Senjai: yup
<Senjai>
havenn: If you're willing to code review the hell out of any PR's I submit, Id probably contribute
<jhass>
havenn: we should rewrite ruby-install in crystal :D
<Senjai>
unless you already have a feature branch setup somewhere for it
<havenn>
jhass: \o/
mdw has joined #ruby
havenn is now known as havenwood
thumpba has quit [Ping timeout: 244 seconds]
towski_ has quit [Remote host closed the connection]
ec is now known as ELLIOTTCABLE
zotherstupidguy has quit [Ping timeout: 256 seconds]
Synthead has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
sent1nel has joined #ruby
rikai has joined #ruby
basiclaser has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
jenrzzz has joined #ruby
lolmaus_ has quit [Ping timeout: 256 seconds]
<havenwood>
Senjai: And of course a --no-update option to disable automatic update. :)
allcentury has joined #ruby
GeorgesLeYeti has quit [Quit: Quitte]
jimms has joined #ruby
zotherstupidguy has joined #ruby
<Papipo>
anybody here using the yt gem=
<Papipo>
?
<jhass>
no, you're its only user on the world
dopie has joined #ruby
<joelataylor>
curious if anyone here has integrated Intercom.io ?
lidenskap has joined #ruby
<Senjai>
joelataylor: !use
<Senjai>
ugh
<Senjai>
do we have a use entry?
<Senjai>
?use
<ruboto>
I don't know anything about use
<Senjai>
?help
<ruboto>
I don't know anything about help
<Senjai>
How to add factoids?
<Senjai>
!help
<jhass>
Senjai: !fact mk key value
doodlehaus has quit [Ping timeout: 244 seconds]
<jhass>
but it's restricted to ops
fabrice31 has quit [Ping timeout: 255 seconds]
<Senjai>
Oh I thought it asnt
<Senjai>
according to apeiros, or so I thought
<Senjai>
!fact mk use Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
<Senjai>
nope
<jhass>
?anyone
<ruboto>
Just ask your question, if anyone has, they will respond.
sandstrom has joined #ruby
<jhass>
!fact mk use Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
<ruboto>
jhass, I will remember that use is Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
<Senjai>
Could I get bot access? I've kind of been around forever
<joelataylor>
ok, thanks Senjai
<jhass>
Senjai: sorry, currently the authentication is tied to the channel ACL
gr33n7001 has quit [Quit: WeeChat 1.1.1]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<joelataylor>
if I add a Gem to a project, does it automatically get included and initialized?
<jhass>
Senjai: feel free to ping me any time to add something though ;)
<Senjai>
joelataylor: Yes, if the user hasn't set require: false
zotherstupidguy has quit [Ping timeout: 245 seconds]
<Senjai>
At least in rails, I believe.
thekodols has joined #ruby
zzing has joined #ruby
<Papipo>
jhass: fortunately I added "here" to my question
Asher has quit [Quit: Leaving.]
<Papipo>
Senjai: AFAIK they changed that and now you need to explicitly require stuff
<Papipo>
or maybe that was just for files in lib/
<jhass>
Papipo: often people can help you with your problem regardless, it's better to ask your actual question directly ;)
rejerson69_ has joined #ruby
<Papipo>
my problem is that the gem is not behaving at all as expected
zachrab has joined #ruby
<sandstrom>
Capistrano is installed via Bundler. When running `cap --help` it tries to load all gems in the Gemfile. How can I prevent that? I've tried adding `:require => false` but it doesn't work.
<Papipo>
like account.videos.count raising a ServerError
<jhass>
joelataylor: search your project for a call to Bundler.require, that will load all gems in the Gemfile which don't have require: false specified
<jhass>
the argument specifies which groups to load
<Senjai>
sandstrom: gem install capistrano
<jhass>
joelataylor: if you can't find that call the answer is no
<Senjai>
sandstrom: Install it globally
<sandstrom>
Senjai thanks, will try!
Alina-malina has joined #ruby
<jhass>
Papipo: 0.16 was released just yesterday, are you on the latest version?
<Papipo>
yes I am
<jhass>
it seems well maintained, what's the specific error?
ismaelga has quit [Remote host closed the connection]
blackmesa has joined #ruby
<sandstrom>
Senjai I tried, still get 'Could not find ruby-vips-0.3.8 in any of the sources'. Totally unrelated to capistrano, but it's a gem in the gemfile.
<Senjai>
*shrug*
<Senjai>
Probably not the correct version then
zotherstupidguy has joined #ruby
tubuliferous_ has joined #ruby
<sandstrom>
Senjai I found it :) I'd aliased `bundle exec cap` to `cap`. It was good at the time, but turned into a trip-wire now :)
agarie has quit [Remote host closed the connection]
lkba has joined #ruby
<Senjai>
Yeah, never alias bundle exec :P
<Senjai>
I mean
<Senjai>
I have it aliased to be
<Senjai>
brails => bundle exec rails
<Senjai>
but I never change rails to be bundle exec rails by default
failshell has quit [Remote host closed the connection]
ascarter has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
<Senjai>
there are ways to automatically switch aliases when your in a project dir, but I dont really advise them
quimrstorres has quit [Remote host closed the connection]
fmcgeough has joined #ruby
<joelataylor>
thanks jhass - looks like I needed to restart the server after I changed branches. Doh.
sent1nel has quit [Remote host closed the connection]
diegoviola has joined #ruby
slash_nick has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
sent1nel has joined #ruby
agarie has joined #ruby
<shevy>
hmm we have the >= operator
chrisja has joined #ruby
<shevy>
but I wonder
Hijiri has joined #ruby
ki0 has joined #ruby
<shevy>
may it be easier to not use =, but instead just use "greater than" and "less than"? since the check it seems to do, would be superfluous
<shevy>
like you could have "at least 80% identity", and check for it via >= 80 or > 79
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<adaedra>
It's valid for integers, not floats
<shevy>
I could save one character :)
<shevy>
not valid for floats?
snockerton has quit [Quit: Leaving.]
<adaedra>
79.5 is > 79 but not >= 80
MatthewsFace has joined #ruby
towski_ has joined #ruby
Papipo has quit [Remote host closed the connection]
aevitas has joined #ruby
doertedev has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
<adaedra>
[80;+∞[ is better expressed with >= 80, because of float values, and because it's more readable
rejerson69_ has quit [Ping timeout: 250 seconds]
claw_ has joined #ruby
claw has quit [Ping timeout: 264 seconds]
MatthewsFace has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 252 seconds]
MatthewsFace has joined #ruby
<shevy>
hmm
<shevy>
I need to think about this baguette situation
dc__ has quit [Remote host closed the connection]
<adaedra>
.
<shevy>
careful with the . adaedra we may run out of them one day
thatslifeson has quit [Remote host closed the connection]
<adaedra>
never
snockerton has joined #ruby
lavros has quit [Quit: leaving]
dc__ has joined #ruby
segfalt_ has joined #ruby
baweaver has quit [Ping timeout: 248 seconds]
segfalt_ has quit [Client Quit]
mistermo_ has joined #ruby
umgrosscol has joined #ruby
rdark has quit [Quit: leaving]
gazay has quit [Read error: Connection reset by peer]
segfalt has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
mistermo_ has quit [Remote host closed the connection]
<bricker>
...
dc__ has quit [Remote host closed the connection]
gazay has joined #ruby
AlphaAtom has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
leafybasil has quit [Remote host closed the connection]
claw_ has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
claw has joined #ruby
* adaedra
run gzip
<adaedra>
…
kirun has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pontiki has quit [Quit: Lost terminal]
Spami has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
kblake has quit [Ping timeout: 244 seconds]
yaw has joined #ruby
Oka has joined #ruby
xtsee has quit []
zzach has joined #ruby
yaw has quit [Max SendQ exceeded]
<Papipo>
Seriously, I have tried like 4 different fixes of #<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed>
<Papipo>
without luck
edwinvdgraaf has quit [Remote host closed the connection]
<zzach>
Is it possible to change /usr/bin/make in /usr/bin/gem using any option or environment variable , or is it hardcoded? (PATH change does not seem to work)
Igorshp has joined #ruby
edwinvdgraaf has joined #ruby
freerobby has quit [Quit: Leaving.]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
kblake has joined #ruby
xtsee has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
bobbrez has quit [Read error: Connection reset by peer]
<dudedudeman>
sup agent_white
mistermo_ has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
AlphaAtom has quit [Ping timeout: 256 seconds]
lidenskap has quit [Remote host closed the connection]
<dudedudeman>
so splats
<dudedudeman>
are there any best practices worth noting about when to use, or not to use splats?
Jackneill has quit [Remote host closed the connection]
<GaryOak_>
dudedudeman: you mean in the argument list?
<dudedudeman>
GaryOak_: yes
zorak8 has quit [Quit: Leaving]
<dudedudeman>
i've seen examples of them used ina few different scenarios, but i know examples are just little bits to show what something is capable of, and not something that would be best practice
odin22 has quit [Read error: Connection reset by peer]
<GaryOak_>
I think it's easy to run into problems using it
odin22 has joined #ruby
<GaryOak_>
because you don't know whether what you passed in was an array or not
<dudedudeman>
could you define an array to a a variable and then pass it through using interpolation?
turtil has joined #ruby
MatthewsFace has joined #ruby
rgb-one has quit [Remote host closed the connection]
aevitas has quit []
Papipo has quit [Remote host closed the connection]
<adaedra>
what do you mean?
<adaedra>
pass an array as arguments?
<dudedudeman>
i'll gist what i have in mind
finisherr has joined #ruby
<adaedra>
args = [ 6, 7 ]; -> (a, b) { a * b }.call(*args)
<adaedra>
>> args = [ 6, 7 ]; -> (a, b) { a * b }.call(*args)
<dudedudeman>
GaryOak_: ^ is what i'm mulling over
<GaryOak_>
finisherr: if you want to invoke the superclasses initialize method you have to call super
<finisherr>
okay cool, I was wondering if ruby did something like that
<WajidKagzi>
hello
<finisherr>
or supported that
qwertme_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
otherj has joined #ruby
<pontiki>
if you change the signature of the initialize method in the subclass, you have to call the superclass's initialize with explicity parameters
wallerdev has quit [Quit: wallerdev]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
Zamerick_ has joined #ruby
<adaedra>
dudedudeman: and what's the problem?
<GaryOak_>
I guess it's nice if you have a DSL
<GaryOak_>
or are trying to make a DSL
ismaelga has joined #ruby
sandstrom has joined #ruby
<dudedudeman>
adaedra: no problem, just me trying to see if there are best practices on when to use splat and when not to. i'm just asking based on my inexperience compared to most of you folks
<dudedudeman>
because i look at that, and i'm like, oooo, this looks useful. but of course there are instances where you look at things and you're like, nope. don't do that. and you can say that because you've been there and done that
<adaedra>
You use splat to dynamically pass arguments
<GaryOak_>
dudedudeman: it depends if you want things to be really clean or really explicit
banister has joined #ruby
<finisherr>
Okay, yeah. Super method is the ticket. Thank you
EagleDelta has quit [Remote host closed the connection]
Zamerick__ has quit [Ping timeout: 240 seconds]
<pontiki>
play around with splats, find out where and how they work, etc
<dudedudeman>
which, if my reading of Clean Code has been of any help, I need to be thinking about writing code that others will be reading later on
<finisherr>
Sometimes I read through books and get impatient as questions come up : )
<pontiki>
quite so. one of those people will be you.
otherj has quit [Client Quit]
<pontiki>
a year from now, you will look at code and say "what idiot wrote this?? .. oh .."
<dudedudeman>
pontiki: i hop so!
<dudedudeman>
hope*
<GaryOak_>
I think splat doesn't show it's intentions very clearly in the method signature, but that's just me :P
<adaedra>
dudedudeman: don't worry. With more experience, you'll be able to tell better what's good or not
<pontiki>
avdi has a bunch of tapas on splat
<dudedudeman>
adaedra: i do hope so.
thatslifeson has joined #ruby
otherj has joined #ruby
<dudedudeman>
pontiki: i've been mulling over subscribing to that. i've seen a few of the free ones and think they're great, but4 i know they're not entirely geared towards junior level thinking
ismaelga has quit [Remote host closed the connection]
<al2o3-cr>
dudedudeman: Math.hypot(*[3,4]) is equiv as Math.hypot(3,4)
otherj has quit [Max SendQ exceeded]
<dudedudeman>
so i'm wary of spending too much time learning cool, fancy techniques when i should be grinding through things like the prag prog guide to ruby
otherj has joined #ruby
<GaryOak_>
get the logic and design down, and then you can mess with syntax suger
ponga has quit [Remote host closed the connection]
alex88 has quit [Ping timeout: 276 seconds]
Tristan-Speccy has quit [Read error: Connection reset by peer]
chipotle has quit [Client Quit]
jheg has quit [Quit: jheg]
Igorshp has quit [Remote host closed the connection]
cosmicfires has quit [Quit: bye...]
marahin has left #ruby ["Leaving..."]
ldnunes has quit [Quit: Leaving]
chipotle has joined #ruby
weemsledeux has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
scottymeuk has joined #ruby
iamjarvo has joined #ruby
icarus has quit [Quit: leaving]
<al2o3-cr>
why can't you have if match = data.match /!hello/ in ruby 2.2.2
iamjarvo has quit [Max SendQ exceeded]
icarus has joined #ruby
doodlehaus has quit [Remote host closed the connection]
iamjarvo has joined #ruby
mistermo_ has joined #ruby
aclapinpepin has joined #ruby
AlphaAtom has joined #ruby
Pipocah has quit [Quit: Leaving]
misterm__ has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
<apeiros>
al2o3-cr: I don't know, why can't you?
misterm__ has quit [Remote host closed the connection]
<al2o3-cr>
apeiros: ignore me i'm going mental ;P
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qwertme has joined #ruby
<apeiros>
ok. but if I ignore you, I can't help you.
mistermocha has quit [Ping timeout: 250 seconds]
mwlang has joined #ruby
<al2o3-cr>
not literally, you need perens
Azure has quit [Excess Flood]
jottr has quit [Ping timeout: 250 seconds]
RealMarc has quit [Ping timeout: 272 seconds]
<mwlang>
I want to extract a timestamp’s values off a line with a regexp. A typical line: "Processing ContentController#index (for 207.46.13.43 at 2015-02-25 02:03:34) [GET]" — my regexp (which works, but is looooong): line.scan(/(\d{4})\-(\d{2})\-(\d{2})\s(\d{2})\:(\d{2})\:(\d{2})/).reject{|r| r == ''}.flatten.map(&:to_i) => [2015, 2, 25, 2, 3, 34] Can the regexp be reduced?
mistermocha has joined #ruby
baweaver has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
bluOxigen has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
EagleDelta has quit [Remote host closed the connection]
dseitz has joined #ruby
<al2o3-cr>
apeiros: which is preferred "match = data.match(//); if match; ..." or "if match = data.match(//); ..."
<apeiros>
al2o3-cr: I prefer the former
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agarie has joined #ruby
<adaedra>
if data =~ // then use $~ ?
ponga has joined #ruby
<al2o3-cr>
ok thanks apeiros
<apeiros>
mwlang: scan with capturing groups never returns a string. that reject is pointless.
ponga has quit [Remote host closed the connection]
Igorshp has joined #ruby
_blizzy_ is now known as DenverCoder9
DenverCoder9 is now known as _blizzy_
jerius has quit [Quit: /quit]
<apeiros>
and scan is the wrong tool if you only have a single match. use .match(regex).captures.map(&:to_i)
AlphaAtom has quit [Ping timeout: 244 seconds]
<mwlang>
apeiros: yeah, I saw that and removed already…original regexp was returning a bunch of empty strs
scripore has quit [Quit: This computer has gone to sleep]
<apeiros>
regarding your question: the regex can't be reduced significantly
<apeiros>
you can use \d\d instead of \d{2} - saves you a single digit * 5.
<apeiros>
I don't see much else.
<mwlang>
apeiros: a finer point worth me exploring more: match vs. scan
pontiki has quit [Quit: Lost terminal]
<mwlang>
is match more optimized or just a better choice for the use-case?
RealMarc has joined #ruby
<apeiros>
better choice for the use-case
hiyosi has joined #ruby
<apeiros>
the only optimized regex expression is /literal/ =~ regex
<adaedra>
you're trying to find if your string match as a whole, mwlang, not finding every substring which matches
<adaedra>
first is match, latter is scan
<apeiros>
well, and =~ generally being faster if all you care for "does it match" because it does not construct the MatchData object
Mohan_ has quit [Ping timeout: 256 seconds]
<adaedra>
Er, $~ ?
<apeiros>
adaedra: that one's lazy
<adaedra>
oh
<adaedra>
didn't know that
<apeiros>
adaedra: but yes, once you use $~, you give up the performance advantage
<adaedra>
I always do like this
shtirlic has quit [Ping timeout: 252 seconds]
<apeiros>
in fact, I think any of the $ vars related to regex will cause a construction of matchdata. not sure though.
agarie has quit [Ping timeout: 272 seconds]
<mwlang>
apeiros: so here’s the final version: line.match(/(\d{4})\-(\d{2})\-(\d{2})\s(\d{2})\:(\d{2})\:(\d{2})/).captures.map(&:to_i) — I think I’ll keep \d{2} as that’s a little easier to read altogether.
<apeiros>
mwlang: you're out of luck. at work I have a basic rails log parser.
<apeiros>
constructs even params for you :)
<apeiros>
havenwood: ah, you mean String#[]
<mwlang>
apeiros: haha…I just about gots a rudimentary one written now.
<apeiros>
mwlang: older rails logs were worse. concurrent requests writing into each other's log outputs…
Hijiri has quit [Quit: WeeChat 1.0.1]
<mwlang>
it’s even worse than I let on, though…the log files have not been rotated regularly…so I’m scanning 7gb logs, too. :-o
barkerd427 is now known as zz_barkerd427
Eiam_ has joined #ruby
<mwlang>
apeiros: ugh…don’t take me back to those days.
<apeiros>
when I have to do such stuff I preprocess them
<mwlang>
apeiros: do you by any chance know when that was fixed? I’m digging into a Rails 1.2 app.
<apeiros>
grep -b is helpful.
<apeiros>
I think rails 4 made the logging situation better. not sure though. I *very* rarely have to dig into rails log files.
<mwlang>
apeiros: I’m preprocessing with grep and sed to reduce as much as possible, and then grabbing what I need with what’s left over using Ruby.
RegulationD has joined #ruby
<apeiros>
usually our other logging tools provide better and sufficient info
weemsledeux has quit [Ping timeout: 264 seconds]
shtirlic has joined #ruby
agarie has joined #ruby
<mwlang>
apeiros: sadly for me, this is a new client and project and they have a mess.
<apeiros>
good luck :-D
pdoherty has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandstrom has quit [Quit: My computer has gone to sleep.]
<mwlang>
apeiros: but speaking to log clobbering, I thought that was largely solved in the 2.1.x era if not sooner….or did we “self solve” that with different logs per worker? (I’ve forgotten!)
jimms has quit [Remote host closed the connection]
<mwlang>
if there’s one gripe about not doing giant monolythic apps, its that it’s a lot harder to trace the flow of data across the multiple apps.
zachrab has quit [Remote host closed the connection]
frem has joined #ruby
mengu has joined #ruby
<mwlang>
and it feels weird going from ruby to .Net to Perl to .Net and back to Ruby — I feel like I’m translating code to “ruby” as much as interpreting the data exchanges.
kirun has quit [Quit: Client exiting]
jimms has joined #ruby
hololeap has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has quit [Quit: Leaving]
zorak8 has quit [Quit: Leaving]
mrmargolis has quit [Remote host closed the connection]
<hololeap>
i've got a block that relies on reading files from a temporary directory. i have it set up so that it creates the directory/files, calls yield(file), and then destroy the directory. can i move this functionality to an Enumerator?
Guest83572 has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
<hololeap>
i want it to call a method/lambda that deletes the directory as soon as the method chain returns
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtdowney has joined #ruby
zachrab has joined #ruby
Mohan_ has joined #ruby
<toretore>
hololeap: code
<toretore>
here: gist.github.com
agarie has quit []
sevvie has quit [Ping timeout: 250 seconds]
Stalkr^ has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
RegulationD has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo___ has quit [Quit: (null)]
<hololeap>
toretore: i want to be able to use it with the progress gem like so `archive.unpack(books).with_progress('Books').each {|f| ... }` and have it delete the directory once each() returns. is this possible?
<mwlang>
well, I now know how to write even less code today than yesterday. :-D
juanpablo___ has joined #ruby
<havenwood>
mwlang: yeah, `&block` with `block.call` can be nice
<hololeap>
toretore: right now the enum is returned _after_ the directory is deleted so it can't be used (since the files that need to be used are no longer there)
<havenwood>
mwlang: i don't think i'd mix `&block` with `yield` though
<adaedra>
Goooood Night
<mwlang>
havenwood: like when you want to change the binding on the block call…
diegoviola has joined #ruby
djbkd has joined #ruby
TheNet has joined #ruby
<havenwood>
mwlang: i just think the argument should be used if defined
<mwlang>
havenwood: I removed &block from the args and changed to “yield if block_given?”
dopie has quit [Quit: This computer has gone to sleep]
<mwlang>
(more toying with this at this point…)
<havenwood>
mwlang: that's nice as well :)
AlphaAtom has quit [Ping timeout: 256 seconds]
AlphaAtom has joined #ruby
thomcom has joined #ruby
juanpablo___ has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
fmcgeough has joined #ruby
michaeldeol has joined #ruby
mistermocha has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
Mohan_ has quit [Ping timeout: 248 seconds]
RegulationD has joined #ruby
scripore has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
scripore has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
Mohan has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mohan is now known as Guest58635
reinaldob has joined #ruby
Olipro has quit [Ping timeout: 252 seconds]
bobbrez has joined #ruby
ismaelga has joined #ruby
RegulationD has quit [Remote host closed the connection]
bobbrez has quit [Client Quit]
bobbrez has joined #ruby
RegulationD has joined #ruby
RegulationD has quit [Remote host closed the connection]