<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…]
<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
<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?
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
<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
<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
<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?
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]
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
<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