torarne

Activity Graph

Page 1 of 1

2018-06-06

[10:53:15] torarne: has left #ruby: ("Kicked by @appservice-irc:matrix.org : issued !quit command")

2018-05-30

[00:38:15] torarne: Ping timeout: 277 seconds
[01:39:40] torarne: has joined #ruby

2018-05-29

[02:41:46] torarne: Ping timeout: 260 seconds
[03:58:33] torarne: has joined #ruby

2018-05-12

[13:25:51] torarne: Ping timeout: 255 seconds
[14:17:07] torarne: has joined #ruby

2018-05-10

[08:36:20] torarne: Ping timeout: 260 seconds
[10:05:30] torarne: has joined #ruby

2018-04-26

[02:16:50] torarne: Ping timeout: 246 seconds
[09:23:29] torarne: has joined #ruby
[09:38:57] torarne: Ping timeout: 245 seconds
[10:54:52] torarne: has joined #ruby

2018-04-25

[12:25:39] torarne: *.net *.split
[12:27:12] torarne: has joined #ruby
[15:01:09] torarne: *.net *.split
[15:03:23] torarne: has joined #ruby
[15:05:20] torarne: Ping timeout: 256 seconds
[16:50:14] torarne: has joined #ruby

2018-04-22

[16:29:07] torarne: Ping timeout: 246 seconds
[20:07:34] torarne: has joined #ruby

2018-04-17

[00:21:06] torarne: Ping timeout: 256 seconds
[05:45:43] torarne: has joined #ruby

2018-04-05

[08:27:32] torarne: Ping timeout: 260 seconds
[08:36:26] torarne: has joined #ruby

2018-02-23

[08:00:51] torarne: Ping timeout: 276 seconds
[09:32:54] torarne: has joined #ruby

2018-02-07

[00:13:39] torarne: Ping timeout: 255 seconds
[01:12:41] torarne: has joined #ruby
[02:54:35] torarne: Ping timeout: 255 seconds
[06:03:26] torarne: has joined #ruby

2018-01-08

[00:05:57] torarne: Read error: Connection reset by peer
[00:38:04] torarne: has joined #ruby

2017-12-09

[05:08:47] torarne: Ping timeout: 252 seconds
[09:48:40] torarne: has joined #ruby

2017-12-08

[01:16:32] torarne: has joined #ruby
[07:15:23] torarne: Ping timeout: 255 seconds
[09:46:59] torarne: has joined #ruby

2017-12-07

[00:31:42] torarne: has joined #ruby
[14:51:59] torarne: Ping timeout: 252 seconds
[16:12:34] torarne: has joined #ruby
[16:39:35] torarne: Ping timeout: 246 seconds
[19:08:27] torarne: has joined #ruby
[19:33:33] torarne: Ping timeout: 240 seconds

2017-12-06

[20:35:17] torarne: Ping timeout: 252 seconds

2017-12-01

[02:28:36] torarne: has joined #ruby

2017-11-30

[11:14:04] torarne: Ping timeout: 246 seconds
[12:54:14] torarne: has joined #ruby

2017-11-13

[21:51:52] torarne: Ping timeout: 255 seconds
[22:32:47] torarne: has joined #ruby

2017-11-09

[03:15:48] torarne: Ping timeout: 240 seconds
[06:06:50] torarne: has joined #ruby
[06:22:52] torarne: *.net *.split
[06:32:15] torarne: has joined #ruby

2017-11-08

[09:47:46] torarne: Ping timeout: 264 seconds
[10:23:29] torarne: has joined #ruby

2017-11-07

[00:18:28] torarne: has joined #ruby

2017-11-06

[07:22:35] torarne: Ping timeout: 264 seconds
[10:07:40] torarne: has joined #ruby
[20:15:16] torarne: Ping timeout: 248 seconds

2017-11-05

[21:54:09] torarne: Ping timeout: 255 seconds
[22:52:34] torarne: has joined #ruby

