dsmythe has quit [Remote host closed the connection]
altigraph has quit [Ping timeout: 268 seconds]
dsmythe has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
fphilipe has quit [Ping timeout: 268 seconds]
zacts has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucasb has joined #ruby
pupsikov has joined #ruby
weird_error has quit [Quit: weird_error]
ua has joined #ruby
jenrzzz has joined #ruby
fphilipe has joined #ruby
OneNeptune has joined #ruby
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
zacts has quit [Ping timeout: 258 seconds]
waheedi has quit [Quit: waheedi]
zacts has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
zacts has quit [Client Quit]
zacts has joined #ruby
violentE has quit [Ping timeout: 250 seconds]
Rakete1111 has joined #ruby
<Rakete1111>
hello all. I'm a ruby beginner and I'm trying to resolve an issue I've been having with the mail gem. Can someone please try to reproduce my problem, as that would be really helpful to see if it is not a problem with my environment or not.
<Rakete1111>
without the "invalid" characters, this fails
<Rakete1111>
but I read the email with :encoding => "UTF-8"
<Rakete1111>
so it should be valid UTF8
<adam12>
Rakete1111: I can't look at it now but since you've provided an example email I'll dig into it a bit later and see if there's something I can see.
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
hiroaki has joined #ruby
zacts has joined #ruby
Rakete1121 has joined #ruby
wget has joined #ruby
wget has quit [Changing host]
wget has joined #ruby
Rakete1121 has left #ruby [#ruby]
Rakete1111 has quit [Ping timeout: 258 seconds]
Rakete1111 has joined #ruby
zacts has quit [Ping timeout: 244 seconds]
zacts has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
zacts_pi has joined #ruby
wget has quit [Quit: kill -3 wget]
zacts is now known as Guest19553
zacts_pi is now known as zacts
Guest19553 has quit [Ping timeout: 244 seconds]
VSpike has joined #ruby
Swyper has joined #ruby
alem0lars has joined #ruby
OneNeptune has joined #ruby
<VSpike>
Hi. How much of a problem is it to use a older version of a supported branch in production. e.g for 2.4.x, should anything less than 2.4.6 be considered deprecated?
<VSpike>
Is it any worse or better than using a 2.3.x version, for example?
hightower3 has quit [Ping timeout: 245 seconds]
<VSpike>
Are there scales of wrongness, where 2.4.0 is awful (2.5 years old!) but 2.4.5 is meh?
Swyper has quit [Remote host closed the connection]
ramfjord has joined #ruby
<adam12>
VSpike: If you have to run a non-current version, you're obviously best to run the latest of that minor. The patches will usually switch from bug fixes to security fixes.
<adam12>
VSpike: I don't think there's any hard and fast rule, and you could look at 2.4.6 and 2.4.5 and go meh, 2.4.5 is sufficient.
Swyper has joined #ruby
wald0 has joined #ruby
<Rakete1111>
What
ramfjord has quit [Ping timeout: 244 seconds]
<Rakete1111>
oops
<Rakete1111>
ignore me lol :)
jenrzzz has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.4]
Swyper has quit [Remote host closed the connection]
cthu| has quit [Ping timeout: 246 seconds]
cthulchu has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
houhoulis has quit [Ping timeout: 246 seconds]
houhoulis has joined #ruby
krawchyk has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
sean_s has joined #ruby
jcarl43 has joined #ruby
ramfjord has joined #ruby
sean_s has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
Ltem has joined #ruby
houhouli_ has joined #ruby
houhoulis has quit [Ping timeout: 245 seconds]
Fernando-Basso has quit [Remote host closed the connection]
wget has joined #ruby
wget has quit [Client Quit]
duderonomy has joined #ruby
AJA4351 has joined #ruby
fphilipe has joined #ruby
wget has joined #ruby
AJA4350 has quit [Ping timeout: 255 seconds]
AJA4351 is now known as AJA4350
zacts has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<Eiam>
heh im still deploying some projects on 2.1
<Eiam>
fire and forget
<Eiam>
=)
Ltem has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
OneNeptune has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m_antis has quit [Read error: Connection reset by peer]
hiroaki has quit [Remote host closed the connection]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul>
so just know the difference of these ^ two. as it can be really hard to debug if an object is referenced from multiple places of a program.
<phaul>
multiple data structures rather
fphilipe has joined #ruby
sgen has joined #ruby
<ule>
phaul: For most of the endpoints, I'm gonna generate seeds with dummy data.. but for some endpoints that basically returns data from external data sources, I'm intercepting and "injecting" this dummy response
<ule>
First time doing this kind of stuff. I'm kind of following my guts so far.. :/
<ule>
But always with something telling me that this is a kind of code smell :D
_joes_ has joined #ruby
alem0lars has quit [Ping timeout: 258 seconds]
<phaul>
so in [a] * n you get an array of one *single* object n times, whereas Array.new(n) { a } gives an array of n objects each of wich initially equal to a. that's the main gotcha with this
<fishcooker>
checking... phaul
wallace_mu has joined #ruby
_joes_ has quit [Read error: Connection reset by peer]
<fishcooker>
but i think the rvm still not installed
<phaul>
hopefully someone with RVM knowledge comes along...
nowhere_man has joined #ruby
hiroaki has quit [Remote host closed the connection]
hiroaki has joined #ruby
<fishcooker>
rvm is ruby version manager
ramfjord has joined #ruby
<fishcooker>
how about installing not stable one phaul?
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
<zenspider>
rawr
<phaul>
zenspider: rvm. we need you ! :)
<zenspider>
I don't use rvm, but I might be able to answer questions
jenrzzz has joined #ruby
<zenspider>
what's up?
<zenspider>
the dpaste?
<phaul>
yeah.
nowhere_man has quit [Ping timeout: 258 seconds]
tdy has quit [Ping timeout: 246 seconds]
<zenspider>
I see some stuff about gpg. *shrug* Do the thing it says?
<zenspider>
or use rbenv. This is not a problem I have or want to have.
fphilipe has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
<zenspider>
it looks like fishcooker is pretty unresponsive... so... yeah.
jenrzzz has joined #ruby
OneNeptune has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sgen has quit [Ping timeout: 276 seconds]
_joes_ has quit [Remote host closed the connection]
_joes_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
krawchyk has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
dinfuehr_ has joined #ruby
_joes_ has quit [Quit: _joes_]
dinfuehr has quit [Ping timeout: 246 seconds]
_joes_ has joined #ruby
Dbugger has quit [Quit: Leaving]
fphilipe has joined #ruby
OneNeptune has joined #ruby
ur5us has joined #ruby
SeepingN has joined #ruby
hightower3 has joined #ruby
hightower3 has quit [Changing host]
hightower3 has joined #ruby
tdy has joined #ruby
abaiste^ has quit [Read error: Connection reset by peer]
cjohnson has joined #ruby
<cjohnson>
Is there a method that returns the first *return value* of the given block that isn't false or nil or something?
cnsvc has joined #ruby
<cjohnson>
Basically I have a list of values, I want to do a transform on the value but I want to stop at the first return that matches a condition
<cjohnson>
A list of secret objects, and I want to call authenticator.authenticate(secret) against each secret, and stop checking additional secrets after I find one where authenticator.authenticate doesn't return false
<cjohnson>
I can make it return nil or something else if that helps
<adam12>
cjohnson: Like Enumerable#find ?
<cjohnson>
Yes except that find returns the original value
<cjohnson>
I want to return the transformed value
speakingcode has quit [Ping timeout: 246 seconds]
<cjohnson>
I might have to write *gasp* a loop
<cjohnson>
with a break
<cjohnson>
Oh wait you can break in find and it'll return the break
tdy1 has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
OneNeptune has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cjohnson>
nice that's exactly what I needed
<cjohnson>
p.find do |i|
<cjohnson>
break transformed_value if i.condition
<cjohnson>
end
<phaul>
how about p.map(&:transform_value).find(&:condition)
<phaul>
ah. that checks condition on the mapped values
reber has quit [Remote host closed the connection]
tdy1 is now known as tdy
jenrzzz has quit [Ping timeout: 250 seconds]
marmotini_ has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
<VSpike>
adam12: right, makes sense. But anything other than the latest release on the non-current series is going to have security flaws pretty much by definition
<VSpike>
And the older it is, the more flaws it will have, presumably
wallace_mu has quit []
houhouli_ has quit [Ping timeout: 258 seconds]
fphilipe has quit [Ping timeout: 276 seconds]
houhoulis has joined #ruby
_joes_ has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
polishdub has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 245 seconds]
d^sh has quit [Ping timeout: 246 seconds]
zacts has joined #ruby
sgen has joined #ruby
d^sh has joined #ruby
_joes_ has quit [Quit: _joes_]
_joes_ has joined #ruby
_joes_ has quit [Quit: _joes_]
SeepingN_ has joined #ruby
SeepingN has quit [Disconnected by services]
jenrzzz has joined #ruby
fphilipe has joined #ruby
SeepingN has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
SeepingN_ has quit [Ping timeout: 246 seconds]
OneNeptune has joined #ruby
_Caerus has quit [Ping timeout: 245 seconds]
Ltem has joined #ruby
dsmythe has quit [Remote host closed the connection]
Swyper has joined #ruby
speakingcode has joined #ruby
dsmythe has joined #ruby
<cjohnson>
phaul: the condition is on the transformed value
<cjohnson>
and also that doesn't stop checking after the first match
Caerus has joined #ruby
brendan- has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
hightower2 has joined #ruby
Swyper has joined #ruby
hightower3 has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
clemens3_ has quit [Ping timeout: 246 seconds]
clemens3 has joined #ruby
eduardo has joined #ruby
Ltem has quit [Quit: bye]
zacts has quit [Quit: WeeChat 2.4]
mikecmpbll has quit [Quit: inabit. zz.]
Swyper has joined #ruby
eduardo is now known as phantom
phantom is now known as edual
fphilipe has quit [Ping timeout: 276 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
galaxie has quit [Ping timeout: 256 seconds]
galaxie has joined #ruby
brendan- has joined #ruby
endorama has joined #ruby
Swyper has quit [Remote host closed the connection]
weird_error has joined #ruby
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
lunarkitty7 has quit [Quit: WeeChat 1.9.1]
houhoulis has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
xco has joined #ruby
<xco>
Hi. I want to build my first gem. However I’m not sure if there’s anything special I need to do if I need my gem to be able to be used in Rails at the same time.
fishcooker has quit [Quit: Leaving.]
hightower2 has quit [Ping timeout: 245 seconds]
<xco>
Question is if i build a generic gem for Ruby, is there anything extra I would do to make it useable in Rails; asking because the gem i want to build will use some API keys
<xco>
in a Rails app you’d put this keys in say config/intializers/mygem.rb
<xco>
but you won’t do this for a normal generic gem
<xco>
how do i go about achieving this? building a gem that you can use with and without Rails?
xco has quit [Quit: xco]
grvgr has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]