havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.3, 2.4.5, 2.3.8, 2.6.0-preview3: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
gix has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
akosednar has joined #ruby
NpcOrangeManBad is now known as OrangeManBad
arescorpio has joined #ruby
venmx has quit [Ping timeout: 244 seconds]
akosednar has quit [Ping timeout: 245 seconds]
patr0clus has joined #ruby
akosednar has joined #ruby
ansraliant has joined #ruby
white_lilies has quit [Ping timeout: 246 seconds]
Exuma has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
sanscoeu_ has joined #ruby
sanscoeur has quit [Ping timeout: 245 seconds]
sanscoeu_ has quit [Ping timeout: 252 seconds]
exchgr has quit [Ping timeout: 244 seconds]
exchgr has joined #ruby
phaul has quit [Ping timeout: 244 seconds]
RougeR has joined #ruby
mzo has quit [Remote host closed the connection]
millerti has quit [Ping timeout: 272 seconds]
Inside has quit [Disconnected by services]
weaksauce has joined #ruby
code_zombie has quit [Quit: Leaving]
cahoots has quit [Ping timeout: 240 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CrazyEddy has joined #ruby
dviola has quit [Quit: WeeChat 2.3]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tdy has quit [Ping timeout: 268 seconds]
_whitelogger has joined #ruby
Dimik has joined #ruby
arescorpio has quit [Quit: Leaving.]
bmurt has joined #ruby
AJA4350 has quit [Remote host closed the connection]
tdy has joined #ruby
nahra has quit [Remote host closed the connection]
nchambers has joined #ruby
esrse has joined #ruby
sshock has joined #ruby
patr0clus has quit [Ping timeout: 252 seconds]
cd has joined #ruby
cd has quit [Client Quit]
cd has joined #ruby
sshock has left #ruby [#ruby]
nahra has joined #ruby
darkhanb has joined #ruby
rivalomega has quit []
tonyhb has joined #ruby
Xiti has quit [Quit: Xiti]
venmx has joined #ruby
Xiti has joined #ruby
za1b1tsu has joined #ruby
tonyhb has quit [Quit: Page closed]
white_lilies has joined #ruby
nchambers has quit [Ping timeout: 268 seconds]
nchambers has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has quit [Ping timeout: 252 seconds]
braincrash has quit [Quit: bye bye]
_whitelogger has joined #ruby
braincrash has joined #ruby
roshanavand1 has joined #ruby
teardown has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
nowhereman is now known as Guest24308
roshanavand has quit [Ping timeout: 276 seconds]
roshanavand1 is now known as roshanavand
ur5us has quit [Remote host closed the connection]
mangold has quit [Quit: This computer has gone to sleep]
MoritaShinobu has joined #ruby
kapil____ has joined #ruby
dellavg_ has joined #ruby
Exuma has joined #ruby
Exuma has quit [Client Quit]
Guest53511 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest53511 has quit [Ping timeout: 246 seconds]
venmx has quit [Ping timeout: 268 seconds]
Exuma has joined #ruby
za1b1tsu has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
za1b1tsu has joined #ruby
eckhardt_ has joined #ruby
Dimik has quit [Ping timeout: 272 seconds]
nchambers has quit [Quit: WeeChat 2.2]
houhoulis has quit [Remote host closed the connection]
<hays> how should i implement equality tests for a class
<hays> I guess I can define ==, but this means I need to make the internals public.. which isn't a bad thing per se, but just want to make sure im headed in the right direction here
<havenwood> hays: It's either equal or not? There's not greater than, less than, etc?
dellavg_ has quit [Ping timeout: 244 seconds]
<havenwood> hays: Defining #== makes sense if you want to check `==` and `!=`.
<hays> well, lets just say its equality
<havenwood> hays: If you want more comparisons, `include Comparable` and define #<=>.
<hays> am i correct that i'lll need to be able to make this determination through public accessors
<havenwood> hays: Usually you define a public #== method.
<hays> since def ==(other) i need access to what's in other
<havenwood> hays: You might consider also defining #eql? and #=== for your custom class, if those make sense.
aupadhye has joined #ruby
<hays> im kinda stuck on this basic question
<hays> seems ilke i need to know whats in other
<havenwood> hays: it's the method argument
<havenwood> &>> class NeverEqual; def == _; false end end; NeverEqual.new == 42
<rubydoc> # => false (https://carc.in/#/r/5i79)
<hays> very simple example https://dpaste.de/yEhX
<hays> i think im missing something very basic here
<havenwood> hays: ah, I see what you're asking
<havenwood> hays: you can use meta-programming to get at private methods, when that makes sense
<havenwood> hays: other.send(:a)
<havenwood> or
<hays> but also there are things like 1==1.0
<havenwood> other.instance_method_get(:@a)
asphyxia has quit [Quit: Lost terminal]
<hays> ok, ill read about send and instance_method_get
Inline has quit [Quit: Leaving]
<havenwood> hays: yes, that's where you also might define #eql?, since: 1.eql?(1.0) #=> false
<havenwood> hays: you can #send if #a is private or get the instance method if there's no method at all.
<hays> but how does 1==1.0 work? it seems like your Integer needs to know the structural internals of your Float
<havenwood> hays: or respond to #to_int
jtdowney has quit [Read error: Connection reset by peer]
<hays> hmm
jtdowney has joined #ruby
<hays> yeah, that's an interesting solution
<hays> a == other.to_i or to_s or whatever might make sense
aupadhye has quit [Ping timeout: 268 seconds]
<hays> then I also should read about eql? vs ==
<hays> and then verify whether === is the same as is_a
<havenwood> hays: #to_int is a special conversion just for this case, slightly different from #to_i
<hays> is there to_str, to_flt, etc? not sure I understand that
<havenwood> hays: === is for case statements, and predicate enumerable methods, and other such implicit use
<havenwood> hays: yes
<havenwood> those are for these implicit conversions, rather than explicit use
<havenwood> (by convention and stdlib pattern)
<havenwood> core/stdlib
<hays> 1.to_flt seems undefined
<havenwood> hays: yeah, there's no #to_flt
sariyar has quit [Quit: Connection closed for inactivity]
<hays> yea, ok i see to_int and to_str
<havenwood> hays: to_int, to_str, to_ary, to_hash
aupadhye has joined #ruby
<hays> ahh i see and to_i is allowed to be approximate, or truncate
<hays> whereas to_int would not
<hays> hmm. maybe not
<hays> 1.30.to_int works
white_lilies has quit [Ping timeout: 252 seconds]
conta has joined #ruby
<hays> ok. this seems a bit mushy in my head but I think I get the general idea
<hays> I kinda think Float.to_int shouldn't be implemented
aupadhye has quit [Remote host closed the connection]
<hays> but maybe its ok, speaking more broadly, I might have Dog.to_i, that returns some sort of Dog id
<hays> but clearly shouldn't be a Dog.to_int
<hays> whereas the Float/Int thing is maybe a bit hazier, in terms of one just being a more precise, or different repressentation of the other
<hays> So it does not require like a one-to-one mapping, but just semantic similarity
reber has joined #ruby
aupadhye has joined #ruby
<hays> i came across pondering this question in a way where i have to compare two big fat json objects, and there's a lot of logic involved in how to compare the different members, right now i have a big fat block of conditional code that does the job, but was thinking of ways to clean it up
<hays> i think the right way to do it would be to JSON.parse it, then go through it and replace the raw string/int/float data with objects of appropriate type. that way comparsons would work right and be encapsulated in the classes to which they belong
<hays> not sure how JSON.generate would treat it on the way out through
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
<hays> ick. it returns the #<A:0x09340392>\ stuff
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<hays> ok, so my classes just need to implement to_json (*other)
sauvin has joined #ruby
armyriad has joined #ruby
armyriad has quit [Max SendQ exceeded]
armyriad has joined #ruby
<hays> or I guess to_json(*a, &b), although im not really sure i understand what it does with those
<hays> hmm. the ruby source code itself, i see (1) to_json with no args (2) to_json with *a or similar 3) to_json with just *
<hays> here's the ways I see it https://dpaste.de/BFiz
za1b1tsu has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
mangold has joined #ruby
venmx has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
esrse has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
djellemah has quit [Ping timeout: 252 seconds]
mangold has quit [Quit: This computer has gone to sleep]
mangold has joined #ruby
mangold has quit [Max SendQ exceeded]
mangold has joined #ruby
venmx has quit [Ping timeout: 252 seconds]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
clemens3 has joined #ruby
clemens3 has quit [Client Quit]
clemens3 has joined #ruby
RougeR has quit [Ping timeout: 252 seconds]
yohji has joined #ruby
queip has quit [Ping timeout: 268 seconds]
akosednar has quit [Ping timeout: 240 seconds]
whysthatso has joined #ruby
akosednar has joined #ruby
gix has joined #ruby
elphe has joined #ruby
akosednar has quit [Ping timeout: 240 seconds]
queip has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
akosednar has joined #ruby
joast has quit [Ping timeout: 252 seconds]
Burgestrand has joined #ruby
akosednar has quit [Ping timeout: 264 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
aufi has joined #ruby
aufi_ has joined #ruby
Nicmavr has joined #ruby
aufi_ has quit [Read error: Connection reset by peer]
elphe has joined #ruby
ansraliant has quit [Quit: My planet needs me]
aufi has quit [Ping timeout: 264 seconds]
aufi has joined #ruby
akem__ has joined #ruby
akosednar has joined #ruby
akem has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 245 seconds]
akem__ has quit [Remote host closed the connection]
akem__ has joined #ruby
elphe has joined #ruby
akem has joined #ruby
akem__ has quit [Ping timeout: 264 seconds]
elphe has quit [Ping timeout: 264 seconds]
altlock has joined #ruby
altlock has quit [Client Quit]
altlock has joined #ruby
aufi_ has joined #ruby
aufi has quit [Ping timeout: 245 seconds]
altlock has quit [Quit: altlock]
elphe has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
Guest53511 has joined #ruby
Guest53511 has quit [Client Quit]
maufart__ has joined #ruby
aufi_ has quit [Ping timeout: 252 seconds]
aupadhye has quit [Remote host closed the connection]
Burgestr_ has joined #ruby
aupadhye has joined #ruby
venmx has joined #ruby
aupadhye has quit [Client Quit]
aupadhye has joined #ruby
Burgestrand has quit [Ping timeout: 252 seconds]
aupadhye has quit [Client Quit]
aupadhye has joined #ruby
voolik has joined #ruby
aupadhye has quit [Quit: Leaving]
aupadhye has joined #ruby
apparition has joined #ruby
conta has quit [Ping timeout: 268 seconds]
paraxial has joined #ruby
lxsameer has joined #ruby
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
conta has joined #ruby
aupadhye has quit [Remote host closed the connection]
aupadhye has joined #ruby
voolik has quit [Quit: Taking a nap...]
aupadhye has quit [Remote host closed the connection]
aupadhye has joined #ruby
despai has joined #ruby
despai has quit [Client Quit]
despai has joined #ruby
jetchisel has quit [Ping timeout: 250 seconds]
AJA4350 has joined #ruby
Cthulu201 has quit [Quit: Nowhere special. I always wanted to go there.]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Cthulu201 has joined #ruby
despai has quit [Quit: ...]
meinside has joined #ruby
im0nde has joined #ruby
Dbugger has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
m27frogy has joined #ruby
LinuxKnight has quit [Remote host closed the connection]
LinuxKnight has joined #ruby
maufart__ has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 260 seconds]
voolik has joined #ruby
vondruch has joined #ruby
leafyleong has quit [Ping timeout: 272 seconds]
voolik has quit [Ping timeout: 276 seconds]
akem has quit [Remote host closed the connection]
akem has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
AJA4350 has quit [Quit: AJA4350]
nertzy has joined #ruby
joast has joined #ruby
voolik has joined #ruby
aufi has joined #ruby
aupadhye has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
gnufied has joined #ruby
yohji has quit [Ping timeout: 244 seconds]
DTZUZU has quit [Quit: WeeChat 2.2]
whysthatso has quit [Quit: whysthatso]
yohji has joined #ruby
yohji has quit [Remote host closed the connection]
Sup3rLurk has quit [Quit: WeeChat 2.2]
SuperLag has quit [Remote host closed the connection]
DTZUZU has joined #ruby
SuperLag has joined #ruby
jamied has joined #ruby
leafyleong has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
akem has quit [Remote host closed the connection]
akem has joined #ruby
DTZUZU has quit [Quit: WeeChat 2.2]
DTZUZU has joined #ruby
apparition has quit [Quit: Bye]
voolik has quit [Quit: Taking a nap...]
leafyleong has quit [Ping timeout: 252 seconds]
Inline has joined #ruby
bmurt has joined #ruby
jsc has joined #ruby
jsc is now known as status402
rippa has joined #ruby
leafyleong has joined #ruby
Xiti has quit [Quit: Xiti]
leafyleong has quit [Client Quit]
Xiti has joined #ruby
status402 has quit [Ping timeout: 272 seconds]
conta has quit [Ping timeout: 245 seconds]
status402 has joined #ruby
dmitch has joined #ruby
m27frogy has quit [Quit: ZNC - https://znc.in]
conta has joined #ruby
MoritaShinobu has quit [Ping timeout: 244 seconds]
nchambers has joined #ruby
m27frogy has joined #ruby
Xiti` has joined #ruby
Xiti` has quit [Client Quit]
akem has quit [Remote host closed the connection]
akem has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 246 seconds]
status402 has quit [Ping timeout: 250 seconds]
despai has joined #ruby
roshanavand has quit [Remote host closed the connection]
status402 has joined #ruby
voolik has joined #ruby
MoritaShinobu has joined #ruby
Xiti has joined #ruby
jetchisel has joined #ruby
altlock has joined #ruby
despai has quit [Quit: ...]
altlock has quit [Ping timeout: 250 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
queip has quit [Ping timeout: 240 seconds]
Burgestr_ has quit [Quit: Closing time!]
status402 has quit [Quit: status402]
MoritaShinobu has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has joined #ruby
lxsameer has joined #ruby
queip has quit [Read error: Connection reset by peer]
queip has joined #ruby
MoritaShinobu has joined #ruby
MoritaShinobu has quit [Max SendQ exceeded]
MoritaShinobu has joined #ruby
MoritaShinobu has quit [Max SendQ exceeded]
MoritaShinobu has joined #ruby
MoritaShinobu has quit [Max SendQ exceeded]
altlock has joined #ruby
Rapture has joined #ruby
despai has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
altlock has quit [Ping timeout: 252 seconds]
clemens3 has quit [Ping timeout: 245 seconds]
Puffball has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
Puffball has joined #ruby
jamied has joined #ruby
conta has joined #ruby
roshanavand has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maryo has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
Exuma has joined #ruby
jcarl43 has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akem has quit [Read error: Connection reset by peer]
dmitch has joined #ruby
akem has joined #ruby
cthu| has joined #ruby
bmurt has joined #ruby
darkhanb has joined #ruby
orbyt_ has joined #ruby
clemens3 has joined #ruby
phaul has quit [Ping timeout: 244 seconds]
jesfre has joined #ruby
despai has quit [Quit: ...]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
queip has quit [Read error: Connection reset by peer]
clemens3 has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 272 seconds]
clemens3_ has joined #ruby
lxsameer has joined #ruby
queip has joined #ruby
c0ncealed4 has quit [Remote host closed the connection]
c0ncealed4 has joined #ruby
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
dmitch has joined #ruby
ur5us has joined #ruby
<orbyt_> Company office network has been having a strange issue when attempting to connect to rubygems. For whatever reason, it the connection will timeout, but making the network service inactive and then re-enabling it (macOS) seems to briefly resolve the issue.
<orbyt_> Does anyone have a clue as to what might be going on? The internet works fine, it's just rubygems
cd has quit [Remote host closed the connection]
cd has joined #ruby
jamied has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
altlock has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
akem has quit [Ping timeout: 245 seconds]
lxsameer has quit [Ping timeout: 272 seconds]
jesfre has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akaiiro has quit [Remote host closed the connection]
akem has joined #ruby
jesfre has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
tag has joined #ruby
Puffball has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
ivanskie has joined #ruby
roshanavand has quit [Remote host closed the connection]
discopatrick has joined #ruby
jesfre has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
altlock has quit [Ping timeout: 252 seconds]
queip has quit [Read error: Connection reset by peer]
jesfre has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.3]
al2o3-cr has joined #ruby
jesfre has quit [Quit: Oh snap. Looks like CMD + Q got the best of me.]
emerson has quit [Quit: WeeChat 2.2]
queip has joined #ruby
emerson has joined #ruby
akaiiro has joined #ruby
<z64> hey all - i'm having some trouble making a simple pure ruby native extension. i have looked at docs and some example repos, and have `ext/mkrf_conf.rb` added to `s.extensions` & `s.files` but it does not seem to be executing
<z64> the `mkrf_conf.rb` is suppoed to install some dependencies after doing some environment checks. nothing gets installed with `bundle install`, or even something like a `puts` is not displayed
maryo has quit [Quit: Leaving]
roshanavand has joined #ruby
OrangeManBad has quit [Ping timeout: 252 seconds]
akaiiro has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
roshanavand has quit [Remote host closed the connection]
OrangeManBad has joined #ruby
roshanavand has joined #ruby
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has joined #ruby
ivanskie has quit [Read error: Connection reset by peer]
sauvin has quit [Read error: Connection reset by peer]
roshanavand has quit [Remote host closed the connection]
akaiiro has joined #ruby
eckhardt_ has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
conta has quit [Quit: conta]
akaiiro has quit [Ping timeout: 240 seconds]
BTRE has quit [Remote host closed the connection]
alicef has quit [Ping timeout: 246 seconds]
Mike11 has joined #ruby
BTRE has joined #ruby
<z64> ah nevermind i think.. it just isn't installed when running from within the gem repo itself. creating a quick dummy project with a Gemfile, bundle install builds the extension. maybe i just need to add running the ext/mkrf_conf.rb script to our dev rakefile then?
alicef has joined #ruby
im0nde has quit [Ping timeout: 252 seconds]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
ellcs has joined #ruby
Inside has joined #ruby
<Inside> Why is IRC so quiet? OH I AM NOT CONNECTED.
<Inside> :|
<al2o3-cr> that'll do it ;)
im0nde has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dbugger has quit [Ping timeout: 252 seconds]
despai has joined #ruby
DigitallyBorn has joined #ruby
ben has joined #ruby
cp_dev has joined #ruby
<ben> Are gems always libraries or do applications also get packaged as gems?
<nchambers> i've packaged applications as gems before
<nchambers> ruby-gems actually has a guide for specifically that
<ben> ah, cool, thank you
<ben> I'm a bit lost with gemfiles and gemspecs and some half-packaged scripts floating around my machine :)
voolik has quit [Quit: Taking a nap...]
roshanavand has joined #ruby
cp_dev has quit [Quit: WeeChat 1.0.1]
Dbugger has joined #ruby
kapil____ has joined #ruby
Furai has quit [Quit: WeeChat 2.3]
GodFather_ has joined #ruby
akaiiro has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
Mike11 has quit [Quit: Leaving.]
Furai has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
queip has quit [Read error: Connection reset by peer]
GodFather_ has quit [Ping timeout: 260 seconds]
despai has quit [Quit: ...]
queip has joined #ruby
icarus has joined #ruby
despai has joined #ruby
akaiiro has quit [Remote host closed the connection]
Dbugger has quit [Remote host closed the connection]
akaiiro has joined #ruby
RougeR has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
Guest24308 has quit [Ping timeout: 252 seconds]
whysthatso has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
ivanskie has joined #ruby
snickers has joined #ruby
<ivanskie> hi all
<ivanskie> i'm having an annoying issue of "WARN: Unresolved specs during Gem::Specification.reset"
<ivanskie> i've done `gem clean` and removed only the gems mentioned in the warning. and this is still popping up (standalone ruby project)
<ivanskie> maybe i should google some more. but the suggestions from what I have found, don't seem to help
DigitallyBorn has quit [Ping timeout: 245 seconds]
wickedbloodfart has joined #ruby
<ivanskie> bundle clean --force made it worse. :(
wickedbloodfart has quit [Quit: wickedbloodfart]
reber has quit [Read error: Connection reset by peer]
DarthGandalf has quit [Ping timeout: 252 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DarthGandalf has joined #ruby
eckhardt_ has joined #ruby
icarus has quit [Ping timeout: 244 seconds]
<ivanskie> somehow i've just fixed it
<ivanskie> don't know how
<Radar> magical
<ivanskie> indeed
<ivanskie> i'm putting together a TTY based gem (with thor).. and i thought i'd use awesome_print for easier to read output for logging.
<ivanskie> and then was refactoring Gemfile into gemspec for the gem. and since bundle clean --force.. it broke it somehow
<ivanskie> it adds .ap method to Logger class. and this used to work. and now it doesn't i don't get it.
<ivanskie> so im now removing awesome_print dependency entirely since its not critical
bmurt has joined #ruby
queip has quit [Read error: Connection reset by peer]
AJA4350 has joined #ruby
<ivanskie> which only means that i was doing something wrong
despai has quit [Ping timeout: 252 seconds]
im0nde has quit [Quit: im0nde]
queip has joined #ruby
ua has quit [Ping timeout: 240 seconds]
ua has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
cliluw has quit [Read error: Connection reset by peer]
phaul has quit [Ping timeout: 240 seconds]
defarge has quit [Quit: No Ping reply in 180 seconds.]
gigetoo has quit [Ping timeout: 268 seconds]
jyaworski has quit [Ping timeout: 268 seconds]
go|dfish has quit [Ping timeout: 268 seconds]
snickers has quit [Ping timeout: 268 seconds]
madhatter has quit [Ping timeout: 268 seconds]
z64 has quit [Ping timeout: 268 seconds]
jyaworski has joined #ruby
gigetoo has joined #ruby
madhatter has joined #ruby
weaksauce has quit [Read error: Connection reset by peer]
lytol has quit [Remote host closed the connection]
lytol has joined #ruby
DigitallyBorn has joined #ruby
cranq has quit [Ping timeout: 252 seconds]
TvL2386 has quit [Ping timeout: 268 seconds]
cranq has joined #ruby
gigetoo has quit [Ping timeout: 268 seconds]
gigetoo has joined #ruby
TvL2386 has joined #ruby
icarus has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
Emmanuel_Chanel has joined #ruby
blackmesa has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
donofrio_ has joined #ruby
armyriad has joined #ruby
donofrio_ has quit [Remote host closed the connection]
donofrio_ has joined #ruby
go|dfish has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
queip has quit [Read error: Connection reset by peer]
Rapture has quit [Read error: Connection reset by peer]
venmx has quit [Ping timeout: 252 seconds]
whysthatso has quit [Quit: whysthatso]
Rapture has joined #ruby
bmurt has quit [Ping timeout: 246 seconds]
Rapture has quit [Client Quit]
yokel has quit [Ping timeout: 268 seconds]
queip has joined #ruby
bmurt has joined #ruby
yokel has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 244 seconds]
r3m is now known as C-o
venmx has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
voiceftp has quit [Remote host closed the connection]
voiceftp has joined #ruby
vondruch has quit [Quit: vondruch]
Guest24308 has joined #ruby
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
venmx has quit [Ping timeout: 245 seconds]
nchambers has quit [Quit: WeeChat 2.2]
kapil____ has quit [Quit: Connection closed for inactivity]
venmx has joined #ruby
clemens3_ has quit [Ping timeout: 268 seconds]
relyks has joined #ruby
<relyks> is there way to determine what exceptions can be produced from a method?
venmx_ has joined #ruby
jetchisel has quit [Ping timeout: 245 seconds]
venmx has quit [Ping timeout: 268 seconds]
DigitallyBorn has quit [Ping timeout: 246 seconds]
queip has quit [Read error: Connection reset by peer]
blackmesa1 has joined #ruby
<Radar> relyks: what's the method?
venmx_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
<relyks> Radar: for any method? but preferably one that's not in the standard library? i'm curious how you go about handling all exceptions that might result from someone else's code
<Radar> begin; TheirCode.a_method; rescue => e; <do something with e, the exception>; end
<relyks> Radar: so there isn't a way without actually observing what exceptions are produced? nothing like calling .methods on an object to see its available methods?
<relyks> I guess that's a problem with dealing with dynamically typed code lol
<relyks> still love ruby <3
<Radar> relyks: Exceptions could happen for many, many different reasons. Maybe it's a timeout because it failed to connect to a HTTP endpoint? But maybe it's an ArgumentError because of a typo in the code. It's hard to predict exceptions. They are exceptional.
<Radar> It is not possible to predict.
<relyks> yeah, true, but perhaps a method throws specific exception classes created by the maintainer
<relyks> but I agree
jetchisel has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
queip has joined #ruby
troulouliou_div2 has joined #ruby
emerson has quit [Quit: WeeChat 2.3]
sanscoeu_ has joined #ruby