baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
<ule> I'm working to translate something here. What do you understand by this term: "probably will have to crank their libraries"
Alina-malina has quit [Ping timeout: 260 seconds]
semtex-h has quit [Quit: Leaving]
apeiros has joined #ruby
<Zarthus> ..not much.
<Zarthus> Sounds like they want people to update their libraries, but it's too ambiguous I wouldn't attach any meaning to it.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Alina-malina has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
eb0t has quit [Quit: WeeChat 2.0.1]
johnny56 has joined #ruby
eb0t has joined #ruby
orbyt_ has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.2]
postmodern has joined #ruby
cthu| has quit [Ping timeout: 248 seconds]
<ule> Zarthus: thanks!
\void has quit [Quit: So long, and thanks for all the fish.]
white_lilies has joined #ruby
Dark_Arc has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Remote host closed the connection]
Dark_Arc has joined #ruby
nowhere_man has joined #ruby
ciro has quit [Quit: WeeChat 2.2]
lupine has quit [Remote host closed the connection]
lupine has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
bmurt has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
lupine has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 265 seconds]
lupine has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
bmurt has joined #ruby
lupine has quit [Remote host closed the connection]
lupine has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
patr0clus has joined #ruby
arekushi has joined #ruby
darkhanb has joined #ruby
dstrunk has joined #ruby
dstrunk has left #ruby [#ruby]
white_lilies has quit [Ping timeout: 240 seconds]
hgost has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
monkey_d_luffy has joined #ruby
monkey_d_luffy has quit [Client Quit]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
venmx has quit [Ping timeout: 268 seconds]
akaiiro has quit [Remote host closed the connection]
akaiiro has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
darkhanb has joined #ruby
eb0t has quit [Quit: WeeChat 2.0.1]
braincrash has joined #ruby
eb0t has joined #ruby
orbyt_ has joined #ruby
hgost has quit [Quit: Leaving]
gix has joined #ruby
cosmopaladin has joined #ruby
cosmopaladin has quit [Max SendQ exceeded]
cosmopaladin has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
Nicmavr has joined #ruby
lytol_ has quit [Remote host closed the connection]
Freshnuts has joined #ruby
eGGshke has joined #ruby
chrisco has joined #ruby
johnny56 has quit [Ping timeout: 276 seconds]
johnny56_ has joined #ruby
cosmopaladin has quit [Quit: Leaving]
cosmopaladin has joined #ruby
cosmopaladin has quit [Client Quit]
chrisco has quit [Quit: Page closed]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
feelx has quit []
reber has joined #ruby
alfiemax has joined #ruby
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
redlegion has quit [Excess Flood]
redlegion has joined #ruby
redlegion has quit [Excess Flood]
redlegion has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
conta has joined #ruby
cadillac_ has quit [Ping timeout: 264 seconds]
cadillac_ has joined #ruby
gnufied has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
Inline has quit [Remote host closed the connection]
sauvin has joined #ruby
levifig has joined #ruby
<zenspider> heh. that's an odd exchange. :P
patr0clus has quit [Ping timeout: 265 seconds]
levifig has quit [Quit: Farewell]
levifig has joined #ruby
eGGshke has quit [Quit: Textual IRC Client: www.textualapp.com]
bak1an has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
apeiros has joined #ruby
biberu has joined #ruby
jmcgnh is now known as jmcgnh_
jmcgnh_ is now known as jmcgnh
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrich523 has quit [Ping timeout: 260 seconds]
akkad has quit [Quit: Emacs must have died]
conta has quit [Quit: conta]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
scrptktty has joined #ruby
User458764 has joined #ruby
apeiros has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yohji has joined #ruby
akkad has joined #ruby
venmx has joined #ruby
_Caerus has quit [Quit: yak.shaving.aintfunZzzZ]
ur5us has quit [Remote host closed the connection]
sysvalve has joined #ruby
clemens3_ has joined #ruby
mkaito_ has quit [Read error: Connection reset by peer]
venmx has quit [Ping timeout: 264 seconds]
CrazyEddy has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
mikecmpbll has joined #ruby
Guest83186 has quit [Quit: WeeChat 2.1]
za1b1tsu has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Client Quit]
dr3w_ has joined #ruby
Freshnuts has quit [Quit: Leaving]
jottr has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
lxsameer has joined #ruby
tty has joined #ruby
tristanp has joined #ruby
za1b1tsu has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
jp has joined #ruby
venmx has joined #ruby
scrptktty has quit [Quit: Connection closed for inactivity]
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
dr3w_ has joined #ruby
<livcd> Matz does not like types
dr3w_ has joined #ruby
darkhanb has joined #ruby
AJA4350 has joined #ruby
<apeiros> livcd: what's that claim based on?
za1b1tsu has quit [Read error: Connection reset by peer]
za1b1tsu has joined #ruby
kapil___ has joined #ruby
nickjj_ is now known as nickjj
nfk has joined #ruby
ciro has joined #ruby
FernandoBasso has joined #ruby
tristanp has joined #ruby
tristanp has quit [Ping timeout: 256 seconds]
Dbugger has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beefjoe has joined #ruby
<FernandoBasso> I need some insights and help debugging a cucumber + capybara + site_prism project. I get warnings like this:
<FernandoBasso> /banners/banner_seo.rb:9: warning: already initialized constant Desktop::BannerSeo::MIN_LINKS /banners/banner_seo.rb:9: warning: previous definition of MIN_LINKS was here
<FernandoBasso> Running with --verbose doesn't seem to imply that files are being loaded twice, and what's more, we use `require' (duh) which should prove that files are _not_ being loaded twice.
sylario has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4350 has joined #ruby
<FernandoBasso> Full output: https://pastebin.com/raw/cAuXMrus
Zaab1t has joined #ruby
shadowswalker has joined #ruby
shadowswalker has left #ruby [#ruby]
Blaguvest has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
bak1an has joined #ruby
wildermind has joined #ruby
<apeiros> awsome, bundler fails, but its exitstatus is 0
<apeiros> what the actual f*ck
fmcgeough has joined #ruby
arahael1 has joined #ruby
apparition has joined #ruby
arahael1 is now known as ArahaelPi
jottr has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
<apeiros> livcd: thanks for the link. will have to watch it after work :)
cadillac_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<livcd> apeiros: you can listen to it :)
<FernandoBasso> Damn. Firewall here doesn't even let me see the thumbnail of that video.
jcalla has joined #ruby
<livcd> fernandobasso: it's Ruby After 25 Years - Singapore Ruby Group
AJA4350 has quit [Remote host closed the connection]
BlackBishop has joined #ruby
<BlackBishop> my gitlab is trying to do this https://paste.fedoraproject.org/paste/j5EGAvjQ3kj2RpYv1KlD6w and that fails
<BlackBishop> any way I can make it do 'gem install nokogumbo -- --with-ldflags=-L#{nokogiri_ext} -l:nokogiri.so' ?
<BlackBishop> that should work, but I have no idea where I can tell gem to overwrite the build opts
AJA4350 has joined #ruby
conta has joined #ruby
alfiemax has joined #ruby
cagomez has joined #ruby
<FernandoBasso> livcd: All right. Saved the link to watch over the weekend. Thanks.
<FernandoBasso> Is there a way in a project with many third-party library for one to discover who and when and how are files being loaded?
bmurt has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
BlackBishop has left #ruby ["WeeChat 2.0.1"]
Dbugger has quit [Remote host closed the connection]
Dbugger has joined #ruby
lxsameer has quit [Quit: WeeChat 2.1]
lxsameer has joined #ruby
jottr has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
krawchyk has joined #ruby
nicesignal has quit [Ping timeout: 240 seconds]
yohji has quit [Remote host closed the connection]
za1b1tsu has quit [Ping timeout: 248 seconds]
TonyTheLion has joined #ruby
<TonyTheLion> do you guys have any idea bout how to turn off SSL verification in Jekyll?
yohji has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<apeiros> all I read is "How do I aim that rocket launcher towards my foot and pull the trigger?"
<TonyTheLion> lol
<apeiros> (no, I don't know, but it does sound like a terrible idea and you should probably instead solve the problem which causes you to ask this)
Blaguvest has quit [Quit: Leaving]
za1b1tsu has joined #ruby
<TonyTheLion> apeiros: I'll tell you what led me to asking this, I want to build a jekyll site using a nix package on a gitlab ci. nix runs in a sandbox and doesn't allow 'side effects' of any kind. Network communications are 'side effects'. Means I cannot build my jekyll site with a nix derviation.
<TonyTheLion> nix people say 'don't use nix for this'; ruby people say 'don't lose SSL'
Inline has joined #ruby
GodFather has quit [Remote host closed the connection]
sinclair has quit [Ping timeout: 276 seconds]
alfiemax has quit [Remote host closed the connection]
GodFather has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 260 seconds]
AJA4351 is now known as AJA4350
krawchyk has quit [Quit: krawchyk]
rippa has joined #ruby
drale2k_ has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 260 seconds]
AJA4351 is now known as AJA4350
xall has joined #ruby
xall has quit [Quit: xall]
AJA4351 has joined #ruby
white_lilies has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 is now known as AJA4350
gnufied has joined #ruby
krawchyk has joined #ruby
mzo has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
conta has quit [Quit: conta]
gnufied has quit [Ping timeout: 240 seconds]
Rapture has joined #ruby
reber has quit [Remote host closed the connection]
reber has joined #ruby
AJA4351 has joined #ruby
dhollin3 is now known as dhollinger
AJA4350 has quit [Ping timeout: 260 seconds]
AJA4351 is now known as AJA4350
white_lilies has quit [Ping timeout: 240 seconds]
dr3w_ has joined #ruby
AJA4351 has joined #ruby
krawchyk has quit [Quit: krawchyk]
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Emmanuel_Chanel has joined #ruby
iamepk has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
Nicmavr has quit [Read error: Connection reset by peer]
iamepk has quit [Client Quit]
Nicmavr has joined #ruby
TonyTheLion has quit [Ping timeout: 244 seconds]
<ineb> TonyTheLion: hmm, this isnt an issue of nix but the sandbox, isnt it?
krawchyk has joined #ruby
<ineb> besides that, what has jekyll to do with ssl anyway?
<ineb> it creates static pages. and then 'jekyll serve' command offers plain http anyway afaik
<ineb> iam afraid its difficult to help you here
krawchyk has quit [Quit: krawchyk]
AJA4351 has joined #ruby
Caerus has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
jhill has joined #ruby
AJA4351 has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4351 is now known as AJA4350
Caerus has quit [Ping timeout: 240 seconds]
biberu has quit []
<apeiros> hm, what good is a box which does not allow network communications?
AJA4351 has joined #ruby
apeiros has quit []
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
eddof13 has joined #ruby
beefjoe has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fluxAeon has quit [Ping timeout: 240 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Caerus has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
dr3w_ has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 is now known as AJA4350
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 268 seconds]
gnufied has joined #ruby
gray_-_wolf has joined #ruby
gnufied has quit [Quit: Leaving]
bmurt has joined #ruby
chouhoulis has joined #ruby
drale2k_ has joined #ruby
dr3w_ has joined #ruby
alem0lars has joined #ruby
<gray_-_wolf> hm, what do you people think about adding block support for Array#join ? Is it something worth rising on the ticket tracker?
chrisarcand has quit [Ping timeout: 256 seconds]
apeiros_ has joined #ruby
<havenwood> gray_-_wolf: What would the block do?
<havenwood> gray_-_wolf: mapping, pre-join?
<gray_-_wolf> basically allow you to change the "glue" for join base on the conditions... Something like ['foo', 'bar', 'foobar'].join { |i| i % 2 == 0 ? ',' : "\n" } would produce "foo, bar\nfoobar"
<havenwood> gray_-_wolf: ah
<gray_-_wolf> I needed it some time back and I just monkey patched it to the Array at the moment but then wondered if it could be useful in stdlib
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
conta has joined #ruby
<havenwood> >> ['foo', 'bar', 'foobar'].each_slice(2).map { |s| s.join ',' }.join "\n"
<havenwood> #=> "foo,bar\nfoobar"
<gray_-_wolf> sure don't you have quite more allocations in there?
<gray_-_wolf> but thx for the tip, will benchmark it to see a difference :)
<havenwood> gray_-_wolf: It might actually be slower, but there's also: ['foo', 'bar', 'foobar'].each_slice(2).lazy.map { |s| s.join ',' }.force.join "\n"
eddof13 has joined #ruby
<gray_-_wolf> hm will #lazy help here? It will still need to evaluate everything, correct?
cats has quit [Ping timeout: 264 seconds]
lytol_ has joined #ruby
cats has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
kapil___ has joined #ruby
cats has quit [Ping timeout: 260 seconds]
conta has quit [Quit: conta]
millerti has joined #ruby
orbyt_ has joined #ruby
millerti has quit [Ping timeout: 240 seconds]
sysvalve has quit [Quit: Leaving]
clemens3_ has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has quit [Remote host closed the connection]
Beams has quit [Quit: .]
mikecmpbll has joined #ruby
krawchyk has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
alem0lars has quit [Ping timeout: 248 seconds]
<havenwood> gray_-_wolf: Given your example, it doesn't help. True.
<havenwood> gray_-_wolf: It's just extra overhead.
cthulchu has joined #ruby
<havenwood> gray_-_wolf: It means the first item can go ahead and be mapped before every each_slice is done.
orbyt_ has joined #ruby
<havenwood> gray_-_wolf: Since the mapping is fast, and the collection is small, etc - it's not worth doing.
darkhanb has joined #ruby
mzo has quit [Ping timeout: 240 seconds]
<havenwood> gray_-_wolf: There are many ways to do it if speed really matters.
<havenwood> TIMTOWTDI, do doubt!
<havenwood> ['foo', 'bar', 'foobar'].each_slice(2).reduce('') { |acc, s| "#{acc}#{s.join ','}\n" }.chomp
<gray_-_wolf> heh that's nice :) will add it to my benchmark list
darkhanb has quit [Ping timeout: 240 seconds]
<havenwood> gray_-_wolf: Or this would be a bit better, probably: each_slice(2).reduce('') { |acc, (a, b)| "#{acc}#{a},#{b}\n" }.chomp
<havenwood> One less method call in the loop.
<havenwood> gray_-_wolf: Or: each_slice(2).with_object('') { |(a, b), acc| acc << "#{a},#{b}\n" }.chomp
<gray_-_wolf> true but this one locks me to having "a, b\nc, d". the other one with `s.join` I can just pass another value into slice_each to get "a, b, c\nd"
<havenwood> it might be faster as well to set the String capacity up front, since it's known.
<havenwood> With larger collections, that could really matter.
cats has joined #ruby
eugenmayer has joined #ruby
<havenwood> Maybe not worth it to get the size, depends!
<havenwood> >> String.new capacity: 999
<havenwood> #=> ""
<eugenmayer> i am using classic grape right now, but i need one endpoint to be a streamed response. Found Rack::Stream but its.horribly outdated Any hints on how to do streamed responses with grape?
* havenwood checks the docs
<gray_-_wolf> there does not seem to be way to set capacity of existing string, but still, setting it in advance could be usuful :)
agent_white has joined #ruby
akaiiro has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<SuperLag> I'm trying to work out some code to download files from a remote server. https://pastebin.com/QPw8qgrJ
<SuperLag> I'm not sure why that's not working.
<havenwood> gray_-_wolf: Yeah, it keeps it from having to keep growing the size repeatedly. Worth remembering it's an option. :-)
akaiiro has joined #ruby
eugenmayer has quit [Read error: Connection reset by peer]
cats has quit [Ping timeout: 244 seconds]
eugenmayer has joined #ruby
<havenwood> SuperLag: Take a look at: response.body
<gray_-_wolf> thanks for the options :) I'll play a bit with benchmarking this over the weekend and if by way would still be faster I'll try proposing it on the tracker
<gray_-_wolf> my waw*
za1b1tsu has quit [Read error: Connection reset by peer]
<havenwood> eugenmayer: Are you trying to chunk the response, use an event stream, websockets or?
<havenwood> eugenmayer: Or fallback from one to the next?
augcesar has joined #ruby
<eugenmayer> havenwood: its more a long running timeout and i want to stream to progress out of to reasons: having a progress but also, avoiding read timeouts on the client
<havenwood> eugenmayer: So it's not for transferring something, but for giving status updates over?
<havenwood> eugenmayer: To a browser?
Puffball has joined #ruby
<eugenmayer> havenwood: exactly, we are not talking about a binary blob.
<eugenmayer> havenwood: no, its rather different clients, mostly a ruby httpparty client, but also curl based cli clients
<eugenmayer> looking at https://github.com/StuartApp/grape-async right now
<havenwood> eugenmayer: You might consider message_bus: https://github.com/SamSaffron/message_bus
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> eugenmayer: oh, i just read the cli clients bit
<eugenmayer> well i could modify the cli clients to ruby stubs, but i would not talk about s2s here
<eugenmayer> the trigger are cron runs or evnets like app installations, so the counterpart is not a server, but a cli "managment" app
nowhere_man has quit [Remote host closed the connection]
<havenwood> eugenmayer: And you're making those cli apps? So you can do chunked long polling in each for sure?
<eugenmayer> yes i controll both sides
<eugenmayer> the cli apps and the server app, which in this case is a jruby based, tomcat/java app
<havenwood> mmm
<havenwood> DRb ;-P
<eugenmayer> DRb?
<havenwood> eugenmayer: Or it sounds like you were on a good track with streaming via chunked long polling. So many ways to do it. H2, websockets, event stream, etc. etc.
<eugenmayer> i think that is way to highly suffisticated. Thats for now a rather simple case, 2 of those. Not really planned to go further in this
<eugenmayer> i think a streamed grape connection would probably do it for now
<havenwood> eugenmayer: Would plain long polling suffice?
<havenwood> eugenmayer: yeah, that seems reasonable
nowhere_man has joined #ruby
<eugenmayer> i would say long polling is a little too complicated for the curl cli part, picking that would mean i replace those cli calls
<havenwood> eugenmayer: There are various examples of server side event stream stuff with Sinatra: https://gist.github.com/maccman/2992949
<havenwood> I'm not sure it's worth doing over plain 'ole polling.
<havenwood> But event-stream would be an option with Grape too: "text/event-stream"
<havenwood> For this type of one-directional communication - it's an optino!
<havenwood> eugenmayer: Folk often ignore event-stream because they have to communicate both ways.
<SuperLag> havenwood: does response.body require an argument? In the place I got the code from (a Chef cookbook) there was --> output = JSON.parse(response.body)['data'], but I couldn't find where the "data" attribute was referring to
<havenwood> SuperLag: The response.body isn't properly deserializing from JSON - likely because it's not valid JSON.
<havenwood> SuperLag: p response.body
<havenwood> SuperLag: Take a look at what the `response.body` String contains.
<havenwood> SuperLag: It's failing at the point that you try to `JSON.parse` it.
<havenwood> eugenmayer: They may be too obscure to be fun to use. It's not particularly easy to google for: https://www.html5rocks.com/en/tutorials/eventsource/basics/
<havenwood> But it's part of the HTTP 1.1 spec.
<havenwood> *just HTTP*
<havenwood> and probably overkill ;-P
<eugenmayer> yeah
<eugenmayer> :)
orbyt_ has joined #ruby
<SuperLag> havenwood: on another unrelated note... pastebin.com seems to get a lot more hate lately. Any preferred pastebins for folks here?
<eugenmayer> SuperLag: pastebin.com has been hated since years
<eugenmayer> due to way to agressive ads and even more obscure happenings with it
<vutral|kali> more obscure happenings?
venmx has quit [Ping timeout: 264 seconds]
<eugenmayer> AFAIR he called for donations ( site owner ) for his ill son (cancer) for surgency and thinks like that … and it was a pure hoak and fake.. but he got the money
<vutral|kali> ic
bak1an has joined #ruby
<havenwood> SuperLag: We recommend gist.github.com usually.
<havenwood> SuperLag: gitlab.com/explore/snippets or bitbucket.org/snippets would be other options backed by git.
bak1an has quit [Client Quit]
fluxAeon has joined #ruby
cagomez has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gray_-_wolf> it seems you need a github account for the gist.github.com ?
<apeiros_> sadly yes. originally anonymously gisting was possible, but no longer.
apeiros_ is now known as apeiros
<eugenmayer> apeiros: i could just image how much bs people where doing with anon posts
<eugenmayer> i am not really shocked they blocked it - i would have too
[Butch] has joined #ruby
<gray_-_wolf> it kinda sucks having to create account just to post a paste.. :/
desperek has joined #ruby
<miah> it shouldn't be too much of an impedement to create a github account
weaksauce has joined #ruby
ivanskie has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
krawchyk has quit [Quit: krawchyk]
beefjoe has joined #ruby
snickers has joined #ruby
Puffball has quit [Quit: Puffball]
za1b1tsu has joined #ruby
ensyde has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
dr3w_ has joined #ruby
dr3w_ has quit [Client Quit]
gnufied has joined #ruby
cats has joined #ruby
Inline has quit [Quit: Leaving]
Inline has joined #ruby
tty has quit [Quit: tty]
beefjoe has quit [Remote host closed the connection]
nicoulaj has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
jjman has joined #ruby
gray_-_wolf has quit [Quit: WeeChat 2.2]
za1b1tsu has quit [Ping timeout: 240 seconds]
nicoulaj has joined #ruby
Rapture has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
reber has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 240 seconds]
\void has joined #ruby
sameerynho has joined #ruby
maryo has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
<maryo> How to uninstall all gems that is installed under a specific user?
<mozzarella> maryo: nuke the gem folder, probably?
<apeiros> `gem nucular` (not really)
<maryo> mozzarella, that's the recommended practice?
hurricanehrndz has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
krawchyk has joined #ruby
<Caerus> maryo, if you´re using rvm you can simply switch to your desired gemset: rvm use gemset ( rvm use ruby-.2.3.1 ) then rvm gemset empty
<maryo> Caerus, nope I am not using rvm. I am thinking to use rvm in the future. By the way is that a recommended practice (using rvm)?
<g-> I use rbenv nowadays.
alfiemax has joined #ruby
<Caerus> once I started using rvm, I never looked back. But I also havent looked too much into rbenv
<havenwood> Caerus: Look further onto chruby, the tiny glinting city on the hill.
FernandoBasso has quit [Quit: Page closed]
<maryo> Caerus, Do you have the installation procedure for rvm?
<Caerus> havenwood, thanks. Didnt know chruby was a thing. Is there a particulary compelling reason to switch to it over rvm or rbenv?
za1b1tsu has joined #ruby
<havenwood> Caerus: It doesn't hook cd like RVM or have shims to maintain and a c-ext replacement for realpath like rbenv.
<havenwood> Caerus: It just sets GEM_HOME, GEM_PATH, etc.
<havenwood> Caerus: So it's the simplest thing that can possibly work.
<havenwood> Caerus: A caveat is that it chruby works for bash and zsh but not for all shells - so you can't use to for tcsh for example.
<havenwood> It actually is *almost* portable. There's an mksh branch: https://github.com/postmodern/chruby/tree/mksh
<Caerus> welp that really went under my radar, I´m looking at the repo and I can see that it has been around for a while.
<havenwood> But there's always a weirder shell out there somewhere. ;-P
<g-> yup
<havenwood> Caerus: It's a pretty small script: https://github.com/postmodern/chruby/blob/mksh/share/chruby/chruby.sh
<havenwood> (Under 100 lines.)
<Caerus> thing about self teaching is that the hardest part is ¨to know what is it that you don´t know but should¨
vikaton has joined #ruby
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Caerus> my dev vm is on lubuntu so chruby sounds like a plan.
eugenmayer has quit [Quit: Leaving.]
<Caerus> thanks havenwood. maryo, might wanna look into using it too chruby.
qolq has quit [Remote host closed the connection]
ivanskie has joined #ruby
<livcd> i want ruby 3 and i want it now!
mikecmpbll has quit [Quit: inabit. zz.]
fmcgeough has quit [Quit: fmcgeough]
desperek has quit [Quit: xoxo]
mondz has quit [Remote host closed the connection]
krawchyk has quit [Quit: krawchyk]
eckhardt has joined #ruby
mondz has joined #ruby
dviola has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
venmx has joined #ruby
jcarl43 has joined #ruby
eckhardt has joined #ruby
ensyde has quit [Ping timeout: 260 seconds]
eckhardt has quit [Client Quit]
GodFather has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
AJA4350 has quit [Ping timeout: 260 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
AJA4350 has joined #ruby
Dbugger has quit [Ping timeout: 240 seconds]
jcarl43 has quit [Ping timeout: 248 seconds]
augcesar has quit [Quit: Connection closed for inactivity]
mikecmpbll has joined #ruby
AJA4350 has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
AJA4350 has joined #ruby
paraxial has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
GodFather has quit [Ping timeout: 244 seconds]
redlegion has quit [Ping timeout: 250 seconds]
chussenot has joined #ruby
redlegion has joined #ruby
jcalla has quit [Ping timeout: 248 seconds]
memo1 has joined #ruby
Alina-malina has joined #ruby
DTZUZO has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
siaw23 has joined #ruby
schneider has joined #ruby
<siaw23> Hi, is there a way I can open the Array class on my machine, check all array objects and perform #freeze on them?
<havenwood> siaw23: Yes!
<siaw23> i mean i know how to open the Array class, i’m not sure how to assign array objects and freeez/unfreeze them
venmx has quit [Ping timeout: 264 seconds]
jp has quit [Ping timeout: 264 seconds]
AJA4350 has quit [Ping timeout: 248 seconds]
jp has joined #ruby
AJA4350 has joined #ruby
<havenwood> siaw23: It turns out it's not such a great idea to freeze every Array in Ruby, but: require 'objspace'; ObjectSpace.each_object(Array, &:freeze)
<havenwood> siaw23: Or you just want to freeze newly allocated Arrays? Say more about why you're doing this?
schneider has quit [Ping timeout: 240 seconds]
<siaw23> actually i just want to unfreeze arrays
<havenwood> >> require 'objspace'; ObjectSpace.each_object(Array, &:freeze)
<havenwood> siaw23: You want to unfreeze them? Why?
<siaw23> i’m working with a gem that gives me this error:
<siaw23> FrozenError:
<siaw23> can't modify frozen Array
<siaw23> so i want to unfreeze them temporily
<havenwood> siaw23: So someone else froze it and you need with thawed?
<siaw23> to help me debug what’s going on
<siaw23> yeap
<siaw23> just to see if it cleas the FrozenError, then i can know what to do
<havenwood> >> a = []; a.freeze; a.dup.frozen? # siaw23
<havenwood> siaw23: Cloning preserves the frozen state, duping does not.
<siaw23> yeap
<siaw23> :)
<darix> >>> a = []; a.freeze; a.dup.frozen?
<darix> bot broken
<havenwood> #=> false
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<JJonah> Why are you allowed to create new ASN1::Sequences and Sets without using new?
<JJonah> Ie, `OpenSSL::ASN1::Sequence(@extensions)` works. Relevant docs: https://ruby-doc.org/stdlib-2.4.0/libdoc/openssl/rdoc/OpenSSL/ASN1/Constructive.html
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
GodFather has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4350 has quit [Ping timeout: 248 seconds]
<havenwood> defined? OpenSSL::ASN1::Sequence() #=> "method" # JJonah
<havenwood> OpenSSL::ASN1.public_method(:Sequence).owner #=> #<Class:OpenSSL::ASN1>
jcarl43 has joined #ruby
<havenwood> defined? OpenSSL::ASN1::Sequence #=> "constant" # JJonah
<havenwood> JJonah: There's both a ::Sequence() method and a Sequence class. With the version you showed, it's the method. With ::new, it's a the class.
mikecmpbll has quit [Quit: inabit. zz.]
<JJonah> havenwood: ah! is that a common pattern?
<JJonah> is it considered good practice?
chris349 has joined #ruby
<chris349> I install Ruby for Windows and gem install fails with an SSL error. How do I resolve this? Same command works with Linux system.
AJA4350 has joined #ruby
za1b1tsu has quit [Ping timeout: 260 seconds]
<Caerus> anyone knows where the sort() method fo Hash comes from? https://ruby-doc.org/core-2.5.1/Hash.html#method-i-sort not listed here and doesn´t seem to come from Object
<ciro> Caerus: it comes from the Enumerable mixin
<Caerus> ciro, ohhh it says it right there ´Included Modules´, thanks!
<ciro> :)
white_lilies has joined #ruby
memo1 has quit [Ping timeout: 244 seconds]
<havenwood> ciro: You can check like: {}.method(:sort).owner #=> Enumerable
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Excess Flood]
<havenwood> ciro: Oh, sorry - I tagged the wrong person.
<havenwood> Caerus: ^
<Caerus> sweet
<ciro> havenwood: I know, thanks anyway
<havenwood> chris349: If you can, try the Windows Subsystem for Linux (WSL): https://docs.microsoft.com/en-us/windows/wsl/install-win10
<havenwood> JJonah: It's a fairly common pattern, but not ubiquitous.
kapil___ has quit [Quit: Connection closed for inactivity]
ivanskie has joined #ruby
white_lilies has quit [Ping timeout: 248 seconds]
Demos has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
maryo has quit [Ping timeout: 240 seconds]
<chris349> havenwood, I need a path to ruby.exe for a Windows program. With the WSL can I use RVM and them point a Windows app to the correct ruby install?
GodFather has quit [Ping timeout: 264 seconds]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fluxAeon has quit [Ping timeout: 240 seconds]
<havenwood> chris349: With WSL you could install the Ruby you want to use and make a wrapper for it to use from Windows: https://docs.microsoft.com/en-us/windows/wsl/interop#run-linux-tools-from-a-windows-command-line
<havenwood> chris349: Or you might consider shipping Ruby with your app, like Traveling Ruby packages it: https://phusion.github.io/traveling-ruby/
dviola has quit [Read error: Connection reset by peer]
jcalla has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
chussenot has quit [Quit: chussenot]
<chris349> havenwood, I just want to install ruby and some gems to debug a project on my machine, But the gems dont install due to SSL errors
jcarl43 has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Ping timeout: 264 seconds]
cadillac_ has joined #ruby