sudiptamondal has quit [Ping timeout: 264 seconds]
Aminda has joined #ruby
A_Dragon has joined #ruby
sudiptamondal has joined #ruby
cl33d has joined #ruby
sudiptamondal has quit [Ping timeout: 264 seconds]
cl33d has quit [Remote host closed the connection]
Ziyan has joined #ruby
aeris has joined #ruby
Rounin has joined #ruby
jpn has joined #ruby
mahlon has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 248 seconds]
scottgy has quit [Ping timeout: 260 seconds]
cxl has joined #ruby
<cxl>
Hi, if I yank a particular version of a gem, is this version number burned for ever or can I re-use it to publish the gem again (with the changes I had forgotten to do the first time around)?
<cxl>
on rubygems that is.
onyx_ has joined #ruby
_onyx_ has joined #ruby
seabre has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
onyx_ has quit [Quit: Leaving]
reset has quit [Quit: reset]
ur5us has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
dionysus69 has joined #ruby
dynab has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Ziyan has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 248 seconds]
<hnj>
I’m trying to find more info on how to use "ruby -i". can anyone point me to docs or examples? what I’m trying to achieve is to add "---" as the first line of all given files if it’s not already there. ATM I have this oneliner: »ruby -e 'foo_lines = File.readlines(ARGV[0]); if (foo_lines[0] != "---\n") then foo_lines.unshift("---\n") end; foo = File.open(ARGV[0], "w"); foo.write foo_lines.join'
<hnj>
file.yaml« which works fine for one file and I think with -i could be a lot better.
<hnj>
but I don’t understand yet how to work with the file when giving -i
<hnj>
»ruby -e 'ARGV.each do |foo| p foo; foo_lines = File.readlines(foo); if (foo_lines[0] != "---\n") then foo_lines.unshift("---\n") end; foo_file = File.open(foo, "w"); foo_file.write foo_lines.join; foo_file.close end' **/*.yaml« seems to work fine but I guess can still be improved. any advice?
typeof[panda] has joined #ruby
markong has joined #ruby
seabre has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
Guest75 has joined #ruby
Guest75 has quit [Quit: Client closed]
Guest75 has joined #ruby
Guest756 has joined #ruby
Guest756 has quit [Client Quit]
Guest75 has quit [Client Quit]
seabre has quit [Ping timeout: 240 seconds]
<ox1eef_>
cxl: afaik it still exists for gems which depend on it. you can't truly delete a gem from rubygems once you push it, and that itself is probably going against the grain when it comes to recent law like the GDPR for example.
<ox1eef_>
given that, probably easiest to bump the version.
<Guest26nakilon>
I took the gem https://github.com/MishaConway/geo3d to rotate vectors; I create a (1,0,0) vector like this: v = Geo3d::Matrix.new ; v[0,0] = 1; then I do v * Geo3d::Matrix.rotation_y(0.1), but it returns @_11=0.9950041652780257, @_12=0, @_13=-0.09983341664682815
<Guest26nakilon>
i.e. the Z become negative, but why so? if Z axis is looking down and the rotation is supposed to be clock-wise
jpn has joined #ruby
Guest26nakilon has quit [Quit: Client closed]
Guest26nakilon has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
ruby-eval has quit [Ping timeout: 244 seconds]
Guest26nakilon has quit [Quit: Client closed]
jpn has joined #ruby
RickHull has joined #ruby
Guest26nakilon has joined #ruby
<Guest26nakilon>
web chat disconnects too much
shiru has quit [Ping timeout: 248 seconds]
<Guest26nakilon>
oh wait I'm dumb, that's correct that z is negative
Guest26nakilon has quit [Client Quit]
shiru has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
John_Ivan has joined #ruby
shiru has quit [Quit: Lost terminal]
jpn has joined #ruby
Ziyan_ has quit [Ping timeout: 248 seconds]
Ziyan has joined #ruby
protektwar has joined #ruby
protektwar has joined #ruby
s-liao-2000 has joined #ruby
davidw has joined #ruby
RickHull has quit [Ping timeout: 264 seconds]
teclator has joined #ruby
seabre has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
seabre has quit [Ping timeout: 246 seconds]
s-liao-2000 has quit [Quit: Client closed]
seabre has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Aminda has quit [Ping timeout: 268 seconds]
dynab has quit [Remote host closed the connection]
Aminda has joined #ruby
RickHull has joined #ruby
gproto23 has joined #ruby
mahlon has joined #ruby
dionysus69 has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
seabre has quit [Ping timeout: 268 seconds]
moldorcoder7 has quit [Ping timeout: 240 seconds]
moldorcoder7 has joined #ruby
gproto23 has quit [Read error: Connection reset by peer]
sympt0 has joined #ruby
sympt has quit [Ping timeout: 240 seconds]
sympt0 is now known as sympt
jpn has joined #ruby
protektwar has quit [Ping timeout: 268 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
_ht has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
TomyWork has quit [Quit: Leaving]
jpn has joined #ruby
reset has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
markong has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
jpn has joined #ruby
<RickHull>
so, uh, no ** operator in mruby
seabre has joined #ruby
<RickHull>
oh, hm. maybe not for Rational
jpn has quit [Ping timeout: 268 seconds]
protektwar has quit [Ping timeout: 268 seconds]
seabre has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
duds- has joined #ruby
jpn has joined #ruby
Guest4321 has joined #ruby
sympt9 has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
sympt has quit [Ping timeout: 240 seconds]
_ht has quit [Ping timeout: 240 seconds]
sympt9 is now known as sympt
davidw_ has joined #ruby
duds- has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 264 seconds]
RickHull has quit [Ping timeout: 268 seconds]
davidw has quit [Ping timeout: 268 seconds]
_ht has joined #ruby
onyx_ has joined #ruby
duds- has joined #ruby
duds- has quit [Remote host closed the connection]