havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: 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
truenito has joined #ruby
n305oul93 has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
truenito has quit [Ping timeout: 248 seconds]
alveric3 has joined #ruby
charliesome has joined #ruby
chouhoul_ has joined #ruby
eckhardt has joined #ruby
alveric2 has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
n305oul93 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
scientes has joined #ruby
eightlimbed has quit [Ping timeout: 248 seconds]
dstrunk has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ramfjord has joined #ruby
aScottishBoat has quit [Ping timeout: 260 seconds]
cognoscente has quit [Ping timeout: 260 seconds]
cagomez has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
apeiros has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
apeiros has quit [Ping timeout: 268 seconds]
impermanence has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
cagomez has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
ramfjord has joined #ruby
apeiros has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 248 seconds]
scientes has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
Defenestrate has joined #ruby
hutch34 has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
saslam has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
ramfjord has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwardly has quit [Max SendQ exceeded]
ramfjord has quit [Ping timeout: 248 seconds]
<RickHull> is there an rvm version on travis for ruby 2.5?
edwardly has joined #ruby
edwardly has joined #ruby
<RickHull> there is ruby-head, but it moves fast and breaks stuff
mson has quit [Quit: Connection closed for inactivity]
_sfiguser has quit [Quit: Leaving]
Defenestrate has quit [Quit: This computer has gone to sleep]
<havenwood> RickHull: there should be a ruby-2.5.0-preview1
<RickHull> sweet, any reason it's not listed here http://rubies.travis-ci.org/
<RickHull> I keep having to push commits to try and see :/
<RickHull> i.e. to .travis.yml
ramfjord has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> negative on ruby-2.5.0-preview1
cagomez has quit [Remote host closed the connection]
<havenwood> RickHull: If you poke them they'll probably add it.
<RickHull> rvm or travis?
<havenwood> RickHull: Travis
<RickHull> The command "rvm use 2.5.0-preview1 --install --binary --fuzzy" failed and exited with 2 during .
<havenwood> RickHull: Travis just needs to add the precompiled binary.
allcentury has quit [Remote host closed the connection]
<havenwood> maybe they had an issue with it, or just haven't gotten to it. unsure!
cdg has joined #ruby
<RickHull> ok, thanks. I'm bugging #travis now :)
jottr_ has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
Defenestrate has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
apeiros has joined #ruby
ramfjord has joined #ruby
eckhardt has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
cloaked1 has quit [Quit: Leaving]
troulouliou_dev has quit [Quit: Leaving]
roshanavand has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 248 seconds]
quobo has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 240 seconds]
mjolnird has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
larcara has joined #ruby
eightlimbed has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
larcara has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
TheRealMattM has quit [Ping timeout: 246 seconds]
haylon has quit [Changing host]
haylon has joined #ruby
hutch34 has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
TheRealMattM has joined #ruby
ramfjord has joined #ruby
bmurt has joined #ruby
oetjenj has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ollie has joined #ruby
<Ollie> Hello
ramfjord has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 264 seconds]
<Ollie> Is anyone here?
* RickHull looks around
Azure has joined #ruby
<Ollie> So I'm completely brand new to computer programming
<Ollie> and I was wondering if anyone would be able to help me?
ramfjord has joined #ruby
<havenwood> Ollie: We'd be happy to answer any questions!
<Ollie> So.
<Ollie> I'm not sure if you have heard of it, but there's an iOS app called workflow?
<Ollie> I was able to create a workflow with that app that does what I want. However, I'd like to make a similar script or workflow for my mac.
Technodrome has joined #ruby
<Ollie> Basically, it takes a picture, and then parses the text in the picture. It then takes that text and breaks it up into a question, and the answer choices. It then takes the text and rewords it so that the format is the following:
<Ollie> "Question? A OR B OR C"
<Ollie> and then it takes the text and puts it into a custom google search engine.
ramfjord has quit [Ping timeout: 260 seconds]
<Ollie> I was able to figure out how to parse the text from an image, and I have a ruby script that will do that for me, using an OCR api. But that's as far as I've gotten.
<havenwood> Ollie: that sounds like a good start
ramfjord has joined #ruby
<Ollie> So what I'm trying to do now is a couple of things. I know how to take a screen shot using automator. And so I'd like to be able to pass that screenshot into a script and then have the script use the OCR api to get the text, arrange it appropriately, and plug it into a custom google search engine, like I was able to do with the workflow iOS app.
ramfjord has quit [Ping timeout: 240 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JBbanks has joined #ruby
ramfjord has joined #ruby
<Ollie> Does this seem like it would be difficult to do?
plexigras has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 268 seconds]
mson has joined #ruby
ramfjord has joined #ruby
Ouchy`w has joined #ruby
Yzguy has joined #ruby
lupine has quit [Remote host closed the connection]
Ouchy has quit [Ping timeout: 248 seconds]
the_f0ster has quit []
lupine has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
Ouchy`w has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
workmad3 has joined #ruby
apeiros has joined #ruby
jameser has joined #ruby
kies has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
shinnya has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 260 seconds]
QualityAddict has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
QualityAddict has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
aroaminggeek has joined #ruby
apeiros has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
apeiros has quit [Ping timeout: 268 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
dstrunk has joined #ruby
konsolebox has joined #ruby
d^sh has quit [Ping timeout: 268 seconds]
d^sh has joined #ruby
QualityAddict has quit [Quit: Leaving]
eightlimbed has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 255 seconds]
jeanlinu_ has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
Ollie has quit [Ping timeout: 260 seconds]
jeanlinux has quit [Ping timeout: 260 seconds]
hays_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
xlegoman has joined #ruby
<hays_> is this a reasonable way to add in the :clamp method to Comparable? https://bpaste.net/show/c254c334867c
aroaminggeek has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
<matthewd> hays_: What is your bar for reasonable?
<matthewd> It will do what you want, but you don't need me to tell you that
Yzguy has quit [Quit: Zzz...]
<havenwood> hays_: You might consider: unless Comparable.respond_to? :clamp
<matthewd> method_defined?
<havenwood> >> Comparable.method_defined? :clamp
<ruby[bot]> havenwood: # => false (https://eval.in/902598)
badeball_ has quit [Remote host closed the connection]
<hays_> reasonable meaning that it is the best way to do it within reason and without upgrading to ruby 2.4
<matthewd> I wouldn't use an implementation that allocates two arrays
mim1k has joined #ruby
gizmore|2 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> hays_: Or you could patch your Ruby, if that's on the table: https://github.com/nerdinand/ruby/blob/dbcaa9ca9a46bfa70f3a571181696bb996a8074c/compar.c#L193-L203
shazbotmcnasty has quit [Ping timeout: 268 seconds]
gizmore has quit [Ping timeout: 240 seconds]
David_H__ has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
David_H_Smith has joined #ruby
David_H_Smith has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<hays_> huh. i didn't know ternary was on the table
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
<hays_> this is where i ended up. I think its probably ok https://bpaste.net/show/16b97f8c6352
QualityAddict has joined #ruby
apparition has joined #ruby
David_H_Smith has joined #ruby
<hays_> not sure why method_defined or responds_to would be preferred one way or another
<hays_> but i figured the backport probably is somewhat canonical
sspreitz has quit [Ping timeout: 248 seconds]
<hays_> feel free to rip it apart if you disagree :) love learning
apeiros has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
sspreitz has joined #ruby
<hays_> kinda surprised they didn't write a #clamp!
<hays_> in 2.4
vee__ has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
jottr_ has joined #ruby
quobo has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 268 seconds]
apeiros has quit [Ping timeout: 248 seconds]
<hays_> havenwood: nice use of between
<hays_> i guess that results in one extra compare
vee__ has joined #ruby
<hays_> but it is nice to get what one might consider the default case out of the way
<havenwood> hays_: it depends what you want to optimize for - i just followed the logic of the truffleruby specs for #clamp
apparition has quit [Quit: Bye]
<hays_> I am probably one of the last fans of the ternary operator :)
drowze has joined #ruby
<havenwood> hays_: i don't mind *one* ternary, heh
<havenwood> the nested ternaries get fugly
apeiros has joined #ruby
Mutter has joined #ruby
Mutter has quit [Client Quit]
apeiros has quit [Ping timeout: 268 seconds]
<matthewd> respond_to? would be checking the wrong thing
<hays_> i was reading about it.. respond_to? is for a class method I guess
<matthewd> I personally prefer module_eval over the module keyword when reopening things, because it'll error if the thing isn't already there... but that doesn't really matter when you've already done the conditional, I guess
<matthewd> Right. Comparable doesn't [ever] respond_to?(:clamp)... but it does respond_to?(:method_defined?), say.
<matthewd> clamp! would be impossible because Comparable can't mutate its value, and Comparable can't mutate its value [partly] because many of its most popular values are always frozen
Mutter has joined #ruby
larcara has joined #ruby
bkxd has joined #ruby
shazbotmcnasty has joined #ruby
Mutter has quit [Client Quit]
houhoulis has joined #ruby
<hays_> ahh
larcara has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 268 seconds]
jackjackdripper has quit [Quit: Leaving.]
Mutter has joined #ruby
TheRealMattM has quit [Ping timeout: 268 seconds]
TheRealMattM has joined #ruby
<Mutter> How does ruby compare to JavaScript?
<hays_> not equal?
<matthewd> >> "ruby" <=> "JavaScript"
<ruby[bot]> matthewd: # => 1 (https://eval.in/902600)
drowze has quit [Ping timeout: 255 seconds]
eightlimbed has joined #ruby
<matthewd> Mutter: If you have more specific questions, I'm sure we can be more helpful. But a full discussion comparing the syntaxes and trade-offs seems better covered by the various long-form articles that turn up in a Google search
apeiros has joined #ruby
<Mutter> What is a good way to go about learning ruby?
Dimik has quit [Ping timeout: 240 seconds]
erlend has quit [Ping timeout: 268 seconds]
kitsunenokenja has joined #ruby
erlend has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
Mutter has quit [Quit: Mutter: www.mutterirc.com]
nofxx_ has quit [Remote host closed the connection]
Mutter has joined #ruby
Puffball has quit [Ping timeout: 268 seconds]
nofxx has joined #ruby
Mutter has quit [Client Quit]
apeiros has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
dviola has joined #ruby
ozcanesen has joined #ruby
zanoni has quit [Ping timeout: 255 seconds]
howdoi has joined #ruby
apeiros has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
gix has joined #ruby
mjolnird has quit [Remote host closed the connection]
gix- has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Remote host closed the connection]
apeiros has joined #ruby
cschneid_ has joined #ruby
eightlimbed has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
cschneid_ has joined #ruby
mfb2 has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
larcara has joined #ruby
larcara has quit [Ping timeout: 255 seconds]
nicesignal has quit [Quit: WeeChat 1.4]
nicesignal has joined #ruby
apeiros has joined #ruby
eightlimbed has joined #ruby
hays_ has quit [Ping timeout: 248 seconds]
kanobt61 has quit [Remote host closed the connection]
cdg has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
eightlimbed has quit [Ping timeout: 260 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
mfb2 has quit []
konsolebox has joined #ruby
aroaminggeek has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 255 seconds]
nicesignal has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 248 seconds]
allcentury has joined #ruby
Freshnuts has joined #ruby
bkxd has joined #ruby
kitsunenokenja has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 248 seconds]
nicesignal has joined #ruby
bkxd has quit [Quit: Lost terminal]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
apeiros has joined #ruby
k3rn31_ has joined #ruby
jottr_ has joined #ruby
Iarfen has quit [Quit: Going offline, see ya! (www.adiirc.com)]
aroaminggeek has joined #ruby
mson has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 248 seconds]
troys is now known as troys_
jeanlinu_ has quit [Ping timeout: 255 seconds]
cognoscente has joined #ruby
apeiros has joined #ruby
cognoscente has quit [Ping timeout: 268 seconds]
Yzguy has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
apeiros has quit [Ping timeout: 240 seconds]
larcara has joined #ruby
enterprisey has joined #ruby
shazbotmcnasty has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
larcara has quit [Ping timeout: 240 seconds]
millerti has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
shazbotmcnasty has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 248 seconds]
eckhardt has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
shazbotmcnasty has joined #ruby
_whitelogger has joined #ruby
mim1k has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
allcentury has quit [Remote host closed the connection]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has quit [Ping timeout: 248 seconds]
yeshurun has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
jottr_ has quit [Ping timeout: 255 seconds]
rabajaj has joined #ruby
konsolebox has joined #ruby
LocaMocha has joined #ruby
workmad3 has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
Xiti has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
apeiros has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
<RickHull> can I mix in a module to a class within #initialize?
<RickHull> the desired mix in is conditional upon the arguments to #initialize
apeiros has quit [Ping timeout: 250 seconds]
_aeris_ has quit [*.net *.split]
rippa has joined #ruby
kickr has quit [Quit: Leaving]
ozcanesen has quit [Quit: ozcanesen]
apeiros has joined #ruby
shazbotmcnasty has joined #ruby
<dminuoso> RickHull: Sounds horrible.
<dminuoso> But yes.
<dminuoso> In #initialize the underlying Ruby object has been constructed entirely.
_aeris_ has joined #ruby
<dminuoso> So assuming you are doing something like Class.new { def initialize(magic) end; }
larcara has joined #ruby
<dminuoso> Feel free to conditionally include mixins.
troys_ is now known as troys
<RickHull> case magic; include TheMixIn
<RickHull> but I'm not getting the method available on the class
<RickHull> er, instance
apeiros has quit [Ping timeout: 268 seconds]
<dminuoso> RickHull: Need more context to understand what you want to do then.
<RickHull> typically you put `include TheMixIn` within the class definition, not #initialize definition
<RickHull> let me confirm that works as expected -- class Foo; include TheMixin
<dminuoso> RickHull: #initialize constructs objects. If you modify the entire class, then you will activate that change for all already constructed objects.
<RickHull> oh yeah, hm
<RickHull> that's really only a theoretical concern
<RickHull> but uh, not intended
<dminuoso> RickHull: Which is why I implied to do this on the singleton class.
<RickHull> I believe you, I'm just getting NoMethodError
<matthewd> aka extend
<RickHull> ok, when I do: class Foo; include Bar # I get Foo#baz (defined in Bar)
larcara has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 255 seconds]
<dminuoso> RickHull: Remember that in effect Ruby checks the ancestory and for methods on every call. (In reality it uses a caching mechanism, but that happens transparently)
<RickHull> i'm not 100% sure what happens when I do: class Foo; def initialize; include Bar
armyriad has joined #ruby
<RickHull> I need Foo#baz
<dminuoso> RickHull: You can reason about what would happen.
<matthewd> RickHull: You get a NoMethdError, because your Foo instance doesn't have an include method
jottr_ has joined #ruby
<dminuoso> RickHull: If you do not specify a receiver, self is taken. self is going to be the instance method. #include is actually an instance method of Module.
<dminuoso> *is going to be the instance
<RickHull> I don't get NoMethodError for Foo.#include
<RickHull> er Foo#include
<RickHull> I get my Foo.new
<dminuoso> >> class Foo; def initialize() include Enumerable; end; end; Foo.new
<ruby[bot]> dminuoso: # => undefined method `include' for #<Foo:0x406b99c4> (NoMethodError) ...check link for more (https://eval.in/902642)
<dminuoso> Yes you do.
<matthewd> Have you defined a Foo#include elsewhere?
<RickHull> no, I can paste actual code
<RickHull> one sec
<matthewd> This is sounding like a bad idea in general, FWIW
<dminuoso> 07:31 dminuoso | RickHull: Sounds horrible.
<dminuoso> My first thought :P
<RickHull> yeah, I don't disagree
<RickHull> but now I'm curious
<dminuoso> But seeing as I have wrote code to change the class of an object, or temporarily short circuit an ancestory path...
<dminuoso> This cant be as dirty.
jottr_ has quit [Ping timeout: 248 seconds]
<RickHull> ok, this is pieced together, no guarantees (yet) https://gist.github.com/rickhull/0a288c24278eefa78b9f46a6408543bb
<RickHull> the mixin is `module PushTree`
<RickHull> the class is `NaryTree`
<RickHull> the condition is when the node_class passed to NaryTree.new is *FlexNode
shazbotmcnasty has joined #ruby
<RickHull> L201 has the include within #initalize
<RickHull> I don't get a NoMethodError
<RickHull> when I instantiate with a FlexNode
wilbert has joined #ruby
jottr_ has joined #ruby
<RickHull> I want to do: CompSci::NaryTree.new(CompSci::FlexNode, 5, child_slots: 2).push 5
<RickHull> but I get a NoMethodError on #push (defined in PushTree module)
<dminuoso> RickHull: Do you at any point include modules onto Tree?
<RickHull> no
<RickHull> haven't touched include
<RickHull> or extend
<RickHull> until now
<dminuoso> I do not see how that include could not throw then.
<dminuoso> I'd say the case simply does not trigger.
<dminuoso> Unless Tree is derived from another class, but I know its not because Im looking at the original source code.
<RickHull> i just pasted into naked irb
<RickHull> its not
<dminuoso> RickHull: binding.pry into it, and tell me about method(:include).owner
<RickHull> 1s
<matthewd> That file isn't calling it
<matthewd> What did you just paste into irb?
<RickHull> my gist will paste into irb
<RickHull> and then do: CompSci::NaryTree.new(CompSci::FlexNode, 5, child_slots: 2).push 5
<RickHull> I get NoMethodError on #push
<RickHull> not NoMethodError on #include
<matthewd> Oh
<dminuoso> Oh.
<dminuoso> That was my thought exactly.
<matthewd> Yes, as dminuoso said, the case isn't matching
<RickHull> well how could the case not match?
<dminuoso> &ri Object#===
<dminuoso> RickHull: case uses this to match.
<dminuoso> And in particular you are asking it to use this one:
<dminuoso> &ri Class#===
apeiros has joined #ruby
<RickHull> ok, that makes sense enough
<RickHull> stupid case
<matthewd> By my count we're now three wrongs deep
<RickHull> so then self.class.include PushTree
<dminuoso> RickHull: Why not include PushTree in general? Once it's been called with a FlexNode, it will have that behavior for all anyway.
<dminuoso> Either it's correct for all cases, or its not.
<RickHull> those methods don't make sense and don't work without a FlexNode
<dminuoso> So why are you pretending a Car and a Goat are the same thing?
<matthewd> Then why are you happy to include it into the class later?
<RickHull> it's kind of like car with little tires vs big tires. put on big tires and you can engage 4wd
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<RickHull> but i'm wide open to alternatives
<dminuoso> RickHull: Except you are putting the big tires on all cars, whether they fit or not.
<dminuoso> And you cant remove them.
<RickHull> agreed, and that's not the intent
<RickHull> I suppose I just need a PushTree < NaryTree
snickers has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
snickers has quit [Client Quit]
<RickHull> really, I just want those instance methods on that one instance
<matthewd> I don't understand what this is doing.. too much code for me. But my gut says you need fewer classes, not more.
<RickHull> briefly: a node has an array of children. you can add a child by index (non-flex), or you can just accumulate them (flexnode)
<RickHull> with flexnode, the tree can allow push(new_node) and the caller doesn't have to fiddle with indices
<RickHull> without flexnode, the caller has to add a node to a specific node and index
<RickHull> none of which changes the baseline behavior for a tree or a node
apeiros has joined #ruby
eightlimbed has joined #ruby
<RickHull> at this point, I've chosen for the tree to be instantiated with a node_class. but I was earlier instantiating it with a node object, the root node
<RickHull> could go either way
<matthewd> Still just feels like a load of code to implement a subset of Array
mjolnird has joined #ruby
<RickHull> PRs accepted!
<RickHull> s/accepted/solicited/ :)
<matthewd> Why are Node and ChildNode separate?
wilbert has quit [Quit: wilbert]
<RickHull> ChildNode has a reference to @parent
<RickHull> Node just goes downhill
<matthewd> I can see that. But why are they separate?
apeiros has quit [Ping timeout: 248 seconds]
<RickHull> #siblings isn't available without @parent
<matthewd> Isn't the whole point of a Node concept that you can treat everything equally?
<matthewd> Having a separate class for the root seems to undermine that
<RickHull> no, they're all Nodes
<RickHull> or they're all ChildNodes
<RickHull> I'm not real happy with the name ChildNodes
<RickHull> a tree of Nodes can only go one way from @root
apeiros has joined #ruby
<RickHull> a tree of ChildNodes goes bidirectional
Mia has quit [Read error: Connection reset by peer]
<RickHull> and the Nodes themselves actually define the tree. the Tree classes are for additional functions
hays has quit [Read error: Connection reset by peer]
shazbotmcnasty has joined #ruby
<matthewd> Similarly, why are Node and Tree separate? If the methods were on Node, they could naturally operate on a subtree
<RickHull> the Tree classes just track the @root generally and enforce the count of Node children
<dminuoso> RickHull: A root would just be a Node with no parent.
<RickHull> yep
<RickHull> someone has to hold a reference to a Node somewhere. you can instantiate a Tree to do it
<RickHull> or do it yourself :)
<dminuoso> RickHull: My point is, you are trying to use different Node classes to maintain an invariant of the tree. You can just as easily do this with a single Node class.
<RickHull> Tree#push makes sense
<RickHull> how would that look on Node?
troys is now known as troys_
apeiros has quit [Ping timeout: 248 seconds]
<dminuoso> RickHull: The interface is general enough to just not care. Why should one not be able to attach a tree as a sub-tree of another node/tree?
<RickHull> I don't disagree with any of this BTW -- I really would like to refactor this
<matthewd> children.each {|c| return if c.push(v) }; children << v
<RickHull> dminuoso: as it stands, you can do that with Node today. Node is the ultimate in flexibility
<RickHull> you can create cycles, etc
<RickHull> it may not be a tree, but you will have Nodes and links between them
uZiel has joined #ruby
<matthewd> I don't understand what problem this is solving. Right now, it looks like it's creating a complicated API that I wouldn't want to use, and then the implementation flows from that. How should you refactor the implementation? By changing the API.
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<RickHull> right now, nothing uses a FlexNode
shazbotmcnasty has quit [Ping timeout: 248 seconds]
<RickHull> Tree#push is handy for filling up a tree for demo purposes
<RickHull> like, gee whiz print a TernaryTree
<RickHull> but I do have BST which uses KeyNode
Mia has quit [Read error: Connection reset by peer]
<matthewd> Why are there separate Flex and non-Flex nodes?
<matthewd> Basically: why isn't this all one Node class?
<dminuoso> RickHull: In my opinion it's the job of the tree to maintain invariants, not the programmers job by picking the correct node types. What's next? AcyclicNode? DisconnectedNode? UnidirectionalNode?
<RickHull> when I made the first Node, and the first Tree, I made the API based on child accumulation
<RickHull> because I wanted to make trees first to play with them
hailey27 has joined #ruby
<RickHull> i refactored later that first Node impl into FlexNode
<RickHull> because I realized the child accumulation model isn't that useful
<RickHull> aside from Tree#push
<hailey27> Does anyone here know a lot about Nokogiri? I'm stuck with how to use the HUGE option with a DocumentFragment.
<dminuoso> hailey27: ?crosspost
jottr_ has quit [Ping timeout: 248 seconds]
<dminuoso> ?crosspost hailey27
<ruby[bot]> hailey27: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
Dimik has joined #ruby
<hailey27> I was about to explain that I also posted in RoR channel :\
dinfuehr has quit [Ping timeout: 255 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<RickHull> no worries, you gotta be fast on the draw when dminuoso is around
<hailey27> But thanks for the mansplaining about manners on IRC <3
<dminuoso> Personally I think it's rude to ask in multiple channels regardless.
<dminuoso> It implies urgency.
<hailey27> I'm asking in Rails and Ruby because it's a common library with RoR, but is technically a ruby problem.
<RickHull> I'm OK with dropping FlexNode and Tree#push (and all the @open_parent crap)
uZiel has quit [Ping timeout: 248 seconds]
<RickHull> but they do work, and they do illustrate the difficulties of that approach
enterprisey has quit [Remote host closed the connection]
<RickHull> and if I do drop them, then I'm glad I factored it out
cognoscente has joined #ruby
dinfuehr has joined #ruby
jottr_ has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
Defenestrate has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
<RickHull> also, maybe there is a tree application where the accumulation model is useful. I haven't gotten too far in my explorations yet
<RickHull> also, I like to think it's a good real world example for deciding on modules vs classes, mixins vs inheritance vs composition, etc
cognoscente has quit [Ping timeout: 248 seconds]
Mia has quit [Read error: Connection reset by peer]
Defenestrate has quit [Quit: This computer has gone to sleep]
shazbotmcnasty has joined #ruby
Defenestrate has joined #ruby
<RickHull> so yes, refactorings wanted. I'm not invested in this design, so much as arrived
apeiros has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
Defenestrate has quit [Remote host closed the connection]
cschneid_ has joined #ruby
<RickHull> hailey27: what's the problem? I haven't touched noko in years and dunno about HUGE options
mtkd has joined #ruby
jamesaxl has joined #ruby
<hailey27> RickHull: https://gist.github.com/JackMc/b6192bf1ce112439b7c3d1bc699b2cd4 both these tests pass
apeiros has quit [Ping timeout: 268 seconds]
<RickHull> what does 16.megabytes return?
troys_ is now known as troys
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
cschneid_ has quit [Ping timeout: 258 seconds]
<hailey27> RickHull: number of bytes in 16 megabytes, sorry rails magic :)
<RickHull> some big int
<RickHull> ok
<hailey27> A number > 10 megabytes of bytes
jenrzzz has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
shazbotmcnasty has quit [Ping timeout: 255 seconds]
<RickHull> what do you expect Nokogiri::Fragment(string) to return?
<RickHull> or #to_s anyway
<hailey27> Well, i would hope it would return a untruncated document (16MB of text)
<hailey27> now i understand why it doesn't though
<hailey27> the HUGE option turns off a nokogiri assumtion that bytesize < 10MB
<hailey27> you can't pass that to the Document DocumentFragment uses under the hood because they didn't code it to take that parameter :(
<hailey27> i'm thinking about contributing it to the project
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
nahra has joined #ruby
<hailey27> was trying to avoid that :(
<matthewd> Create an empty fragment, parse as a full document, then move the children over
<hailey27> and it looks like it does a little bit more work than that, not sure if it's important
Emmanuel_Chanel has joined #ruby
<hailey27> oh hm
<hailey27> good idea :D
<matthewd> Alternatively, I don't know whether the ctx parameter there could be useful as an avenue to get some hints into the parser?
xlegoman has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hailey27> `# This is a horrible hack, but I don't care` lol
<matthewd> Given it's all the "real" documentfragment constructor seems to do, I don't think I'd even feel that bad about it :)
<matthewd> Oh, hah
* matthewd checks blame
<hailey27> who's "tenderlove"? :o
<Ober> Why the unluck stiff
<matthewd> The person I assumed had written the comment :P
<hailey27> Lol
<hailey27> !
<hailey27> :)
shazbotmcnasty has joined #ruby
apeiros has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
quobo has quit [Quit: Connection closed for inactivity]
<hailey27> ohhhh he works at GitHub
<hailey27> thought I knew the name from somewhere
<matthewd> He's also on both the Ruby and Rails core teams
shazbotmcnasty has quit [Ping timeout: 240 seconds]
<hailey27> makes sense :)
apeiros has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
uZiel has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hailey27> thanks for the talk link RickHull!
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
klaas has joined #ruby
shazbotmcnasty has joined #ruby
pb122 has joined #ruby
apeiros has joined #ruby
mbr has joined #ruby
eightlimbed has quit [Ping timeout: 250 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
jottr_ has quit [Ping timeout: 248 seconds]
apeiros has quit [Ping timeout: 248 seconds]
nowhere_man has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
troys has quit [Quit: Bye]
Dimik has quit [Ping timeout: 248 seconds]
Ltem has joined #ruby
larcara has joined #ruby
larcara has quit [Client Quit]
shazbotmcnasty has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby
<RickHull> no prob, cheers :)
snickers has joined #ruby
snickers has quit [Client Quit]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
Freshnuts has quit [Quit: Leaving]
konsolebox has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aroaminggeek has quit [Quit: Textual IRC Client: www.textualapp.com]
cdg has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
ArtCorvelay has joined #ruby
Yzguy has quit [Quit: Cya]
shazbotmcnasty has quit [Ping timeout: 268 seconds]
lagweezle is now known as lagweezle_away
tomphp has joined #ruby
jottr_ has joined #ruby
shazbotmcnasty has joined #ruby
claudiuinberlin has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
jottr_ has joined #ruby
quobo has joined #ruby
cognoscente has joined #ruby
ledestin has joined #ruby
shazbotmcnasty has joined #ruby
cognoscente has quit [Ping timeout: 248 seconds]
Immune has quit [Ping timeout: 248 seconds]
jeanlinux has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
michael3 has joined #ruby
shazbotmcnasty has quit [Ping timeout: 250 seconds]
guille-moe has joined #ruby
guille-moe has quit [Client Quit]
jamesaxl has quit [Read error: Connection reset by peer]
ahrs has quit [Remote host closed the connection]
nahra has quit [Remote host closed the connection]
jamesaxl has joined #ruby
ahrs has joined #ruby
shazbotmcnasty has joined #ruby
nahra has joined #ruby
marr has joined #ruby
mikecmpbll has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjaX has joined #ruby
eb0t has quit [Quit: WeeChat 1.9.1]
shazbotmcnasty has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
DanKnox has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 248 seconds]
ta_ has joined #ruby
shazbotmcnasty has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
aloy has quit [Ping timeout: 258 seconds]
_sfiguser has joined #ruby
workmad3 has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
rabajaj has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
shazbotmcnasty has joined #ruby
ta_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
iamarun has joined #ruby
FahmeF has joined #ruby
iamarun has quit [Remote host closed the connection]
dviola has joined #ruby
shazbotmcnasty has joined #ruby
postmodern has quit [Quit: Leaving]
erlend has quit [Ping timeout: 248 seconds]
erlend has joined #ruby
tomphp has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
ta_ has joined #ruby
ta_ has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
shazbotmcnasty has joined #ruby
jottr_ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
remix2000 has quit [Ping timeout: 248 seconds]
gigetoo has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
tomphp has quit [Quit: Textual IRC Client: www.textualapp.com]
gizmore|2 is now known as gizmore
rabajaj has joined #ruby
Rouge has joined #ruby
ArtCorvelay has quit [Quit: WeeChat 1.9.1]
cognoscente has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
Guest2039 has quit [Changing host]
Guest2039 has joined #ruby
Guest2039 has joined #ruby
Guest2039 is now known as pskosinski
cognoscente has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
michael3 has quit [Ping timeout: 255 seconds]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
<Fire-Dragon-DoL> so there is also a metaclass for the metaclass...
<apeiros> infinitely so, yes
uZiel has quit [Ping timeout: 248 seconds]
<Fire-Dragon-DoL> suddenly I understand why if I do class << self; extend Forwardable; I don't have it everywhere (good by the way)
<Fire-Dragon-DoL> that's sexy
shazbotmcnasty has quit [Ping timeout: 268 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
Defenestrate has quit [Quit: Leaving]
konsolebox has joined #ruby
charliesome has joined #ruby
shazbotmcnasty has joined #ruby
dionysus69 has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
shazbotmcnasty has quit [Ping timeout: 258 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
jrabe has quit []
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
harfangk has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
jrabe has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 255 seconds]
shazbotmcnasty has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
AnoHito has quit [Quit: Leaving]
ramfjord has joined #ruby
ta_ has joined #ruby
workmad3 has joined #ruby
AnoHito has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
tomphp has joined #ruby
plexigras has joined #ruby
Rouge has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
cognoscente has joined #ruby
zanoni has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
AnoHito has quit [Quit: Leaving]
cognoscente has quit [Ping timeout: 260 seconds]
shazbotmcnasty has joined #ruby
jeanlinux has quit [Remote host closed the connection]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
shazbotmcnasty has joined #ruby
ferr has joined #ruby
jottr_ is now known as jottr
AnoHito has joined #ruby
rabajaj has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
shinnya has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
ledestin has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
shazbotmcnasty has joined #ruby
GodFather has joined #ruby
yeticry_ has quit [Read error: Connection reset by peer]
ferr has left #ruby ["WeeChat 1.9.1"]
sightes has joined #ruby
kitsunenokenja has joined #ruby
kitsunenokenja has quit [Client Quit]
sightes has quit [Client Quit]
shazbotmcnasty has quit [Ping timeout: 250 seconds]
c_nick has joined #ruby
biberu has quit []
Hexafox[I] has quit [Ping timeout: 258 seconds]
<c_nick> i want to test a C++ Dll and have decided to do the testing in Ruby .. I can see "IApplication.dll", "Application.ole" dont know what they are ..
shazbotmcnasty has joined #ruby
c_nick has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rick_ has joined #ruby
<Rick_> Hello I need help in ruby on rails
ta_ has quit [Ping timeout: 240 seconds]
<apeiros> ?rails Rick_
<ruby[bot]> Rick_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
banisterfiend has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
nofxx has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
Mia has joined #ruby
apparition has joined #ruby
gnufied has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has joined #ruby
shazbotmcnasty has joined #ruby
FahmeF has quit [Remote host closed the connection]
FahmeF has joined #ruby
jeanlinux has joined #ruby
InfinityFye has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
c_nick has joined #ruby
hutch34 has joined #ruby
yeticry has joined #ruby
Rick_ has quit [Ping timeout: 260 seconds]
harfangk has quit [Ping timeout: 250 seconds]
rippa has quit [Ping timeout: 255 seconds]
shazbotmcnasty has joined #ruby
c_nick has quit [Quit: ciaos]
Azure|dc has joined #ruby
shazbotmcnasty has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
ta_ has joined #ruby
valeth has joined #ruby
gnufied has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pb122 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
Roa has quit [Ping timeout: 255 seconds]
shazbotmcnasty has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
DTZUZU has joined #ruby
DTZUZU2 has quit [Ping timeout: 248 seconds]
konsolebox has joined #ruby
xlegoman has joined #ruby
bmurt has joined #ruby
ferr has joined #ruby
<ferr> Hey, what is the normal practice to test the ruby gem on development? With Rails I use Rails console. With IRB how do I include my not published gem?
uZiel has joined #ruby
bmurt has quit [Client Quit]
deadnull has joined #ruby
deadnull has quit [Client Quit]
shazbotmcnasty has joined #ruby
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
<apeiros> ferr: irb -Ilib -ryourgem
<apeiros> same with pry
sagax has quit [Quit: Konversation terminated!]
<ferr> thanks apeiros
<apeiros> pry also has --gem I believe
xlegoman has joined #ruby
<apeiros> personally I have code in my pryrc which loads the lib dir in pwd and a single .rb file from the lib dir (since my gems follow the strict pattern of namespacing everything and thus having only a single .rb file in the top lib dir)
shazbotmcnasty has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
banisterfiend has joined #ruby
Puffball has joined #ruby
Ltem has quit [Quit: Leaving]
iamarun has joined #ruby
kapil___ has joined #ruby
shazbotmcnasty has joined #ruby
ta_ has joined #ruby
goyox86_ has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
herbmillerjr has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 255 seconds]
mrgrieves has quit [Ping timeout: 248 seconds]
gnufied has joined #ruby
darkmorph has joined #ruby
darkmorph is now known as kitsunenokenja
allcentury has quit [Remote host closed the connection]
allcentury has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeshurun has quit [Remote host closed the connection]
aScottishBoat has joined #ruby
goyox86_ has quit [Ping timeout: 248 seconds]
goyox86_ has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
shazbotmcnasty has joined #ruby
ta_ has quit [Remote host closed the connection]
sepp2k has joined #ruby
jeanlinu_ has joined #ruby
goyox86_ has left #ruby [#ruby]
apparition has quit [Quit: Bye]
jeanlinux has quit [Ping timeout: 260 seconds]
shazbotmcnasty has quit [Ping timeout: 268 seconds]
goyox86_ has joined #ruby
PaulCape_ has quit [Quit: .]
mrgrieves has joined #ruby
hopsoft has joined #ruby
hopsoft has quit [Client Quit]
Mia has quit [Read error: Connection reset by peer]
bjaxxen has joined #ruby
bjaX has quit [Ping timeout: 248 seconds]
shazbotmcnasty has joined #ruby
hopsoft has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
shazbotmcnasty has quit [Ping timeout: 258 seconds]
sightes has joined #ruby
valeth1 has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
valeth has quit [Ping timeout: 248 seconds]
hurricanehrndz has joined #ruby
ferr has quit [Quit: WeeChat 1.9.1]
murosai has quit [Read error: Connection reset by peer]
snickers has joined #ruby
shazbotmcnasty has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
hightower2 has joined #ruby
sightes has quit [Quit: WeeChat 1.9.1]
allcentury has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
sucks has joined #ruby
FahmeF has quit [Ping timeout: 260 seconds]
sucks has left #ruby ["Leaving"]
sucks has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
hurricanehrndz has joined #ruby
pb122 has joined #ruby
mim1k has joined #ruby
shazbotmcnasty has joined #ruby
thinkpad has quit [Ping timeout: 268 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
allcentury has quit [Ping timeout: 248 seconds]
mrgrieves has quit [Ping timeout: 260 seconds]
mrgrieves has joined #ruby
pachet has joined #ruby
shazbotmcnasty has joined #ruby
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
allcentury has joined #ruby
danielpclark has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 248 seconds]
pb122 has quit [Read error: No route to host]
sucks has quit [Remote host closed the connection]
sucks has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
iamarun has quit [Remote host closed the connection]
ta_ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
sucks has quit [Ping timeout: 240 seconds]
Rouge has joined #ruby
allcentury has joined #ruby
dstrunk has joined #ruby
shazbotmcnasty has joined #ruby
allcentury has quit [Ping timeout: 268 seconds]
dgsntro has joined #ruby
kitsunenokenja has quit [Ping timeout: 255 seconds]
ta_ has quit [Remote host closed the connection]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
mrgrieves has quit [Ping timeout: 248 seconds]
mrgrieves has joined #ruby
ski7777 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
rabajaj has joined #ruby
Mutter has joined #ruby
badeball has joined #ruby
badeball has quit [Client Quit]
jamesaxl has quit [Read error: Connection reset by peer]
shazbotmcnasty has joined #ruby
jamesaxl has joined #ruby
cschneid_ has joined #ruby
badeball has joined #ruby
badeball has quit [Client Quit]
Mutter has quit [Ping timeout: 248 seconds]
badeball has joined #ruby
foamz__ is now known as foamz
InfinityFye has quit [Quit: Leaving]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
ski7777 has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
kapil___ has joined #ruby
konsolebox has joined #ruby
eightlimbed has joined #ruby
shazbotmcnasty has joined #ruby
quarters has joined #ruby
<apeiros> *sob*, it's this time of the year again - nokogiri fails to bundle on high sierra.
<apeiros> (not a request for help, just venting)
<apeiros> newest version
snickers has joined #ruby
* lupine passes a debian iso over
mjolnird has quit [Remote host closed the connection]
<apeiros> aha! had an old bundle-config which seems to have interfered.
<apeiros> so not nokogiri's fault but mine for not remembering global configs :<
<apeiros> lupine: debian? srsly? :D
snickers has quit [Client Quit]
<lupine> well, I'm not about to suggest centos
<apeiros> if, then I'd try my luck with docker, and then with some minimalistic distro
shazbotmcnasty has quit [Ping timeout: 248 seconds]
eightlimbed has quit [Ping timeout: 248 seconds]
<apeiros> don't know what the current rave is in that regard. last I heard it was alpine linux I think?
<lupine> you'd never run that on a real machine though
Ltem has joined #ruby
<apeiros> no, you'd run it in a docker container
<lupine> I'm de-dockerising :) basically nothing personal uses it any more
<lupine> it's all plain debian on real hardware these days
<apeiros> mind talking about it over in #ruby-offtopic? I'm quite interested…
orbyt_ has joined #ruby
bmurt has joined #ruby
DTZUZU has quit [Quit: WeeChat 1.9]
nofxx has joined #ruby
Dimik has joined #ruby
dviola has joined #ruby
hopsoft has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scientes has joined #ruby
yabbes has joined #ruby
techn1cs has quit [Remote host closed the connection]
Rouge has quit [Ping timeout: 255 seconds]
lxsameer has joined #ruby
shazbotmcnasty has joined #ruby
DTZUZU has joined #ruby
bjaX has joined #ruby
bjaX has quit [Client Quit]
shazbotmcnasty has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
bjaxxen has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
Immune has joined #ruby
kitsunenokenja has joined #ruby
mson has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
shazbotmcnasty has joined #ruby
<apeiros> lupine: no time to talk? :<
<lupine> apeiros: sorry, completely missed the invite
<apeiros> :D
<apeiros> no worries
eightlimbed has joined #ruby
scientes has quit [Ping timeout: 248 seconds]
aScottishBoat has quit [Quit: aScottishBoat]
shazbotmcnasty has quit [Ping timeout: 260 seconds]
uZiel has quit [Ping timeout: 248 seconds]
hanmac has joined #ruby
lytol has joined #ruby
shazbotmcnasty has joined #ruby
zautomata1 has quit [Quit: WeeChat 1.7]
zautomata has joined #ruby
mrgrieves has quit [Ping timeout: 240 seconds]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Remote host closed the connection]
Technodrome has joined #ruby
cschneid_ has joined #ruby
mrgrieves has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
cschneid_ has quit [Ping timeout: 255 seconds]
shazbotmcnasty has joined #ruby
pb122 has joined #ruby
selim has quit [Ping timeout: 248 seconds]
nofxx_ has joined #ruby
selim has joined #ruby
mrgrieves has quit [Ping timeout: 240 seconds]
nofxx has quit [Read error: Connection reset by peer]
lytol has quit [Remote host closed the connection]
shazbotmcnasty has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
troulouliou_dev has joined #ruby
Rouge has joined #ruby
mrgrieves has joined #ruby
dgsntro has quit [Quit: Connection closed for inactivity]
hinbody has quit [Quit: leaving]
millz has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
rabajaj has quit [Remote host closed the connection]
shazbotmcnasty has joined #ruby
mrgrieves has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
shazbotmcnasty has quit [Ping timeout: 255 seconds]
jackjackdripper has joined #ruby
astronavt has joined #ruby
dviola has quit [Ping timeout: 255 seconds]
shazbotmcnasty has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
hailey27 has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
dviola has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
pachet has quit [Read error: Connection reset by peer]
pachet has joined #ruby
ta_ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 260 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rouge has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
mark[oz] has joined #ruby
gone_haywire has joined #ruby
mark[oz] has quit [Client Quit]
mrgrieves has joined #ruby
gone_haywire has quit [Remote host closed the connection]
gone_haywire has joined #ruby
shazbotmcnasty has joined #ruby
hinbody has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
mrgrieves has quit [Ping timeout: 248 seconds]
nowhere_man has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
shazbotmcnasty has quit [Ping timeout: 255 seconds]
mrgrieves has joined #ruby
jottr has joined #ruby
cdg has joined #ruby
workmad3 has joined #ruby
tomphp has joined #ruby
astronavt has quit [Quit: Leaving...]
hinbody has quit [Quit: leaving]
workmad3 has quit [Ping timeout: 260 seconds]
shazbotmcnasty has joined #ruby
scientes has joined #ruby
scientes has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
mim1k has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Mutter has joined #ruby
jamesaxl has quit [Client Quit]
scientes has quit [Ping timeout: 258 seconds]
Mutter has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shazbotmcnasty has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
eightlimbed has quit [Remote host closed the connection]
mrgrieves has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 258 seconds]
shazbotmcnasty has joined #ruby
mrgrieves has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
char_var[buffer] has quit [Ping timeout: 248 seconds]
maxsong123 has joined #ruby
eroux has joined #ruby
TheRealMattM has quit [Ping timeout: 248 seconds]
griffindy has joined #ruby
TheRealMattM has joined #ruby
jottr has joined #ruby
Technodrome has joined #ruby
griffindy has quit [Client Quit]
bkxd has joined #ruby
<havenwood> maxsong123: i hope http://some-service.com/login means https://some-service.com/login ;-)
maxsong123 has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
cschneid_ has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Ping timeout: 248 seconds]
kculpis has joined #ruby
<havenwood> Have you considered encrypted cookies as an option for storing the token? Could you store the token in a server-side session?
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
kculpis has quit [Max SendQ exceeded]
kculpis has joined #ruby
kculpis has quit [Max SendQ exceeded]
kculpis has joined #ruby
houhoulis has quit [Remote host closed the connection]
dionysus69 has quit [Quit: dionysus69]
kculpis has quit [Max SendQ exceeded]
kculpis has joined #ruby
kculpis has quit [Max SendQ exceeded]
kculpis has joined #ruby
Mutter has joined #ruby
Mutter has quit [Client Quit]
kculpis has quit [Max SendQ exceeded]
kculpis has joined #ruby
kculpis has quit [Remote host closed the connection]
kculpis has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bkxd has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
sepp2k1 has joined #ruby
pachet has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
mson has quit [Quit: Connection closed for inactivity]
enterprisey has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
jottr has joined #ruby
HTTP___GK1wmSU has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
HTTP___GK1wmSU has left #ruby [#ruby]
cagomez has joined #ruby
shazbotmcnasty has joined #ruby
jackjackdripper has joined #ruby
shazbotmcnasty has quit [Ping timeout: 250 seconds]
orbyt_ has quit [Read error: Connection reset by peer]
mson has joined #ruby
matti__ has quit [Quit: Reconnecting]
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
shazbotmcnasty has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
shazbotmcnasty has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
<_sfiguser> hello all, can jekyll be used to make websites which are static but not blogs ?
workmad3 has joined #ruby
Ltem has quit [Quit: Leaving]
hailey27 has joined #ruby
hailey27 has quit [Client Quit]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astronavt has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
shazbotmcnasty has joined #ruby
<RickHull> sure
troulouliou_dev has quit [Quit: Leaving]
gix has quit [Ping timeout: 248 seconds]
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
dstrunk has joined #ruby
knight33 has joined #ruby
nofxx__ has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
gix has joined #ruby
knight33 has quit [Client Quit]
nofxx_ has quit [Ping timeout: 240 seconds]
m4rCsi has joined #ruby
gix has quit [Ping timeout: 255 seconds]
nawi_is has joined #ruby
gix has joined #ruby
DTZUZO has joined #ruby
Luiz_Navarro has joined #ruby
shazbotmcnasty has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
mtkd has quit [Read error: Connection reset by peer]
<nawi_is> Hello, I am new to coding and ruby. To start I tried to build the gem rpeg-markdown (markdown works) on OpenBSD with Ruby 2.4.2 which failed with the message *** Parse error in /usr/local/lib/ruby/gems/2.4/gems/rpeg-markdown-1.4.6/ext: Need an operator in '' (Makefile:85) has someone a idea ?
mtkd has joined #ruby
gizmore has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
<RickHull> nawi_is: can you paste more output to a paste site? include the command you ran, and all the ouput please
<nawi_is> yes, one moment
PaulCapestany has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
mrconfused has joined #ruby
mim1k has joined #ruby
p0s1x has joined #ruby
<nawi_is> RickHull: https://pastebin.com/XMgEew4F
<ruby[bot]> nawi_is: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/f99a8e18f64f6dc63afa8e8d5e234832
<ruby[bot]> nawi_is: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
zanoni_ has joined #ruby
<nawi_is> RickHull: is the error related to glib ?
quarters has quit [Remote host closed the connection]
<RickHull> dunno, the error makes it sound like make isn't happy with the Makefile
<RickHull> maybe BSD make vs GNU make?
Luiz_Navarro has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 260 seconds]
<RickHull> or maybe the error handling for lack of glib is goofed?
<nawi_is> there is no glib on OpenBSD but a glib2
<RickHull> can you examine the Makefile?
<RickHull> i think the error output shows the path to it
<nawi_is> yes
<RickHull> see if it looks ok, and/or paste it :)
jottr has joined #ruby
<RickHull> use gist.github.com -- and you can update your existing pastes
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> not sure if you have to be logged in for that
bmurt has joined #ruby
thinkpad has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
<Kilo`byte> i have a year and a week number. How do i get a date from that
<Kilo`byte> like, for the first day of said week
goyox86_ has quit [Quit: goyox86_]
<nawi_is> RickHull: the paths in the CFLAGS are there on the system but I see no LDFLAGS
<RickHull> not sure off the top of my head
<Kilo`byte> yeah, haven't found any way
<RickHull> Kilo`byte: you should be able to get the the first day of any year, and do arithmetic with 7
<Kilo`byte> that would have been my backup plan
<Kilo`byte> because then i need to do arithmetic to get start/end of week
<RickHull> look at Date.commercial
<RickHull> it constructs a date based on year, week_num, day_num
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> nawi_is: not sure -- can you run make over it?
bkxd has joined #ruby
<Kilo`byte> RickHull: ah that sounds exactly like what i need
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<nawi_is> RickHull: I have to look at a clean install for it. What I know is, that pkg_config is pkg-config. If I pass the Flags manually I get a new error but my MakeFile is gone.
codetrane has joined #ruby
codetrane has quit [Remote host closed the connection]
evie_hammond has quit [Ping timeout: 268 seconds]
<nawi_is> RickHull: now I get No such file or directory - getcwd
zanoni has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
codetrane has joined #ruby
shazbotmcnasty has quit [Ping timeout: 260 seconds]
^mtkd has quit [Ping timeout: 255 seconds]
bkxd has quit [Ping timeout: 248 seconds]
codetrane has quit [Remote host closed the connection]
shazbotmcnasty has joined #ruby
<RickHull> that sounds like your current dir (in your shell) got overwritten
<RickHull> but not sure, maybe someone else knows more. I would still paste your Makefile
jackjackdripper has quit [Quit: Leaving.]
<nawi_is> RickHull: like that, I opened a new terminal and the Makefile was there. a make Makefile brings the same error
m4rCsi has quit [Read error: Connection reset by peer]
<jidar> "hey guys, when I do X Y happens, can anybody explain how?" "well we need to understand X, and haven't been provided with the content" "now cwd doesn't work???"
<nawi_is> RickHull: I will try that once again and post the Makefile later, thanks for your help.
evie_hammond has joined #ruby
guardianx has joined #ruby
ogres has joined #ruby
knight33 has joined #ruby
hopsoft has joined #ruby
cagomez has quit [Remote host closed the connection]
knight33 has quit [Client Quit]
jottr has quit [Ping timeout: 268 seconds]
cagomez has joined #ruby
nawi_is has quit [Quit: leaving]
naprimer2 has joined #ruby
aroaminggeek has joined #ruby
knight33 has joined #ruby
shazbotmcnasty has quit [Ping timeout: 248 seconds]
mini_ has joined #ruby
naprimer has quit [Ping timeout: 248 seconds]
<mini_> hey
<mini_> is there anyone who could help me ?
<RickHull> ?anyone
<ruby[bot]> Just ask your question, if anyone has, is or can, they will respond.
cagomez has quit [Ping timeout: 260 seconds]
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
shazbotmcnasty has joined #ruby
p0s1x has joined #ruby
workmad3 has joined #ruby
Hexafox[I] has joined #ruby
nawi_is has joined #ruby
p0s1x has quit [Client Quit]
<havenwood> mini_: Ruby questions are welcome. Ask away!
guardianx has quit [Read error: Connection reset by peer]
guardianx has joined #ruby
<RickHull> what's a good way to invoke a gem's rake tasks?
Hexafox[I] has quit [Read error: Connection timed out]
Hexafox[I] has joined #ruby
hutch34 has joined #ruby
<mini_> havenwood im preparing my file with question
<nawi_is> The Makefile is here https://gist.github.com/anonymous/366799529a025323f62a4fe8238f3625 no registration is required.
shazbotmcnasty has quit [Ping timeout: 260 seconds]