Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucasb has quit [Quit: Connection closed for inactivity]
WA9ACE has quit [*.net *.split]
mahlon has quit [*.net *.split]
claw has quit [*.net *.split]
cjkinni has quit [*.net *.split]
rhythmx has quit [*.net *.split]
pabs has quit [*.net *.split]
bathtub_shark has quit [*.net *.split]
pwillard has quit [*.net *.split]
Liothen has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
havenwood has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
aspiers has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
salasrod has quit [*.net *.split]
pitastrudl has quit [*.net *.split]
gmcintire has quit [*.net *.split]
jnix has quit [*.net *.split]
voker57 has quit [*.net *.split]
legit has quit [*.net *.split]
voker57 has joined #ruby
pitastrudl has joined #ruby
legit has joined #ruby
jnix has joined #ruby
bathtub_shark has joined #ruby
aspiers has joined #ruby
pwillard has joined #ruby
gmcintire has joined #ruby
coffeejunk has joined #ruby
Liothen has joined #ruby
hahuang65 has joined #ruby
salasrod has joined #ruby
havenwood has joined #ruby
EvilJStoker has joined #ruby
psmolen has quit [Ping timeout: 248 seconds]
mahlon has joined #ruby
infernix has quit [Ping timeout: 272 seconds]
ChrisBr has quit [Ping timeout: 272 seconds]
AJA4350 has quit [Quit: AJA4350]
cthu| has quit [Ping timeout: 246 seconds]
ChrisBr has joined #ruby
psmolen has joined #ruby
crankharder has quit [Ping timeout: 248 seconds]
crankharder has joined #ruby
staticx has quit [Remote host closed the connection]
Swyper has joined #ruby
staticx has joined #ruby
crankharder has quit [Client Quit]
<chris349>
havenwood, Yes I just had to add a line to the top of my script: #!/bin/bash -l
<chris349>
Another question... say I have in my Gemfile a group for development, how can I ensure that those never load in other environments? Right now the issue is sometimes I get a fatal error such as: Could not find rspec-rails-3.8.2 in any of the sources
infernix has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renich has quit [Quit: renich]
renich has joined #ruby
^ is now known as uplime
code_zombie has quit [Quit: Leaving]
al-damiri has quit [Quit: Connection closed for inactivity]
sparc has quit [Ping timeout: 272 seconds]
tweaks has quit [Quit: leaving]
wbnns has quit [Ping timeout: 258 seconds]
sparc has joined #ruby
cranq has quit [Ping timeout: 244 seconds]
d0liver has quit [Ping timeout: 258 seconds]
cranq has joined #ruby
wbnns has joined #ruby
d0liver has joined #ruby
Swyper has quit [Remote host closed the connection]
cranq has quit [Remote host closed the connection]
cranq has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Nightmare has quit [Remote host closed the connection]
edk has quit [Quit: edk]
tweaks has joined #ruby
cranq has quit [Ping timeout: 246 seconds]
cranq has joined #ruby
agent_white has quit [Quit: brb]
orbyt_ has joined #ruby
CCDelivery has quit [Remote host closed the connection]
jmcgnh has quit [Ping timeout: 272 seconds]
cd has quit [Quit: cd]
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
bambanx has quit [Quit: Leaving]
cranq has quit [Ping timeout: 272 seconds]
jmcgnh has joined #ruby
m_antis has quit [Quit: m_antis]
duderonomy has joined #ruby
m_antis has joined #ruby
cranq has joined #ruby
r29v has quit [Ping timeout: 248 seconds]
tweaks has left #ruby [#ruby]
dviola has quit [Quit: WeeChat 2.5]
tweaks has joined #ruby
vircung has quit [Quit: Nothing to do here]
queip has quit [Ping timeout: 268 seconds]
vircung has joined #ruby
queip has joined #ruby
moei has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pliniker has joined #ruby
noobineer has quit [Ping timeout: 252 seconds]
pliniker has quit [Client Quit]
gb_away has quit [Ping timeout: 245 seconds]
vjacob has quit [Ping timeout: 248 seconds]
ellcs has quit [Remote host closed the connection]
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
sauvin has joined #ruby
schneider has joined #ruby
kyrylo has joined #ruby
SeepingN has joined #ruby
tdy has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
Technodrome has joined #ruby
schneider has quit [Ping timeout: 252 seconds]
m_antis has quit [Quit: m_antis]
m_antis has joined #ruby
\13k has quit [Ping timeout: 268 seconds]
nowhereman has quit [Read error: Connection reset by peer]
\13k has joined #ruby
nowhereman has joined #ruby
galeido has quit [Quit: leaving]
edk has joined #ruby
hiroaki has quit [Ping timeout: 258 seconds]
schneider has joined #ruby
nowhereman has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
galeido has joined #ruby
TomyWork has joined #ruby
nowhere_man has quit [Ping timeout: 245 seconds]
aupadhye has joined #ruby
hightower2 has quit [Ping timeout: 258 seconds]
rippa has joined #ruby
clandmeter has left #ruby ["Alpine Linux, the security-oriented, lightweight Linux distribution"]
mayurvpatil has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
cca4 has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
<cca4>
Hello I have a local docker container with rails nginx unicorn when I use this configuration I don't have the details of the query in my console after a docker-composes uphttps://dpaste.de/z2W9On the other hand if I keep the same configuration but I use puma instead of unicorn I have the details of the queries with SQL query https://dpaste.de/51iVa
<cca4>
ve the details of the query in my console after a docker-composes uphttps://dpaste.de/z2W9On the other hand if I keep the same configuration but I use puma instead of unicorn I have the details of the queries with SQL queryhttps://dpaste.de/51iV
<cca4>
Sorry typing error
<cca4>
Hello I have a local docker container with rails nginx unicorn when I use this configuration I don't have the details of the query in my console after a docker-composes up https://dpaste.de/z2W9On the other hand if I keep the same configuration but I use puma instead of unicorn I have the details of the queries with SQL query https://dpaste.de/51iV
sandstrom has joined #ruby
brett-soric has joined #ruby
alem0lars has joined #ruby
deepredsky has joined #ruby
mikecmpbll has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
yokel has quit [Read error: Connection reset by peer]
queip has quit [Ping timeout: 245 seconds]
alem0lars has joined #ruby
yokel has joined #ruby
queip has joined #ruby
mayurvpatil has joined #ruby
conta has quit [Ping timeout: 272 seconds]
brett-soric has left #ruby [#ruby]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haxx0r has joined #ruby
<haxx0r>
curl --user user
<haxx0r>
what's the equivalent for net http?
conta has joined #ruby
Technodrome has joined #ruby
mrpropa has quit [Ping timeout: 252 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayurvpatil has quit [Quit: This computer has gone to sleep]
cca4 has quit [Remote host closed the connection]
mayurvpatil has joined #ruby
<haxx0r>
thanks
<al2o3-cr>
yw haxx0r
za1b1tsu has quit [Remote host closed the connection]
matheusmoreira has quit [Ping timeout: 248 seconds]
matheusmoreira has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
mayurvpatil has joined #ruby
conta has quit [Ping timeout: 248 seconds]
renich has quit [Ping timeout: 272 seconds]
renich_ has joined #ruby
renich_ is now known as renich
za1b1tsu has joined #ruby
mayurvpatil has quit [Quit: This computer has gone to sleep]
kyrylo has joined #ruby
n13z has quit [Ping timeout: 268 seconds]
mayurvpatil has joined #ruby
conta has joined #ruby
garethadams has joined #ruby
<garethadams>
Hi!
<garethadams>
I’m using Faraday and trying to write tests that assert a particular HTTP header is added to outgoing requests by a method call
reber has joined #ruby
<garethadams>
Examples I’ve seen suggest mocking `Faraday.new` to return a `Faraday::Adapter::Test` that I can call assertions on. That’s fine in principle, but if I mock `Faraday.new` then I’m overriding the call where I actually add the API key: `Faraday.new { |c| c.headers[“API-KEY”] = “123” }`
reber has quit [Read error: Connection reset by peer]
reber has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has joined #ruby
<haxx0r>
in shell i call arguments to rpc like this ` ./rpc -testnet listtransactions * 1000 0 true`
<haxx0r>
i can't figure out how to implement that in ruby net/http
<ZAJDAN>
what do You recommend....create directory via 'fileutils' or use 'system call mkdir' ?
mayurvpatil has quit [Quit: This computer has gone to sleep]
conta has quit [Ping timeout: 272 seconds]
<ZAJDAN>
how to create multiple nested child folders? something like: FileUtils.mkdir_p 'grandparents/parents/{1,2,3,4,5,6}'
cd has quit [Quit: cd]
<leftylink>
it may be necessary to use `each` to create those dirs.
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ZAJDAN>
mkdir shoul can: mkdir -p /grandparents/parents/{1,2,3,4,5,6} ....but when I call it as: system ('mkdir' , 'p' , File.join("/grandparents/parents/{1,2,3,4,5,6}") ) ..doesnt create it
<leftylink>
because the shell does the expansion of {}
<ZAJDAN>
aha
conta has joined #ruby
marahin_ is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
<ZAJDAN>
shell is expecting some variable inside the {} ?
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayurvpatil has joined #ruby
<ZAJDAN>
ok...you say shell...but I though that 'system' call the shell
dhollin3 has quit [Ping timeout: 245 seconds]
<leftylink>
o
<leftylink>
hmm
<leftylink>
well, compare difference bween when I ask `echo {1,2,3}` in my shell vs `system('echo', '{1,2,3}')` in ruby
<leftylink>
but also, compare when do `system('echo {1,2,3}')` in ruby.
<ZAJDAN>
as you pointed me to use '.each' maybe this could be solution
conta1 has joined #ruby
deathwishdave has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
schneider has quit [Ping timeout: 252 seconds]
<ZAJDAN>
I have choosen this way: system('mkdir', '-p', File.join("#{path}/1"),File.join("#{path}/2"), File.join("#{path}/3") )
<ZAJDAN>
it is essential I call the system('mkdir' ...only once
kyrylo has joined #ruby
schneider has joined #ruby
<NL3limin4t0r>
ZAJDAN: Isn't `exec` called in the shell? Try `exec("mkdir -p #{path}/{1,2,3}")` instead of `system` or alternatively simply "result = `mkdir -p #{path}/{1,2,3}`" (using quotes since backticks are acual code in this example).
<NL3limin4t0r>
Never mind, just tested it and in also simply creates the folder "{1,2,3}" as opposed to the folders "1", "2" and "3".
Fusl has quit [Excess Flood]
Fusl has joined #ruby
<ZAJDAN>
NL3: it was first what I have tried...doesnt works
<ZAJDAN>
as you can see in my previous post :_)
<ZAJDAN>
aha! (using quotes since backticks ......OK I gonna try
<ZAJDAN>
and the exec
<leftylink>
I note that since it is a desire to only use mkdir once, one would probably want to avoid repetition of the File.join by using a map and splat
<NL3limin4t0r>
ZAJDAN: That question should be asked in #RubyOnRails, but the answer is use `pluck` instead of `select`. The difference is that `pluck` returns the values asked for while `select` still instantiates an instance of the model, filling only the values that are specified as `select` arguments.
<ZAJDAN>
Nl3: works too... Commission.select(:path_to_pdf).where(:commission_num => 123456).first.path_to_pdf
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
donofrio has joined #ruby
<ZAJDAN>
2l2o3-cr: is good to know that instead of ...system ('mkdir' , 'p' , File.join("/grandparents/parents/{1,2,3,4,5,6}") ) ...should be ...system ("mkdir -p /grandparents/parents/{1,2,3,4,5,6}")
* al2o3-cr
wanders off to get some food
al-damiri has joined #ruby
deathwishdave has joined #ruby
s3nd1v0g1us has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deathwishdave has joined #ruby
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
aupadhye has quit [Quit: Leaving]
schneider has quit [Ping timeout: 268 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<varjack>
xmldoc.elements.each("Movies/Movie") doesn't iterate over any of the "movie" nodes
<varjack>
ok let me be a little more specific: I have a different xml document where the mrnge is connections, and each node is called "Node"
<varjack>
So I'm trying "Connections/Node" but nothing is iterating
orbyt_ has joined #ruby
varjack has left #ruby [#ruby]
codefriar has quit [Ping timeout: 245 seconds]
codefriar has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Iarfen has joined #ruby
<Iarfen>
hi!
<Iarfen>
when using wicked pdf, how I can load javascript? I'm trying with wicked_pdf_javascript_include_tag but the javascript file is not being executed
Makku has joined #ruby
<Makku>
Hi, what is the latest compiler used in Ruby, and what is it in Ruby 2.1
<leitz>
On the rare times I e-mail Ruby book authors I may have asked if the release of Ruby 3 would be a good time to update their book. :)
Deesl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
argoneus has quit [Quit: No Ping reply in 180 seconds.]
<havenwood>
leitz: These are a bit hard to tackle together, since they're pretty divergent.
<havenwood>
leitz: Starting with frozen string literals, the point is to avoid a Python 2-3. There's still time to reverse that decision, but Matz is determined to maintain compatibility. I reallly don't think Ruby errs too far towards compatibility, so I'm okay with this.
GodFather has quit [Read error: No route to host]
<havenwood>
leitz: The gripe is we'd like to not have that line. I agree. That said, backwards compatibility is super important.
<leitz>
havenwood, understood. For me the biggest, really only, issue, is the idea of distance between the core team and the community.
<adam12>
Future looks reasonably healthy IMHO. That said, Nick Sutter did a talk fairly recently that echoes some of my sentiment. We (understably) get more smaller bits than larger features/changes. That might be a bit of an issue long term. https://www.youtube.com/watch?v=x0JlOxdXA_g
<havenwood>
leitz: I don't think it's an indicator of something awry, like the author suggests.
<leitz>
For backwards compatibility, I agree with the current course, if it can be maintained. I don't know the language internals, though.
<havenwood>
leitz: The pipe operator debate is a matter of folk (like baweaver, me, and many others) who prefer the Elixir syntax. Matz has explained the technical reason he doesn't think that's possible in Ruby. It's a reasonable addition. I've proposed <| operator to disambiguate from the functional variet.
<havenwood>
varient.*
<Makku>
adam12 I have heard of JIT compiler as experimentally used in ruby 2. What is the default compiler
<havenwood>
The pipe and pattern matching are both experimental features.
<havenwood>
The point is to experiment.
<havenwood>
I'm not worried that some in the community don't like the experiments.
<havenwood>
That's fine.
<havenwood>
And expected!
<leitz>
Hey adam12! What larger features would you see in the core?
<havenwood>
Makku: GCC
<leitz>
havenwood, so the pipe and pattern matching are not "really" in the core, yet?
<havenwood>
leitz: No, they're experimental features
<havenwood>
They *might* be introduced or yanked
<havenwood>
Or changed
<leitz>
Ah, I didn't get that from the article.
<NL3limin4t0r>
leitz: Point 2 of the linked article complains about the pipe operator not being what people expected. But the author must have forgotten that we already got the compose operator (>> and <<) for methods and procs that are basically what he expects from the pipe operator.
<leitz>
Of course, I read overly fast some times.
<adam12>
Makku: Oh! That makes more sense. I believe it will use gcc or clang. I wouldn't be surprised if it prefered the one that Ruby was compiled with, which is going to be OS/distro dependent.
<havenwood>
Anyhoo, I disagree that these are issues that bode poorly for Ruby. I think it's FUD.
<havenwood>
The things going right are a lot more compelling.
<havenwood>
Makku: In Ruby 1.8 and prior, Ruby used Matz' interpreter. In Ruby 1.9 and subsequent, it has used the YARV VM.
<leitz>
Well, the community is certainly a plus. Most of the book authors I've contacted have been another plus.
<havenwood>
Makku: The JIT is an experimental feature that's disabled by default.
<leitz>
Getting things done is a plus, as is being able to read your own code the next week.
Makku has quit [Remote host closed the connection]
<adam12>
leitz: I don't have any off the top of my head (other than gradual types), but Nick mentions a few that would be interesting: pattern matching, better concurrency, method overloading, better kw args, macros, real namespaces and packages, functions not closures, etc.
<adam12>
(yes I know pattern matching is kinda coming)
<adam12>
He also mentions immutable structures which is also interesting (not having to depend on hamster for example)
<havenwood>
better concurrency is coming
<havenwood>
core has said no to pervasive immutable structures
<havenwood>
macros, no
<havenwood>
Question: "Will Ruby ever get macros?"
<havenwood>
Matz: "Short answer, 'No.' Long answer, 'Hell No.'"
<leitz>
:P
<havenwood>
(That was his actual response.) ;)
<havenwood>
pattern matching, yes - but limited
<adam12>
It would change Ruby style but a common argument I have to face with non-Rubyists who I'm integrating into projects is why everything gets dumped into the global namespace. I think in some ways Python is nicer there (and Go).
<havenwood>
Or Clojure and Elixir's take seem particularly nice.
<bougyman>
What do you mean by that, adam12?
<bougyman>
If you namespace inside of modules that's not in the global namespace. Or do you mean something else?
<leitz>
Is pattern matching like PCRE, or am I misunderstanding?
<kyrylo>
Ruby 3 may have some kind of namespacing. IIRC matz has mentioned that it would be nice to have that
<bougyman>
No, leitz.
<havenwood>
leitz: No, not regexp - think matching variables to patterns. Elixir is a good example.
<adam12>
bougyman: require "cgi"; CGI is now a constant everywhere. That's an easy one because cgi == CGI but it's not always like that.
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
<leitz>
Nice chat on the back porch with the wife.
<leitz>
I thought Ruby had name spaces possible, like putting things in a gem that had the libraries in a sub directory.
<leitz>
That said, I'm only an apprentice, so still learning. The issue is that I'm old, dang near ancient, and am looking for ways to keep my career growing in a useful direction.
GodFather has quit [Read error: Connection reset by peer]
themsay has quit [Read error: Connection reset by peer]
sauvin has quit [Ping timeout: 252 seconds]
themsay has joined #ruby
themsay has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 252 seconds]
themsay has joined #ruby
themsay has quit [Ping timeout: 268 seconds]
Technodrome has joined #ruby
sandstrom has joined #ruby
<leitz>
It went quiet...
themsay has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
s3nd1v0g1us has quit [Quit: WeeChat 2.4]
mniip has quit [Ping timeout: 622 seconds]
za1b1tsu has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
mniip has joined #ruby
<havenwood>
We suspended to await Ruby questions.
<leitz>
Ah. :)
<havenwood>
(Lunch.)
<leitz>
I'm going back to the basics and reading "Head First Ruby". Spent much of the year so far in Perl, Go, and Python. Mostly due to work.
yokel has quit [Read error: Connection reset by peer]
gix has joined #ruby
<havenwood>
leitz: Have you tried making a gem yet? Making apps?
galaxie has quit [Remote host closed the connection]
deepredsky has joined #ruby
galaxie has joined #ruby
yokel has joined #ruby
<leitz>
havenwood, that sort of depends. A "good" gem, or a "good" app? No. "Something that might look like a gem or an app if you're half blind and half drunk"...maybe...
<havenwood>
leitz: Nice.
<havenwood>
leitz: Any current Ruby projects? Anything you're thinking of making in particular?
<leitz>
I have the book "Effective Testing with RSpec 3" and love it. Mostly because it puts things together for me in a way that I never really "got".
<leitz>
havenwood, I've looked at Roda, and it's cool. Jeremy does some awesome stuff. My issue is that I learn much better with a book than a web page.
<havenwood>
Ahh. Hmm, there's no Roda book that I know of. Avdi did several Ruby Tapas episodes on it.
<leitz>
Of course, if someone wrote "Jeremy's Cool Ruby Apps", with sections for Roda and Sequel, I'd buy it. :)
jefffrails35 has joined #ruby
<havenwood>
Roda and Sequel both have great plugins...
jefffrails35 has quit [Remote host closed the connection]
<leitz>
My plan is to learn enough Sinatra to understand it, and then I can look at Roda once I have a frame of reference to build off of.
<havenwood>
leitz: Yeah, they're similar enough.
<havenwood>
leitz: I don't think you'll have trouble grokking Roda.
<leitz>
Of course, I finally "got" some of the Go web stuff once I had read about Sinatra. Solved my need for PHP. :)
<havenwood>
leitz: I'd suggest making a Rack app, just to see what that's like and what its limitations are.
<havenwood>
leitz: Then try Roda to see how its routing tree better handles routes and errors.
<havenwood>
leitz: And you can extend from there with plugins.
al-damiri has quit [Quit: Connection closed for inactivity]
<leitz>
Jeremy's page showed some good performance statistics.
<havenwood>
leitz: Yeah, Hanami and Roda both have impressively low memory and high performance.
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
chalkmonster: I think it's more likely that ioquatix's PR for lightweight thread selector with fibers gets merged: https://github.com/ruby/ruby/pull/1870
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
<havenwood>
chalkmonster: As I understand it, that would increase the performance of Falcon - which is already blazing: https://github.com/socketry/falcon
<havenwood>
chalkmonster: It wouldn't mean a Thread-like interface for Fibers though.
<chalkmonster>
havenwood: I was recently looking at socketry projects
<havenwood>
chalkmonster: nice!
<chalkmonster>
The new Puma decided to use nio4r too, which is pretty great
<chalkmonster>
allegedly more efficient, but I haven't run it yet