jo__ has quit [Quit: Connection closed for inactivity]
salmon has joined #ruby-lang
salmon is now known as salmon42
cyndis_ is now known as cyndis
salmon42 has left #ruby-lang [#ruby-lang]
Xzanron has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 240 seconds]
Xzanron has joined #ruby-lang
simi has quit [Ping timeout: 250 seconds]
jmrepetti has quit [Remote host closed the connection]
salmon42 has joined #ruby-lang
siwica1 has joined #ruby-lang
spastorino has joined #ruby-lang
siwica has quit [Ping timeout: 244 seconds]
Versality has joined #ruby-lang
allomov has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kabaka has joined #ruby-lang
banister has joined #ruby-lang
jgpawletko has joined #ruby-lang
[spoiler] has joined #ruby-lang
danijoo_ has joined #ruby-lang
allomov has quit [Ping timeout: 265 seconds]
arooni-mobile has joined #ruby-lang
danijoo has quit [Ping timeout: 250 seconds]
banister has joined #ruby-lang
salmon42 has quit [Quit: salmon42]
banister has quit [Client Quit]
Xzanron_ has joined #ruby-lang
miqui has joined #ruby-lang
benlovell has joined #ruby-lang
allomov has joined #ruby-lang
Xzanron has quit [Ping timeout: 245 seconds]
rahul_j has quit [Quit: rahul_j]
Versality has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 250 seconds]
Versality has joined #ruby-lang
banister has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 256 seconds]
rkowalick has joined #ruby-lang
michael_mbp has quit [Excess Flood]
ta has quit [Remote host closed the connection]
michael_mbp has joined #ruby-lang
SuMo_D has joined #ruby-lang
rkowalick has quit [Ping timeout: 265 seconds]
Sunlorhic has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
jmrepetti has joined #ruby-lang
Xzanron has joined #ruby-lang
apeiros has quit [Ping timeout: 264 seconds]
skade has quit [Quit: Computer has gone to sleep.]
mkaesz has joined #ruby-lang
Xzanron_ has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby-lang
fjfish has joined #ruby-lang
francisfish has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
<yorickpeterse>
ljarvis: PING PING PING PING
Versality has quit [Read error: Connection reset by peer]
Versality has joined #ruby-lang
<yorickpeterse>
ljarvis: why does Slop's behaviour change so drastically when you use Slop.new { |slop| } vs Slop.new { }
snooc has joined #ruby-lang
<yorickpeterse>
e.g. in case of the former, if you call #to_s on the Slop instance it doesn't output the options
<yorickpeterse>
but in case of the later, due to instance_eval, you lose the outer scope
banister has joined #ruby-lang
jimbach has joined #ruby-lang
imperator has joined #ruby-lang
cornerma1 has joined #ruby-lang
salmon42 has joined #ruby-lang
javilm has joined #ruby-lang
javilm has left #ruby-lang [#ruby-lang]
dwknoxy has joined #ruby-lang
enebo has joined #ruby-lang
jxpx777 has joined #ruby-lang
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
Guest7 has quit [Ping timeout: 265 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
akshayvishnoi has joined #ruby-lang
<akshayvishnoi>
hey i want to consume a SOAP api.
<ljarvis>
yorickpeterse: Slop.new { |s| s.on(:foo); puts s } works fine for me
<yorickpeterse>
ljarvis: I'm doing it inside an option
<akshayvishnoi>
It has SSL authentication.
<yorickpeterse>
I basically had
<akshayvishnoi>
How should i do it?
Versality has quit [Read error: Connection reset by peer]
<yorickpeterse>
Slop.new { |s| s.on(:h, :help, 'Shows this help message') { abort s.to_s } }
hinbody has joined #ruby-lang
<ljarvis>
oh right inside an option block
Versality has joined #ruby-lang
<akshayvishnoi>
I have tried savon gem. But i m constantly getting 400 bad request.
<yorickpeterse>
I fixed it by using the regular form and doing `outer = self` before the block, but it was a curiosity to say the least
<akshayvishnoi>
Please help
<yorickpeterse>
akshayvishnoi: Savon is generally the way to go, perhaps you're simply requesting invalid data/URLs?
<ljarvis>
yorickpeterse: tbh using the outer variable is bad anyway, so it either needs to provide access within the block as a block variable or it's always gonna be a bit of a hack
<akshayvishnoi>
no i have tried to consume on http …. it worked fine
<ljarvis>
akshayvishnoi: check request/response headers for them both
<akshayvishnoi>
but with ssl authentication it is not working
<ljarvis>
that'll identify the difference
<ljarvis>
ok.. so then it's because of SSL
<yorickpeterse>
akshayvishnoi: euh, you're talking all sorts of different things
<yorickpeterse>
SOAP, then regular HTTP, then suddenly SSL
<yorickpeterse>
One can assume Savon itself works fine, since it's pretty popular I believe
<yorickpeterse>
So most likely you're requesting things incorrectly, or the SOAP API is broken
<yorickpeterse>
ljarvis: other question, is it possible to get a list of automatically created options (excluding explicitly defined ones)?
<yorickpeterse>
without keeping track of the explicit ones myself
<yorickpeterse>
something like slop.automatically_created_options
<ljarvis>
automatically created options?
<ljarvis>
oh are you using autocreate?
fusillicode has joined #ruby-lang
<yorickpeterse>
Yeah, basically this has to take a bunch of unknown options and pass them along to an exec() call
Versality has quit [Client Quit]
<yorickpeterse>
but it also has a set of recognized options
<yorickpeterse>
You should see the existing code, haha
<ljarvis>
ok i didn't think anyone used autocreate (it's due to be removed actually). But no there's currently no way, because they're not flagged separately. Happy to have them flagged if you could add it to GitHub, otherwise you'd have to track it
miqui has quit [Read error: Connection reset by peer]
snooc has quit [Quit: see-ya]
orangestickynote has joined #ruby-lang
Doomsdaypoptart has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
Doomsdaypoptart has quit [Client Quit]
thagomizer has joined #ruby-lang
David_H_Smith has quit [Remote host closed the connection]
miqui has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
David_H_Smith has joined #ruby-lang
Doomsdaypoptart has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
Lingo_ has joined #ruby-lang
Doomsdaypoptart has quit [Client Quit]
sferik_ has quit [Read error: Connection reset by peer]
sferik has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
<Lingo_>
Wut
<Lingo_>
+d
Lingo_ has quit [Quit: Till next time!]
Doomsdaypoptart has joined #ruby-lang
Doomsdaypoptart has left #ruby-lang [#ruby-lang]
Doomsdaypoptart has joined #ruby-lang
sferik_ has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Doomsdaypoptart has left #ruby-lang [#ruby-lang]
dangerousdave has joined #ruby-lang
yfeldblum has joined #ruby-lang
ahmetkapikiran has joined #ruby-lang
sferik has quit [Ping timeout: 250 seconds]
q_leonetti has quit [Quit: q_leonetti]
amsi has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
Versality has quit [Quit: Be back later ...]
mistym has quit [Remote host closed the connection]
Sunlorhic has quit [Ping timeout: 245 seconds]
Versality has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Doomsdaypoptart has joined #ruby-lang
apeiros__ has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
Doomsdaypoptart has quit [Read error: Connection reset by peer]
pricees has joined #ruby-lang
Doomsdaypoptart has joined #ruby-lang
RobertBirnie has joined #ruby-lang
j4cknewt has joined #ruby-lang
fusillicode has quit [Ping timeout: 258 seconds]
pricees has quit [Quit: leaving]
RitterJack has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 250 seconds]
pricees has joined #ruby-lang
pricees has left #ruby-lang [#ruby-lang]
pricees has joined #ruby-lang
hahuang65 has joined #ruby-lang
<pricees>
clear
Doomsdaypoptart has quit [Read error: Connection reset by peer]
nelsonsar has quit [Remote host closed the connection]
Doomsdaypoptart has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
nelsonsar has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
mistym has joined #ruby-lang
GBrawl has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
kurko__ has quit [Read error: Connection reset by peer]
kurko__ has joined #ruby-lang
chussenot has joined #ruby-lang
sferik has joined #ruby-lang
cklee has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
sferik_ has quit [Ping timeout: 250 seconds]
kurko___ has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kurko__ has quit [Read error: Connection reset by peer]
sferik has quit [Ping timeout: 250 seconds]
malconis has joined #ruby-lang
anjen has joined #ruby-lang
kurko__ has joined #ruby-lang
danijoo_ has joined #ruby-lang
kurko___ has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
nelsonsar has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<anjen>
Kind folkses... I need a quick sanity check regarding new_record?() Does this isolate literal new column entries, ie, if I create a "product" then it returns true, if it was already created but is being updated, it returns false?. (I know... I experiment all the time. just in a rush today and don't want to sift the outernet for answers.)
danijoo has quit [Ping timeout: 250 seconds]
orangestickynote has quit []
kurko___ has joined #ruby-lang
kurko__ has quit [Read error: Connection reset by peer]
Sunlorhic has joined #ruby-lang
godd2 has quit [Ping timeout: 244 seconds]
siwica1 has quit [Remote host closed the connection]
siwica has joined #ruby-lang
klmlfl has joined #ruby-lang
klmlfl_ has quit [Ping timeout: 265 seconds]
salmon42 has joined #ruby-lang
Doomsdaypoptart has quit [Quit: Till next time!]
sarkyniin has joined #ruby-lang
<anjen>
Anyone?
<pipework>
drbrain: Hey sir, do you happen to know if net-http-persistent is interested in supporting ciphers?
salmon42 has quit [Client Quit]
skade has joined #ruby-lang
anjen has quit [Quit: anjen]
jmrepetti has joined #ruby-lang
mnngfltg has quit [Quit: Ex-Chat]
kurko___ has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby-lang
rkowalick has quit [Quit: leaving]
dangerousdave has joined #ruby-lang
dangerousdave has quit [Client Quit]
dangerousdave has joined #ruby-lang
kurko__ has joined #ruby-lang
dangerousdave has quit [Client Quit]
wallerdev has joined #ruby-lang
q_leonetti has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby-lang
benlovell has joined #ruby-lang
q_leonetti has quit [Quit: q_leonetti]
araujo has quit [Read error: Connection reset by peer]
pricees has quit [Ping timeout: 245 seconds]
araujo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
hagabaka has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby-lang
benlovell has quit [Ping timeout: 244 seconds]
hagabaka has joined #ruby-lang
hahuang65 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
<pipework>
drbrain: Thank you sir. I'm trying to get dayjob to use net-http-persistent as the adapter for faraday, and after we start doing that we're going to want to make an http connection pool for each of the ruby clients we ship for our backend services. net-http-persistent will be a huge improvement for us.
kirloo has joined #ruby-lang
yxhuvud has joined #ruby-lang
fluuflu has quit [Ping timeout: 272 seconds]
<pipework>
I've read about the automatic reconnect support but haven't used it. It's exciting.
havenwood has joined #ruby-lang
<drbrain>
pipework: For Ruby 2.1 it works out of the box, but for having to manage the connections yourself
<pipework>
drbrain: We're looking at an early next year timeline to go from 2.0 to 2.1, but we might not be able to actually get net-http-persistent into production until next year anyways.
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby-lang
loincloth has joined #ruby-lang
fusillicode has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
fusillicode1 has joined #ruby-lang
jmrepetti has quit [Remote host closed the connection]
[spoiler] has quit [Quit: Leaving]
fusillicode has quit [Ping timeout: 244 seconds]
womble has quit [Excess Flood]
womble has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
kirloo has quit [Ping timeout: 272 seconds]
fluuflu has joined #ruby-lang
mistym has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
mskaesz has quit [Remote host closed the connection]
caseydriscoll has quit [Remote host closed the connection]
pricees has joined #ruby-lang
caseydriscoll has joined #ruby-lang
snooc has quit [Quit: see-ya]
djbkd has joined #ruby-lang
GBrawl has quit [Quit: (null)]
danijoo has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 244 seconds]
GBrawl has joined #ruby-lang
danijoo_ has joined #ruby-lang
danijoo has quit [Ping timeout: 250 seconds]
Sunlorhic has quit [Ping timeout: 244 seconds]
j4cknewt has joined #ruby-lang
pricees has quit [Ping timeout: 258 seconds]
jmrepetti has joined #ruby-lang
Fessenden has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
<Fessenden>
Howdy! I'm having an issue with gem creation. I've installed it, it shows up in 'gem list', but I can't require it. It has single quotes around it, and I've tried PythonCase, snake_case, and whateverCaseThisIs.
<zenspider>
Fessenden: vague description is vague
<zenspider>
what gem?
<Fessenden>
Custom gem. Writing software into a gem format.
<zenspider>
ok. so you _know_ the contents of the gem
<apeiros__>
Fessenden: require works with files in your gem
<apeiros__>
so the argument to require must match a path in the lib dir of your gem
<apeiros__>
the gem name is irrelevant
<zenspider>
is what you're requiring exist in lib/<require-name>.rb ?
<zenspider>
next question: is lib/ set up as the include path for the gem?
<Fessenden>
zenspider: Yes, it's just a print statement in a function. ...No, it doesn't. The filename is different than the gem name, and I'm a moron, because that's mandatory, isn't it.
<zenspider>
both can be answered by gem spec <gemname>
<zenspider>
it isn't mandatory at all
<zenspider>
you need to require the file, not the gem
djbkd has quit [Remote host closed the connection]
<zenspider>
well... I guess the file existing in lib can't be answered by gem spec, because specs are neutered
<zenspider>
gem which <filename> will tho
charliesome has joined #ruby-lang
<Fessenden>
Er... mid-fix on a different tack, will be back momentarily.
jimbach has quit [Remote host closed the connection]
<Fessenden>
Yes, the file exists, yes it's included in the gemspec path and shows up in gem which.
<Fessenden>
Now it is also named the same as the gem.
<zenspider>
and are you still having problems?
<Fessenden>
Yup.
<Fessenden>
Still can't find the file.
<Fessenden>
no such file to load.
<zenspider>
`type gem`
<zenspider>
`type ruby`
<zenspider>
make sure they're from the same install
<zenspider>
and what's your require line look like?
<zenspider>
shit
<zenspider>
you're in 1.8
klmlfl has quit [Ping timeout: 256 seconds]
<zenspider>
require "rubygems" above
<Fessenden>
require 'GEMNAME'
<Fessenden>
Sure thing, changing .
elia has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby-lang
<Fessenden>
She lives!
<Fessenden>
Don't know why that didn't work last time I tried it.
whippythellama has quit [Quit: whippythellama]
<Fessenden>
Word, I can hammer out the rest of it, I hope.
<Fessenden>
Thank you very much for your help, zenspider
<Fessenden>
:)
GBrawl has quit [Ping timeout: 272 seconds]
<zenspider>
in ruby 1.8 rubygems isn't auto-loaded
<bnagy>
dat 1.8
<zenspider>
so you either need ruby -rubygems file.rb or file.rb needs to require rubygems
djbkd has joined #ruby-lang
<Fessenden>
file.rb requiring rubygems sound much more elegant.
<Fessenden>
Wait, no, I'm thinking a stupid thing.
nofxx has joined #ruby-lang
<Fessenden>
Those are both equally gnarly.
<Fessenden>
Ah well, nothing for it.
<Fessenden>
1.8. Blech.
<Fessenden>
Does that change in 1.9, or 2.0?
<zenspider>
1.9 and above auto-require
<zenspider>
there's pros and cons to both
<Fessenden>
Alrighty then.
<Fessenden>
I think my local machine is behind - my peers are using 1.9. Time for an upgrade.
<zenspider>
I would require rubygems in bin/<cmd>
<zenspider>
your peers should be using 2, so they're behind too :)
ldnunes has quit [Quit: Leaving]
pricees has joined #ruby-lang
elia has joined #ruby-lang
jortanna has joined #ruby-lang
shinnya has joined #ruby-lang
<Fessenden>
There was some issue that kept us from upgrading, but I can't remember what it was. I'll confer with them, but at this point, we're pretty deep into development, and working on a couple nigh-immediate deliverables. I'll make a push for it once we have some downtime. :)