2017-10-22

[18:47:21] torarne: Ping timeout: 246 seconds
[20:02:39] torarne: has joined #ruby

2017-09-19

[06:05:25] torarne: *.net *.split
[07:37:55] torarne: has joined #ruby

2017-09-13

[13:25:34] torarne: Ping timeout: 264 seconds
[14:08:09] torarne: has joined #ruby

2017-08-15

[00:27:37] torarne: has joined #ruby

2017-08-14

[21:07:40] torarne: Ping timeout: 258 seconds
[21:56:57] torarne: has joined #ruby
[23:55:34] torarne: Ping timeout: 264 seconds

2017-08-13

[00:05:49] torarne: has joined #ruby
[00:23:53] torarne: Ping timeout: 246 seconds
[01:49:07] torarne: has joined #ruby

2017-08-12

[16:37:34] torarne: Ping timeout: 276 seconds
[18:08:05] torarne: has joined #ruby
[22:38:32] torarne: Ping timeout: 246 seconds

2017-08-11

[12:19:08] torarne: *.net *.split
[12:21:12] torarne: has joined #ruby
[18:23:44] torarne: Read error: Connection reset by peer
[18:46:58] torarne: has joined #ruby
[20:01:51] torarne: Read error: Connection reset by peer
[20:22:23] torarne: has joined #ruby

2017-08-06

[19:17:05] torarne: Ping timeout: 255 seconds
[21:21:15] torarne: has joined #ruby

2017-08-03

[00:56:02] torarne: Ping timeout: 276 seconds
[01:08:20] torarne: has joined #ruby

2017-08-01

[13:02:42] torarne: Ping timeout: 255 seconds
[14:00:25] torarne: has joined #ruby

2017-07-31

[12:00:27] torarne: Ping timeout: 246 seconds
[14:56:55] torarne: has joined #ruby

2017-07-30

[23:10:27] torarne: Ping timeout: 246 seconds
[23:58:58] torarne: has joined #ruby

2017-07-17

[17:11:08] torarne: Ping timeout: 240 seconds
[17:42:45] torarne: has joined #ruby

2017-07-04

[13:21:35] torarne: Ping timeout: 255 seconds
[14:23:03] torarne: has joined #ruby

2017-07-03

[16:20:02] torarne: Read error: Connection reset by peer
[16:44:30] torarne: has joined #ruby

2017-06-20

[00:17:16] torarne: *.net *.split
[00:22:52] torarne: has joined #ruby

2017-06-19

[21:21:41] torarne: *.net *.split
[21:28:17] torarne: has joined #ruby

2017-06-16

[18:59:52] torarne: Ping timeout: 276 seconds
[21:46:11] torarne: has joined #ruby

2017-06-05

[06:50:08] torarne: *.net *.split
[06:56:17] torarne: has joined #ruby

2017-06-04

[20:50:41] torarne: Ping timeout: 258 seconds
[21:22:04] torarne: has joined #ruby

2017-06-01

