havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: 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
raspado has quit [Quit: Leaving...]
InfinityFye has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
troys has quit [Ping timeout: 246 seconds]
montanonic has quit [Ping timeout: 255 seconds]
rustbest has quit [Quit: Page closed]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
yoongkang has quit [Quit: This computer has gone to sleep]
milardovich has quit [Remote host closed the connection]
cagomez_ has joined #ruby
Joufflu has joined #ruby
milardovich has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
milardovich has quit [Remote host closed the connection]
Cohedrin_ has quit [Client Quit]
milardovich has joined #ruby
Cohedrin_ has joined #ruby
cagomez_ has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
DETZUZU has joined #ruby
__Yiota has joined #ruby
elsevero has joined #ruby
yoongkang has joined #ruby
br0d1n has quit [Quit: Leaving]
__Yiota has quit [Client Quit]
|ifei5g00d has joined #ruby
Cohedrin_ has quit [Ping timeout: 255 seconds]
alveric has quit [Ping timeout: 248 seconds]
|ifei5good has joined #ruby
PaulCapestany has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
montanonic has joined #ruby
Cohedrin_ has joined #ruby
HoierM_ has joined #ruby
PaulCapestany has quit [Quit: .]
alveric has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
brent__ has quit [Ping timeout: 268 seconds]
meshsmith has quit [Remote host closed the connection]
dcunit3d has joined #ruby
elsevero has quit [Quit: elsevero]
<quuxman> is there an easy way to run a line in pry that generates an exception such that the debugger is called where the exception is thrown instead of having to save a breakpoint (which may be burried in a package)
ddddddd has quit [Ping timeout: 260 seconds]
AnoHito_ has quit [Read error: Connection reset by peer]
AnoHito_ has joined #ruby
d^sh has joined #ruby
AnoHito_ has quit [Read error: Connection reset by peer]
AnoHito_ has joined #ruby
ascarter has joined #ruby
d^sh_ has quit [Ping timeout: 240 seconds]
Joufflu has quit [Ping timeout: 276 seconds]
|ifei5good has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
BTRE has quit [Quit: Leaving]
ascarter has quit [Ping timeout: 260 seconds]
BTRE has joined #ruby
gusrub_ has quit []
cam27 has joined #ruby
patarr has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
<quuxman> actually in this case it'd be even better if I could do this from rspec. In addition to the exception location being burried in a package, it's also called many times before the exception occurs, so I really don't want to insert a breakpoint, which is the only method I can find in docs
Cohedrin_ has quit [Ping timeout: 240 seconds]
<quuxman> ahah, pry-rescue package
SeepingN has quit [Quit: The system is going down for reboot NOW!]
sylario has quit [Quit: Connection closed for inactivity]
cagomez has joined #ruby
patarr has quit [Ping timeout: 248 seconds]
tau has left #ruby [#ruby]
HoierM_ has quit [Remote host closed the connection]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
Cohedrin_ has joined #ruby
AnoHito has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
AnoHito_ has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TvL2386 has quit [Ping timeout: 276 seconds]
mim1k has joined #ruby
Cohedrin_ has quit [Ping timeout: 268 seconds]
TvL2386 has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 248 seconds]
arescorpio has joined #ruby
Cohedrin_ has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
Cohedrin_ has quit [Max SendQ exceeded]
Puffball has quit [Remote host closed the connection]
kculpis has joined #ruby
Cohedrin_ has joined #ruby
BlkDynmt has joined #ruby
Cohedrin_ has quit [Client Quit]
Puffball has joined #ruby
__Yiota has joined #ruby
Cohedrin_ has joined #ruby
cagomez has joined #ruby
<quuxman> for some reason the command did nothing for me, but this did work within pry: Pry::rescue { RSpec::Core::Runner.run(['spec/...']) }
Cohedrin_ has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
cagomez has quit [Ping timeout: 276 seconds]
Cohedrin_ has joined #ruby
ketan has joined #ruby
gizmore|2 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ketan has quit [Ping timeout: 260 seconds]
gizmore has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
__Yiota has quit [Client Quit]
Puffball has quit [Remote host closed the connection]
uZiel has joined #ruby
Puffball has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
milardovich has joined #ruby
Joufflu has joined #ruby
auzty has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
rfoust has joined #ruby
d^sh_ has joined #ruby
thoraxe has joined #ruby
<thoraxe> so, it's been a while since I've rubied... but I am missing something when it comes to sass and sinatra and dynamic complication of .sass
<thoraxe> or do i manually have to do something
cagomez has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
<adam12> thoraxe: What do you have so far?
<thoraxe> one sec
<thoraxe> just made a change
<thoraxe> gist in a moment
<quuxman> unfortunately this leaves me with a debugger that can't navigate the stack! So I installed pry-byebug for this, but it's incompatible with pry-rescue :-((
Joufflu has quit [Ping timeout: 248 seconds]
<adam12> quuxman: I haven't been following along - what are you trying to solve?
<thoraxe> adam12: ^^ i'm sure i'm missing something goofy
<thoraxe> just running "bundle exec rackup"
cagomez has quit [Ping timeout: 240 seconds]
<thoraxe> oh
<thoraxe> it's loading the css...
TheBloke has quit [Ping timeout: 240 seconds]
<quuxman> adam12: trying to run a debugger at the point of an exception, then examine things in scope higher in stack
<adam12> quuxman: Is this still in rspec?
<thoraxe> adam12: pebcak. thanks for the help, though! )
<thoraxe> :)
<quuxman> adam12: yes, but that's irrelevant for this new problem
<adam12> thoraxe: Glad it's working for you :)
Cohedrin_ has quit [Ping timeout: 276 seconds]
<quuxman> adam12: the problem is these two debugging functionalities come in two different packages that are incompatible with each other: pry-rescue and pry-byebug
<adam12> quuxman: Well, I'd suggest just wrapping everything in a begin/rescue/end block
<adam12> and then calling byebug there.
yoongkang has quit [Quit: This computer has gone to sleep]
<quuxman> but then byebug would be called at the top level, not in the context of the exception
Joufflu has joined #ruby
<adam12> Possibly... but you can get access to the exception. Was there something else you needed?
<quuxman> adam12: yeah, the stack
<quuxman> adam12: specifically things in scope higher in the stack that's not in the exception object
agent_white has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
<adam12> Hmm
<adam12> I wonder if the stack is unwound by then..
patarr has joined #ruby
_whitelogger has joined #ruby
patarr has quit [Ping timeout: 248 seconds]
<adam12> quuxman: I've never tried it, but byebug supports a post-mortem option. Maybe you could get by with that. byebug --post-mortem --no-stop spec-file.rb
blackwind_123 has quit [Ping timeout: 240 seconds]
<Radar> >> [ "elem1", "elem2" "elem3", "elem4" ]
<Radar> ruby-bot why hath thou forsaken me
Wsewolod has joined #ruby
cagomez has joined #ruby
<Radar> >> "did" "you" "know" "string" "concatenation" "in" "ruby" "is" "as" "easy" "as" "this" "?"
Wsewolod has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 268 seconds]
eam has quit [Changing host]
eam has joined #ruby
<eam> >> ?""""""""""""oh"
<ruby[bot]> eam: # => "\"oh" (https://eval.in/828298)
cagomez has quit [Ping timeout: 248 seconds]
<eam> >> !!!?!
<ruby[bot]> eam: # => /tmp/execpad-37ea19a99171/source-37ea19a99171:2: warning: string literal in condition ...check link for more (https://eval.in/828300)
<eam> awww
jameser has joined #ruby
lifelearner has quit [Quit: Page closed]
<eam> ruby[bot] should suppress warnings so we can do more funner things with it
<quuxman> is there some alternative to pry-byebug that does the same thing and works with Ruby2.1?
agent_white has joined #ruby
cschneid_ has joined #ruby
barx has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Bock has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfoust has quit [Quit: Textual IRC Client: www.textualapp.com]
brent__ has joined #ruby
cagomez has joined #ruby
Joufflu_Fail has joined #ruby
ledestin has joined #ruby
jameser has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
Joufflu has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
yoongkang has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
cagomez has joined #ruby
xall has joined #ruby
ascarter_ has joined #ruby
cagomez has quit [Ping timeout: 268 seconds]
barx has quit [Quit: barx]
Joufflu_WTF has joined #ruby
barx has joined #ruby
barx has quit [Client Quit]
xall has quit [Read error: Connection reset by peer]
Joufflu_Fail has quit [Ping timeout: 276 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather_ has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
brent___ has joined #ruby
ruby[bot] has joined #ruby
brent__ has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
kryptoz has joined #ruby
xall has joined #ruby
brent___ has quit [Remote host closed the connection]
brent__ has joined #ruby
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
cschneid_ has quit [Ping timeout: 258 seconds]
Nilium has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
Nilium has quit [Client Quit]
mim1k has joined #ruby
milardov_ has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
Joufflu_WTF has quit [Read error: Connection reset by peer]
Joufflu_WTF has joined #ruby
Nilium has joined #ruby
ascarter_ has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
brent__ has quit [Ping timeout: 248 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
milardov_ has quit [Remote host closed the connection]
Joufflu_WTF has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
Joufflu_WTF has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
ketan has joined #ruby
Alina-malina has quit [Ping timeout: 248 seconds]
gix has joined #ruby
V1s1ble has quit [Ping timeout: 246 seconds]
montanonic has joined #ruby
ketan has quit [Ping timeout: 255 seconds]
shakes has joined #ruby
xall_ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
xall has quit [Ping timeout: 260 seconds]
shakes has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
Alina-malina has joined #ruby
haylon has quit [Remote host closed the connection]
Joufflu_WTF has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
ferr has joined #ruby
_whitelogger_ has joined #ruby
ferr has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
sorah___ has quit [Ping timeout: 258 seconds]
montanonic has joined #ruby
_whitelogger has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 248 seconds]
RealMarc has quit [Ping timeout: 258 seconds]
sorah___ has joined #ruby
RealMarc has joined #ruby
DETZUZU has quit [Quit: WeeChat 1.9]
jenrzzz has quit [Ping timeout: 248 seconds]
jdeen has joined #ruby
<jdeen> Hi guys and gals, I got a question in Yard documentation. The Yard IRC is rather inactive so I thought of asking it here.
<jdeen> If i have a method that accepts any active record modal, how would i document the methods parameters
<jdeen> for example, i have `def log(object)` where object can be any AR model
<jdeen> would I write it using the base class `@param object [ActiveRecord::Base] blah` ?
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
umaaji has joined #ruby
mim1k has joined #ruby
comet23 has joined #ruby
<comet23> hello, i am having trouble accessing an instance variable outside of a class
<comet23> what am i doing wrong?
yoongkang has quit [Quit: This computer has gone to sleep]
<comet23> https://repl.it/JPga/0 <===== LINE 29
<comet23> 129
<comet23> like 129
Silthias1 has joined #ruby
<comet23> line*
Silthias has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 248 seconds]
yoongkang has joined #ruby
elsevero has joined #ruby
<jdeen> comet23: you need an attr_reader or attr_accessor (read and write) for it.. some thing like `attr_accessor :board`
<comet23> oh, so that's what that does
<comet23> now i finally get it
<comet23> so i can declare attr_reader on top or i can create a method for it
xall_ has quit [Ping timeout: 260 seconds]
<comet23> like the def board @board end
<comet23> method
Silthias1 has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
<comet23> empty_check = game.position_empty?(game.board, 0) <==== How do I access the 2nd argument that was passed in on another line?
Silthias has joined #ruby
yoongkang has quit [Quit: This computer has gone to sleep]
<zenspider> how do you access?? what?
V1s1ble has joined #ruby
V1s1ble has joined #ruby
V1s1ble has quit [Changing host]
anisha has joined #ruby
<zenspider> position_empty? doesn't make sense and violates encapsulation
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
yoongkang has joined #ruby
Mortomes|Train has joined #ruby
Silthias has joined #ruby
V1s1ble has quit [Ping timeout: 258 seconds]
elsevero has quit [Quit: elsevero]
uZiel has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
<baweaver> comet23: what're you trying to use empty check for?
Kuukunen- has joined #ruby
Silthias has joined #ruby
<baweaver> really position_empty? is just written wrong
nebben_ has joined #ruby
<baweaver> take out the board argument and switch board inside there to @board.
<baweaver> Also you're doing some unnecessary stuff in your code
pocketprotector- has joined #ruby
<baweaver> true and false are implied by boolean expressions
tabakhase__ has joined #ruby
<baweaver> so return true if condition can be written as just condition
JStoker has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
Hobbyboy|BNC has joined #ruby
JStoker has joined #ruby
<baweaver> ignoring the fact that position_taken? does the same thing
crayfishx_ has joined #ruby
tabakhase__ has quit [Changing host]
tabakhase__ has joined #ruby
V1s1ble has joined #ruby
V1s1ble has joined #ruby
V1s1ble has quit [Changing host]
psmolen_ has joined #ruby
pookie has joined #ruby
cschneid_ has quit [Remote host closed the connection]
ski4x7 has joined #ruby
cschneid_ has joined #ruby
aupadhye has joined #ruby
ahrs_ has joined #ruby
tris- has joined #ruby
rrichardsr3_ has joined #ruby
nebiros_ has joined #ruby
kt has joined #ruby
gigetoo_ has joined #ruby
ujjain- has joined #ruby
[spoiler] has joined #ruby
soahccc_ has joined #ruby
agrecascino_ has joined #ruby
patrontechnosoft has joined #ruby
djbkd has joined #ruby
pizzaops_ has joined #ruby
Fire-Dragon-DoL- has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
shtirlic_ has joined #ruby
sonOfRa_ has joined #ruby
web_nanners has joined #ruby
dysfigur- has joined #ruby
ikopico_ has joined #ruby
dysfigured has quit [Disconnected by services]
Silthias has joined #ruby
dysfigur- is now known as dysfigured
dukedave_ has joined #ruby
<zenspider> I *love* questions where the person asking has no actual want or need for an answer... such a good use of everyone's time
pocketprotector has quit [Ping timeout: 240 seconds]
Hobbyboy has quit [Ping timeout: 240 seconds]
Kuukunen has quit [Ping timeout: 240 seconds]
crayfishx has quit [Ping timeout: 240 seconds]
nebben has quit [Ping timeout: 240 seconds]
Meow-J has quit [Ping timeout: 240 seconds]
tabakhase has quit [Ping timeout: 240 seconds]
psmolen has quit [Ping timeout: 240 seconds]
Meow-J has joined #ruby
scorphus` has joined #ruby
olspookishmagus has quit [Ping timeout: 240 seconds]
daxroc has quit [Ping timeout: 240 seconds]
ahrs has quit [Quit: No Ping reply in 180 seconds.]
nebiros has quit [Ping timeout: 240 seconds]
ski7777 has quit [Quit: No Ping reply in 180 seconds.]
tris has quit [Ping timeout: 240 seconds]
rrichardsr3 has quit [Ping timeout: 240 seconds]
ujjain has quit [Ping timeout: 240 seconds]
omninonsense has quit [Ping timeout: 240 seconds]
soahccc has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
pizzaops has quit [Ping timeout: 240 seconds]
kt2 has quit [Quit: Quit]
agrecascino has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
shtirlic has quit [Ping timeout: 240 seconds]
Meow-J has quit [Ping timeout: 240 seconds]
ikopico has quit [Ping timeout: 240 seconds]
dukedave has quit [Ping timeout: 240 seconds]
webnanners has quit [Ping timeout: 240 seconds]
SHyx0rmZ has quit [Quit: Ping timeout (120 seconds)]
sonOfRa has quit [Quit: Bye!]
rfv has quit [Ping timeout: 240 seconds]
scorphus` has quit [Remote host closed the connection]
zzak has quit [Ping timeout: 240 seconds]
Hobbyboy|BNC is now known as Hobbyboy
Fire-Dragon-DoL- is now known as Fire-Dragon-DoL
sonOfRa_ is now known as sonOfRa
agrecascino_ is now known as agrecascino
nebben_ is now known as nebben
tris- is now known as tris
ikopico_ is now known as ikopico
gigetoo_ is now known as gigetoo
rrichardsr3_ is now known as rrichardsr3
pizzaops_ is now known as pizzaops
dukedave_ is now known as dukedave
rfv has joined #ruby
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
Meow-J has joined #ruby
zzak has joined #ruby
z3uS has quit [Ping timeout: 240 seconds]
mgorbach has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 276 seconds]
Silthias has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
mgorbach has joined #ruby
z3uS has joined #ruby
V1s1ble has quit [Ping timeout: 246 seconds]
Silthias has joined #ruby
danguita has joined #ruby
ferr has joined #ruby
scorphus has joined #ruby
scorphus is now known as 7ITABB6A7
oz has quit [Ping timeout: 240 seconds]
Joufflu has joined #ruby
oz has joined #ruby
patrontechnosoft has quit [Remote host closed the connection]
V1s1ble has joined #ruby
V1s1ble has joined #ruby
V1s1ble has quit [Changing host]
patrontechnosoft has joined #ruby
danguita has quit [Ping timeout: 248 seconds]
oleo has quit [Quit: irc client terminated!]
Silthias has quit [Ping timeout: 260 seconds]
Mortomes|Train has quit [Ping timeout: 260 seconds]
tabakhase__ is now known as tabakhase
bkxd has joined #ruby
Silthias has joined #ruby
ferr has quit [Read error: Connection reset by peer]
ferr has joined #ruby
ferr has quit [Client Quit]
priodev has quit [Ping timeout: 240 seconds]
yoongkang has quit [Quit: This computer has gone to sleep]
priodev has joined #ruby
willymox has quit [Ping timeout: 240 seconds]
willymox has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
aglorei has quit [Ping timeout: 248 seconds]
aglorei has joined #ruby
ketan has joined #ruby
yoongkang has joined #ruby
jenrzzz has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
ketan has quit [Ping timeout: 240 seconds]
cam27 has quit [Quit: cam27]
Silthias has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
wilbert has quit [Ping timeout: 268 seconds]
Morrolan has quit [Ping timeout: 240 seconds]
silverash has joined #ruby
kculpis has quit [Ping timeout: 240 seconds]
ascarter has quit [Ping timeout: 240 seconds]
danguita has joined #ruby
mrconfused has quit [Ping timeout: 276 seconds]
Silthias has quit [Ping timeout: 240 seconds]
silverash has quit [Remote host closed the connection]
Morrolan has joined #ruby
Silthias has joined #ruby
meinside has joined #ruby
djbkd has quit []
ta__ has quit [Remote host closed the connection]
<comet23> baweaver i'm just experimenting with my code
patarr has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
dcluna has quit [Ping timeout: 246 seconds]
^mtkd has joined #ruby
Silthias has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
polysics has joined #ruby
Dreamer3_ has joined #ruby
scott4000 has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 268 seconds]
dcluna has joined #ruby
<comet23> so whenever i have a logical operator i will get false or true returned?
zzxc has quit [Ping timeout: 260 seconds]
<comet23> like instead of return true if a || b i can simply do a || b ?
<comet23> baweaver
patteh has quit [Ping timeout: 260 seconds]
Dreamer3 has quit [Ping timeout: 260 seconds]
raddazong has quit [Ping timeout: 260 seconds]
Fraeon has quit [Ping timeout: 260 seconds]
Fraeon has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
patteh has joined #ruby
madhatter has joined #ruby
Mortomes|Work has joined #ruby
zzxc has joined #ruby
Ishido has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
bokayio has joined #ruby
<Radar> ?try comet23
<ruby[bot]> comet23: Why don't you try it and see for yourself?
Silthias has quit [Ping timeout: 248 seconds]
scott4000 has joined #ruby
andikr has joined #ruby
jhooker has joined #ruby
InfinityFye has joined #ruby
Silthias has joined #ruby
montanonic has quit [Ping timeout: 260 seconds]
doublemalt_ has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
Joufflu has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
muelleme_ has joined #ruby
muelleme_ has quit [Ping timeout: 240 seconds]
Lyubo1 has quit [Ping timeout: 240 seconds]
stryek_ has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
enterprisey has quit [Quit: Leaving]
xco_ has joined #ruby
Lyubo1 has joined #ruby
tau has joined #ruby
aglorei has joined #ruby
cschneid_ has joined #ruby
tvw has joined #ruby
ChaosBringer has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
nobitanobi has joined #ruby
djbkd has joined #ruby
ta_ has joined #ruby
biberu has joined #ruby
stryek has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
kryptoz has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
daxroc has joined #ruby
nOgAnOo has joined #ruby
danguita has quit [Quit: WeeChat 1.9]
djbkd_ has joined #ruby
comet23 has quit [Ping timeout: 260 seconds]
nickjj_ has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
zenspider has quit [Read error: Connection reset by peer]
zenspider has joined #ruby
charliesome_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
MyMind has joined #ruby
minimalism has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
yoongkang has quit [Quit: This computer has gone to sleep]
nickjj has quit [Ping timeout: 260 seconds]
cevett has quit [Ping timeout: 260 seconds]
cevett has joined #ruby
Sembei has quit [Ping timeout: 260 seconds]
tau has quit [Quit: shit hit it]
elsevero has joined #ruby
ltem has joined #ruby
elsevero has quit [Client Quit]
djbkd_ has quit [Remote host closed the connection]
nofxxxx has joined #ruby
nofxxx has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
antgel has joined #ruby
ddddddd has joined #ruby
MarkBilk has quit [Ping timeout: 246 seconds]
cagomez has quit [Ping timeout: 276 seconds]
mark_66 has joined #ruby
yeticry_ has joined #ruby
xco_ has quit [Quit: xco_]
MarkBilk has joined #ruby
TomyLobo2 has joined #ruby
cagomez has joined #ruby
TheBloke has joined #ruby
marr has joined #ruby
yeq has joined #ruby
ketan has joined #ruby
yeq has quit [Client Quit]
yeticry has quit [Ping timeout: 268 seconds]
yew has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
cagomez has quit [Ping timeout: 246 seconds]
pookie is now known as olspookishmagus
ketan has quit [Ping timeout: 248 seconds]
patrontechnosoft has quit [Remote host closed the connection]
romankapitonov has joined #ruby
moei has quit [Quit: Leaving...]
elsevero has joined #ruby
V1s1ble has quit [Quit: Leaving]
mikecmpbll has joined #ruby
belmoussaoui__ has joined #ruby
jameser has joined #ruby
belmoussaoui has quit [Ping timeout: 255 seconds]
Cohedrin_ has joined #ruby
oded has joined #ruby
Cohedrin_ has quit [Client Quit]
patarr has joined #ruby
nobitanobi has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
auzty has quit [Quit: Leaving]
ianfleeton has joined #ruby
davic has joined #ruby
ianfleeton has quit [Ping timeout: 240 seconds]
PatrikasZvaigzde is now known as naprimer
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
brent__ has joined #ruby
lxsameer has joined #ruby
facest has quit [Ping timeout: 240 seconds]
faces has joined #ruby
gwilkes has quit [Ping timeout: 260 seconds]
brent__ has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
ur5us has joined #ruby
danguita has joined #ruby
web_nanners has quit [Ping timeout: 255 seconds]
webnanners has joined #ruby
shinnya has joined #ruby
fghjb3567 has joined #ruby
cagomez has joined #ruby
fghjb3567 is now known as xiamian-8
xiamian-8 has quit [Client Quit]
fghjb3567 has joined #ruby
fghjb3567 is now known as ciaomi-98
ciaomi-98 has quit [Remote host closed the connection]
CrazyEddy has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 260 seconds]
CrazyEddy has joined #ruby
<Bish> how does one install jruby if he wants it
<Bish> do i need the oracle bunch?
<Bish> https://gist.github.com/anonymous/62d3ffe1e4aab9cd8ec03401275889bb will any of these gems make problems to me ?
<Bish> does one recall one which doesnt exst in jruby?
pandaant has joined #ruby
charliesome has joined #ruby
nobitanobi has quit [Remote host closed the connection]
InfinityFye has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
InfinityFye has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
danguita has quit [Quit: WeeChat 1.9]
mim1k has quit [Read error: Connection reset by peer]
belmoussaoui_ has joined #ruby
ketan has joined #ruby
danguita has joined #ruby
belmoussaoui__ has quit [Read error: Connection reset by peer]
nobitanobi has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
belmoussaoui_ has quit [Ping timeout: 240 seconds]
Puffball_ has joined #ruby
umaaji has quit [Quit: Leaving...]
Puffball has quit [Ping timeout: 246 seconds]
belmoussaoui_ has joined #ruby
milardovich has joined #ruby
<dminuoso> Bish: ruby-install
<dminuoso> Bish: And as for gems, all that don't require native extensions work out of the box. Nokogiri is one of the few that has a pure java version.
<dminuoso> But yes, you will need some JRE, but any will do as long as it runs Java 7.
<dminuoso> (Assuming JRuby 9000)
<yew> HexChat: 2.10.2 ** OS: Linux 4.8.0-58-generic x86_64 ** Distro: Ubuntu "xenial" 16.04 ** CPU: 4 x Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz (GenuineIntel) @ 1.00GHz ** RAM: Physical: 7.7GiB, 80.2% free ** Disk: Total: 3.2TiB, 85.6% free ** VGA: NVIDIA Corporation GK104 [GeForce GTX 760] ** Sound: HDA-Intel - HDA Intel PCH1: HDA-Intel - HDA NVidia ** Ethernet: Intel Corporation Ethernet Connection I217-V **
<yew> Uptime: 1h 30m 1s **
milardovich has quit [Ping timeout: 260 seconds]
polysics has quit []
yew has quit [Quit: Leaving]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
belmoussaoui_ has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
mim1k has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
belmoussaoui_ has joined #ruby
workmad3 has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
nowhere_man has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
ur5us has quit [Remote host closed the connection]
jhooker has quit [Read error: No route to host]
jhooker has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
antgel has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
romankapitonov has quit [Ping timeout: 260 seconds]
romankapitonov has joined #ruby
yoongkang has joined #ruby
nobitanobi has joined #ruby
mim1k has joined #ruby
cseder has joined #ruby
<Bish> how do i snake case cleverly
<Bish> i think thats how its called
<Bish> MessageTest => message_test
yoongkang has quit [Quit: This computer has gone to sleep]
patarr has joined #ruby
stamina has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
<dminuoso> look at the implementation under "Source: show"
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
<Bish> bleh, that looks ugly
urux has joined #ruby
<dminuoso> Bish: generally you could do: gsub!(/(.)([A-Z])/,'\1_\2').downcase
<Bish> dminuoso: thanks
<dminuoso> Bish: Well. Both should be ! or none of course. ;-)
Camusensei has joined #ruby
ahrs_ is now known as ahrs
psychicist__ has joined #ruby
mikecmpb_ has joined #ruby
cseder has quit [Quit: Textual IRC Client: www.textualapp.com]
Camusensei has left #ruby [#ruby]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
kraken has joined #ruby
kraken has quit [Client Quit]
mikecmpbll has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
Guest53682 is now known as julian
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vasyl has joined #ruby
nickjj_ is now known as nickjj
vasyl has quit [Client Quit]
tvw has quit [Ping timeout: 246 seconds]
fghjb3567 has joined #ruby
tvw has joined #ruby
chmurifree is now known as chmuri
fghjb3567 has quit [Client Quit]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
danguita has quit [Remote host closed the connection]
nowhere_man has quit [Read error: Connection reset by peer]
woodruffw has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
belmoussaoui_ has quit [Read error: Connection reset by peer]
belmoussaoui_ has joined #ruby
duderono_ has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
danguita has joined #ruby
Beams has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: bai]
mim1k has joined #ruby
Exagone313 has quit [Quit: see ya!]
antgel has joined #ruby
danguita has quit [Ping timeout: 248 seconds]
Exagone313 has joined #ruby
Beams has quit [Ping timeout: 240 seconds]
mim1k has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
oded has quit [Remote host closed the connection]
Beams has joined #ruby
mim1k has joined #ruby
urux has quit [Ping timeout: 240 seconds]
pilot_project has joined #ruby
ldnunes has joined #ruby
dru has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
pilot_project has quit [Quit: Page closed]
sniffer has quit [Ping timeout: 276 seconds]
nobitanobi has joined #ruby
mim1k has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
<dru> this may be a long shot, but I've got a child class Lifeform that inherits mixed-in module functionality from a parent class and works as expected, however if I have a second child class Slime from Lifeform those mixed in class methods seem to be gone
<dru> https://gist.github.com/drusepth/ec99e3ea1478d25b170953912a0366e6 is a culled down example of what I'm seeing, with the commands at the end having the error
<dru> any ideas on mixin gotchas that might be tripping this up?
mwlang has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
BlkDynmt has quit [Quit: BlkDynmt]
BlkDynmt has joined #ruby
mwlang_ has joined #ruby
t-recx has joined #ruby
Derperperd has quit [Ping timeout: 260 seconds]
danguita has joined #ruby
im0nde has joined #ruby
Esf has joined #ruby
Esf has quit [Client Quit]
croberts is now known as croberts-afk
cagomez has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
pandaant has quit [Remote host closed the connection]
synthroid has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
stormbytes has joined #ruby
<stormbytes> morning....
kobain has joined #ruby
<stormbytes> is there some way of saying.... 'unless x == ('foo' || 'bar' || 'baz') ?
<stormbytes> or I have to right out the whole statement 3 tiems?
<elomatreb> stormbytes: ["foo", "bar", "baz"].include?(x) ?
<stormbytes> ahh...
<stormbytes> ty
hightower2 has quit [Ping timeout: 258 seconds]
<mwlang> stormbytes: also, %w(foo bar baz).include?(x)
<stormbytes> that says the same thing, right?
<elomatreb> I kind of like the ActiveSupport .in? thingy for these situations, if you're in Rails
<elomatreb> It's a shorthand for creating arrays of Strings, yes
hs366 has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.9 Beta Build (2017/07/06) 64 Bit]
Tempesta has joined #ruby
<stormbytes> i wish javascript was half as easy on the brain as Ruby
<stormbytes> if Ruby is an iPad, Javascript (the stdlib I'm referring to here) is like a chisel and a stone tablet
hs366 has quit [Remote host closed the connection]
hs366 has joined #ruby
synthroi_ has joined #ruby
splitshot has joined #ruby
dru has quit [Ping timeout: 268 seconds]
nobitanobi has quit [Remote host closed the connection]
synthroid has quit [Ping timeout: 248 seconds]
Yxhuvud has quit [Ping timeout: 246 seconds]
<mwlang> stormbytes: if you’re doing Rails development, check out coffeescript
<stormbytes> not rails, mostly CLI's
thiru has joined #ruby
br0d1n has joined #ruby
milardovich has joined #ruby
<splitshot> I don't know what the question was, but the answer is never coffeescript.
<splitshot> Except maybe what language should I not waste my time with?
InfinityFye has joined #ruby
gomeat has joined #ruby
<gomeat> it will raise the error invalid break
mudwaf has joined #ruby
<elomatreb> There's nothing to break from, since you're not in e.g. a loop
<mudwaf> Hello, I'm attempting to pick an lvalue at random and do something to it along the lines of: (rand(2).zero? ? a : b) |= 1; that fails with "syntax error, unexpected tOP_ASGN, expecting end-of-input", so is there some other simple way to do this?
<gomeat> the error persists even if I'm in a loop https://gist.github.com/anonymous/80b7d1f86f204271bf61338e9b21ba3a
<splitshot> mudwaf, either put the entire expression into the ternary or call a method with a or b as a param
jjaii9 has joined #ruby
skweek has quit [Ping timeout: 248 seconds]
<dminuoso> mudwaf: To continue with your terminology: You cant use an rvalue as an lvalue.
<dminuoso> mudwaf: You have to duplicate the assignment expression. (This is not technically true, but the alternative is just plain ugly)
<dminuoso> Or use a hash.
<mudwaf> splitshot, my goal was to not duplicate the right-hand side. I tried the method idea, but as these are Integer instances, they're passed by value instead of by reference, so modifying one in the method doesn't affect the one outside the method.
<dminuoso> mudwaf: Everything in Ruby is passed by value.
nowhere_man has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
synthroid has joined #ruby
<mudwaf> dminuoso, what did you have in mind wrt using a hash?
<dminuoso> mudwaf: key = rand(2).zero? :a : :b; hash[key] |= 1
<dminuoso> mudwaf: key = rand(2).zero? ? :a : :b; hash[key] |= 1
anisha has quit [Read error: Connection reset by peer]
synthroi_ has quit [Ping timeout: 268 seconds]
<dminuoso> mudwaf: Other closely related alternatives are ostruct and struct
<mudwaf> I see. I'll use that; it's close enough to my intent. Thanks.
anisha has joined #ruby
mudwaf has quit [Quit: Leaving]
konsolebox has quit [Quit: .]
konsolebox has joined #ruby
<gomeat> oh I solved it passing "break" with lambda
tvw has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
<dminuoso> This feels so wrong.
<gomeat> well I need to break the loop
<dminuoso> gomeat: If you have the need to delegate control flow like that, use catch/throw.
gomeat has quit [Quit: Page closed]
<dminuoso> gomeat: It makes it clear to the outside that its expected.
<dminuoso> It's self-documentary.
croberts-afk is now known as croberts
<dminuoso> We..
<dminuoso> >> a = 1; def foo; puts a; end; foo
<ruby[bot]> dminuoso: # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/828717)
<splitshot> Using exceptions for flow control? Ick
<dminuoso> splitshot: its the other way around.
<dminuoso> splitshot: exceptions use the catch/throw mechanism.
<dminuoso> (its just hidden away very well)
<dminuoso> splitshot: Dont mistake catch/throw for exceptions.
<splitshot> You got any docs on that?
<dminuoso> splitshot: On what in particular?
<dminuoso> splitshot: catch/throw is basically just an inverted goto
<dminuoso> catch sets up a label, and throw is basically a goto
tvw has quit [Read error: Connection reset by peer]
mwlang_ has quit []
haylon has joined #ruby
ascarter has joined #ruby
ta_ has quit [Remote host closed the connection]
<dminuoso> asm>> def foo; puts a; end
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/828718
<splitshot> dminuoso, ah I see. Thanks
<dminuoso> asm>> def foo; puts a; rescue StandardError; end
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/828719
<dminuoso> splitshot: ^- as you can see, a rescue actually does kind of a `catch(:rescue)` underneath
<dminuoso> and retry is also rigged in the same way
<dminuoso> dminuoso | splitshot: catch/throw is basically just an inverted goto
<dminuoso> ^- I also forgot: _nonlocal_ goto
<splitshot> Makes sense. Thank you.
ascarter has quit [Ping timeout: 260 seconds]
tau has joined #ruby
splitshot has quit [Quit: Leaving]
sepp2k has joined #ruby
splitshot has joined #ruby
moei has joined #ruby
cam27 has joined #ruby
davic has quit [Quit: Connection closed for inactivity]
aupadhye has quit [Ping timeout: 268 seconds]
DLSteve_ has joined #ruby
mim1k has joined #ruby
jjaii9 has quit []
nebiros_ is now known as nebiros
nebiros has quit [Changing host]
gnufied has joined #ruby
nebiros has joined #ruby
nebiros has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
dcunit3d has quit [Ping timeout: 248 seconds]
mim1k has quit [Read error: Connection reset by peer]
djbjd has joined #ruby
mim1k has joined #ruby
Beams has quit [Ping timeout: 268 seconds]
dru has joined #ruby
nowhere_man has joined #ruby
mwlang has quit [Quit: mwlang]
mwlang has joined #ruby
cschneid_ has joined #ruby
nobitanobi has joined #ruby
chouhoulis has joined #ruby
griffindy has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 240 seconds]
stormbytes has left #ruby ["Textual IRC Client: www.textualapp.com"]
Derperperd has joined #ruby
jameser has joined #ruby
Derperperd has quit [Changing host]
Derperperd has joined #ruby
doublemalt_ has quit [Ping timeout: 248 seconds]
belmoussaoui_ has quit [Read error: Connection reset by peer]
belmoussaoui has joined #ruby
oleo has joined #ruby
Beams has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
truenito has joined #ruby
bkxd_ has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
doublemalt_ has joined #ruby
mim1k has joined #ruby
bkxd_ has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
mwlang has quit [Quit: mwlang]
patarr has joined #ruby
kculpis has joined #ruby
truenito has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcunit3d has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 240 seconds]
Beams has quit [Ping timeout: 248 seconds]
CrazyEddy has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
JustTheDoctor has left #ruby [#ruby]
Beams has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jameser has joined #ruby
djbjd has quit [Quit: djbjd]
jameser has quit [Client Quit]
djbjd has joined #ruby
dionysus69 has joined #ruby
kculpis has quit [Ping timeout: 276 seconds]
ltem has quit [Quit: Leaving]
<_moep_> hey
rohitpaulk has joined #ruby
<_moep_> app error: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml` (RuntimeError) <- how can I set this?
<_moep_> I remember bundle exec rake generate_secret_token was working
<_moep_> does this changed or is there a better way?
<canton7> I don't know what framework you're using, but "set these values in config/secrets.yml" seems fairly explicit, no?
<_moep_> its a redmine
<_moep_> I want to automize this process
brian_penguin has joined #ruby
<canton7> looks like a rails thing?
<_moep_> yes
cschneid_ has joined #ruby
lacuna has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
mim1k has joined #ruby
synthroid has quit [Remote host closed the connection]
troys has joined #ruby
Beams has quit [Ping timeout: 258 seconds]
unshadow has joined #ruby
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
danguita has quit [Quit: WeeChat 1.9]
cagomez has joined #ruby
dasher00 has quit [Remote host closed the connection]
minimalism has joined #ruby
synthroid has joined #ruby
ozcanesen has joined #ruby
synthroi_ has joined #ruby
raspado has joined #ruby
synthroid has quit [Ping timeout: 276 seconds]
BSaboia has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.9 Beta Build (22017/07/06-2) 64 Bit]
Tempesta has joined #ruby
elsevero has quit [Ping timeout: 260 seconds]
Yxhuvud has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
[Butch] has joined #ruby
Beams has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
rohitpaulk has quit [Ping timeout: 248 seconds]
dru has quit [Ping timeout: 246 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
jinie has quit [Client Quit]
belmoussaoui___ has joined #ruby
jinie has joined #ruby
__Yiota has joined #ruby
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has joined #ruby
doublemalt_ has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
rohitpaulk has joined #ruby
belmoussaoui has quit [Ping timeout: 240 seconds]
Beams has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
_Steve_ has joined #ruby
troys is now known as troys_
_Steve_ is now known as swills_
raspado has quit [Remote host closed the connection]
unshadow has quit [Quit: leaving]
raspado has joined #ruby
wilbert has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
amclain has joined #ruby
brian_penguin has quit [Ping timeout: 260 seconds]
* mikecmpb_ stern note to self: "this is the last time i get max{ } and max_by{ } mixed up."
mikecmpb_ is now known as mikecmpbll
<apeiros> famous last words
<apeiros> *filed under
raspado has quit [Ping timeout: 258 seconds]
wilbert has quit [Ping timeout: 248 seconds]
montanonic has quit [Ping timeout: 260 seconds]
<Papierkorb> tbh, it's infuriating that ruby never complains (by itself) when you pass a block to a non-block method
mustmodify__ has joined #ruby
<mustmodify__> Was gem the first package manager of its kind / scale?
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
<havenwood> mustmodify__: CPAN has been around for ages it seems.
<mustmodify__> hadn't heard of that one. Thanks.
<apeiros> Papierkorb: agreed
nowhere_man has joined #ruby
<apeiros> mustmodify__: ruby or all langs?
<mustmodify__> all langs
<mustmodify__> I was just talking to someone who was talking about how Ruby didn't have anything like NPM.
<apeiros> then CPAN definitively was earlier :)
<apeiros> lolwut
<apeiros> did you hit them with the cluebat a bit, I hope?
<mustmodify__> I'm about to do so. Just wanted to know exactly what level of force to use when swinging. :)
<apeiros> I'm always impressed again about how much bullshit ignoramuses can spew.
<apeiros> I'd go for around 10kT
lonewolf10 has joined #ruby
<elomatreb> Depending on what they mean it is accurate, npm (the CLI tool) does a lot more than Gem
<elomatreb> Or at least a little accurate
<havenwood> Yarn is a better copy of Bundler/RubyGems. ;-P
<Yxhuvud> cpan has been around for ages, but I know of no bundler-like solution for perl.
<apeiros> elomatreb: is that why bower and yarn were implemented? :)
<havenwood> Yxhuvud: Agreed.
_Steve_ has joined #ruby
_Steve_ has joined #ruby
_Steve_ has quit [Changing host]
<elomatreb> I was specifically thinking of the scripts functionality of npm, so it's like integrated rake?
dviola has joined #ruby
_Steve_ has quit [Remote host closed the connection]
<Yxhuvud> rubygem can (sadly) run random crap during install
<pwillard> argh... cpan is a hot mess
<apeiros> best combined with "sudo gem install"™
mark_66 has quit [Remote host closed the connection]
<havenwood> "In their desperation, The New Gods turned to The Old Gods for help. They summoned forth the Prophet Yehuda, who had defeated the demon once with The Jewelled Hammer of Bundler in the Ruby Isles and again with The Golden Cargo in the Rusted Lands."
<Yxhuvud> pwillard: someone had to be first and make all the dumb mistakes so that everone that come after learn
<pwillard> true
<elomatreb> Doesn't npm support something like deterministic lockfiles now too?
<havenwood> Nodelers are particularly adept with that path.
swills_ has quit [Remote host closed the connection]
_Steve_ has joined #ruby
_Steve_ has quit [Changing host]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
<havenwood> NPM has over $10M in venture funding now.
<apeiros> havenwood: hehe, funny write-up
mikecmpbll has quit [Quit: inabit. zz.]
<mustmodify__> elomatreb: I think the scope of Gem is just about right.
<elomatreb> Mm, given how rarely I actually use gem instead of bundler I disagree
<apeiros> Yxhuvud: if only they'd actually learn. but people prefer to reinvent dumb mistakes.
_Steve_ has joined #ruby
_Steve_ has joined #ruby
_Steve_ has quit [Changing host]
<apeiros> elomatreb: lockfiles was a great addition. rubygems can do that now too.
<havenwood> gem i -g
<apeiros> the thing that rubygems still lacks is accepting repositories like git
<havenwood> apeiros: it can do git
<elomatreb> Oh, what? That does sound nice, I have never heard of this
<apeiros> elomatreb: bundler is supposed to be integrated wholly into gems
<apeiros> it's already happening in the repo
<apeiros> havenwood: oy? do tell more!
<elomatreb> Ooh, very nice
<havenwood> apeiros: sec, i'll find the code
ascarter has joined #ruby
_Steve_ is now known as swills_
swills_ is now known as _Steve_
_Steve_ is now known as swills_
<havenwood> (PS - Fun to make gist gems.)
<apeiros> nooooiiiiice!
nicesignal has quit [Remote host closed the connection]
<apeiros> min req of rubygems?
Asher has quit [Ping timeout: 268 seconds]
nicesignal has joined #ruby
mustmodify__ has left #ruby [#ruby]
<havenwood> ships with Ruby!
<apeiros> no, I mean which version of rubygems started to support that?
<havenwood> apeiros: Ah, it was a while back. drbrain and tenderlove I believe did the commits.
<apeiros> ok
<apeiros> lovely :)
<havenwood> apeiros: Bitbucket support added by drbrain in 2014.
ascarter has quit [Ping timeout: 240 seconds]
Asher has joined #ruby
__Yiota has joined #ruby
<havenwood> It uses molinillo for resolving deps now, same as Bundler.
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
uZiel has joined #ruby
gusrub has joined #ruby
eckhardt has joined #ruby
swills_ has quit [Remote host closed the connection]
_Steve_ has joined #ruby
_Steve_ has joined #ruby
jinie has quit [Client Quit]
Guest7 has joined #ruby
<Guest7> Hi everybody
<havenwood> Guest7: hi
jinie has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<Guest7> I'm new here
<havenwood> Guest7: welcome
<Guest7> Thanks you.
djbjd has quit [Quit: djbjd]
dcunit3d has joined #ruby
_Steve_ is now known as swills_
<Guest7> I have an array problem
<Guest7> somebody could help me?
belmoussaoui___ has quit [Remote host closed the connection]
<centrx> Help you we can if a question you ask
<havenwood> Guest7: Tell use more. Have a gist of your code?
<Guest7> Yeah.
belmoussaoui_ has joined #ruby
<Guest7> array = [["B", 141], ["B", 143], ["A", 129], ["A", 144], ["A", 142], ["C", 139], ["B", 131], ["C", 130]]
dru has joined #ruby
<Guest7> array.group_by { |d| d[0] }
<Guest7> {"B"=>[["B", 141], ["B", 143], ["B", 131]], "A"=>[["A", 129], ["A", 144], ["A", 142]], "C"=>[["C", 139], ["C", 130]]}
<havenwood> Guest7: You can write that: group_by(&:first)
<havenwood> Guest7: What seems to be the problem?
<Guest7> How could you group to show me the way. {"B"=>[ 141, 143, 131], "A"=>[ 129, 144, 142], "C"=>[ 139, 130]}
dcunit3d has quit [Ping timeout: 246 seconds]
[Butch] has quit [Quit: I'm out . . .]
<havenwood> Guest7: There are many ways. Here's one: array.group_by(&:first).map { |k, array_of_tuples| [k, array_of_tuples.map(&:last)] }.to_h
<Guest7> :O
<Guest7> Perfect!
<Guest7> thanks you havenwood
<havenwood> Guest7: Here's another way: array.each_with_object(Hash.new { |hash, key| hash[key] = [] }) { |(k, v), h| h[k] << v }
gusrub has quit [Remote host closed the connection]
danguita has joined #ruby
gusrub has joined #ruby
<Guest7> Okey
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
InfinityFye has quit [Ping timeout: 255 seconds]
jinie has joined #ruby
<Guest7> Another question how to register my nickname?
coderhut has joined #ruby
danguita has quit [Client Quit]
<elomatreb> /msg NickServ HELP
<Guest7> ok
<elomatreb> Another attempt at your problem, closer to what I think your initial attempt was: https://eval.in/828834
coderhut has quit [Client Quit]
<Guest7> thanks you elomatreb
gusrub has quit [Ping timeout: 255 seconds]
Guest7 has quit [Quit: Textual IRC Client: www.textualapp.com]
zEpHiRo has joined #ruby
<zEpHiRo> :) okey I register nickname.
lxsameer has quit [Quit: WeeChat 1.7]
Ishido has quit [Ping timeout: 268 seconds]
im0nde has quit [Quit: im0nde]
freeze_ has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
ledestin has joined #ruby
boombox_ has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
swills has quit [Quit: Leaving]
swills_ is now known as swills
ledestin has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
_Noble_Turk_ has joined #ruby
iamnix has joined #ruby
petruff has joined #ruby
muelleme_ has joined #ruby
boombox_ has quit [Remote host closed the connection]
swills has quit [Remote host closed the connection]
swills has joined #ruby
swills has joined #ruby
swills has quit [Changing host]
alex`` has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
swills has joined #ruby
swills has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
t-recx has quit [Quit: t-recx]
iamnix has quit [Quit: Quit.]
rohitpaulk has joined #ruby
ketan has quit [Remote host closed the connection]
ketan has joined #ruby
agrecascino has quit [Ping timeout: 255 seconds]
d10n-work has joined #ruby
lonewolf999 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
agrecascino has joined #ruby
muelleme_ has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
milardovich has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
montanonic has joined #ruby
Cohedrin_ has joined #ruby
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
troys_ is now known as troys
lonewolf999 has quit [Quit: leaving]
mim1k has joined #ruby
Cohedrin_ has quit [Max SendQ exceeded]
d^sh_ is now known as d^sh
Cohedrin_ has joined #ruby
tau has left #ruby [#ruby]
mim1k has quit [Ping timeout: 255 seconds]
Cohedrin_ has quit [Max SendQ exceeded]
DTZUZU has quit [Quit: WeeChat 1.5]
zEpHiRo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme_ has joined #ruby
zEpHiRo has joined #ruby
muelleme_ has quit [Client Quit]
duderonomy has joined #ruby
ketan has quit [Ping timeout: 240 seconds]
Cohedrin_ has joined #ruby
Cohedrin_ has quit [Max SendQ exceeded]
mim1k has joined #ruby
zEpHiRo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
Cohedrin_ has joined #ruby
Cohedrin_ has quit [Client Quit]
^mtkd has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 248 seconds]
romankapitonov has quit [Ping timeout: 258 seconds]
ResidentBiscuit has quit [Quit: Critical Miss]
mtkd has joined #ruby
zEpHiRo has joined #ruby
SeepingN has joined #ruby
marxarelli has joined #ruby
Cohedri__ has joined #ruby
wilbert has joined #ruby
<mistym> I'm trying to diagnose a thorny extconf bug, anyone able to help point me in the right direction? https://bugs.ruby-lang.org/issues/13413
Cohedri__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t-recx has joined #ruby
mim1k has joined #ruby
Cohedri__ has joined #ruby
Joufflu has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 1.9]
tolerablyjake has joined #ruby
ltem has joined #ruby
dviola has joined #ruby
bpmedley has quit [Ping timeout: 260 seconds]
bpmedley has joined #ruby
belmoussaoui__ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Cohedri__ has quit [Ping timeout: 260 seconds]
belmoussaoui_ has quit [Ping timeout: 255 seconds]
Cohedrin_ has joined #ruby
jcast has joined #ruby
pb122 has joined #ruby
pb122 has quit [Read error: Connection reset by peer]
pb122 has joined #ruby
nobitanobi has joined #ruby
dcunit3d has joined #ruby
mim1k has joined #ruby
Bock has quit [Ping timeout: 248 seconds]
nobitanobi has quit [Ping timeout: 248 seconds]
watersoul has quit [Ping timeout: 240 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 246 seconds]
InfinityFye has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys is now known as troys_
watersoul has joined #ruby
belmoussaoui__ has quit [Ping timeout: 255 seconds]
watersoul has quit [Read error: Connection reset by peer]
romankapitonov has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
watersoul has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
watersoul has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
watersoul has joined #ruby
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
watersoul has quit [Read error: Connection reset by peer]
MyMind has quit [Ping timeout: 260 seconds]
<matthewd> mistym: That sounds painful :/ ... is it bisectable?
<mistym> matthewd: mmmmmaybe :/ I'll have to try, though given it only repros on `make install` it might take awhile to get there
pb122 has quit [Read error: Connection reset by peer]
watersoul has joined #ruby
pb122 has joined #ruby
lacuna has joined #ruby
watersoul has quit [Read error: Connection reset by peer]
zEpHiRo has quit [Quit: ZZZzzz…]
<matthewd> I guess given the comment mentioning install-rb, the maybe shorter option could be to pickaxe for changes that touch that rule
rohitpaulk has quit [Ping timeout: 248 seconds]
zEpHiRo has joined #ruby
<matthewd> I don't know enough about the build process to jump to an easy conclusion, but wouldn't be surprised if it was caused by something not actually mentioning that rule.. which is where I get to yeah, bisect seems like a huge drag but still maybe the least painful tactic
watersoul has joined #ruby
nfk has joined #ruby
ResidentBiscuit has joined #ruby
Dimik has joined #ruby
milardovich has joined #ruby
oleo has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
cagomez has joined #ruby
nfk has joined #ruby
perniciouscaffei has joined #ruby
druonysuse has joined #ruby
FastJack has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby
oleo has joined #ruby
amperry has joined #ruby
mim1k has joined #ruby
zEpHiRo has quit [Quit: ZZZzzz…]
Cohedrin_ has quit [Ping timeout: 255 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
zEpHiRo has joined #ruby
petruff has quit [Ping timeout: 260 seconds]
rubylegend2092 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 260 seconds]
ascarter has quit [Ping timeout: 260 seconds]
Cohedrin_ has joined #ruby
zEpHiRo has quit [Quit: ZZZzzz…]
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
montanonic has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 255 seconds]
<manveru> mistym: you're trying to debug this for 3 months now?
dcunit3d has joined #ruby
<mistym> manveru: Honestly, I haven't looked at it in 3 months
<manveru> :)
<mistym> But it's been bothering me for that long :b
shinnya has quit [Ping timeout: 255 seconds]
chouhoul_ has quit [Ping timeout: 260 seconds]
swills has quit [Remote host closed the connection]
swills has joined #ruby
swills has joined #ruby
swills has quit [Remote host closed the connection]
swills has joined #ruby
Immune has joined #ruby
swills has quit [Remote host closed the connection]
ketan has joined #ruby
__Yiota has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
montanonic has joined #ruby
swills has joined #ruby
marxarelli is now known as marxarelli|afk
ketan has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
troys_ is now known as troys
kirun has joined #ruby
Tharbakim has quit [Quit: Something has gone terribly wrong. Send help.]
nfk has quit [Remote host closed the connection]
cam27 has quit [Quit: cam27]
alveric has quit [Quit: WeeChat 1.9]
<manveru> well, i think a bisect is still the fastest way... even if it takes a day
alveric has joined #ruby
<manveru> can't really find any easy hints for this issue
amperry has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
ddddddd has quit [Ping timeout: 276 seconds]
alveric is now known as LordAlveric
LordAlveric has quit [Quit: WeeChat 1.9]
chouhou__ has quit [Remote host closed the connection]
alveric has joined #ruby
milardov_ has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
alveric is now known as LordAlveric
eckhardt has joined #ruby
zEpHiRo has joined #ruby
GodFather_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cagomez has joined #ruby
enterprisey has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
brent__ has quit [Remote host closed the connection]
lonewolf10 has left #ruby [#ruby]
agent_white has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
t-recx has quit [Quit: t-recx]
Dreamer3 has joined #ruby
__Yiota has quit [Ping timeout: 276 seconds]
Tharbakim has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
montanonic has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
ChaosBringer has quit [Ping timeout: 248 seconds]
dcunit3d has quit [Quit: WeeChat 1.4]
agent_white has quit [Quit: brb]
troys is now known as troys_
montanonic has joined #ruby
kirun has quit [Ping timeout: 240 seconds]
<zenspider> mistym: I'd try to reason about it. Try a non-static build and figure out why it DOES work and go from there.
brent__ has joined #ruby
centrx has quit []
agent_white has joined #ruby
<zenspider> My graph gem has a rakefile visualizer, but not a makefile visualizer, but it shouldn't be TOO hard to extend it for that... it just might help...
pb122-two has joined #ruby
pb122 has quit [Read error: Connection reset by peer]
troys_ is now known as troys
romankapitonov has joined #ruby
polysics has joined #ruby
chouhoulis has joined #ruby
synthroi_ has quit []
enterprisey has quit [Read error: Connection reset by peer]
ovaltine has quit [Ping timeout: 258 seconds]
_Noble_Turk_ has quit []
jinie_ has joined #ruby
dmtd has joined #ruby
hkdsun has quit [Ping timeout: 260 seconds]
dru has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
kkiero has joined #ruby
boombox_ has joined #ruby
ldnunes has quit [Quit: Leaving]
<bougyman> ok, so /msg manveru yeah, work got that busy.
<bougyman> heh
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
pb122 has joined #ruby
pb122-two has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
Cohedri__ has joined #ruby
Cohedrin_ has quit [Ping timeout: 276 seconds]
Cohedri__ has quit [Max SendQ exceeded]
mim1k has joined #ruby
biberu has quit []
lxsameer has joined #ruby
kkiero has quit [Quit: leaving]
Cohedr___ has joined #ruby
t-recx has joined #ruby
Cohedr___ has quit [Client Quit]
mim1k has quit [Ping timeout: 276 seconds]
<darix> mistym: why static in first place?
ecuanaso has joined #ruby
ketan has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
ketan has quit [Ping timeout: 268 seconds]
splitshot has quit [Quit: Leaving]
patarr has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
dru has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
pb122-two has joined #ruby
montanonic has quit [Ping timeout: 258 seconds]
pb122 has quit [Ping timeout: 260 seconds]
Asher has quit [Quit: Leaving.]
[Butch] has quit [Quit: I'm out . . .]
Asher has joined #ruby
ltem has quit [Quit: Leaving]
psychicist__ has quit [Ping timeout: 260 seconds]
ResidentBiscuit has quit [Read error: Connection reset by peer]
zenspider has quit [Changing host]
zenspider has joined #ruby
montanonic has joined #ruby
milardov_ has quit [Remote host closed the connection]
milardovich has joined #ruby
Dreamer3 has quit [Remote host closed the connection]
pb122 has joined #ruby
elsevero has joined #ruby
Joufflu has joined #ruby
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yoones has joined #ruby
chouhoulis has quit [Remote host closed the connection]
pb122-two has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 260 seconds]
wilbert has quit [Ping timeout: 260 seconds]
nofxxxx has quit [Remote host closed the connection]
yoones has quit [Quit: Leaving]
nofxx has joined #ruby
zenspider_ has joined #ruby
zenspider has quit [Read error: Connection reset by peer]
montanonic has quit [Ping timeout: 255 seconds]
gusrub has quit [Remote host closed the connection]
nobitanobi has joined #ruby
mim1k has joined #ruby
kkiero has joined #ruby
Tharbakim has quit [Ping timeout: 248 seconds]
Dimik has quit [Ping timeout: 248 seconds]
nobitanobi has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
<mistym> darix: It's a redistributable Ruby installation which is 100% static, so it can get dropped anywhere and work fine
bitcycle has joined #ruby
pb122 has quit [Read error: Connection reset by peer]
<bitcycle> hey all. can someone point me to a good best practice doc or tutorial on how to dev on a gem but test using the installed gem? i.e. my test harness uses the installed gem...
montanonic has joined #ruby
Tharbakim has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
hkdsun has joined #ruby
<quuxman> What does Foo.require mean? I can't find the definition in the module
naprimer has quit [Ping timeout: 240 seconds]
ecuanaso has joined #ruby
<apeiros> it means "call method require on Foo"
<apeiros> and what that does depends entirely on Foo, or anything up the method lookup chain
haylon has quit [Remote host closed the connection]
<quuxman> Foo is a module
<apeiros> so?
<apeiros> >> module Foo; def self.require; "I can do whatever"; end; end; Foo.require
<ruby[bot]> apeiros: # => "I can do whatever" (https://eval.in/829005)
<apeiros> usually require is Kernel#require
<apeiros> but it's rather weird to invoke it on Foo
<apeiros> ::Kernel.require at max if you're e.g. within a BasicObject. Otherwise I'd expect it to differ from Kernel#require.
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
<apeiros> Foo.method(:require).source_location # <-- gives you the location of the definition if it isn't a native method
<apeiros> Foo.method(:require).owner # <-- gives you the class/module which defines the first invoked method
montanonic has quit [Ping timeout: 246 seconds]
alex`` has quit [Quit: WeeChat 1.9]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 248 seconds]
troys is now known as troys_
<mistym> > /bin/sh: ./miniruby: No such file or directory
<mistym> This bisect isn't going so well
PatrikasZvaigzde has joined #ruby
<quuxman> ah, it's defined as: Array(files).each{|f| super("#{File.dirname(__FILE__).untaint}/#{"#{subdir}/" if subdir}#{f}")}
clemens3 has quit [Ping timeout: 248 seconds]
<apeiros> that looks icky
cschneid_ has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
<quuxman> that was my thought, but I wasn't going to say it
kkiero has quit [Quit: leaving]
ur5us has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
Joufflu has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
yoongkang has joined #ruby
ecuanaso has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
montanonic has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
cdg has quit [Remote host closed the connection]
alveric has joined #ruby
cdg has joined #ruby
kkiero has joined #ruby
kkiero has quit [Quit: leaving]
LordAlveric has quit [Ping timeout: 268 seconds]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
<Radar> .untaint
<Radar> what
<SeepingN> aka scalpel
<Radar> I don't understand why it's required here.
jenrzzz has quit [Ping timeout: 260 seconds]
BTRE has joined #ruby
<SeepingN> I assumed untaint was a command to remove user-entered naughty bits
ascarter has quit [Ping timeout: 260 seconds]
<Radar> User entered naughty bits on the return result of File.dirname(__FILE__)?
<Radar> quuxman: next time please show some relevant code. It makes it easier to discuss it.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
stamina has quit [Quit: WeeChat 1.9]
<quuxman> Radar: That was the entire definition of "Sequel.require(files, subdir=nil)". Relevant code would be "Sequel.require 'adapters/shared/sqlite'" or something
<Radar> quuxman: This is the first time I've seen it referred to as Sequel and not Foo.
<quuxman> Well what particular package I found that in was irrelevant. Only added it because you seemed curious
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PatrikasZvaigzde is now known as naprimer
cam27 has joined #ruby
ketan has joined #ruby
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
yoongkang has quit [Quit: This computer has gone to sleep]
SuperLag has quit [Quit: reboot]
ketan has quit [Ping timeout: 240 seconds]
mrconfused has joined #ruby
<darix> *stabs apeiros*
milardovich has joined #ruby
mim1k has joined #ruby
<quuxman> has anybody figured out a way to enter a debugger when an exception occurs, and then navigate the stack?
milardovich has quit [Ping timeout: 260 seconds]
SuperLag has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
mrconfused has quit [Ping timeout: 246 seconds]
yoongkang has joined #ruby
<Papierkorb> quuxman: "debugger"? But that's basically what the better_errors gem for rails does. You can do something similar with pry (and the stack_explorer plugin at least), and setting a TracePoint for exceptions in your applications. That way, your code will run whenever an exception is thrown (or only those not caught? don't remember), inside the stack frame
<Papierkorb> quuxman: Hackier, and less stable (I tried this one), is overriding Kernel#raise and #fail. But you should prefer TracePoint.