havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has quit [Ping timeout: 248 seconds]
jtdoncas has quit [Ping timeout: 248 seconds]
sanscoeu_ has quit [Ping timeout: 268 seconds]
neo95 has joined #ruby
prometheus_falli has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
jtdoncas has joined #ruby
prometheus_falli has quit [Remote host closed the connection]
pastorinni has quit [Remote host closed the connection]
prometheus_falli has joined #ruby
cschneid_ has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 248 seconds]
Vile` has joined #ruby
ResidentBiscuit has joined #ruby
<leitz> I have a gem that I'm developing. I've installed an early version and continue to develop it. Now the issue is that the LOAD_PATH puts the gem's lib directory before the newest one. Is there any way besides "ruby -Ilib mycode" to force the LOAD_PATH to load the dev version first?
jtdoncas has joined #ruby
kies has quit [Ping timeout: 248 seconds]
kies has joined #ruby
r3kz has joined #ruby
jtdoncas has quit [Ping timeout: 248 seconds]
chocoelho has joined #ruby
jtdoncas has joined #ruby
pastorinni has joined #ruby
chocoelho has quit [Quit: chocoelho]
jobewan has quit [Ping timeout: 240 seconds]
jtdoncas has quit [Ping timeout: 248 seconds]
lytol_ has quit [Remote host closed the connection]
cremes has quit [Quit: cremes]
jtdoncas has joined #ruby
<Radar> leitz: How did you create that gem?
<Radar> leitz: `bundle exec <gem>` is usually how I'd do it because I use `bundle gem` to generate the gem.
pb122-two has quit [Quit: Leaving]
bronson has joined #ruby
c785127 has joined #ruby
<leitz> Radar, not quite sure. It's been a little bit. I know that I do basic stuff and I doubt I used bundle.
<Radar> leitz: does it have a Gemfile at least?
Vapez has quit [Remote host closed the connection]
<leitz> Yup. Though I'm not sure I'm communicating well. The gem works.
<leitz> However, when I change code in the development directory the changes aren't seen if the installed gem's files come before the development version in the LOAD_PATH.
c785127 has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
c785127 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
pastorinni has quit [Remote host closed the connection]
blindmoe has quit [Ping timeout: 248 seconds]
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
c785127 has quit [Ping timeout: 265 seconds]
TomyLobo has quit [Ping timeout: 272 seconds]
marxarelli is now known as marxarelli|afk
mniip has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 250 seconds]
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
jtdoncas has quit [Ping timeout: 248 seconds]
blindmoe has quit [Ping timeout: 260 seconds]
<Radar> leitz: do you have the "gemspec" line in that Gemfile?
mniip has joined #ruby
cdg has joined #ruby
<Radar> If so, I thought "bundle exec <gem>" would execute that gem in the directory, rather than the one that is loaded.
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
badeball has quit [Ping timeout: 268 seconds]
badeball has joined #ruby
kke has quit [Ping timeout: 276 seconds]
jinie has quit [Ping timeout: 268 seconds]
CustosLimen has quit [Ping timeout: 240 seconds]
jinie has joined #ruby
<leitz> Ah, interesting. Let me try that. Thanks Radar!
jsaak has quit [Ping timeout: 268 seconds]
jsaak has joined #ruby
linduxed has quit [Ping timeout: 276 seconds]
cdg has quit [Ping timeout: 265 seconds]
kke has joined #ruby
nit3rid3_ has joined #ruby
<leitz> Looks like bundle isn't installed.
hyperreal has quit [Ping timeout: 240 seconds]
<leitz> Or there's more to the command line.
linduxed has joined #ruby
CustosLimen has joined #ruby
nit3rid3 has quit [Read error: Connection reset by peer]
Barrt has joined #ruby
selim has quit [Ping timeout: 260 seconds]
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
<Radar> leitz: "gem install bundler"
jrgifford has quit [Quit: Connection closed for inactivity]
sspreitz has quit [Ping timeout: 260 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
<leitz> No real need. I can build the gem without it and use the -Ilib option to specify the current directory. I try to not add a lot of software that I barely understand; there's already enough that I barely understand. :)
ledestin has joined #ruby
sspreitz has joined #ruby
selim has joined #ruby
c785127 has joined #ruby
ResidentBiscuit has joined #ruby
hyperreal has joined #ruby
marr has quit [Ping timeout: 248 seconds]
eightlimbed has quit [Remote host closed the connection]
eightlimbed has joined #ruby
blindmoe has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
jtdoncas has joined #ruby
cagomez has joined #ruby
blindmoe has joined #ruby
blindmoe has quit [Changing host]
blindmoe has joined #ruby
paddy_ has quit [Quit: paddy_]
<leitz> Radar, I found my command. It was just "gem build <gemspec file>"
c785127 has quit [Ping timeout: 268 seconds]
cremes has joined #ruby
cagomez has quit [Ping timeout: 252 seconds]
nwm has quit [Ping timeout: 250 seconds]
SeepingN has quit [Ping timeout: 264 seconds]
Azure has quit [Read error: Connection reset by peer]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #ruby
elphe has quit [Ping timeout: 256 seconds]
nwm has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has joined #ruby
c785127 has joined #ruby
alfiemax has quit [Ping timeout: 268 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
AgentVenom has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
c785127 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
cdg has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
troys_ is now known as troys
cdg has quit [Ping timeout: 265 seconds]
leitz has quit [Quit: Nappy time]
cdg has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
ledestin has joined #ruby
elphe has joined #ruby
kapil___ has joined #ruby
gizmore|2 has joined #ruby
c785127 has joined #ruby
bmurt has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
guardianx has joined #ruby
c785127 has quit [Ping timeout: 252 seconds]
eightlimbed has quit [Ping timeout: 260 seconds]
John__ has quit [Read error: Connection reset by peer]
AJA4350 has quit [Quit: AJA4350]
ResidentBiscuit has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocoelho has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocoelho has quit [Client Quit]
eightlimbed has joined #ruby
elphe has quit [Quit: leaving]
ctp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
halt has joined #ruby
halt is now known as Guest96386
nit3rid3_ has quit [Quit: Leaving]
theRealGent has joined #ruby
mostly-harmless has quit [Ping timeout: 265 seconds]
c785127 has joined #ruby
mostly-harmless has joined #ruby
c785127 has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
orbyt_ has joined #ruby
bronson has joined #ruby
lele has quit [Ping timeout: 272 seconds]
nertzy has quit [Quit: Leaving]
bronson has quit [Ping timeout: 260 seconds]
lele has joined #ruby
guardianx has quit []
pilne has quit [Quit: Quitting!]
eightlimbed has quit [Ping timeout: 260 seconds]
cdg has quit [Remote host closed the connection]
c785127 has joined #ruby
mjolnird has joined #ruby
mistergibson has quit [Quit: Leaving]
nertzy has joined #ruby
warreng_ has joined #ruby
<warreng_> 14880 == Zlib::GzipReader.new(StringIO.new(File.read("/private/tmp/127135\ 3/127135_2018-01-03_0\#18.json.gz"))).read.length
<warreng_> 159706438 == `cat /private/tmp/127135\\ 3/127135_2018-01-03_0\#18.json.gz | gzip -d`.length
<warreng_> can anybody shed some light on why Zlib::GzipReader is only returning the first 9 lines of a gzipped file?
c785127 has quit [Ping timeout: 252 seconds]
deafscribe has quit [Quit: Leaving]
<warreng_> 14880 == f=File.open("/private/tmp/127135\ 3/127135_2018-01-03_0\#18.json.gz", "rb"); Zlib::GzipReader.new(f).read.length
KeyJoo has quit [Ping timeout: 264 seconds]
<warreng_> (it's not StringIO)
troys is now known as troys_
mgtuiw1131 has joined #ruby
Rouge has joined #ruby
cdg has joined #ruby
rrutkowski has joined #ruby
alfiemax has joined #ruby
eightlimbed has joined #ruby
cdg_ has joined #ruby
darkhanb has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
rrutkowski has quit [Ping timeout: 248 seconds]
cdg_ has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 265 seconds]
rrutkowski has joined #ruby
warreng_ has quit [Ping timeout: 260 seconds]
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
mgtuiw1131 has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c785127 has joined #ruby
orbyt_ has joined #ruby
c785127 has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
uZiel has joined #ruby
despai has joined #ruby
neo95 has quit [Quit: Leaving]
beauby_ has joined #ruby
nofxx__ has joined #ruby
bocobit has joined #ruby
rrutkowski has joined #ruby
nofxx_ has quit [Ping timeout: 264 seconds]
rrutkowski has quit [Client Quit]
uZiel has quit [Remote host closed the connection]
rrutkowski has joined #ruby
ur5us has quit [Remote host closed the connection]
bronson has joined #ruby
rrutkowski has quit [Remote host closed the connection]
ur5us has joined #ruby
pastorinni has joined #ruby
cibs has quit [Remote host closed the connection]
vichib has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 240 seconds]
Rouge_ has joined #ruby
Yzguy has quit [Quit: Cya]
Rouge has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
eightlimbed has quit [Ping timeout: 240 seconds]
eightlimbed has joined #ruby
beauby_ has quit [Quit: leaving]
c785127 has joined #ruby
alfiemax has joined #ruby
rrutkowski has joined #ruby
c785127 has quit [Ping timeout: 268 seconds]
despai has quit [Quit: ...]
alfiemax has quit [Ping timeout: 240 seconds]
juggler has joined #ruby
Rouge_ has quit [Ping timeout: 248 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
kapil___ has quit [Quit: Connection closed for inactivity]
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has joined #ruby
rrutkowski has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
tdy has joined #ruby
tdy has quit [Client Quit]
rrutkowski has joined #ruby
theRealGent has quit [Ping timeout: 265 seconds]
c785127 has joined #ruby
tdy has joined #ruby
c785127 has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
bholzer has joined #ruby
bronson has joined #ruby
bayed has quit [Quit: WeeChat 1.7]
<bholzer> I am using a method to build a message to send to the client. What I have is a bit verbose and I'm wondering if someone has any ideas for how to slim it down. https://gist.github.com/bholzer/a2100639c7fc5de70a318e4de4e8761b
guardianx has quit []
bronson has quit [Ping timeout: 248 seconds]
alfiemax_ has joined #ruby
zacts has quit [Quit: WeeChat 1.9.1]
webguynow has quit [Ping timeout: 256 seconds]
webguynow has joined #ruby
c785127 has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
zacts has joined #ruby
bholzer has quit [Remote host closed the connection]
mr_rich101 has quit [Quit: ZNC - http://znc.in]
c785127 has quit [Ping timeout: 260 seconds]
alfiemax_ has quit [Ping timeout: 248 seconds]
mr_rich101 has joined #ruby
alfiemax has joined #ruby
cdg has quit [Remote host closed the connection]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
justicefries has joined #ruby
justicefries has quit [Client Quit]
rrutkowski has quit [Ping timeout: 260 seconds]
bocobit has quit [Remote host closed the connection]
bholzer has joined #ruby
zwliew has joined #ruby
uZiel has quit [Ping timeout: 272 seconds]
guardianx has joined #ruby
hyperreal has quit [Quit: ZNC - http://znc.in]
guardianx has quit []
uZiel has joined #ruby
cdg has joined #ruby
cdg_ has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
anisha has joined #ruby
cdg_ has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
ur5us has joined #ruby
bronson has joined #ruby
pastorinni has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 250 seconds]
alfiemax_ has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
alfiemax has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
za1b1tsu has joined #ruby
<za1b1tsu> Hello
aupadhye has joined #ruby
<za1b1tsu> How do I use #<BigDecimal:567dcc8,'0.0',9(18)> ? I can't even manipulate in the consoles it expects some more lines?
<za1b1tsu> Basically I pulling it from a db, do some calculations and then updated the db, but it doesn't like the #<BigDecimal:567dcc8,'0.0',9(18)> format
<elomatreb> It won't, that's the format used by ruby's #inspect method.
<za1b1tsu> oh
<elomatreb> How you get an arbitrary precision number into your database depends on the adapter, the easy if hacky fix is to convert it to a float with #to_f, but that will lose accuracy
<za1b1tsu> I have a [x:=>bigdecimal, y:=>bigdecimal, ....] and I used inspect to get it to (value, value, value)
<za1b1tsu> that's why has that fromat
cdg has joined #ruby
<za1b1tsu> but now I have to it without inspec
hyperreal has joined #ruby
<za1b1tsu> So puts uses inspect on big decimals?
KeyJoo has joined #ruby
<za1b1tsu> Anyway I can print it without inspect?
cdg has quit [Ping timeout: 265 seconds]
troys_ is now known as troys
<za1b1tsu> How can I do {[x:=>bigdecimal, y:=>bigdecimal, ....], [..], [...]} to (bigdecimal, bigdecimal ..),(....) without inspect
hyperreal has left #ruby ["Leaving"]
sundhell_away is now known as sundhell
c785127 has joined #ruby
<za1b1tsu> data.map do |k, v|
<za1b1tsu> v.merge(:id => k)
<za1b1tsu> "(" + v.values.to_a.join(",") + ")"
<za1b1tsu> end.join(",") Is this nice I have the merge because I also have a key that I need as value
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c785127 has quit [Ping timeout: 256 seconds]
darkhanb has joined #ruby
darkhanb has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has quit [Quit: Bye]
mtkd has quit [Ping timeout: 252 seconds]
mtkd has joined #ruby
cibs has joined #ruby
c785127 has joined #ruby
eightlimbed has quit [Ping timeout: 268 seconds]
jina has joined #ruby
zautomata has joined #ruby
<jina> reddit
mikhael_k33hl has joined #ruby
<mikhael_k33hl> Anyone using concurrent-ruby? I have this script: https://gist.github.com/marzdgzmn/d767d844b00f51210aec75e135f98c41 and I seem to be stuck at the line where it outputs 'entering process_job'
darkhanb has joined #ruby
c785127 has quit [Ping timeout: 240 seconds]
LocaMocha has joined #ruby
darkhanb has quit [Client Quit]
zautomata has quit [Quit: WeeChat 1.7]
despai has joined #ruby
DmitryBochkarev has joined #ruby
bronson has joined #ruby
c785127 has joined #ruby
<mikhael_k33hl> If I create another thread where will the output of that thread be displayed?
bholzer has quit [Remote host closed the connection]
c785127 has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 265 seconds]
despai has quit [Quit: ...]
darkhanb has joined #ruby
pelegreno has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
pelegreno has joined #ruby
kriskropd has quit [Ping timeout: 240 seconds]
jtdoncas_ has joined #ruby
bkxd has joined #ruby
jtdoncas has quit [Ping timeout: 252 seconds]
jtdoncas has joined #ruby
c785127 has joined #ruby
jtdoncas_ has quit [Ping timeout: 268 seconds]
kculpis has quit [Ping timeout: 246 seconds]
c785127 has quit [Ping timeout: 248 seconds]
rabajaj has joined #ruby
guardianx has joined #ruby
bkxd_ has joined #ruby
pelegreno has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 268 seconds]
guardianx has quit []
conta has joined #ruby
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
kriskropd has joined #ruby
ctp_ has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
pelegreno has joined #ruby
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
nwm has quit [Ping timeout: 265 seconds]
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
nwm has joined #ruby
c785127 has joined #ruby
ur5us has joined #ruby
rippa has joined #ruby
bronson has joined #ruby
bkxd_ has quit [Ping timeout: 248 seconds]
c785127 has quit [Ping timeout: 252 seconds]
tfitts has joined #ruby
ta_ has joined #ruby
InfinityFye has joined #ruby
oetjenj has joined #ruby
milardovich has joined #ruby
InfinityFye has left #ruby [#ruby]
bronson has quit [Ping timeout: 264 seconds]
aufi has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
InfinityFye has joined #ruby
bkxd has quit [Max SendQ exceeded]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
c785127 has joined #ruby
reaVer_ has quit [Remote host closed the connection]
reaVer has joined #ruby
despai has joined #ruby
c785127 has quit [Ping timeout: 252 seconds]
kriskropd has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
despai has quit [Quit: ...]
dionysus69 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
qba73 has joined #ruby
<dminuoso> >> class Foo < (Class.new); end
<ruby[bot]> dminuoso: # => nil (https://eval.in/930284)
SqREL has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
avelldiroll has quit [Quit: WeeChat 1.6]
alfiemax_ has quit [Ping timeout: 256 seconds]
mark_66 has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
avelldiroll has joined #ruby
kriskropd has joined #ruby
ahrs has quit [Remote host closed the connection]
alfiemax_ has joined #ruby
ahrs has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
c785127 has joined #ruby
oyj has joined #ruby
oyj has left #ruby [#ruby]
c785127 has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
bronson has joined #ruby
marr has joined #ruby
ur5us has joined #ruby
<mikhael_k33hl> anyone using concurrent ruby? my script seems to be stuck on creating Futures, e.g.: future = Concurrent::Future.new(executor: pool) { puts 'bright future' }
bronson has quit [Ping timeout: 252 seconds]
jokke has quit [Quit: WeeChat 2.0.1]
jokke has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
bkxd_ has joined #ruby
alfiemax has joined #ruby
jenrzzz has joined #ruby
jtdoncas has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
alfiemax_ has quit [Ping timeout: 268 seconds]
Defenestrate has joined #ruby
Defenestrate has joined #ruby
sundhell is now known as sundhell_away
c785127 has joined #ruby
alfiemax_ has joined #ruby
guille-moe has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
biberu has joined #ruby
c785127 has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
mjuhl has quit [Ping timeout: 246 seconds]
Dimik has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 265 seconds]
jtdoncas has joined #ruby
alfiemax has joined #ruby
c785127 has joined #ruby
alfiemax_ has quit [Ping timeout: 248 seconds]
jtdoncas has quit [Ping timeout: 252 seconds]
c785127 has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
jtdoncas has joined #ruby
alfiemax has joined #ruby
Defenestrate has quit [Quit: Leaving]
nwm has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
jtdoncas has quit [Ping timeout: 252 seconds]
bkxd__ has joined #ruby
bronson has joined #ruby
bkxd_ has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
jaruga has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
amatas has joined #ruby
<mikhael_k33hl> I have this script using concurrent-ruby and it doesn't seem to work: https://gist.github.com/marzdgzmn/5f240b977021afee23082c31f8c23878
Beams has joined #ruby
herbmillerjr has quit [Excess Flood]
herbmillerjr has joined #ruby
InfinityFye has left #ruby ["Leaving"]
jenrzzz has joined #ruby
rrutkowski has joined #ruby
kies has quit [Ping timeout: 260 seconds]
amatas has quit [Quit: amatas]
c785127 has joined #ruby
rrutkowski_ has joined #ruby
rrutkowski_ has quit [Client Quit]
rrutkowski has quit [Ping timeout: 240 seconds]
rrutkowski_ has joined #ruby
jtdoncas has joined #ruby
bkxd__ has quit []
c785127 has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 248 seconds]
alfiemax_ has joined #ruby
S007 has joined #ruby
mikecmpbll has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
z4phod has joined #ruby
<z4phod> Hello !
<z4phod> I did something strange, i dont understand how/why that's works with rails 4.2
Cavallari has joined #ruby
c785127 has joined #ruby
<z4phod> Controller : def new/@object = Model.new/end ; def create/@object.save/end => works ?! (without @object = Model.create(params[:object]))
TheBrayn has quit [Quit: WeeChat 2.0]
rrutkowski_ has quit [Quit: rrutkowski_]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<z4phod> I don't understand how this code works, why @object exists in create action ? (i did this code by error, and i seen that work)
rrutkowski_ has joined #ruby
Ishido has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
<dminuoso> z4phod: Do you have any before_action/before_filter?
c785127 has quit [Ping timeout: 276 seconds]
qba73 has quit [Ping timeout: 248 seconds]
rrutkowski_ has quit [Client Quit]
TomyWork has joined #ruby
rrutkowski_ has joined #ruby
<z4phod> yes, but the function doesn't set @object
SqREL has quit [Ping timeout: 264 seconds]
<z4phod> (an another @sector)
SqREL has joined #ruby
brodul has quit [Quit: My hovercraft is full of eels!!]
brodul has joined #ruby
<z4phod> oh i seen somethings, maybe : load_and_authorize_resource param_method: :object_params
uZiel has quit [Ping timeout: 272 seconds]
<z4phod> (cancancan)
blackmesa1 has joined #ruby
ddffg has joined #ruby
qba73 has joined #ruby
kies has joined #ruby
zwliew has joined #ruby
alfiemax_ has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
miah has quit [Remote host closed the connection]
jtdoncas has joined #ruby
uZiel has joined #ruby
bronson has joined #ruby
jtdoncas has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
AJA4350 has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
ferr has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
ferr has left #ruby [#ruby]
milardovich has joined #ruby
rrutkowski_ has quit [Ping timeout: 248 seconds]
TheBrayn has joined #ruby
oleo has quit [Remote host closed the connection]
tomphp has joined #ruby
oleo has joined #ruby
tomphp has quit [Client Quit]
cdg_ has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
eightlimbed has joined #ruby
cdg_ has quit [Ping timeout: 250 seconds]
Cavallari1 has joined #ruby
Cavallari has quit [Ping timeout: 264 seconds]
Cavallari1 is now known as Cavallari
uZiel has quit [Ping timeout: 272 seconds]
TheBrayn has quit [Quit: WeeChat 2.0.1]
TheBrayn has joined #ruby
cdg_ has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
cdg_ has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
jtdoncas has joined #ruby
ddffg has quit [Quit: Leaving]
alfiemax has quit [Ping timeout: 268 seconds]
amatas has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
tfitts has quit [Quit: Connection closed for inactivity]
vichib has quit [Ping timeout: 264 seconds]
jina has quit [Quit: Connection closed for inactivity]
amatas has quit [Quit: amatas]
matthewd has quit [Ping timeout: 265 seconds]
amatas has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 265 seconds]
matthewd has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
jtdoncas has joined #ruby
bronson has joined #ruby
jtdoncas has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 256 seconds]
Azure has joined #ruby
postmodern has quit [Quit: Leaving]
deadnull has joined #ruby
plexigras has quit [Ping timeout: 265 seconds]
plexigras has joined #ruby
Psybur has joined #ruby
ur5us has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: Oops.]
ltd has joined #ruby
dinfuehr has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
blackmesa1 has quit [Quit: WeeChat 2.0.1]
jtdoncas has joined #ruby
aupadhye has quit [Ping timeout: 248 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marcux has joined #ruby
ltd has quit [Quit: leaving]
ltd has joined #ruby
jtdoncas has quit [Ping timeout: 256 seconds]
VladGh has quit [Quit: Lost terminal]
VladGh has joined #ruby
chocoelho has joined #ruby
chocoelho has quit [Client Quit]
[yas] has joined #ruby
milardovich has quit []
juggler has quit [Quit: Leaving]
bronson has joined #ruby
cdg_ has joined #ruby
qba73 has quit [Ping timeout: 264 seconds]
qba73 has joined #ruby
lxsameer has quit [Quit: WeeChat 1.9.1]
bronson has quit [Ping timeout: 265 seconds]
cdg_ has quit [Ping timeout: 265 seconds]
guardianx has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
jtdoncas has joined #ruby
beanish has joined #ruby
guardianx has quit [Client Quit]
cdg_ has joined #ruby
aceruser has joined #ruby
mark_66 has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 265 seconds]
mark_66 has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
beanish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
dviola has joined #ruby
sundhell_away is now known as sundhell
beanish has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
despai has joined #ruby
nchambers has quit [Ping timeout: 248 seconds]
<aceruser> hello
conta1 has joined #ruby
conta1 has quit [Client Quit]
nankyokusei has joined #ruby
eightlimbed has quit [Ping timeout: 248 seconds]
conta1 has joined #ruby
aceruser has quit [Quit: aceruser]
beanish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nchambers has joined #ruby
cdg_ has joined #ruby
rwb has quit [Ping timeout: 265 seconds]
amatas has quit [Ping timeout: 250 seconds]
cdg_ has quit [Ping timeout: 252 seconds]
mtkd has quit [Ping timeout: 240 seconds]
jtdoncas has joined #ruby
_aeris_ has quit [Write error: Connection reset by peer]
k0mpa has quit [Read error: Connection reset by peer]
jnollette has quit [Read error: Connection reset by peer]
prometheus_falli has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
jnollette has joined #ruby
prometheus_falli has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
jtdoncas has quit [Ping timeout: 248 seconds]
_aeris_ has joined #ruby
mniip has quit [Ping timeout: 240 seconds]
mniip has joined #ruby
marcux has quit [Ping timeout: 260 seconds]
cdg_ has joined #ruby
leitz has joined #ruby
dinfuehr has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
dinfuehr has joined #ruby
bmurt has joined #ruby
rahul_bajaj has joined #ruby
cdg__ has joined #ruby
cdg_ has quit [Ping timeout: 276 seconds]
ahrs has quit [Remote host closed the connection]
rabajaj has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
ahrs has joined #ruby
despai has quit [Quit: ...]
cdg_ has joined #ruby
aScottishBoat has joined #ruby
cdg__ has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
cdg_ has quit [Ping timeout: 250 seconds]
ecuanaso has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
qba73 has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
nankyokusei has quit []
Cavallari has quit [Quit: Cavallari]
John__ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
jtdoncas has joined #ruby
_aeris_ has quit [Remote host closed the connection]
cdg_ has joined #ruby
_aeris_ has joined #ruby
cdg__ has joined #ruby
shtirlic has quit [Ping timeout: 264 seconds]
k0mpa has joined #ruby
jtdoncas has quit [Ping timeout: 256 seconds]
cdg_ has quit [Ping timeout: 246 seconds]
cdg__ has quit [Ping timeout: 250 seconds]
cdg_ has joined #ruby
mikkelsen has joined #ruby
cdg__ has joined #ruby
aScottishBoat has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
cdg__ has quit [Ping timeout: 250 seconds]
cdg_ has joined #ruby
aScottishBoat has joined #ruby
mikkelsen has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 248 seconds]
conta1 is now known as conta
cdg_ has quit [Ping timeout: 250 seconds]
conta1 has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
cdg_ has joined #ruby
rwb has joined #ruby
cdg_ has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
aef has quit [Remote host closed the connection]
tvw has quit [Client Quit]
jobewan has joined #ruby
aScottishBoat has quit [Ping timeout: 268 seconds]
despai has joined #ruby
aef has joined #ruby
alfiemax has joined #ruby
jtdoncas has joined #ruby
za1b1tsu has joined #ruby
nwm has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
nwm_ has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
A124 has quit [Ping timeout: 248 seconds]
qba73 has quit [Ping timeout: 240 seconds]
jeffreylevesque has quit [Ping timeout: 248 seconds]
nwm has quit [Ping timeout: 265 seconds]
cdg_ has joined #ruby
cdg__ has joined #ruby
ta_ has quit [Remote host closed the connection]
jokke has quit [Ping timeout: 252 seconds]
rabajaj has joined #ruby
cdg_ has quit [Ping timeout: 265 seconds]
cdg_ has joined #ruby
r3kz has quit [Quit: Connection closed for inactivity]
rahul_bajaj has quit [Ping timeout: 248 seconds]
cdg__ has quit [Ping timeout: 265 seconds]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
bronson has joined #ruby
cdg_ has quit [Ping timeout: 265 seconds]
qba73 has joined #ruby
cdg_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
cdg_ has quit [Remote host closed the connection]
cdg_ has joined #ruby
minimalism has quit [Quit: minimalism]
jokke has joined #ruby
camilasan has quit [Ping timeout: 276 seconds]
beanish has joined #ruby
despai has quit [Quit: ...]
chocoelho has joined #ruby
Rapture has joined #ruby
camilasan has joined #ruby
chocoelho has quit [Quit: chocoelho]
rikai has quit [Quit: No Ping reply in 180 seconds.]
jtdoncas has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
nwm_ is now known as nwm
rikai has joined #ruby
Riddell has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 248 seconds]
jtdoncas has quit [Ping timeout: 260 seconds]
Riddell has joined #ruby
safetypin has joined #ruby
minimalism has joined #ruby
jeffreylevesque has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
Vashy has quit [Ping timeout: 246 seconds]
ctp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfoust has quit [Ping timeout: 265 seconds]
al2o3-cr has quit [Quit: 你变得越安静,你就越能听到]
Vashy has joined #ruby
minimalism has quit [Quit: minimalism]
ctp_ has joined #ruby
ctp_ has quit [Client Quit]
zwliew has quit [Quit: Connection closed for inactivity]
rwb has quit [Remote host closed the connection]
rwb1 has joined #ruby
rwb1 is now known as rwb
wolfshappen has quit [Ping timeout: 248 seconds]
lroca has joined #ruby
amatas has joined #ruby
zwliew has joined #ruby
minimalism has joined #ruby
DaniG2k has joined #ruby
milardovich has joined #ruby
[Butch] has joined #ruby
minimalism has quit [Client Quit]
amatas_ has joined #ruby
yrstrly has joined #ruby
<yrstrly> can someone help fix my while loop
A124 has joined #ruby
jtdoncas has joined #ruby
<havenwood> yrstrly: what's wrong with it?
<yrstrly> can I Just copy and paste it in here?
rabajaj has quit [Remote host closed the connection]
<yrstrly> while i < limit-1 n = n[i] + n[i+1..limit-1].reverse i =+ 1 end
<yrstrly> im trying to reverse this string then keep the position fixed and reverse the rest until it reaches the end of the string
DaniG2k has quit [Quit: leaving]
<yrstrly> so 012 would become 210 then 201
<yrstrly> limit is equal to the length of the original string
dionysus69 has quit [Ping timeout: 248 seconds]
jeffreylevesque has quit [Remote host closed the connection]
wolfshappen has joined #ruby
<havenwood> yrstrly: Just doing it for fun? Using the values?
jtdoncas has quit [Ping timeout: 260 seconds]
<havenwood> >> s = '012'; s.size.times.map { |n| s.chars.rotate(n).join }
<ruby[bot]> havenwood: # => ["012", "120", "201"] (https://eval.in/930589)
<yrstrly> good lord
<yrstrly> i have no idea how that even works
<yrstrly> thanks
[yas] has left #ruby ["Leaving"]
<yrstrly> what was wrong with my loop though?
bronson has joined #ruby
cschneid_ has joined #ruby
<havenwood> yrstrly: I'm not sure what you're expecting from the loop.
<yrstrly> to just go a long the string from the start, fixing each position and then reversing the rest and that becoming the new string
<havenwood> yrstrly: I'd suggest doing a gist with a working example so we can see what's going on. Let us know what was expected.
aScottishBoat has joined #ruby
<havenwood> >> 'yrstrly'.chars.rotate(-1).join
<ruby[bot]> havenwood: # => "yyrstrl" (https://eval.in/930590)
PsyCypher has joined #ruby
PsyCypher has quit [Read error: Connection reset by peer]
<yrstrly> so if the method was passed a string like Hello I reverse it first outside the loop to , then position 0 stays the same, rest reverses until you reach the end of the string
Ltem has joined #ruby
<yrstrly> that code you posted returns something different
bronson has quit [Ping timeout: 248 seconds]
<yrstrly> If i have 012345 it should return 504132, not 501234
<yrstrly> ["012345", "123450", "234501", "345012", "450123", "501234"]
al2o3-cr has joined #ruby
<havenwood> >> s = '012345'; s.size.times.map { |n| s.chars.rotate(n).join }
<ruby[bot]> havenwood: # => ["012345", "123450", "234501", "345012", "450123", "501234"] (https://eval.in/930591)
<havenwood> yrstrly: like that ^?
<havenwood> or you just want?: 504132
qba73 has quit [Ping timeout: 260 seconds]
<yrstrly> almost, if the passed string is 543210, id like it to return ["012345", "054321", "051234", "051432", "051423"]
mark_66 has quit [Quit: Leaving.]
<yrstrly> if I reverse the string outside of the loop
<yrstrly> and then use this i = 0 while i < limit-1 n = n[i] + n[i+1..limit-1].reverse i =+ 1 end
<yrstrly> i don't understand why doesn't that give me what I want, surely it should?
<havenwood> yrstrly: Gist your full code and someone can probably grok what you're wanting.
<havenwood> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<yrstrly> thanks
deadnull has quit [Quit: deadnull]
<yrstrly> is that right?
<yrstrly> thanks for your time btw
<havenwood> yrstrly: it looks like `limit` is undefined in that method
conta1 has quit [Quit: conta1]
<yrstrly> sorry
tomphp has joined #ruby
<yrstrly> if I defined it to be
<yrstrly> n.length.to_i outisde of the while loop
<yrstrly> would that fix it?
troys has joined #ruby
<yrstrly> i put it through and it took too long to compile
tomphp has quit [Client Quit]
conta has quit [Ping timeout: 256 seconds]
bweston92 has joined #ruby
ams__ has joined #ruby
ur5us has joined #ruby
r00twrh has joined #ruby
<r00twrh> Hi folks... When rendering json in Rails I can do something like... "render json: @items, :methods => :extra_method_on_item" .... That works. Question is: how do I call multiple methods when rendering?
GodFather has joined #ruby
roshanavand has joined #ruby
<gizmore|2> r00twrh: i am not sure, but you could try a hashmap/dict/array: :methods => [:method_name, :method2_name]
<gizmore|2> not sure if that would work... but "methodS" indicate you can supply multiple methods... never used that
aufi has quit [Quit: Leaving]
gizmore|2 is now known as gizmore
ur5us has quit [Ping timeout: 264 seconds]
<r00twrh> gizmore: That worked! Thank you!
<gizmore> :) welcome
minimalism has joined #ruby
Vapez has joined #ruby
despai has joined #ruby
jtdoncas has joined #ruby
despai has quit [Client Quit]
<havenwood> yrstrly: I replied to your gist. See if that example helps you narrow down to the part you're not expecting.
<havenwood> yrstrly: try running that ^ code
aScottishBoat has quit [Ping timeout: 260 seconds]
jtdoncas has quit [Ping timeout: 268 seconds]
uZiel has joined #ruby
gix- has quit [Quit: Client exiting]
elphe has joined #ruby
gix has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
mtkd has quit [Ping timeout: 268 seconds]
pastorinni has joined #ruby
mtkd has joined #ruby
SqREL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
orbyt_ has joined #ruby
cagomez has joined #ruby
chocoelho has joined #ruby
orbyt_ has quit [Client Quit]
sepp2k has joined #ruby
amatas_ has quit [Quit: amatas_]
bronson has joined #ruby
<havenwood> It's interesting that you can't deserialized a marshalled kwarg struct. I hope that gets fixed in 2.5.1, because I want to use them!
bronson has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
millerti has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yrstrly has quit [Ping timeout: 260 seconds]
jtdoncas has joined #ruby
nowhere_man has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
ctp_ has joined #ruby
uZiel has quit [Ping timeout: 272 seconds]
jtdoncas has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
ecuanaso has joined #ruby
despai has joined #ruby
despai has quit [Client Quit]
darkhanb has joined #ruby
jtdoncas has joined #ruby
k0mpa has quit [Remote host closed the connection]
za1b1tsu_ has joined #ruby
cschnei__ has joined #ruby
nadir has joined #ruby
mikecmpbll has quit [Ping timeout: 248 seconds]
za1b1tsu has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 240 seconds]
marxarelli|afk is now known as marxarelli
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has joined #ruby
jrafanie has joined #ruby
orbyt_ has joined #ruby
tcopeland has quit [Quit: tcopeland]
troys is now known as troys_
anisha has quit [Quit: This computer has gone to sleep]
sanscoeur has joined #ruby
c_nick has joined #ruby
za1b1tsu_ has quit [Read error: Connection reset by peer]
<c_nick> Hi .. I am trying to load a C++ DLL inside my Ruby application .. I have registered the Interface using regsrv32 and loading the Dll using Win32OLE .. but if i am running a 64 bit variant of Ruby i cannot register a 32 bit C++ dll can anyone help?
SeepingN has joined #ruby
roshanavand has quit [Ping timeout: 255 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
despai_ has joined #ruby
despai has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
zwliew has quit [Quit: Connection closed for inactivity]
chocoelho1 has joined #ruby
chocoelho has quit [Ping timeout: 250 seconds]
chocoelho1 is now known as chocoelho
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
chocoelho has quit [Client Quit]
alfiemax has quit [Remote host closed the connection]
sameerynho has joined #ruby
bronson has joined #ruby
Beams has quit [Quit: .]
pilne has joined #ruby
k1l0b1t has joined #ruby
DmitryBochkarev has quit [Ping timeout: 248 seconds]
k1l0b1t has quit [Quit: Ik ga weg]
troys_ is now known as troys
DmitryBochkarev has joined #ruby
alfiemax has joined #ruby
roshanavand has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
guille-moe has quit [Ping timeout: 268 seconds]
c_nick has quit [Ping timeout: 260 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
jeffreylevesque has joined #ruby
Ishido has quit [Remote host closed the connection]
tcopeland has joined #ruby
justicefries has joined #ruby
Ishido has joined #ruby
davic has quit [Quit: ZNC - http://znc.in]
John___ has joined #ruby
despai_ has quit [Quit: ...]
safetypin has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
John__ has quit [Ping timeout: 252 seconds]
eckhardt has joined #ruby
lroca has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
lagweezle has joined #ruby
lagweezle has left #ruby [#ruby]
alfiemax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zautomata has joined #ruby
orbyt_ has joined #ruby
justicefries has joined #ruby
nit3rid3 has joined #ruby
Papierkorb has joined #ruby
raynold has joined #ruby
cschneid_ has joined #ruby
safetypin has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
TomyLobo has joined #ruby
cschnei__ has quit [Ping timeout: 240 seconds]
Nowaker has left #ruby [#ruby]
lroca has joined #ruby
mtkd has quit [Ping timeout: 250 seconds]
alfiemax has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
k0mpa has joined #ruby
cibs has quit [Quit: Lost terminal]
jaruga has quit [Ping timeout: 268 seconds]
lroca has quit [Remote host closed the connection]
zautomata has quit [Ping timeout: 240 seconds]
safetypin has joined #ruby
lroca has joined #ruby
cdg_ has quit [Remote host closed the connection]
mtkd has joined #ruby
cdg has joined #ruby
zautomata has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davic has joined #ruby
orbyt_ has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
lroca has quit [Quit: lroca]
jottr has quit [Quit: WeeChat 2.0.1]
bweston92 has quit [Quit: Connection closed for inactivity]
lroca has joined #ruby
PaulCape_ has joined #ruby
kirun has joined #ruby
PaulCapestany has quit [Read error: Connection reset by peer]
r00twrh has quit [Quit: Leaving]
bronson has joined #ruby
lroca is now known as _roca
tcopeland has quit [Ping timeout: 268 seconds]
zautomata1 has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
despai has joined #ruby
safetypin has quit [Ping timeout: 246 seconds]
zautomata has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
mikecmpbll has joined #ruby
mjolnird has quit [Remote host closed the connection]
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
nit3rid3 has quit [Quit: Leaving]
pastorinni has quit [Remote host closed the connection]
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
Dimik has joined #ruby
LocaMocha has quit [Ping timeout: 240 seconds]
mr_foto has joined #ruby
cschneid_ has quit [Remote host closed the connection]
rwb has quit [Ping timeout: 260 seconds]
wald0 has joined #ruby
tdy has quit [Quit: WeeChat 1.9.1]
milardovich has quit []
troulouliou_div2 has joined #ruby
lunarkitty7 has quit [Quit: WeeChat 2.0]
despai has quit [Quit: ...]
dionysus69 has joined #ruby
mr_foto has quit []
zautomata2 has joined #ruby
zautomata1 has quit [Ping timeout: 250 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 252 seconds]
zautomata3 has joined #ruby
despai has joined #ruby
BTRE has joined #ruby
zautomata2 has quit [Ping timeout: 252 seconds]
zautomata4 has joined #ruby
bweston92 has joined #ruby
zautomata3 has quit [Ping timeout: 264 seconds]
troys is now known as troys_
troys_ is now known as troys
oetjenj has joined #ruby
romeoh has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
nowhereman has joined #ruby
workmad3 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 248 seconds]
despai has quit [Quit: ...]
ur5us has joined #ruby
zautomata has joined #ruby
lytol_ has joined #ruby
zautomata4 has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
zautomata1 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
r3kz has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guille-moe has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
cagomez has quit [Remote host closed the connection]
guille-moe has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
my123 has quit [Read error: Connection reset by peer]
my123 has joined #ruby
my123 has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
despai has joined #ruby
eightlimbed has joined #ruby
biberu has quit []
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
guille-moe has joined #ruby
oetjenj has quit [Client Quit]
chocoelho has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
chocoelho has quit [Client Quit]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
rwb has joined #ruby
chouhoulis has quit [Remote host closed the connection]
teej has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdoncas has quit [Ping timeout: 256 seconds]
mostlybadfly has joined #ruby
guille-moe has quit [Ping timeout: 268 seconds]
joes has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
cdg has joined #ruby
cagomez has joined #ruby
despai has quit [Quit: ...]
despai has joined #ruby
despai has quit [Client Quit]
tcopeland has joined #ruby
eckhardt has joined #ruby
orbyt_ has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
cagomez has quit [Ping timeout: 248 seconds]
pastorinni has joined #ruby
mtkd has joined #ruby
mikeiniowa has joined #ruby
marxarelli is now known as marxarelli|afk
jottr has quit [Quit: WeeChat 2.0.1]
KeyJoo has quit [Ping timeout: 264 seconds]
cagomez has joined #ruby
QualityAddict has quit [Remote host closed the connection]
cschneid_ has joined #ruby
QualityAddict has joined #ruby
bronson has joined #ruby
jtdoncas has joined #ruby
chouhoulis has joined #ruby
nopolitica has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
tdy has joined #ruby
beanish has quit [Ping timeout: 248 seconds]
Olipro has quit [Ping timeout: 272 seconds]
jeffreylevesque has quit [Ping timeout: 260 seconds]
jtdoncas has quit [Ping timeout: 264 seconds]
guille-moe has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
Olipro has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdoncas has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zautomata1 has quit [Quit: WeeChat 1.7]
romeoh has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
romeoh has joined #ruby
jtdoncas has quit [Ping timeout: 260 seconds]
romeoh has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
leitz has quit [Quit: Nappy time]
cdg has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli|afk is now known as marxarelli
ta_ has joined #ruby
elphe has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
sepp2k has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
eckhardt has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
cdg has joined #ruby
tomphp has joined #ruby
Riddell has quit [Ping timeout: 248 seconds]
Riddell has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ecuanaso has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 256 seconds]
jtdoncas has joined #ruby
aef has quit [Remote host closed the connection]
Ltem has quit [Quit: good night]
eightlimbed has quit [Ping timeout: 248 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
cdg_ has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
banisterfiend has joined #ruby
jtdoncas has quit [Ping timeout: 268 seconds]
cdg has quit [Ping timeout: 256 seconds]
aef has joined #ruby
guille-moe has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
bronson has joined #ruby
workmad3 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
nowhereman has quit [Ping timeout: 240 seconds]
nowhereman has joined #ruby
ctp_ has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
troys is now known as troys_
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
DTZUZU has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
my123 has quit [Read error: Connection reset by peer]
my123 has joined #ruby
my123 has joined #ruby
KeyJoo has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdoncas has joined #ruby
jnyw has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Psybur has joined #ruby
jtdoncas has quit [Ping timeout: 260 seconds]
elphe_ has joined #ruby
orbyt_ has joined #ruby
elphe_ has quit [Client Quit]
c_nick has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
pastorinni has quit [Remote host closed the connection]
lytol_ has quit [Remote host closed the connection]
mjolnird has joined #ruby
chouhoulis has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
spiette has joined #ruby
eightlimbed has joined #ruby
chouhoulis has quit [Ping timeout: 263 seconds]
elphe has quit [Ping timeout: 240 seconds]
bweston92 has quit [Quit: Connection closed for inactivity]
dviola has joined #ruby
ta_ has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
ta_ has joined #ruby
mtkd has quit [Ping timeout: 265 seconds]
marxarelli|afk is now known as marxarelli
mtkd has joined #ruby
sorah___ has quit [Ping timeout: 276 seconds]
nso95 has joined #ruby
<c_nick> hi
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
jtdoncas has joined #ruby
alfiemax has quit [Remote host closed the connection]
bronson has joined #ruby
pastorinni has joined #ruby
alfiemax has joined #ruby
jtdoncas has quit [Ping timeout: 268 seconds]
jamesaxl has quit [Quit: WeeChat 1.9.1]
bronson has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
raz has joined #ruby
eightlimbed has quit [Ping timeout: 252 seconds]
<raz> when i have a method `def foo(a:, b:, c:)` - is there a away to access the parameters as a hash?
<chaos95> c_nick: you will have to run a 32-bit variant of ruby, I suspect
eightlimbed has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has joined #ruby
<c_nick> chaos95, is there another way as opposed to win32Ole to actually access bitness independent bin object?
despai has joined #ruby
<chaos95> c_nick: if you're feeling adventurous you can use ATL to create a COM wrapper exe for your 32-bit dll
<chaos95> c_nick: please note that my windows dev knowledge is ~6 years out of date so I don't know if this is still the way it's done
nso95 has quit [Quit: nso95]
despai has quit [Client Quit]
<c_nick> hmm then i guess i am left to forking out processes
<c_nick> thanks, chaos95!
c_nick has quit [Quit: ciaos]
c_nick has joined #ruby
lucz has joined #ruby
jeffreylevesque has joined #ruby
elphe has joined #ruby
k0mpa has quit [Remote host closed the connection]
<al2o3-cr> raz: how so?
<raz> al2o3-cr: when called as `foo(a: 1, b: 2, b:3)` i would like to get all arguments as a hash { a:1, b:2, b:2 }
<al2o3-cr> ah.
<al2o3-cr> i see.
<raz> that way one could define a "schema" in the method signature and directly use the provided arguments e.g. in a database call
<raz> like... create_user(email:, password:) { User.create **kwargs }
<raz> (missing a 'def' in front of create_user ;) )
<al2o3-cr> send def foo(a:, b:, c:) method(__method__).parameters.map { |_, p| [p,binding.local_variable_get(p)] }.to_h end, {a: 1, b: 2, c: 3}
<raz> ok, that looks very hacky and probably slow, but i'm glad there is a way at all ;)
<raz> was hoping there might be an idiomatic shortcut that i had been missing
<al2o3-cr> not that i can recall.
blindmoe has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<raz> if my japanese wasn't so rusty i'd be inclined to propose it
<raz> having to repeat the args in the method body often feels very unruby'ish
<al2o3-cr> raz: what do you want foo to return?
k0mpa has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdoncas has joined #ruby
<raz> al2o3-cr: nothing special. my example above is the pattern i most often run into. convenience wrappers such as `def create_user(email:, password:) { User.create **kwargs }`
<raz> without the imaginary '**kwargs' (or your crazy reflection stunt) you have to repeat all the kwargs inside the method body
<raz> often more than once, and often there are quite a few more than two...
<al2o3-cr> gotcha ;) yeah i can't see anything simple.
<al2o3-cr> with regard to this.
eckhardt has joined #ruby
<raz> yup, i should just learn me some japanese and hit up matz on tinder
<al2o3-cr> does it have to be require args?
<al2o3-cr> *required
<raz> well yes, that's the whole point, to have that minimum of validation
<raz> validation/visibility
<raz> it's much better than anonymous opts-hashes, esp. with multiple people working on the code
<raz> i mean, that's what i do in practice... i downgrade the method to an anonymous opts-hash, and validate that manually
jtdoncas has quit [Ping timeout: 248 seconds]
<raz> ending up with effectively the same that your reflection code would do - but in a way that doesn't force me to explain it to a different co-worker every day ;)
<al2o3-cr> raz: ok, then i think you're stuck, unless someone knows.
_roca has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
eightlimbed has quit [Ping timeout: 248 seconds]
a549 has joined #ruby
a549 has left #ruby [#ruby]
mlehrer has quit [Ping timeout: 250 seconds]
icarus has quit [Ping timeout: 264 seconds]
troys_ is now known as troys
oetjenj has joined #ruby
jtdoncas has joined #ruby
alfiemax has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
Psybur has quit [Ping timeout: 264 seconds]
despai has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
amatas has quit [Quit: amatas]
c_nick has quit [Quit: ciaos]
pastorinni has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
alfiemax has joined #ruby
lucz has quit [Quit: Leaving...]