[09:13:12] torarne: has joined #ruby
[09:14:51] torarne: Q: I have a class in a random module/namespace that I can get hold of an instance off, and call .class on. Is there any way to extend that class in a separate/module namespace, as if the original class was evaled in the other module? Just doing class Foo < bar.class doesn't work for some reason
[09:17:22] torarne: ljarvis: that would have the same effect as Foo < bar.class? What I'm seeing there is that attributes of the base Bar class, eg url "http:/..." do not seem to have any effect on the subclass, as if they were not set
[09:20:31] torarne: ljarvis: https://gist.github.com/torarnv/36dc9b7324e3cfeb8fbb9d89513024fa
[09:20:54] torarne: ljarvis: i'm trying to extend an existing homebrew formula. but brew complains that "Error: formulae require at least a URL"
[09:21:49] torarne: dminuoso: the two small files are mine, formula.rb is from homebrew
[09:24:19] torarne: Ah, i see. Is there any way to change that? Proxy all attrribute accesses to the base ?
[09:25:32] torarne: So I can extend a formula's install() step, without having to make a copy of the whole formula i'm extended, meaning i'd have to rebase it every time the formula version is updated
[09:26:16] torarne: unfortunately it's not really supported by homebrew out of the box
[09:28:45] torarne: ljarvis: i assume most maintainers are maintaining the canoical brew formula for a software packge, so there they don't have that issue. brew supports pinning other taps, so i can provide an alternate formula for an existing packge, but i'd have to provide the full package, making mine stale quite fast, which is why i'd rather inherit the existing formula and just add my tweak, so i can pick up any changes to the software
[09:28:46] torarne: version in the default formula
[09:32:33] torarne: dminuoso: hmm, interesting, would that allow me to call super though?
[09:33:50] torarne: to put it another way, i want to extend install() and caveats(), but still call the base implementation, either though super or some other magic trick that achieves the same :)
[09:37:35] torarne: matthewd:hmm, both extend and include assumes the module has naked functions as far as i understood it? so if I have module X; class Foo; end; end, can i then include/prepend the methods and attributes etc of Foo into a new class Bar?
[09:38:57] torarne: matthewd: i don't control the code of moduleX; class Foo;
[09:40:15] torarne: aaah, the other way around, got it
[09:43:11] torarne: matthewd: private method `prepend' called for #<Class:0x007fcce4a562a8>, use send()?
[09:44:55] torarne: matthewd: i have 2.0.0, but i guess homebrew could run on prior versions
[09:46:16] torarne: matthewd: that's a good idea!'
[09:50:17] torarne: matthewd: ljarvis: fwd, the Module.prepend trick worked, but you're right about the version being an issue, so i'll try the dup road
[09:56:23] torarne: actually, seems bw has been vendoring ruby 2.0 for a while
[09:56:24] torarne: https://github.com/Homebrew/brew/pull/404/commits/534bf08ec33c89115d8061a9d1845e67f9a6cbb6
[09:56:30] torarne: so the prpend approach is fine
[10:23:46] torarne: matthewd: ljarvis: thanks a bunch: https://github.com/torarnv/homebrew-xcode-toolchains/blob/master/Formula/ccache.rb

2016-03-16

[12:15:00] torarne: Quit: Leaving.

2016-03-14

[07:15:30] torarne: *.net *.split
[07:16:11] torarne: has joined #ruby

2016-03-09

[14:52:34] torarne: has joined #ruby
[14:54:54] torarne: Q: I'm using method(__method__).parameters.each do |type, k| to instance_variable_set() named initialize() parameters, and it works fine in a regular class. But when I move the initialize code to a module, and call super from the class, the parameters are passed, but instance_variable_set doesn't seem to have any effect. Is there any way for the module's initialize() to affect instance variables of the class it's been included in? Thanks!
[14:55:41] torarne: I'm seeing the same thing with send
[14:57:42] torarne: apeiros: darix: https://gist.github.com/torarnv/2a3ab96a49d3e388b863
[14:59:52] torarne: right, it's called, and the params seem to be from the Foo's initialize
[15:00:01] torarne: but the setting the instance variable seems to not affect Foo
[15:01:10] torarne: wait, no, the eval(k.to_s) fails
[15:02:49] torarne: thanks! :D
[15:04:04] torarne: million thanks guys!
[15:04:48] torarne: what's that?
[15:09:09] torarne: apeiros: ah, i think i undeerstand. so next unless type == :key or type == :keyreq should be enough i presume?
[15:11:08] torarne: in the module?
[15:12:52] torarne: the super call gives initialize': wrong number of arguments (2 for 0) (ArgumentError)
[15:13:26] torarne: i guess i cant know how many arguments and which ones super would require
[15:13:31] torarne: from the module