« Back to channel list

#ruby - 07 February 2019

« Back 1 day Forward 1 day »
[00:01:19] Swyper: has joined #ruby
[00:04:18] Fridtjof: has joined #ruby
[00:12:10] _whitelogger: has joined #ruby
[00:32:49] ansraliant: has joined #ruby
[00:48:38] bruul: has joined #ruby
[00:51:33] johnny56: has joined #ruby
[00:55:21] rkazak: has joined #ruby
[01:01:47] al2o3-cr: has joined #ruby
[01:06:12] akemot: has joined #ruby
[01:07:43] marmotini: has joined #ruby
[01:10:11] code_zombie: has joined #ruby
[01:12:48] Swyper: has joined #ruby
[01:24:10] _whitelogger: has joined #ruby
[01:27:02] orbyt_: has joined #ruby
[01:32:31] darix: has joined #ruby
[01:32:41] Renich: has joined #ruby
[01:58:19] akosednar: has joined #ruby
[02:02:12] r29v: has joined #ruby
[02:09:05] tpanarch1st: has joined #ruby
[02:12:16] johnny56: has joined #ruby
[02:15:20] Renich: has joined #ruby
[02:20:03] esrse: has joined #ruby
[02:48:58] meinside: has joined #ruby
[02:57:10] _whitelogger: has joined #ruby
[03:16:22] jobewan: has joined #ruby
[03:16:23] DTZUZO: has joined #ruby
[03:27:23] skyikot: has joined #ruby
[03:51:39] NotSatoshi: has joined #ruby
[03:52:28] polishdub: has joined #ruby
[03:55:25] Autolycus: has joined #ruby
[03:58:42] NotSatoshi: Can I overwrite the gem location in the paramaters? Like 'gem uninstall pry --location /usr/share/gems'
[04:09:43] braincrash: has joined #ruby
[04:11:13] akemot: has joined #ruby
[04:11:17] marmotini: has joined #ruby
[04:30:49] marmotini_: has joined #ruby
[04:44:46] volkov: has joined #ruby
[04:52:13] marmotini_: has joined #ruby
[04:59:33] apparition: has joined #ruby
[05:04:17] dellavg__: has joined #ruby
[05:13:55] dionysus69: has joined #ruby
[05:36:31] ItsAVortex: has joined #ruby
[05:40:24] v01d4lph4: has joined #ruby
[05:47:35] Milos: has joined #ruby
[06:11:14] irdr: has joined #ruby
[06:15:28] mkroman: jeez, applying a consistent style in Ruby is actually quite difficult
[06:17:04] mkroman: I mean because different parts have different syles
[06:17:55] mkroman: like, `puts` I wouldn't use parentheses with, because it's in Kernel, so it's almost like a keyword
[06:18:22] mkroman: but what if it's an instance method? like Logger#puts?
[06:18:37] mkroman: I guess I'd use parantheses then
[06:19:06] havenwood: mkroman: rubocop suggests a reasonable style
[06:19:07] havenwood: mkroman: i just don't use parens
[06:19:26] havenwood: (unless it breaks the interpreter)
[06:19:49] mkroman: then there's gemspecs - in the official rubygems docs, in the Gem::Specification.new block, they don't use parentheses, does that only apply to the gemspec? or does that apply to anything that resembles a DSL?
[06:20:09] mkroman: havenwood: yeah, I avoided it as much as possible aswell
[06:20:17] havenwood: mkroman: "Seattle style" is to use no parens.
[06:20:27] valadares: has joined #ruby
[06:20:30] mkroman: also, rubocop doesn't suggest a reasonable style
[06:20:44] mkroman: executables/blur:6:1: C: Style/MethodCallWithArgsParentheses: Use parentheses for method calls with arguments.
[06:20:47] mkroman: require 'optparse'
[06:20:49] mkroman: No. just No.
[06:21:20] havenwood: mkroman: That's not a default style is it these days?
[06:21:21] mkroman: oh, wait a minute
[06:21:55] mkroman: yeah, you're right, I was using `rubocop --only Style/MethodCallWithArgsParentheses` intentionally, and apparently that doesn't derive from defaults
[06:22:09] mkroman: that's unexpected
[06:25:42] mkroman: sadly, as I have been growing older, I have come to the decision that the occasional ambiguity of my no-parentheses-style is not worth the awesomeness that is reading a line of code literally
[06:26:37] mkroman: havenwood: what about when you're passing blocks?
[06:26:47] mkroman: do you parentheses then?
[06:29:10] havenwood: mkroman: no
[06:29:50] asphyxia: has joined #ruby
[06:30:24] havenwood: mkroman: not with an arg before `do`, if that's what you mean?
[06:31:08] havenwood: mkroman: granted, I follow the style of the repo I'm coding in when it's not just my own code
[06:31:39] havenwood: i just very seldom think parens help me read the code
[06:31:58] mkroman: havenwood: no, I mean passing a proc/lambda/w/e as an argument, like instance.method(&callback)
[06:32:28] havenwood: mkroman: i sometimes follow strict Seattle style, where I omit those
[06:32:29] mkroman: err, guess I should've said an instance of a block
[06:33:17] havenwood: there are better things to get hung up on than parens, but I definitely err on the side of too few
[06:33:21] sauvin: has joined #ruby
[06:34:36] mkroman: I think I've been on the side of being my own little snowflake for too long and now I just want to be like everyone else heh
[06:35:27] mkroman: I don't want someone who's used to reading “standard” Ruby code to read my code and get even slightly confused by the lack of parentheses
[06:35:55] mkroman: but then there's developers like you, who might read it slower just because you're used to the “Seattle style”
[06:37:49] marmotini_: has joined #ruby
[06:44:42] coderphive: has joined #ruby
[06:46:19] mkroman: are there any “success” stories with the 2.6 JIT-compiler?
[06:51:09] coderphive: has joined #ruby
[06:52:38] ItsAVortex: has joined #ruby
[07:05:28] Nicmavr: has joined #ruby
[07:11:49] ItsAVortex: has joined #ruby
[07:14:52] asphyxia: has joined #ruby
[07:20:09] ItsAVortex: has joined #ruby
[07:24:34] reber: has joined #ruby
[07:29:30] clemens3: has joined #ruby
[07:33:40] Swyper: has joined #ruby
[07:33:54] nowhere_man: has joined #ruby
[07:40:42] kke: best way to make a singleton method that won't be inherited?
[07:43:05] phaul: you can't partially inherit. it's all or nothing. you can consider delegation
[07:43:40] Puffball: has joined #ruby
[07:43:57] phaul: but sounds like you need to think about your design first
[07:45:54] Xeago: has joined #ruby
[07:49:51] kke: yeah maybe i'll just move the method somewhere else from the superclass
[08:01:29] mahlon: has joined #ruby
[08:08:12] aufi: has joined #ruby
[08:12:01] dionysus69: I noticed execjs is unmaintained, whats the modern way to execute js within ruby?
[08:12:15] dionysus69: I just have something implemented in js that I would exec in js and get the result, thats it
[08:14:15] aupadhye: has joined #ruby
[08:17:58] clemens3: has joined #ruby
[08:18:02] johnny56_: has joined #ruby
[08:20:28] Swyper: has joined #ruby
[08:42:01] paranoicsan: has joined #ruby
[08:44:53] cthulchu_: has joined #ruby
[08:49:53] ellcs: has joined #ruby
[08:59:33] volkov: kill ruby
[08:59:36] volkov: has left #ruby: ()
[09:02:10] nowhere_man: has joined #ruby
[09:05:28] tAn: killall ruby
[09:10:49] lubekpl: has joined #ruby
[09:10:57] asphyxia: has joined #ruby
[09:34:05] BH23: has joined #ruby
[09:52:32] paulscoder: has joined #ruby
[09:55:41] jmcgnh: has joined #ruby
[10:00:56] donofrio_: has joined #ruby
[10:12:11] conta: has joined #ruby
[10:15:24] blackmesa: has joined #ruby
[10:19:32] blackmesa1: has joined #ruby
[10:23:07] za1b1tsu: has joined #ruby
[10:28:44] mkroman: kill -16 ruby
[10:31:11] Emmanuel_Chanel: has joined #ruby
[10:31:11] xrexeon: has joined #ruby
[10:38:28] mkroman: so… in my IRC bot library I abuse Module#class_exec to create an anonymous class (not instance) based on reloadable user code https://github.com/mkroman/blur/blob/master/library/blur.rb#L34-L43 that is essentially just loaded through Kernel#load(file, wrap=true) and is instantiated at https://github.com/mkroman/blur/blob/master/library/blur/client.rb#L143-L167
[10:40:11] mkroman: but since it's essentially a block that is evaluated, and the only code that happens to be before the Blur::Script(name, &block) is usually `require` - how much should I care about dataraces?
[10:40:59] liya: i have this doubt...
[10:41:13] mkroman: when a script does a require, the code loaded is not expected to be reloaded until the process is restarted
[10:41:16] liya: since Object is a class
[10:41:30] liya: and a Class itself is an Object
[10:41:38] phaul: not what you are asking, but better stay away from class variables
[10:41:42] liya: Object also is an Object
[10:41:43] phaul: mkroman: ^
[10:41:52] mkroman: phaul: what's the alternative?
[10:42:07] phaul: instance variable of singleton class?
[10:42:29] mkroman: doesn't that just move the problem?
[10:42:54] phaul: no. @@ is sonsidered to be broken and might be removed from ruby 3.0
[10:43:20] mkroman: what about an instance variable declared in a class?
[10:44:06] mkroman: wouldn't that essentially be a class variable? is that also broken?
[10:44:19] phaul: no that's not broken. just @@
[10:45:18] phaul: https://stackoverflow.com/questions/33762366/are-ruby-class-variables-bad
[10:45:28] mkroman: so module Blur; @scripts = {}; def self.script(…); … @scripts[name] = …; end end shouldn't necessarily pose a problem?
[10:46:37] mkroman: liya: is that related to my question or is it unrelated? :p
[10:48:12] phaul: liya: everything is an Object except BasicObject :)
[10:48:33] liya: mkroman, unrelated
[10:48:43] liya: BasicObject? phaul ?
[10:48:53] mkroman: liya: Object > BasicObject
[10:49:06] liya: Object < BasicObject?
[10:49:19] mkroman: I don't think that's syntactically correct.
[10:49:44] conta: has joined #ruby
[10:49:48] phaul: not really important but there is an almost empty class above object, if you need an empty class like BlankSlate
[10:50:16] liya: so which is super Object or BasicObject
[10:50:36] phaul: &>> Object.ancestors
[10:50:38] rubydoc: # => [Object, Kernel, BasicObject] (https://carc.in/#/r/66zn)
[10:50:56] liya: object is an ancestor of itself?
[10:51:06] liya: how can that happen?
[10:51:18] phaul: it's not really, ancestors is a bad method name
[10:51:47] phaul: it's more like what do I need to look atin what order when Im doing the method lookup.. but that's a mouthful
[10:52:26] liya: oh.. so its first to last
[10:52:34] liya: the last one being the root object
[10:53:00] liya: then its actually a good method.. with a bad name
[10:53:30] liya: whew! that also answered my question
[10:53:41] liya: now that i can picture the inheritance tree
[10:59:32] liya: so Object is a class, not object.. but also an object in the sense that its an instance of Class object
[11:00:14] phaul: &>> Class.ancestors
[11:00:14] rubydoc: # => [Class, Module, Object, Kernel, BasicObject] (https://carc.in/#/r/66zo)
[11:00:34] liya: well sure not directly
[11:02:56] phaul: >> but also an object in the sense that its an instance of Class object <- exactly
[11:03:01] ruby[bot]: phaul: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[11:03:21] phaul: &>> Class.is_a? Class
[11:03:22] rubydoc: # => true (https://carc.in/#/r/66zp)
[11:04:25] liya: but this seems to contradict what you told earlier
[11:04:41] liya: &>> BasicObject.is_a? Object
[11:04:42] rubydoc: # => true (https://carc.in/#/r/66zq)
[11:04:55] liya: <phaul> liya: everything is an Object except BasicObject :)
[11:05:15] phaul: the BasicObject class is an Object as it's a class
[11:05:30] phaul: &>> BasicObject.new.is_a? Object
[11:05:31] rubydoc: # => undefined method `is_a?' for #<BasicObject:0x00005604fd0239f8> (NoMethodError) (https://carc.in/#/r/66zr)
[11:05:44] liya: ah.. i get it
[11:16:45] nowhere_man: has joined #ruby
[11:28:06] phaul: to clarify, the statement "everything is an object" probably predates BasicObject, from the times when you couldn't avoid having Object among your ancestors. Now if you are explicitly inherit from BasicObject you also avoid having Object. If you don't say any superclass, new classes implicitly inherit from Object
[11:28:06] silent_freak: has joined #ruby
[11:31:14] aqd_: has joined #ruby
[11:32:51] paranoicsan: has joined #ruby
[11:36:15] v01d4lph4: has joined #ruby
[11:36:41] v01d4lph4: has joined #ruby
[11:37:35] v01d4lph4: has joined #ruby
[11:39:46] mkroman: where can I ask my question about “relatively” reloadable user code other than here? or should I just ask at another time?
[11:45:53] mkroman: havenwood: I dunno how to explain it, but it feels like I'm trying to trap kiddies into my van when I write code that's like if respond_to? name; __send__ name, network, message; end vs. if respond_to?(name); __send__(name, network, message) end
[11:46:11] valadares: has joined #ruby
[11:58:49] Guest16678: has joined #ruby
[12:04:27] blackmesa1: has joined #ruby
[12:11:04] RougeR: has joined #ruby
[12:11:16] RougeR: finally threw in the towel with RVM
[12:11:31] RougeR: what a piece of shit, RbEnv is so much better
[12:14:22] RougeR: rbenv uses shims and path, rvm edits cd and hooks itself in...with no error handling
[12:26:46] blackmesa: has joined #ruby
[12:28:50] catbusters: has joined #ruby
[12:30:44] mkroman: RougeR: agreed
[12:30:51] AJA4350: has joined #ruby
[12:31:13] RougeR: mkroman, yah :) just got it all setup now
[12:31:17] RougeR: very happy with it so far
[12:31:23] mkroman: even for Python, the rbenv clone - pyenv - is so much better than virtualenv/whateverthefuck
[12:31:41] RougeR: yeah i use pyenv too, but didnt realise there was a ruby equiv
[12:31:49] mkroman: hah, funny
[12:32:10] mkroman: I'm pretty confident rbenv is the predecessor of pyenv
[12:32:15] RougeR: ironically my boss is trying to get me to move to windows....even though i do 90% ruby dev
[12:32:17] RougeR: i dont get it
[12:32:27] RougeR: mkroman, hm interesting
[12:33:03] RougeR: yeah, the only time i have issues in ubuntu is shitty propietary software or when remoting into windows machines
[12:33:27] mkroman: that said, scheduling jobs via cronjob or w/e for a specific version can be quite painful
[12:34:03] RougeR: in rbenv?
[12:34:45] RougeR: mmm not too much of an issue there, its just for my local dev work. most of my code i test in docker containers
[12:35:29] Swyper: has joined #ruby
[12:35:50] mkroman: I use zsh as my shell and making any cronjob script that uses `ruby` is kind of out of the question - not sure how it works, but I think it defaults to bash and .bash_profile
[12:36:22] RougeR: yeah i would think it does.
[12:37:04] RougeR: ah okay yeah i just use bourne
[12:37:23] mkroman: I'd eval "$(rbenv init -)" but rbenv might not be in the PATH at that point, and it'd add to the cronjob line, which is precious.
[12:37:43] RougeR: can you not specify the path in the script?
[12:39:28] mkroman: you can theoretically do the “export PATH=\"${HOME}/.rbenv/bin:${PATH}\"; eval \"$(rbenv init -)\"" in a cronjob
[12:39:37] asphyxia: has joined #ruby
[12:40:18] mkroman: provided it's a bash shell or whatever rbenv requires
[12:41:37] Swyper: has joined #ruby
[12:41:51] mkroman: I *have* run several scripts using a cronjob script path a la ~/.rbenv/versions/2.4.1/bin/ruby script.rb
[12:42:26] mkroman: and it does work as long as that version is installed for the cronjob user
[12:46:14] RougeR: yeah i would think thats the case
[12:46:29] RougeR: as long as the user has permissions and its installed, there is likely a work around
[12:46:36] RougeR: did a quick google and saw similar
[12:46:47] RougeR: i.e loading up .bashrc stuff before
[12:47:01] makara: has joined #ruby
[12:47:36] RougeR: https://benscheirman.com/2013/12/using-rbenv-in-cron-jobs/
[12:47:59] RougeR: im spending all week writing tests
[12:48:11] RougeR: no one ever wrote tests for our api....and i refactored it all last week
[12:48:17] RougeR: i aint releasing it without tests....
[12:48:33] RougeR: i aint guna be the one who gets fucked when there's a bug
[12:53:22] silent_freak: has joined #ruby
[13:03:39] mkroman: don't be overzealous
[13:12:44] akemot: has joined #ruby
[13:15:17] stryek: has joined #ruby
[13:15:43] akemot: has joined #ruby
[13:16:39] BH23: has joined #ruby
[13:30:43] akemot: has joined #ruby
[13:31:39] BH23: has joined #ruby
[13:36:26] lwwwr: has joined #ruby
[13:39:02] nfk: has joined #ruby
[13:40:11] roshanavand: has joined #ruby
[13:45:00] v01d4lph4: has joined #ruby
[13:45:03] zapata: has joined #ruby
[13:46:27] lucasb: has joined #ruby
[13:46:33] troulouliou_div2: has joined #ruby
[14:06:36] blackmesa: has joined #ruby
[14:25:25] bruul: has joined #ruby
[14:26:55] RougeR: mkroman, i just want 100% coverage for the api and resque tasks
[14:26:57] RougeR: thats my goal
[14:27:10] RougeR: at the moment total coverage has got to be under 10%
[14:28:03] phaul: RougeR: have you tried deep-cover? It's really good
[14:28:29] RougeR: ive heard the name
[14:28:33] RougeR: let me have a look
[14:30:24] RougeR: phaul, looks very interesting given than i want coverage of certain areas too
[14:30:34] Swyper: has joined #ruby
[14:30:49] phaul: I am playing with it currently and I like it
[14:30:58] RougeR: mmm i think its worth investigating
[14:31:10] mkroman: RougeR: sure, but if you have to rely on rbenv, it's kind of a half-assed assertion of the ruby standards (imo - i.e. executables in your PATH aren't guaranteed) and you might be better off testing against a docker image than rbenv scripts
[14:31:15] RougeR: ill have a play with it tomorrow afternoon (dev free time)
[14:31:46] RougeR: mkroman, yes i agree with that
[14:32:00] RougeR: and i dont use any kind of ruby versioning in production
[14:32:14] RougeR: think we run 2.4.1 pretty widely
[14:33:00] mkroman: did you have a testing environment prior to you joining?
[14:33:10] FastJack: has joined #ruby
[14:34:57] RougeR: we have one, weve got a pipeline etc
[14:35:21] RougeR: but testing was never done well and was an afterthought. my first job as a dev was to test all the core task logic
[14:35:30] nowhere_man: has joined #ruby
[14:35:43] RougeR: only 3 guys in our department and no way either of them are spending time writing test cases
[14:35:51] RougeR: so ill do it lol
[14:36:20] RougeR: ive put it off for a few months, while i learnt the codebase better
[14:37:03] RougeR: theres also the 'threat' of us moving to .net core, which puts people off testing this code
[14:55:23] status402: has joined #ruby
[14:57:13] AJA4351: has joined #ruby
[14:57:32] rippa: has joined #ruby
[15:01:22] planigan: has joined #ruby
[15:01:49] ams__: has joined #ruby
[15:01:58] gnufied: has joined #ruby
[15:08:47] polishdub: has joined #ruby
[15:09:42] despai: has joined #ruby
[15:09:45] despai: hey people
[15:09:49] despai: quick question
[15:10:04] despai: how can I package a ruby application as a binary using the ruby jit compiler?
[15:10:12] KevinSjoberg: Both Hash and Symbol implement `#to_proc`, both procs return an arity of `-1`. Why is this? They clearly only accept one argument. Calling `{a: 1}.to_proc.call(1, 2, 3)` raises an ArgumentError about unexpected number of argument.
[15:10:14] despai: I want to distribute the executable as binary
[15:10:39] KevinSjoberg: Calling `:upcase.to_proc.call("asd", "asd", "asd")` will raise an ArgumentError about too many options.
[15:10:55] Tempesta: has joined #ruby
[15:11:06] despai: (yarv mjit)
[15:11:19] Renich: has joined #ruby
[15:12:27] APK: has joined #ruby
[15:13:36] RougeR: despai, i dont think you can
[15:14:12] b6b: has joined #ruby
[15:14:20] despai: RougeR why not? it actually precompiles to binary
[15:14:29] despai: why shouldn't it be possible to export to file?
[15:14:32] despai: and distribute?
[15:14:53] trif: has joined #ruby
[15:15:03] foxxx0: has joined #ruby
[15:16:14] volkov: has joined #ruby
[15:16:53] uplime: wouldn't it precompile to some intermediary the vm generates? if it precompiled to native code there wouldn't be any reason to JIT it
[15:21:40] RougeR: despai, yeah you can. but its not really the same thing
[15:21:44] RougeR: have a look
[15:22:11] RougeR: we would like to do a similar thing where i work
[15:23:58] Iambchop: ruby mjit generates and compiles c for parts of the program at runtime: https://medium.com/@k0kubun/the-method-jit-compiler-for-ruby-2-6-388ee0989c13
[15:24:52] Iambchop: to distribute a program look at things like traveling ruby or ruby packer
[15:28:15] valadares: has joined #ruby
[15:28:44] spacesuitdiver: has joined #ruby
[15:30:02] fanta7531: has joined #ruby
[15:30:38] conta: has joined #ruby
[15:31:47] regedit: has joined #ruby
[15:35:29] conta: has joined #ruby
[15:42:42] headius: RougeR: unfortunately despair left, but in theory a JIT could be used to precompile a whole program, especially one as minimal as the Ruby JIT
[15:44:00] conta: has joined #ruby
[15:45:09] phaul: I'm curious to see how do you compile eval(gets) without embeding a full ruby interpreter
[15:45:30] phaul: or at that point what't the point
[15:48:33] lupine: simplifies deployment
[15:49:09] phaul: right but that's for ruby packer and alike. packaging is not compilation
[15:49:55] lupine: I don't find a useful distinction TBH. you have a file that the environment interprets, and somewhere in that file is binary data representing your ruby code, surrounded by the full ruby executable + runtime
[15:50:25] lupine: whether that's a .msi or .deb or an executable with mruby + your script, it's all the same
[15:51:02] conta: has joined #ruby
[15:53:30] headius: phage: well, eval always will limit AOT compilation
[15:53:39] phaul: I think the distinction is the goal. you want a distributable thing, mjit wants to run ruby faster. Those goals are different
[15:53:46] headius: if you need it you'd have to include the parser and interpreter too
[15:54:16] headius: well, look at mruby
[15:54:30] headius: it does a single binary...by serializing the Ruby instructions directly into C code
[15:54:35] headius: is that AOT?
[15:54:53] headius: JRuby 9.x AOT actually does the same thing, rather than precompiling to JVM bytecode
[15:55:06] headius: single binary but it's not really compiled to "native"
[15:57:58] krawchyk: has joined #ruby
[15:58:49] Iambchop: headius: I've never used the newer JRuby AOT stuff, but custom jruby-complete jars (and wars) to distribute programs (internally) improved my life; thanks for that :-)
[15:59:59] marmotini_: has joined #ruby
[16:01:47] marmotini_: has joined #ruby
[16:02:17] Iambchop: I've used mruby to compile (simple) nagios check scripts, that's worked well
[16:02:33] AJA4351: has joined #ruby
[16:03:35] valadares: has joined #ruby
[16:17:22] hiroaki: has joined #ruby
[16:17:23] roshanavand1: has joined #ruby
[16:17:27] bruul: has joined #ruby
[16:19:27] roshanavand1: has joined #ruby
[16:20:05] xrexeon: has joined #ruby
[16:20:58] xrexeon: has joined #ruby
[16:36:55] d10n-work: has joined #ruby
[16:39:28] headius: lambarena: ah yeah, basically the same thing...when people claim they want ahead-of-time compliation most of the time what they really want is just an all-in-one binary
[16:39:45] headius: oops lambchop
[16:47:45] blackmesa: has joined #ruby
[16:50:49] jinie_: has joined #ruby
[16:51:57] marmotini_: has joined #ruby
[16:57:26] BH23: has joined #ruby
[16:57:41] RougeR: does anyone know how to test methods inside a block with minitest
[16:58:04] RougeR: i.e jon.transaction { MANY_METHODS_CALLED }
[16:58:16] RougeR: and i want to call expectations on the job
[16:58:52] \void: has joined #ruby
[17:00:07] za1b1tsu: has joined #ruby
[17:03:11] xrexeon: has joined #ruby
[17:03:15] blackmesa: has joined #ruby
[17:05:47] nowhere_man: has joined #ruby
[17:05:58] blackmesa1: has joined #ruby
[17:06:18] xrexeon: has joined #ruby
[17:07:58] agent_white: has joined #ruby
[17:14:21] r29v: has joined #ruby
[17:14:26] RougeR: found away
[17:14:32] r3m: has joined #ruby
[17:14:35] RougeR: :transaction is also a class method
[17:14:49] RougeR: so in this scenario i think i can do Job.transaction { }
[17:14:53] RougeR: and it should be identical
[17:16:42] v01d4lph4: has joined #ruby
[17:18:41] orbyt_: has joined #ruby
[17:19:16] Dbugger: has joined #ruby
[17:22:42] jwr: has joined #ruby
[17:23:12] maryo: has joined #ruby
[17:24:55] valadares: has joined #ruby
[17:25:26] jwr: I installed ruby 2.6.1 and I see that it has it's own built-in bundler (v 1.17.2). I need to install bundler 1.17.3, which I did, but 1.17.2 is still there and is still the default (as reported by gem list | grep bundler). And if I try something like bundle exec rails c, it crashes because "You have already activated bundler 1.17.2, but your Gemfile requires 1.17.3.
[17:25:54] jwr: Anybody have an idea how I can either install ruby without the built in bundler gem, or how I can make 1.17.3 the default?
[17:27:11] jmcgnh: has joined #ruby
[17:27:46] havenwood: jwr: Did you add bundler to your Gemfile and run?: bundle
[17:28:16] havenwood: jwr: What command are you running that's resulting in the error?
[17:29:13] havenwood: Ah you said.
[17:30:33] havenwood: jwr: Being a "default" gem doesn't mean that's the version you're going to get.
[17:34:20] [Butch]: has joined #ruby
[17:35:12] jwr: havenwood: Yes, bundler is a dependency in my Gemfile.lock, which also has "BUNDLED WITH: 1.17.3". I can do `bundle install` and it installs correctly. but then commands like `./bin/bundle exec rake` or `./bin/bundle exec rails` both crash with the above error.
[17:36:08] havenwood: jwr: You could try?: bundle _1.17.2_ exec rake
[17:40:11] houhoulis: has joined #ruby
[17:43:36] AJA4350: has joined #ruby
[17:45:18] Nicmavr: has joined #ruby
[17:45:43] marmotini_: has joined #ruby
[17:53:38] marmotini_: has joined #ruby
[17:55:55] aqd: has joined #ruby
[17:59:41] maryo: has joined #ruby
[18:14:41] elcontrastador: has joined #ruby
[18:29:10] conta: has joined #ruby
[18:39:15] akemot: has joined #ruby
[18:41:06] code_zombie: has joined #ruby
[18:42:11] jmcgnh: has joined #ruby
[18:44:59] tpanarch1st: has joined #ruby
[18:45:06] Iambchop: jwr: failed to reproduce for me here https://dpaste.de/add5
[18:45:42] r3m: has left #ruby: ("WeeChat 2.4-dev")
[18:47:50] krawchyk: has joined #ruby
[18:48:20] r3m: has joined #ruby
[18:49:19] lucasb: has joined #ruby
[18:57:10] jwr: Iamchop: `gem list | grep bundler` is the exact same output that I have. and `bundle -v` does also return 1.17.3. All of my troubleshooting with bash commands points to 1.17.3 being the version to be used. Except `./bin/bundle exec rake|rails` throws errors saying that 1.17.2 is activated.
[19:01:38] blackmesa1: has joined #ruby
[19:04:58] SeepingN: has joined #ruby
[19:09:03] Iambchop: your ./bin/bundle is from bundler binstub? added rake to my Gemfile and used bundle binstub: https://dpaste.de/nqyV
[19:11:40] valadares: has joined #ruby
[19:16:51] Renich: has joined #ruby
[19:23:48] wilbert: has joined #ruby
[19:26:39] gix: has joined #ruby
[19:27:38] marmotini_: has joined #ruby
[19:30:29] orbyt_: has joined #ruby
[19:34:22] conta: has joined #ruby
[19:35:10] lxsameer: has joined #ruby
[19:38:49] Inline: has joined #ruby
[20:05:23] segy: has joined #ruby
[20:16:55] r3m: has left #ruby: ("WeeChat 2.4-dev")
[20:17:26] bruul: has joined #ruby
[20:20:32] reber: has joined #ruby
[20:23:17] themsay: has joined #ruby
[20:27:11] krawchyk: has joined #ruby
[20:29:09] cnsvc: has joined #ruby
[20:34:58] Fernando-Basso: has joined #ruby
[20:44:33] orbyt_: has joined #ruby
[20:48:24] mzo: has joined #ruby
[20:48:34] Dbugger: has joined #ruby
[20:59:15] slester: has joined #ruby
[21:03:36] r3m: has joined #ruby
[21:11:11] gvo007: has joined #ruby
[21:13:30] AJA4350: has joined #ruby
[21:15:32] conta: has joined #ruby
[21:22:02] krawchyk: has joined #ruby
[21:35:50] blackmesa1: has joined #ruby
[21:37:19] anothertorusr: has joined #ruby
[21:47:15] planigan: has joined #ruby
[21:53:24] awkwords: has joined #ruby
[21:56:58] AJA4351: has joined #ruby
[21:58:44] doomspork: has joined #ruby
[22:18:07] orbyt_: has joined #ruby
[22:19:41] r3m: has joined #ruby
[22:23:29] cd: has joined #ruby
[22:24:40] lytol_: has joined #ruby
[22:27:45] doomspork: has joined #ruby
[22:29:00] crankharder: has joined #ruby
[22:29:34] crankharder: has joined #ruby
[22:29:53] r3m: has joined #ruby
[22:30:53] crankharder: has joined #ruby
[22:31:17] AJA4351: has joined #ruby
[22:32:12] crankharder: has joined #ruby
[22:37:19] awkwords: has joined #ruby
[22:39:13] Swyper: has joined #ruby
[22:40:52] octos: has joined #ruby
[22:43:18] cthulchu_: has joined #ruby
[22:55:01] cthulchu_: hey folks, how do I print current time in 24:01:01 format?
[22:56:00] cthulchu_: oh, nvm, don't need it anymore
[22:57:11] miah: you can always use Time#strftime for things like that
[22:57:51] cthulchu_: I just didn't know how to get the system time
[22:58:35] Rudd0: has joined #ruby
[23:01:09] miah: Time.now
[23:06:19] AJA4351: has joined #ruby
[23:12:28] orbyt_: has joined #ruby
[23:26:59] RougeR: has joined #ruby
[23:27:17] Xiti: has joined #ruby
[23:32:55] noobineer: has joined #ruby
[23:35:35] fluxAeon: has joined #ruby
[23:40:49] AJA4351: has joined #ruby
[23:45:01] anothertorusr: has joined #ruby
[23:45:05] orbyt_: has joined #ruby
[23:47:03] doomspork: has joined #ruby
[23:49:45] houhoulis: has joined #ruby