havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.4, 2.5.6, 2.7.0-preview1: 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!
ramfjord has quit [Ping timeout: 276 seconds]
witlesswonder has joined #ruby
weird_error has joined #ruby
salinasce has joined #ruby
Guest73128 has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest11824
jenrzzz_ has joined #ruby
elphe has joined #ruby
Skarlso has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
dasher00 has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
salinasc has quit [Ping timeout: 245 seconds]
greengriminal has joined #ruby
rafadc has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 245 seconds]
ramfjord has joined #ruby
chalkmon1 has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
chalkmonster has quit [Ping timeout: 240 seconds]
chalkmon1 has quit [Client Quit]
decayingsn0w has quit [Remote host closed the connection]
hutch1 has joined #ruby
bambanx has joined #ruby
weird_error has quit [Quit: weird_error]
Guest11824 has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest98676
chalkmonster has joined #ruby
hutch1 has quit [Ping timeout: 246 seconds]
Guest98676 has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
poontangmessiah_ has quit [Read error: Connection reset by peer]
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
fphilipe_ has joined #ruby
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 265 seconds]
fphilipe_ has quit [Ping timeout: 276 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
duderon__ has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
bambanx has quit [Quit: Leaving]
chalkmon1 has quit [Quit: WeeChat 2.6]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
chalkmonster has joined #ruby
reyfi9e has joined #ruby
salinasce has quit [Ping timeout: 240 seconds]
<havenwood> &>> require 'socket'; Socket.ip_address_list.find(&:ipv4_private?).ip_address
<rubydoc> stderr: playpen: application terminated abnormally with signal 31 (Bad system call) (https://carc.in/#/r/7o89)
<havenwood> fair
<havenwood> I kinda want a shortcut for that you ^ but I guess ipv6 and such...
<havenwood> A coworker was showing off node publishing local network addy and got jealous.
chalkmonster has quit [Quit: WeeChat 2.6]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
chalkmonster has joined #ruby
jenrzzz has joined #ruby
hutch1 has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
xco has quit [Quit: xco]
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
etupat has joined #ruby
duderonomy is now known as Guest45198
etupat has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 268 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
chalkmonster has joined #ruby
etupat has joined #ruby
chalkmonster has quit [Client Quit]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mrgoose8457 has joined #ruby
jenrzzz has joined #ruby
thebananaking has joined #ruby
etupat has quit [Remote host closed the connection]
drincruz has joined #ruby
Guest45198 has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest10014
etupat has joined #ruby
chalkmonster has joined #ruby
fphilipe_ has joined #ruby
mroutis has joined #ruby
Guest10014 has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
fphilipe_ has quit [Ping timeout: 276 seconds]
duderono_ has quit [Read error: Connection reset by peer]
dudero___ has joined #ruby
dudero___ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
mroutis has quit [Quit: leaving]
endemic has joined #ruby
greengriminal has joined #ruby
jmcgnh has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jmcgnh has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
xco has joined #ruby
kyrylo has joined #ruby
stryek has quit [Quit: Connection closed for inactivity]
chalkmonster has quit [Quit: WeeChat 2.6]
gix- has joined #ruby
gix has quit [Disconnected by services]
elcontrastador has joined #ruby
rafadc has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
<elcontrastador> hey guys...what's the best automated way to make a single ruby file exec file from a library of many required files?
drincruz has quit [Ping timeout: 268 seconds]
hutch1 has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
hutch1 has joined #ruby
dellavg has joined #ruby
cow[moo] has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
ramfjord has joined #ruby
jmcgnh has quit [Ping timeout: 268 seconds]
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
cd has quit [Quit: cd]
ramfjord has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
brool has quit [Ping timeout: 250 seconds]
hutch1 has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
xco has quit [Quit: xco]
jenrzzz has quit [Ping timeout: 268 seconds]
rippa has joined #ruby
Skarlso has joined #ruby
dellavg has quit [Ping timeout: 240 seconds]
chalkmonster has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
MrCrackPotBuilde has quit [Quit: Something went wrong again oh the joys]
MrCrackPot has joined #ruby
jenrzzz has joined #ruby
dionysus69 has joined #ruby
etupat has quit [Remote host closed the connection]
SeepingN has joined #ruby
_mossplix has quit [Remote host closed the connection]
x86sk has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
schne1der has joined #ruby
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
andikr has joined #ruby
rafadc has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
tdy1 has quit [Ping timeout: 265 seconds]
_mossplix has joined #ruby
fphilipe_ has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
hiroaki has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
fig-le-deunch has joined #ruby
fig-le-deunch has quit [Read error: Connection reset by peer]
fig-le-deunch has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
krl has joined #ruby
<markand> ruby is so expressive and beautiful
<markand> quite happy to learn it instead of python
duderono_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 276 seconds]
duderonomy has joined #ruby
duderon__ has quit [Quit: Textual IRC Client: www.textualapp.com]
duderonomy is now known as Guest63832
_mossplix has quit [Remote host closed the connection]
tdy1 has joined #ruby
_mossplix has joined #ruby
_mosspli_ has joined #ruby
_mossplix has quit [Read error: Connection reset by peer]
fig-le-deunch has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
dbugger has joined #ruby
blackmesa has joined #ruby
Guest63832 has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
blackmesa has quit [Remote host closed the connection]
blackmesa has joined #ruby
BH23 has joined #ruby
schne1der has joined #ruby
Inline has quit [Quit: Leaving]
MrCrackPot has quit [Quit: Something went wrong again oh the joys]
rafadc has quit [Read error: Connection reset by peer]
rafadc_ has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
blackmesa has quit [Remote host closed the connection]
blackmesa has joined #ruby
uranoss has quit [Quit: Connection closed for inactivity]
rafadc_ has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
blackmesa has quit [Client Quit]
fphilipe_ has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
heyimwill has quit [Ping timeout: 250 seconds]
krasnus has quit [Ping timeout: 252 seconds]
Inline has joined #ruby
mikecmpbll has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
za1b1tsu has joined #ruby
etupat has joined #ruby
NL3limin4t0r_afk has quit [Ping timeout: 268 seconds]
NL3limin4t0r_afk has joined #ruby
etupat has quit [Ping timeout: 265 seconds]
fphilipe has quit [Ping timeout: 240 seconds]
tdy1 has quit [Ping timeout: 240 seconds]
Freshnuts has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
DTZUZO has quit [Ping timeout: 246 seconds]
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest1753
yann-kaelig has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suukim has joined #ruby
Guest1753 has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
duderono_ has joined #ruby
banisterfiend has quit [Client Quit]
_mosspli_ has quit [Remote host closed the connection]
fphilipe has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
hightower3 has quit [Ping timeout: 265 seconds]
bitwinery has quit [Quit: Leaving]
AJA4350 has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
_mossplix has joined #ruby
znz_jp has quit [Remote host closed the connection]
znz_jp has joined #ruby
rafadc has quit [Ping timeout: 245 seconds]
rafadc has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has joined #ruby
snickers has joined #ruby
dasher00 has joined #ruby
xco has joined #ruby
mikecmpbll has quit [Ping timeout: 276 seconds]
dionysus69 has joined #ruby
Azure has quit [Ping timeout: 265 seconds]
fphilipe has quit [Read error: Connection reset by peer]
Azure has joined #ruby
suukim has quit [Quit: Konversation terminated!]
NL3limin4t0r_afk is now known as NL3limin4t0r
ramfjord has joined #ruby
<NL3limin4t0r> markand: Glad you're enjoy learning Ruby. 😀
ramfjord has quit [Ping timeout: 245 seconds]
conta1 has joined #ruby
hightower2 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta1 has quit [Ping timeout: 245 seconds]
ogres has joined #ruby
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
InfinityFye has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
InfinityFye has left #ruby [#ruby]
fig-le-deunch has joined #ruby
MasterNayru has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
elphe has quit [Ping timeout: 240 seconds]
fphilipe has joined #ruby
DTZUZO has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
snickers has quit [Read error: Connection reset by peer]
fphilipe has quit [Read error: Connection reset by peer]
xco has quit [Quit: xco]
fphilipe has joined #ruby
krl has quit [Quit: Connection closed for inactivity]
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest42612
fig-le-deunch has quit [Quit: Konversation terminated!]
DTZUZO has quit [Ping timeout: 240 seconds]
Guest42612 has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
MasterNayru has joined #ruby
DTZUZO has joined #ruby
elphe has joined #ruby
reber has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
drincruz has quit [Ping timeout: 240 seconds]
fuzzface has joined #ruby
DTZUZO has joined #ruby
mikecmpbll has quit [Ping timeout: 276 seconds]
DTZUZO has quit [Ping timeout: 276 seconds]
fuzzface has quit [Quit: Leaving]
wald0 has joined #ruby
mikecmpbll has joined #ruby
dedRabbit has joined #ruby
dedRabbit has left #ruby [#ruby]
DTZUZO has joined #ruby
xco has joined #ruby
bovis has joined #ruby
davor_ has joined #ruby
davor has quit [Ping timeout: 276 seconds]
davor_ is now known as davor
clemens3 has joined #ruby
<bovis> I have two columns of data I want to dump from a Wordpress site and then process. First column is ID; second column is post content.
<bovis> I'd like to then sort through the data by looking for specific phrases in column 2. If the phrase exists, I match it with column 1.
<bovis> The problem I'm having is dealing with the HTML in column 2.
<bovis> There are lots of quotes, commas, and other markup that seem to be hindering processing that output in CSV or JSON.
<bovis> Like I'll be unable to sort the data by keys. How can I best deal with this? Is there a preferred file format? Any help is appreciated.
hutch1 has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest92538
Ekho has left #ruby ["An alternate universe was just created where I didn't leave. But here, I left you. I'm sorry."]
jenrzzz has joined #ruby
Nathanael7 has joined #ruby
<NL3limin4t0r> bovis: You can use nokogiri to parse HTML.
DTZUZO has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
Swyper has quit [Remote host closed the connection]
<Nathanael7> Does anyone knows if there is a way to copy the signature of a callable dynamically? (you want to make an alias of a method, but you would like the proxy method to have the same signature than the original method, and not a catch all that you forward)
mikecmpbll has joined #ruby
<Nathanael7> You can do some introspection on a signature through `parameters` but I have not found a way to reuse that when defining a method / block / proc
jenrzzz has quit [Ping timeout: 276 seconds]
Guest92538 has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
duderono_ has joined #ruby
<bovis> NL3limin4t0r: Looks like that will make the HTML pretty for me, which is better than what I have. Wouldn't I still run into the problem of defining where a block of content begins and ends?
<bovis> Even using just one column of data: Cell 1 needs to be different than Cell 2. If I can make them pretty from their current state, then I should be able to parse the data without Nokogiri
GodFather has joined #ruby
<NL3limin4t0r> Nathanael7: Have you already taken a look at #arity?
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
MrCrackPot has joined #ruby
<NL3limin4t0r> &ri Proc#arity
<NL3limin4t0r> Method and UnboundMethod both have the same method.
<Nathanael7> NL3limin4t0r that's on the introspection side, not on the definition side
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
<Nathanael7> The only option seems to be to transform `.parameters` to a string and then to `class_eval`
<Nathanael7> Far from ideal but doable
<NL3limin4t0r> The question stays what you're doing with optional parameters since `.parameters` doesn't return the default value.
<NL3limin4t0r> &>> def foo(a, b: 1, *c); end; method(:foo).parameters
<rubydoc> stderr: -e:4: syntax error, unexpected *... check link for more (https://carc.in/#/r/7o9z)
<NL3limin4t0r> &>> def foo(a, b = 1, *c); end; method(:foo).parameters
<rubydoc> # => [[:req, :a], [:opt, :b], [:rest, :c]] (https://carc.in/#/r/7oa0)
<NL3limin4t0r> You can see that `b` is optional, but not what the default value is.
<Nathanael7> I would have thought that having extra parameters after the hash was extremly confusing to begin with
<Nathanael7> I you use keyword args, your arity should be 1
<Nathanael7> Then you can just do:
<Nathanael7> &>> def foo(a, b: 1, **c); end; method(:foo).parameters
<rubydoc> # => [[:req, :a], [:key, :b], [:keyrest, :c]] (https://carc.in/#/r/7oa1)
greengriminal has joined #ruby
<Nathanael7> My issue is more: assuming you get something valid from `.parameters`, how do you reuse it to define another method?
duderono_ has quit [Read error: Connection reset by peer]
duderon__ has joined #ruby
<Nathanael7> (Sorry I mispoke: if you use keywords args, you should not expect extra arguments after, the arity can be more than 1 if they were named arguments before)
codefriar has joined #ruby
<Nathanael7> And yeah sorry I missed your point anyway: parameters does not give you the default values you are right
<markand> why documentations are so different? std-lib / core have different style, hierarchy
<havenwood> markand: different folk wrote them
duderon__ has quit [Read error: Connection reset by peer]
<havenwood> Nathanael7: What #parameters is missing is default argument info: https://gist.github.com/havenwood/ecb7ea9fb3fdd0295038f6101841de9a
duderono_ has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
<Nathanael7> havenwood: really interesting
<markand> havenwood, and what is the difference between the "core" documentation and https://docs.ruby-lang.org/en/2.6.0/ ?
<havenwood> Nathanael7: Shy of using Fiddle, there's no way to copy a method's signature. I'm curious to see the context of the code where you're wanting to.
drincruz has joined #ruby
<havenwood> markand: what are you referring to as "core documentation"?
sagax has quit [Read error: Connection reset by peer]
<havenwood> markand: what you linked to are the docs.
<Nathanael7> havenwood: trying to reason about code validity at parse time when using railsway programming
<havenwood> markand: That's just a totally different site, not maintained by Ruby.
<markand> ah okay
duderono_ has quit [Read error: Connection reset by peer]
<havenwood> markand: The first link has stdlib and core docs.
<markand> :-)
<Nathanael7> havenwood: I'm chaining a bunch of methods that all receive keyword args, but with different signatures, so instead of adding a double splats to all the definition the code that calls these methods checks what they expect to receive
duderono_ has joined #ruby
<markand> https://www.ruby-lang.org/en/documentation/ the C API reference link ends in 404 here though
<Nathanael7> havenwood: on top of that, I want to add Contracts to enforce higher level signature constraints, so there will be some method proxying
kith has joined #ruby
DTZUZO has joined #ruby
<Nathanael7> I think the only solution left is to make sure that the "organizer" code that observes the methods before calling them can access the initial method without the contracts
<Nathanael7> Not ideal but that should work
<havenwood> Nathanael7: That reminds me of RDL: https://github.com/tupl-tufts/rdl#introduction
drincruz has quit [Ping timeout: 265 seconds]
etupat has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
cow[moo] has joined #ruby
duderono_ has joined #ruby
drincruz has joined #ruby
<Nathanael7> havenwood yeah there are a bunch of type systems available, the issue is when they redefine the method to add some checks at runtime, you loose the ability to do some introspection on the real method
<havenwood> RDL, Steep & Sorbet are the three level two type checkers that'll use Ruby 3's RBS from Ruby::Signature: https://github.com/ruby/ruby-signature
<havenwood> Then mame's level one type checker will ship with Ruby along with Ruby::Signature: https://github.com/mame/ruby-type-profiler
<Nathanael7> havenwood yes I've actually checked them all :D But a type system is too limited, I want to be able to describe higher level constraint
DTZUZO has quit [Ping timeout: 240 seconds]
<Nathanael7> Sorbet doesn't support it and from what I've seen neither will Ruby::Signature
grilix has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
<havenwood> Nathanael7: Signature knows things about the code that are beyond #parameters, like default arguments.
sagax has joined #ruby
<havenwood> Nathanael7: You could I guess alternatively use Ripper or even RubyVM::InstructionSequence yourself I suppose to get at it. Maybe default arguments don't matter for you?
<Nathanael7> havenwood: yes, but I am interested in checking against values as well (being able to define a type that's only valid for an integer range for instance)
<havenwood> Nathanael7: For example, Signature knows: method type (::String x, ::Integer i, foo: 123 foo) { (Integer) -> Array[Integer] } -> ::String
<Nathanael7> havenwood yeah they don't really, I can even bypass the aliased method actually
<Nathanael7> It's just sad when you're blocked by the language because of its design
<Nathanael7> Not the end of the world though
banisterfiend has joined #ruby
<Nathanael7> So far Contracts works better because you can actually leverage some pattern matching + type checking + data checking (when you go deeper than "keyword args pattern matching")
<Nathanael7> Actually I might be wrong about Ruby Signature as they have Literal types
kyrylo has joined #ruby
tobiasvl has quit [Ping timeout: 246 seconds]
drincruz has quit [Ping timeout: 276 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
duderono_ has quit [Read error: Connection reset by peer]
lucasb has joined #ruby
duderonomy has joined #ruby
duderonomy is now known as Guest35264
brool has joined #ruby
Guest35264 has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
Nathanael7 has quit [Remote host closed the connection]
tvl has joined #ruby
tvl is now known as tobiasvl
Emmanuel_Chanel has joined #ruby
hutch1 has quit [Ping timeout: 245 seconds]
drincruz has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
elphe has joined #ruby
Swyper has quit [Remote host closed the connection]
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
Swyper has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
AJA4350 has quit [Ping timeout: 276 seconds]
duderono_ has joined #ruby
Swyper has quit [Ping timeout: 265 seconds]
etupat has quit [Remote host closed the connection]
stooj has quit [Quit: ZNC 1.7.3 - https://znc.in]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
codefriar has quit [Ping timeout: 245 seconds]
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
krillbat has joined #ruby
Esa_ has joined #ruby
stooj has joined #ruby
etupat has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
hutch1 has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has joined #ruby
elphe has quit [Quit: leaving]
MrCrackPot has quit [Quit: Something went wrong again oh the joys]
TomyWork has quit [Ping timeout: 246 seconds]
havenwood has left #ruby ["Textual IRC Client: www.textualapp.com"]
codefriar has joined #ruby
havenwood has joined #ruby
havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview1: 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!
jenrzzz has joined #ruby
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest54446
sagax has quit [Quit: Konversation terminated!]
sagax has joined #ruby
kith has quit [Quit: kith]
<havenwood> Ruby 2.6.5!
jenrzzz has quit [Ping timeout: 265 seconds]
Technodrome has joined #ruby
zodd_ has joined #ruby
MrCrackPot has joined #ruby
Guest54446 has quit [Read error: Connection reset by peer]
hutch1 has quit [Ping timeout: 252 seconds]
duderono_ has joined #ruby
<zodd_> when using ruby on Windows I seem unable to install certain gems. However some others install fine, but are not recognized by the interactive interpreter. How can I tackle this please?
conta2 has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
<zodd_> (odbc not found, same for rubygems. dbi and sequel can be found and install, but cannot be used) --> installing from cmd in c:\ruby using bin\gem install <gem>
brendan- has joined #ruby
<zodd_> maybe I use the wrong path/location to install?
<havenwood> zodd_: Show the issues for a single gem? What are you trying that isn't working and what's the error?
duderono_ has quit [Read error: Connection reset by peer]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderono_ has joined #ruby
conta2 has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
galaxie has quit [Remote host closed the connection]
etupat has quit [Remote host closed the connection]
galaxie has joined #ruby
brendan- has quit [Ping timeout: 245 seconds]
etupat has joined #ruby
etupat has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
etupat has joined #ruby
<havenwood> zodd_: There isn't a gem named "rubygems" so that's not meant to work.
dellavg has joined #ruby
<havenwood> zodd_: Where did dbi install? What's?: gem which dbi
<zodd_> that was my point: I have no idea where windows/ruby stores stuff. Linux is much clearer
<havenwood> zodd_: gem env gemdir
<havenwood> zodd_: gem which dbi
<zodd_> so I was wondering what expected behaviour
<zodd_> ok. checking
<zodd_> gem env gemdir --> c:/Ruby25-x64/lib/ruby/gems/2.5.0
<zodd_> gem which dbi --> C:/Ruby-x64/lib/ruby/gems/2.5.0/dbi-0.4.5/lib/dbi.rb
<zodd_> seems ok
<zodd_> might the problem be that irb is not dynamic (ie: if one installs new gems from an other terminal (cmd) it is not picked up/noticed?)
<havenwood> zodd_: gem env gempath
<havenwood> zodd_: The gemdir is where gems are installed (doesn't match dbi's location) and gempath is where Ruby will search for gems.
<zodd_> ok. My assumption seems right: opening a new irb allows me tosuccesfully require ¨dbi¨
<havenwood> zodd_: Ah, gotcha. Yup.
<zodd_> thanks havenwood
<havenwood> zodd_: In Pry you can get around that with `gem-install dbi` from inside Pry.
<havenwood> ?pry
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
xco has quit [Quit: xco]
<havenwood> zodd_: Or instead of restarting irb you can: exec($0)
SashaZakharchuk has quit [Quit: Connection closed for inactivity]
<zodd_> cool
szTheory has joined #ruby
<havenwood> which is just: exec 'irb'
<zodd_> next question: odbc :P It is available under Linux (but badly build by packagers which makes it unusable), but is not available for Windows?
<zodd_> sole reason why I try to run code under Windows
<havenwood> zodd_: I don't follow. What's your goal?
<havenwood> zodd_: What's the end goal?
<zodd_> create/use an odbc connection from Ruby. The ruby-odbc package from Debian (and other distros) are not correctly build, so will not work. Therefor I am testing my POC on Windows
<havenwood> zodd_: Why ODBC? Need to connect to a MS SQL Server?
mikecmpbll has quit [Quit: inabit. zz.]
<zodd_> No I want to connect to a database engine not being Oracle/MS.
<havenwood> Gotcha.
<zodd_> I need ODBC for that
<zodd_> no other way
xco has joined #ruby
<havenwood> I was going to recommend TinyTDS if Microsft SQL Server or Sybase.
kyrylo has joined #ruby
yokel has quit [Ping timeout: 265 seconds]
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
<havenwood> zodd_: What's wrong with the odbc gem?
yokel has joined #ruby
<havenwood> zodd_: It looks like sequel's odbc adapter doesn't require a gem.
<zodd_> INTERN (0) [RubyODBC]Cannot allocate SQLHENV
<zodd_> which makes it unusable
<zodd_> odbc through sequel suffers from the same problem. Afaik it needs the odbc gem
<zodd_> INTERN (0) [RubyODBC]Cannot allocate SQLHENV (Sequel::DatabaseConnectionError)
Inline has joined #ruby
<zodd_> hence I wanted to give it a spin on Windows. Which does not help if there is no odbc gem
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderono_ has quit [Read error: Connection reset by peer]
_mossplix has quit [Remote host closed the connection]
duderonomy has joined #ruby
duderonomy is now known as Guest48277
_mossplix has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
<havenwood> zodd_: It looks like nobody has touched ruby-odbc in almost a decade. https://github.com/larskanis/ruby-odbc
<havenwood> zodd_: An OS from 2011 would be more likely to work. :(
<zodd_> lol
greengriminal has joined #ruby
_mossplix has quit [Ping timeout: 240 seconds]
<zodd_> I am quite happy I was/am not writing code ment for production purposes
<zodd_> iirc there are distros in which it works so I assume it is a building/dependency issue
<zodd_> as I normally do not code in Ruby I have not investigated this fully. I just filed a bug which is most likely not to be resolved, but could be usefull for the next person who wonders why her/his code does not work
clemens3 has quit [Quit: WeeChat 1.6]
<zodd_> (I have not tried/tested installing the odbc gem using gem install, but used the ruby-odbc package from Debian)
<havenwood> zodd_: Try?: gem install ruby-odbc
<zodd_> doing so on Windows atm. It tries to build the gem!?!
wald0 has quit [Quit: Lost terminal]
<havenwood> zodd_: Yeah, you'll need DevKit installed for a Windows gem to build.
ogres has quit [Quit: Connection closed for inactivity]
<zodd_> I have multiple MSYS/MINGW installs on my Windows box and it seems to be using one
ogres has joined #ruby
mikecmpbll has joined #ruby
hutch1 has joined #ruby
FastJack has quit [Ping timeout: 264 seconds]
FastJack has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
codefriar has quit [Ping timeout: 240 seconds]
jnix has joined #ruby
Eiam has quit [Ping timeout: 250 seconds]
codefriar has joined #ruby
_mossplix has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
xco has quit [Quit: xco]
greengriminal has joined #ruby
<zodd_> I just tested some code using DBI+ODBC which resulted in: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/dbi-0.4.5/lib/dbi.rb:300:in `block in load_driver´
wildtrees has joined #ruby
<zodd_> DBI::InterfaceError (Unable to load driver ´ODBC´ (underlying error: uninitialized constant DBBI::DBD::ODBC)
hutch1 has quit [Ping timeout: 245 seconds]
<zodd_> will test direct odbc now
andikr has quit [Remote host closed the connection]
<zodd_> hmm. My code is buggy :P Will test another time
<zodd_> thanks
zodd_ has quit [Read error: Connection reset by peer]
codefriar has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
hutch1 has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
krillbat has quit [Quit: Connection closed for inactivity]
dinfuehr has joined #ruby
jenrzzz has joined #ruby
etupat has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
etupat has joined #ruby
kyrylo has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
ramfjord has joined #ruby
dellavg has quit [Ping timeout: 240 seconds]
etupat has quit [Ping timeout: 245 seconds]
krillbat has joined #ruby
Fernando-Basso has joined #ruby
BH23 has quit [Ping timeout: 276 seconds]
tdy1 has joined #ruby
i9zO5AP has quit [Ping timeout: 240 seconds]
morozovm has joined #ruby
morozovm has quit [Remote host closed the connection]
i9zO5AP has joined #ruby
jottr has joined #ruby
i9zO5AP has quit [Excess Flood]
i9zO5AP has joined #ruby
i9zO5AP has quit [Excess Flood]
fphilipe has quit [Ping timeout: 268 seconds]
i9zO5AP has joined #ruby
_mossplix has quit [Ping timeout: 240 seconds]
i9zO5AP has quit [Excess Flood]
i9zO5AP has joined #ruby
fphilipe has joined #ruby
i9zO5AP has quit [Excess Flood]
tdy1 has quit [Ping timeout: 240 seconds]
i9zO5AP has joined #ruby
Ven`` has joined #ruby
etupat has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
etupat has quit [Ping timeout: 240 seconds]
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schne1der has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Intelo has joined #ruby
Fusl has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
Fusl has joined #ruby
etupat has joined #ruby
codefriar has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
conta has quit [Quit: conta]
Guest48277 has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
gix has joined #ruby
duderonomy is now known as Guest18366
i9zO5AP has quit [Ping timeout: 240 seconds]
i9zO5AP has joined #ruby
i9zO5AP has quit [Excess Flood]
i9zO5AP has joined #ruby
i9zO5AP has quit [Excess Flood]
BustyLoli-Chan has joined #ruby
ramfjord has joined #ruby
i9zO5AP has joined #ruby
i9zO5AP has quit [Read error: Connection reset by peer]
<BustyLoli-Chan> Can someone figure out how to help me translate this format? https://pastebin.com/cWLWKdhx
<ruby[bot]> BustyLoli-Chan: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
jottr has quit [Ping timeout: 240 seconds]
<BustyLoli-Chan> Can someone help me figure out how to translate THIS format? :O https://gist.github.com/TheeRFG/27f3622a1e4e1d222c67357ce5daf050
_mossplix has joined #ruby
<BustyLoli-Chan> My example has like {"excludeSwitches" => ["enable-automation"]}) and my currently code has what other languages believe me to be some kind of { } object... I'm thinking I just need to add excludeSwitches: ["enable-automation"] to that somehow, but I'm new to ruby and have no idea what I'm doing.
ogres has quit [Quit: Connection closed for inactivity]
Ai9zO5AP has joined #ruby
<BustyLoli-Chan> my attempts to nest this object array thingy so far have not worked with like excludeSwitches: ["enable-automation"] or excludeSwitches: {["enable-automation"]} or excludeSwitches: {"enable-automation"}
Ai9zO5AP has quit [Excess Flood]
fphilipe has quit [Ping timeout: 276 seconds]
poontangmessiah has joined #ruby
gray_-_wolf has quit [Quit: WeeChat 2.5]
MrCrackPot has quit [Quit: Something went wrong again oh the joys]
tpanarch1st_ has joined #ruby
<Iambchop> BustyLoli-Chan: please define "have not worked." No error message but wrong behavior, crashes with error message, formats C:, etc. :)
<havenwood> BustyLoli-Chan: options: {'excludeSwitches' => %w[enable-automation]}
<havenwood> BustyLoli-Chan: Replace your line 19 with the line ^ above.
<havenwood> BustyLoli-Chan: Err, actually, line 2 is where it goes.
<havenwood> BustyLoli-Chan: Selenium::WebDriver::Chrome::Options.new(options: {'excludeSwitches' => %w[enable-automation]})
Ai9zO5AP has joined #ruby
<BustyLoli-Chan> Thank you! I'll give that an attempt
chalkmonster has quit [Quit: WeeChat 2.6]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
banisterfiend has joined #ruby
AJA4350 has joined #ruby
Ai9zO5AP has quit [Excess Flood]
Ai9zO5AP has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
chalkmonster has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
codefriar has quit [Ping timeout: 265 seconds]
_mossplix has quit [Remote host closed the connection]
poontangmessiah has quit [Read error: Connection reset by peer]
codefriar has joined #ruby
rafadc has quit [Quit: ZNC - https://znc.in]
bhaak has quit [Ping timeout: 245 seconds]
BH23 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
blackmesa has joined #ruby
bhaak has joined #ruby
claw has quit [Ping timeout: 252 seconds]
za1b1tsu has quit [Remote host closed the connection]
claw has joined #ruby
chalkmonster has joined #ruby
poontangmessiah has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
Ai9zO5AP has quit [Ping timeout: 240 seconds]
Ai9zO5AP has joined #ruby
fphilipe has joined #ruby
etupat has quit [Ping timeout: 265 seconds]
etupat has joined #ruby
bitwinery has joined #ruby
Guest18366 has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has joined #ruby
jrafanie has joined #ruby
Swyper has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Swyper has quit [Ping timeout: 265 seconds]
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
matheusmoreira has quit [Ping timeout: 268 seconds]
matheusmoreira has joined #ruby
jottr has joined #ruby
blackmesa1 has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
etupat has quit [Remote host closed the connection]
SeepingN has joined #ruby
KeyJoo has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
schne1der has joined #ruby
etupat has joined #ruby
BH23 has quit [Ping timeout: 268 seconds]
KeyJoo has quit [Ping timeout: 245 seconds]
poontangmessiah_ has joined #ruby
BH23 has joined #ruby
jottr has joined #ruby
sgen has joined #ruby
poontangmessiah_ has quit [Read error: Connection reset by peer]
sgen has quit [Remote host closed the connection]
poontangmessiah has quit [Read error: Connection reset by peer]
reber has quit [Read error: Connection reset by peer]
hutch1 has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
sgen has joined #ruby
jottr_ has joined #ruby
hutch1 has joined #ruby
snickers has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
blackmesa has quit [Quit: WeeChat 2.6]
xco has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 245 seconds]
jottr_ has quit [Quit: WeeChat 2.5]
jenrzzz has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
xco has quit [Quit: xco]
greengriminal has joined #ruby
bambanx has joined #ruby
xco has joined #ruby
dbugger has quit [Ping timeout: 264 seconds]
Frobozz has joined #ruby
hiroaki has quit [Ping timeout: 240 seconds]
bovis has quit [Quit: leaving]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
etupat has quit [Remote host closed the connection]
sgen has quit [Ping timeout: 264 seconds]
tdy1 has joined #ruby
xco has quit [Quit: xco]
duderonomy has joined #ruby
duderonomy is now known as Guest84950
freedom has joined #ruby
BH23 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
krillbat has quit [Quit: Connection closed for inactivity]
r3m has quit [Quit: WeeChat 2.7-dev]
r3m has joined #ruby
Guest84950 has quit [Read error: Connection reset by peer]
duderono_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
blackmesa has joined #ruby
ogres has joined #ruby
hutch1 has quit [Ping timeout: 264 seconds]
yokel has quit [Ping timeout: 265 seconds]
yokel has joined #ruby
ramfjord has joined #ruby
greengriminal has quit [Quit: Leaving]
i_wdt has joined #ruby
<i_wdt> Hello!)
<i_wdt> #ruby
ellcs1 has joined #ruby
etupat has joined #ruby
<phaul> hi i_wdt
Eiam has joined #ruby
<i_wdt> REGISTER 4265201 ivannaymov@gmail.com
<i_wdt> REGISTER 4265201 ivannaymov@gmail.com
fphilipe has joined #ruby
e is now known as deadk
<leftylink> please send register messages to nickserv instead of to the channel, thank you
sgen has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
<SeepingN> and pick a new pass
fphilipe has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<i_wdt> Thanks, it's my first time using IRC
schne1der has quit [Ping timeout: 240 seconds]
wildtrees has quit [Ping timeout: 265 seconds]
yann-kaelig has quit [Quit: yann-kaelig]
chalkmonster has joined #ruby
bambanx has quit [Remote host closed the connection]
bambanx has joined #ruby
mroutis has joined #ruby
chalkmonster has quit [Client Quit]
drincruz has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven`` has joined #ruby
jenrzzz has joined #ruby
Ven`` has quit [Client Quit]
tdy1 has quit [Ping timeout: 240 seconds]
ellcs1 has quit [Ping timeout: 245 seconds]
etupat has quit []
lucasb has quit [Quit: Connection closed for inactivity]
User458__ has quit [Ping timeout: 265 seconds]
cthu| has quit [Ping timeout: 245 seconds]
cthulchu has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
samort7 has joined #ruby
i9zO5AP has joined #ruby
ramfjord has joined #ruby
Ai9zO5AP has quit [Ping timeout: 240 seconds]
i9zO5AP has quit [Excess Flood]
i9zO5AP has joined #ruby
blackmesa has quit [Quit: WeeChat 2.6]
ramfjord has quit [Ping timeout: 245 seconds]
Intelo has quit [Ping timeout: 240 seconds]
duderono_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy is now known as Guest8065
i9zO5AP has quit [Ping timeout: 240 seconds]
i9zO5AP has joined #ruby
ramfjord has joined #ruby
m3ssia has quit [Quit: ZNC 1.6.3+deb1ubuntu0.2 - http://znc.in]
i9zO5AP has quit [Excess Flood]
cd has joined #ruby
i9zO5AP has joined #ruby
sgen has quit [Ping timeout: 264 seconds]
Swyper has joined #ruby
i_wdt has quit [Quit: bye]
sgen has joined #ruby
grilix_ has joined #ruby
mroutis has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
grilix has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
m3ssia has joined #ruby
tsujp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Guest8065 has quit [Quit: Textual IRC Client: www.textualapp.com]
duder____ has joined #ruby
mroutis has quit [Read error: Connection reset by peer]
mroutis_ has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
fphilipe has joined #ruby
Technodrome has joined #ruby
go|dfish has quit [Ping timeout: 240 seconds]