LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
chouhoulis has joined #ruby
Robtop__ has quit [Ping timeout: 260 seconds]
brent__ has quit [Remote host closed the connection]
bkxd has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
<ineb>
what mechanism gives me the #<Pathname:/tmp> representation here? how can i change it to #<MyClass:/tmp>? https://paste.xinu.at/BwWAo8/
mikecmpbll has quit [Quit: inabit. zz.]
<matthewd>
ineb: That's #inspect
<ineb>
nice
wald0 has quit [Quit: Lost terminal]
username2 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<ineb>
matthewd: so i came up with https://paste.xinu.at/De1/ yet initialize still gives me Pathname#inspect
caboclo-tau is now known as tau
Gaelan has quit [Quit: Gaelan]
<matthewd>
Simple debugging would confirm whether your method is getting called
fmartingr has quit [Quit: Connection closed for inactivity]
Gaelan has joined #ruby
patarr has joined #ruby
tolerablyjake has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
blackmes1 has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 264 seconds]
Vile` has joined #ruby
__Yiota has joined #ruby
patarr has joined #ruby
__Yiota has quit [Client Quit]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
__Yiota has joined #ruby
<ineb>
matthewd: iam unable to figure out the issue. i may ask another time and leave it as is right now. altough a wrong #inspect is propably an express train to bugs
LuckyABA has joined #ruby
roamingdog has joined #ruby
<matthewd>
What have you tried?
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antoniobeyah has quit [Quit: Connection closed for inactivity]
<ineb>
what is there to try? patching Pathnames #inspect did the trick but otherwise i was unable to make it call my MyClass#inspect on initilization
Robtop__ has joined #ruby
<matthewd>
Put a puts or raise inside your method to check whether it's getting called, or make it return a test string
<ineb>
its not getting called
dionysus69 has quit [Ping timeout: 256 seconds]
<matthewd>
How have you determined that?
c0dy has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
<ineb>
matthewd: yes
<matthewd>
"yes" is not an answer to a "how" question
<ineb>
oh, by whatever you said.
<ineb>
or pry session
aeontech has joined #ruby
br0d1n has quit [Ping timeout: 240 seconds]
gsilva has joined #ruby
<matthewd>
Oh, pry is new information. pry doesn't [directly] use inspect.
c0dy has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb>
oh i see, irb behaves different
Rodya_ has joined #ruby
Channel6 has joined #ruby
<ineb>
it can be an issue with pry, i will inspect it further and maybe open an issue
<matthewd>
It's a known and intended behaviour of pry
gdonald has quit [Read error: Connection reset by peer]
karmatr0n has joined #ruby
gdonald has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
<ineb>
you think its intended to send #inspect to the delegatee class instead to the delegator?
<ineb>
in my case use Pathname#delegate instead of MyClass#delegate
<ineb>
errr inspect
<ineb>
sorry.
<matthewd>
As I said, pry is not calling inspect
<matthewd>
From memory, I think it calls pretty_print
Rodya_ has quit [Ping timeout: 246 seconds]
biberu has quit []
<ineb>
ill go and ask in #pry
patarr has quit [Ping timeout: 240 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather_ has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
GodFather has joined #ruby
[k- has quit [Ping timeout: 268 seconds]
ixti has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jameser has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
jusa has joined #ruby
vondruch has quit [Ping timeout: 258 seconds]
vondruch has joined #ruby
[k- has joined #ruby
jenrzzz has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
username1 has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
s2013 has joined #ruby
username2 has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
Azure|dc is now known as Azure
jusa has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
Mia has quit [Read error: Connection reset by peer]
<matthewd>
Verity: map is important. Take the time to play with it and understand it.
<havenwood>
Verity: I'd suggest experimenting with #each and #map in irb or pry. It's worth reading up and developing a firm understanding of these essential methods.
<Verity>
ok, I will definitely do that then
gnufied has quit [Quit: Leaving]
Gaelan has quit [Quit: Gaelan]
bheesham has joined #ruby
Gaelan has joined #ruby
Gaelan has quit [Client Quit]
moei has quit [Read error: Connection reset by peer]
xnxq has quit [Ping timeout: 260 seconds]
Gaelan has joined #ruby
moei has joined #ruby
Autolycus has joined #ruby
[k-_ is now known as [k-
TheWhip has joined #ruby
kegster has quit [Ping timeout: 260 seconds]
bokayio has quit [Read error: Connection reset by peer]
bokayio has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kegster has joined #ruby
renchan has joined #ruby
xnxq has joined #ruby
_djbkd has quit [Quit: My people need me...]
Gaelan has quit [Quit: Gaelan]
chaos95 has joined #ruby
bkxd has joined #ruby
krzysztoff has quit [Ping timeout: 240 seconds]
aeontech has joined #ruby
krzysztoff has joined #ruby
naturehack has joined #ruby
tolerablyjake has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 240 seconds]
naturehack has quit [Remote host closed the connection]
xall has joined #ruby
roamingdog has quit []
enterprisey has quit [Ping timeout: 268 seconds]
armyriad has quit [Quit: Leaving]
karmatr0n has joined #ruby
armyriad has joined #ruby
enterprisey has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
cahoots has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
A124 has quit [Ping timeout: 240 seconds]
krzysztoff has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
Autolycus has quit []
Eiam has quit [Ping timeout: 240 seconds]
bheesham has quit [Quit: leaving]
* dminuoso
has stopped using things like #each
<dminuoso>
They just lead to silly programming. :o)
karmatr0n has joined #ruby
TheWhip has quit [Remote host closed the connection]
enitiz has joined #ruby
patarr has joined #ruby
jsilver has joined #ruby
<jsilver>
is there anything like faraday I can use to HTTP upload a file... but with a callback for upload chunks so I can make a progressbar?
cahoots has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 240 seconds]
TomyLobo2 has joined #ruby
willardg has joined #ruby
willardg has quit [Client Quit]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ahuman has quit [Ping timeout: 268 seconds]
TheWhip has joined #ruby
grillon has joined #ruby
ahuman has joined #ruby
naztharune has quit [Quit: naztharune has no reason]
raspado has joined #ruby
TheWhip has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
nahra` has joined #ruby
<havenwood>
jsilver: It can be done with net/http manually or mechanize and rest-client are net/http wrappers that have added streaming uploads. Or http.rb, httpclient, excon, em-http-request, and curb all implement streaming uploads.
nahra has quit [Remote host closed the connection]
ta_ has joined #ruby
raspado has quit [Ping timeout: 264 seconds]
<jsilver>
nice
<jsilver>
do you know how to do it with http.rb
<jsilver>
i'd rather use http.rb than anything
karmatr0n has joined #ruby
<havenwood>
jsilver: i was just having second thoughts about whether excon and http.rb actually support upload streaming too, and was wondering if typohoeus does too (the others i listed above do)
<havenwood>
lemme confirm
xnxq has quit [Quit: WeeChat 1.7]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
raspado has joined #ruby
astrobunny has quit [Remote host closed the connection]
<herwin>
and exactly what is wtf about that?
<adaedra>
I would have expected it to raise error (missing space between inject and :+)
doublemalt_ has joined #ruby
raspado has quit [Ping timeout: 246 seconds]
biberu has joined #ruby
rgr has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather_ has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
GodFather has joined #ruby
rgr_ has quit [Ping timeout: 256 seconds]
jusa has joined #ruby
certainty has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
GodFather_ has quit [Ping timeout: 246 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 256 seconds]
opus has joined #ruby
workmad3 has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
jeyraof^mbpr has quit [Quit: Leaving]
ferr1 has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
etehtsea has joined #ruby
ar1a has joined #ruby
<ar1a>
:/ hey guys, i have this problem. I'm getting this error when i execute a simple script game.rb:23:in `<main>': undefined method `+@' for nil:NilClass (NoMethodError)
cajone has joined #ruby
<ar1a>
but the line is just "end", closing off an else statement
<elomatreb>
There is no ++ in Ruby, use `+= 1` instead
<tobiasvl>
ar1a: the error is in line 14, tries++
<tobiasvl>
it says the error is at line 23 because it thinks you're trying to do tries + +(result of if/else)
<tobiasvl>
which is also where the unary + comes from
<ar1a>
ah
<ar1a>
ok
<ar1a>
Guess the number between 1 and 100!
<ar1a>
50
<ar1a>
You got it! Congratulations Aria! It took you 1 tries.
<ar1a>
lol
bkxd has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
fxa90id has joined #ruby
Guest41456 has left #ruby ["Leaving"]
govg has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
maattdd has quit [Ping timeout: 260 seconds]
agent_white has quit [Quit: leaving]
jaruga has quit [Ping timeout: 240 seconds]
Fernando-Basso has joined #ruby
bkxd has joined #ruby
Fernando-Basso has quit [Client Quit]
hanmac has quit [Ping timeout: 260 seconds]
Fernando-Basso has joined #ruby
nobitanobi has quit [Remote host closed the connection]
thadtheman has quit [Ping timeout: 264 seconds]
bkxd has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
awk has joined #ruby
maattdd has joined #ruby
<awk>
Hi, I was wondering if anyone could help. This ruby script, https://pastebin.com/WUQPyApM runs and tails a file trying to find a string, the problem is it's to slow and misses the line, yet if I use tail -f /path/to/file/blah.log | grep whatIneed it works... So in bash I have done this https://pastebin.com/NrMDvzer which also works... Please can someone advise what I can do to have ruby read this as I don't wan
<ruby[bot]>
awk: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<awk>
t to use bash
hanmac has joined #ruby
<awk>
erp, sorry
nlvkjq has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 260 seconds]
<matthewd>
awk: "the problem is it's to slow and misses the line"
<matthewd>
Which one is it?
rgr_ has joined #ruby
cfec0b8d has joined #ruby
rgr has quit [Ping timeout: 260 seconds]
thadtheman has joined #ruby
potatoe has joined #ruby
<potatoe>
hello guys, I'm getting this error ERROR: Could not find a valid gem 'logstash-core-event-java' (>= 0) in any repository even though the gem exists on rubygems
<potatoe>
any idea why?
<matthewd>
potatoe: As the name suggests, the gem is only available for jruby
xall_ has joined #ruby
<potatoe>
matthewd should I install that seperately?
cajone has quit [Ping timeout: 240 seconds]
<potatoe>
and matthewd I've installed jruby and I still cant install it
<matthewd>
I'd suggest following the install instructions for logstash.. afaik they don't recommend installing it as a gem anyway
GodFather has joined #ruby
<potatoe>
matthewd but the installation for logstash doesn't actually work for its plugins
<matthewd>
You'd need to be installing gems into jruby, not your default system ruby
<potatoe>
this is the error: Make sure that `gem install logstash-core-event-java -v '5.0.2'` succeeds before bundling
ar1a has left #ruby [#ruby]
jgnagy has joined #ruby
<awk>
matthewd: sorry to sound stupid, what are you meaning... that ruby script I run with /path/to/file 'CoreConfigurationService STARTING'
<awk>
It sometimes catches it, and sometimes it doesn't, but tail -f /path/to/file | grep 'CoreConfigurationService STARTING' gets it each time
cajone has joined #ruby
<matthewd>
awk: My question was mostly what "too slow" means here, to you
<matthewd>
awk: There's a difference between what this does and what tail -f does, which seems like it could be relevant, so I'm trying to understand more context
<awk>
matthewd: I'm watching a logfile, and when I get an entry i'm looking for in the logfile, I'm then happy to move to another systemd process I need to run
<awk>
So it's a startPost step on a startup service
jgnagy has quit [Ping timeout: 240 seconds]
<awk>
Service starts, then kicks off this script to wait for the entry, if it doesnt display that log entry then there is problems elsewhere (DB related), if it gets the response its good to move to the next service
<matthewd>
tail -f outputs the last 10 lines of the file
<matthewd>
If the event happens before your script runs, tail will find it if it gets lucky (nothing else has logged > 10 lines); the ruby script seeks to the end of the log, so has no such luck-buffer
infernix has quit [Ping timeout: 245 seconds]
<matthewd>
(in case that was too subtle: "This is a flawed design, because it relies on ~winning a race to notice the event. If you need it to work reliably, you should do something else.")
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
gbfrow has joined #ruby
bkxd has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jameser has quit [Client Quit]
chouhoulis has joined #ruby
mim1k has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
NL3limin4t0r has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jsrn_ has quit [Ping timeout: 240 seconds]
<LyndsySimon>
Rubocop complains when I have more than five parameters for a method, but I often have more than five optional parameters passed in as an options hash. I prefer to explicitly write those options out now as named parameters, and am refactoring some of my old code to reflect that. Is it idiomatic Ruby to have a long list of named, optional parameters for a
<LyndsySimon>
method?
__Yiota has joined #ruby
<LyndsySimon>
I'm specifically talking about helpers in Rails, by the way. I use them to abstract out complex things like creating an HTML table of data. Lots of parameters in that case means I get to use a consistent interface for generating the table in my views.
<darix>
LyndsySimon: i think hash to carry long options are more common
yasu has joined #ruby
griffindy has joined #ruby
patarr has joined #ruby
<LyndsySimon>
darix: I agree that it's more common; I'm eschewing it because named parameters have better IDE support.
mim1k has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
Snickers has joined #ruby
ta_ has quit [Remote host closed the connection]
gsnedders has quit [Quit: leaving]
gsnedders has joined #ruby
yasu has quit [Client Quit]
yasu has joined #ruby
griffindy has quit [Ping timeout: 240 seconds]
gsnedders has left #ruby [#ruby]
naprimer has joined #ruby
adavia has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
daveomcd has joined #ruby
chouhoul_ has joined #ruby
haylon has quit [Ping timeout: 256 seconds]
bkxd has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
Karunamon|2 is now known as Karunamon
s2013 has joined #ruby
aryaching has joined #ruby
xall_ has joined #ruby
ekinmur has joined #ruby
troulouliou_div2 has joined #ruby
kent\n has quit [Remote host closed the connection]
naprimer is now known as krzysztoff
ldnunes has joined #ruby
alibby has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
kent\n has joined #ruby
ozcanesen has joined #ruby
milardov_ has joined #ruby
choke has joined #ruby
shinnya has joined #ruby
jgpawletko has joined #ruby
infernix has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 256 seconds]
<szulak>
a quote from "Humble Little Ruby Book" made my day... "Firstly, if it is querying an attribute, it should end in a question mark; for example, if you were to write a method to get the number of French military victories, you could do something like France.has_military_victories?. This would, of course, return false."
<szulak>
about methods naming.
etehtsea has joined #ruby
xall has joined #ruby
asdf234 has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
aganov has quit [Remote host closed the connection]
joneshf-laptop has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
antoniobeyah has joined #ruby
jrafanie has joined #ruby
llaine_ has joined #ruby
VladGh_ has quit [Remote host closed the connection]
polishdub has joined #ruby
llaine has quit [Ping timeout: 258 seconds]
VladGh has joined #ruby
et09 has joined #ruby
VladGh has quit [Remote host closed the connection]
<et09>
i have [1,2,3,4]. i want to say, please execute ->(x){x**2 == 9} and return the x**2 for the first match (or whatever computation). i.e., please return the return value of lambda x of enumerable y that is truthy
<et09>
is there a non-manual way to do that
gsilva has quit [Ping timeout: 268 seconds]
VladGh has joined #ruby
VladGh has quit [Remote host closed the connection]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<et09>
trying to resolve a polymorphic association on a list of objects
<et09>
in priority
<et09>
hxegon: trying to avoid the double-query
mim1k has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
armyriad has quit [Read error: Connection reset by peer]
joneshf-laptop has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb>
et09: you shouldn't do that, instead, query all at once if you need almost all OR write a WHERE clause which finds the correct item if you're looking for exactly one or two
<Papierkorb>
or 'few'
<Papierkorb>
et09: a good ol' JOIN might already help too
ResidentBiscuit has joined #ruby
<et09>
you're probably right
<hxegon>
why not just .lazy.find?
djbkd has quit [Remote host closed the connection]
<Papierkorb>
hxegon: database queries? that's a premier way of producing n+1 queries
djbkd has joined #ruby
<et09>
this query would prob never exceed 2ms
patarr_ has joined #ruby
<Papierkorb>
2ms here, 2ms there ...
<et09>
although uh, the list is prioritized
jgnagy has joined #ruby
<et09>
so it'd have to order and then limit...
<Papierkorb>
That's the job of a database
<et09>
Papierkorb: and a max base set of length 3
patarr has quit [Ping timeout: 256 seconds]
djbkd has quit [Ping timeout: 260 seconds]
infernix has joined #ruby
doublemalt_ has joined #ruby
marr has quit [Ping timeout: 240 seconds]
igniting has joined #ruby
jgnagy has quit [Ping timeout: 268 seconds]
asdf234 has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
aufi has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 240 seconds]
mark_66 has quit [Remote host closed the connection]
Rodya_ has joined #ruby
flying has joined #ruby
hostess has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
rgr_ has quit [Quit: rgr_]
meshsmith has quit [Remote host closed the connection]
conta has quit [Ping timeout: 268 seconds]
nobitanobi has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mim1k has joined #ruby
cfec0b8d has quit [Ping timeout: 258 seconds]
brent__ has joined #ruby
milardov_ has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
milardovich has joined #ruby
dionysus70 has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 264 seconds]
dionysus70 is now known as dionysus69
Qchmqs has quit [Quit: Konversation terminated!]
Burgestrand has quit [Quit: Closing time!]
certainty has quit [Ping timeout: 258 seconds]
milardovich has quit [Ping timeout: 268 seconds]
leito has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
amclain has joined #ruby
montanonic has joined #ruby
jrafanie has joined #ruby
boombox_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
willardg has joined #ruby
mim1k has joined #ruby
username1 has joined #ruby
username2 has joined #ruby
renchan has quit [Quit: Leaving...]
jgnagy has joined #ruby
username2 has quit [Client Quit]
username1 has quit [Client Quit]
raspado has joined #ruby
milardovich has joined #ruby
raspado_ has joined #ruby
govg has joined #ruby
raspado has quit [Read error: Connection reset by peer]
willardg has quit [Client Quit]
hxegon has quit [Quit: leaving]
Jayson_Virissimo has joined #ruby
leito has joined #ruby
Jayson_Virissimo has quit [Client Quit]
TomyWork has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
TomyWork has joined #ruby
hxegon has joined #ruby
gsilva has joined #ruby
planigan has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 240 seconds]
planigan has joined #ruby
inerkick has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
nOwz has joined #ruby
hndk has joined #ruby
[Butch] has joined #ruby
boombox_ has quit [Remote host closed the connection]
jge has joined #ruby
<jge>
hey all
weaksauce has quit [Ping timeout: 256 seconds]
<jge>
trying to get ruby install in ubuntu server, which is not allowed to connect out to the internet except ubuntu repos.
armyriad has joined #ruby
<jge>
so I went with installing from source, however, I'm running into an issue on my last step (installing bundler) I do "gem install bundler" but then of course that fails since it tries to connect to rubygems.org
<jge>
any other way do install bundler without using gem command?
patarr has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
patarr has joined #ruby
xall has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
rakm_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
planigan has quit [Ping timeout: 264 seconds]
planigan has joined #ruby
futilegames has quit [Quit: futilegames]
tvw has joined #ruby
rakm has joined #ruby
centrx has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
planigan has quit [Ping timeout: 246 seconds]
renchan has joined #ruby
nOwz has joined #ruby
Rodya_ has quit [Remote host closed the connection]
IRCFrEAK has joined #ruby
preyalone has joined #ruby
IRCFrEAK has left #ruby [#ruby]
planigan has joined #ruby
jrafanie has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
benlieb has quit [Quit: benlieb]
nowhere_man has joined #ruby
planigan has quit [Ping timeout: 240 seconds]
_n3xus__ has quit [Quit: leaving]
benlieb has joined #ruby
futilegames has joined #ruby
planigan has joined #ruby
jusa has quit [Ping timeout: 256 seconds]
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
IRCFrEAK has joined #ruby
nOwz has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
planigan has quit [Ping timeout: 258 seconds]
IRCFrEAK has left #ruby [#ruby]
planigan has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
montanonic has quit [Ping timeout: 260 seconds]
camonz has joined #ruby
psychicist__ has quit [Quit: leaving]
planigan has quit [Ping timeout: 256 seconds]
skweek has quit [Ping timeout: 256 seconds]
planigan has joined #ruby
chrisgopher has joined #ruby
AndBobsYourUncle has joined #ruby
skweek has joined #ruby
<LyndsySimon>
I'm going through a static analysis report, and am confused. It says that passing a user-supplied value to `ActiveRecord::Base.find` is a SQL injection vuln. I can't figure out any way that's possible. Anyone have an opinion on this?
planigan has quit [Client Quit]
psychicist__ has joined #ruby
<LyndsySimon>
The line that's raising the warning is: `@my_object = MyObject.find(params[:id])`
<LyndsySimon>
Seems like pretty standard stuff to me.
goldpank has joined #ruby
bmurt has quit [Ping timeout: 246 seconds]
<centrx>
LyndsySimon: yeah it's probably just wrong
foxness has joined #ruby
DLSteve has joined #ruby
<LyndsySimon>
centrx: It seems odd, because the report is from a big-name security vendor. Why would they not be able to handle literally the first case that's used in the Rails tutorial?
<centrx>
Maybe their analysis doesn't take ActiveRecord into account?
goldpank has left #ruby [#ruby]
<LyndsySimon>
That appears to be the case, it's just really odd. Saying "No, this is fine" when the entity we're paying to do analysis as part of an audit says there is an issue gives me heartburn.
dionysus69 has joined #ruby
<centrx>
LyndsySimon: That's the way it is. Sometimes things will be flagged that maybe you should look into, but you decide they are okay.
<centrx>
LyndsySimon: Other things will need to be remediated. Other things won't be flagged at all. No one ever gets 100% on a first assessment/audit
nobitanobi has joined #ruby
<LyndsySimon>
True. I guess it's better to be "fail-safe" on a first pass.
daivyk has joined #ruby
bmurt has joined #ruby
<centrx>
LyndsySimon: false positives better than false negatives
psychicist__ has quit [Quit: Lost terminal]
centrx has quit []
skweek has quit [Ping timeout: 240 seconds]
maattdd has joined #ruby
milardovich has joined #ruby
nobitanobi has quit [Ping timeout: 256 seconds]
milardovich has quit [Ping timeout: 246 seconds]
futilegames has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
_I_R_C_F_R_E_A_K has joined #ruby
benlieb has joined #ruby
foxness has quit [Quit: WeeChat 1.7]
futilegames_ has joined #ruby
milardovich has joined #ruby
futilegames has quit [Ping timeout: 260 seconds]
agent_white has quit [Ping timeout: 240 seconds]
daivyk has quit [Quit: Quit]
futilegames_ is now known as futilegames
NL3limin4t0r has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
jphase has joined #ruby
psychicist__ has joined #ruby
grillon has quit []
_I_R_C_F_R_E_A_K has left #ruby [#ruby]
cdg has joined #ruby
jrafanie has joined #ruby
grillon has joined #ruby
Rodya_ has joined #ruby
agent_white has joined #ruby
jrafanie has quit [Client Quit]
sonOfRa has quit [Quit: Bye!]
bkxd has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sonOfRa has joined #ruby
raspado_ has quit [Quit: Leaving...]
s2013 has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 260 seconds]
Eiam has joined #ruby
jrafanie has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
muelleme_ has joined #ruby
millerti has joined #ruby
<jge>
Ok so I'm using bundle install, bundle package then transfer to machine that's offline to install gems.. thing is that every time I do this, some other gem dependency comes up and I have to do this repeatedly for I don't know how many times.. what would be a faster way as this is a real PITA
<jge>
someone suggested earlier to set up an offline mirror but how much space would this take?
<havenwood>
jge: you can just mirror the gems you use
<havenwood>
jge: you don't have to mirror the whole of rubygems
<jge>
havenwood: how would I find out which gems I use? I've already done it for whatever is on Gemfile but my plugins (for Redmine app) appearently require additional ones
workmad3 has joined #ruby
<baweaver>
Gemfile.lock
<havenwood>
jge: bundle show
<baweaver>
that too.
<jge>
Ok got it, let me try that
<jge>
thanks all
gheegh has joined #ruby
jenrzzz has joined #ruby
br0d1n has joined #ruby
montanonic has joined #ruby
marxarelli has quit [Ping timeout: 260 seconds]
<gheegh>
hey guys.. i've got a question. i'm using this gem: https://github.com/robmiller/ruby-wpdb (gives you access to a wordpress database). it configures the DB with a WPDB.init class method.. that seems to be "globalish".. I'm trying to copy between two sites (hence two differently configured WPDB's) and its not letting me to it.. then one initializes, it overwrites the "init" of the previous one..
<gheegh>
i tried cloning into a variable and freezing. .but that doesn't seems to work.. any other suggestions, other than re-writing it?
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
daivyk has quit [Quit: Quit]
knight33 has joined #ruby
daivyk has joined #ruby
bmurt has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
planigan has joined #ruby
xychix has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
rahul_bajaj has quit [Quit: Leaving]
Scient has quit [Ping timeout: 245 seconds]
<xychix>
Any security minded ruby devvers here? I've got a almost finished exploit Pull request for metasploit. It needs some finishing off (~3 hours for devver with experience). PM me and you might get a change to be co-author on a MSF module ;) credits for life!
futilegames has quit [Quit: futilegames]
dfoolz has quit [Ping timeout: 264 seconds]
snapcase has quit [Ping timeout: 240 seconds]
<hxegon>
gheegh: My only idea is Classname.clone to another constant, but I'm not sure if that would work
JeanCarloMachado has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krzysztoff has quit [Ping timeout: 260 seconds]
gloscombe_ has joined #ruby
benlieb has quit [Quit: benlieb]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
krzysztoff has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
yehowyada has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
polishdub has quit [Quit: Leaving]
jdm has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
charliesome has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
cdg has quit [Remote host closed the connection]
HillBill1999 has joined #ruby
<HillBill1999>
What kind of projects are you most impressed with?
<adam12>
HillBill1999: in what sense?
<HillBill1999>
If I was to get a job
<Radar>
Depends on the company I would say.
<HillBill1999>
But ruby is only used for websites right?
<Radar>
If you were applying at the company I work for (Culture Amp) having an app which took in survey responses would definitely be beneficial to your application process :)
<bougyman>
HillBill1999: no.
<HillBill1999>
All companies use ruby to make sites no?
<bougyman>
I use ruby every day and I never touch teb programming.
<bougyman>
*web
<SeepingN>
same
<bougyman>
I use it for infrastructure automation. oh, and as a dhcp server.
<Radar>
HillBill1999: No, there are plenty of other languages out there that people use to build websites. PHP, ASP.NET, Elixir...
<HillBill1999>
Infrawhat?
<bougyman>
replacing system adminstrators with code.
<SeepingN>
we got a young'n
volty has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adam12>
bougyman: You're using it for DHCP?
<bougyman>
adam12: hahaha, yeah.
<bougyman>
it outperforms ISC.
<adam12>
bougyman: I threatened doing that. Is it OSS?
<bougyman>
nope.
<adam12>
I'm using ISC right now, but the reloads suck.
<bougyman>
unfortunately.
<adam12>
I wanted something I could hook any kind of backend to - http, etc.
<bougyman>
this is distributed, multi-master with a shared db behind it.
<adam12>
Since I already store mac+ip assignments in a database.
<adam12>
Damn.
<bougyman>
but nodes can operate (giving out already-seen leases) even if disconnected from the db.
<adam12>
Yeah - I was thinking something very similar.
<adam12>
I ended up building a tiny roda app to manage the dhcpd.conf file, but it's meh.
<adam12>
(the app is fine, managing the conf file is meh)
dlitvak has quit [Quit: Connection closed for inactivity]
jusa has joined #ruby
HillBill1999 has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
nOwz has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
davorb has quit [Read error: Connection reset by peer]
davorb has joined #ruby
chouhoul_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
JeanCarloMachado has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
chouhoulis has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
hutch34_ has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
Trynemjoel has joined #ruby
chouhou__ has joined #ruby
DarkBushido has quit [Ping timeout: 260 seconds]
chouhou__ has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
chouhoulis has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
muelleme_ has joined #ruby
enterprisey has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 256 seconds]
muelleme_ has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
charliesome has joined #ruby
milardovich has joined #ruby
cyphase has joined #ruby
erlend has quit [Remote host closed the connection]
agent_white has quit [Quit: brb]
mim1k has quit [Ping timeout: 260 seconds]
adavia has quit [Quit: Leaving]
Fernando-Basso has quit [Quit: WeeChat 1.7]
bkxd has joined #ruby
maattdd has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
erlend has joined #ruby
gloscombe_ has quit [Quit: gloscombe_]
bkxd has quit [Ping timeout: 256 seconds]
j2k has quit [Quit: Connection closed for inactivity]
erlend has quit [Client Quit]
erlend has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.6]
livcd has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
cyphase has quit [Ping timeout: 246 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
erlend has quit [Quit: Bye]
cyphase has joined #ruby
GodFather has joined #ruby
skord has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
<cahoots>
Radar, i'm looking for something that won't need any sudo, that i can run on a fleet of remote machines without needing to update each one. any ideas?
Snickers has quit [Quit: Snickers]
<Radar>
cahoots: Are all the remote machines Mac?
<cahoots>
Radar, yes
marxarelli is now known as marxarelli|afk
<Radar>
cahoots: I know there's jamf to manage a whole suite of machines, but that might be overkill for this particular instance.
cyphase has joined #ruby
<cahoots>
Radar, yeah we might have jamf, but going through IT is a pain
Snickers has joined #ruby
Snickers has quit [Client Quit]
moei has quit [Quit: Leaving...]
BabyMario has joined #ruby
<cahoots>
i tried a --local install, also no dice
<adam12>
What about --user?
<adam12>
Or am I imagining that as a real option. LOL.
<adam12>
s/--user/--user-install
<Radar>
I think the best option would be to somehow install chruby + ruby-install on those remote machines and install gems as per the regular way.