kristian_on_linu has quit [Remote host closed the connection]
SeepingN_ has quit [Ping timeout: 272 seconds]
lunarkitty has joined #ruby
SeepingN has quit [Ping timeout: 256 seconds]
xco has joined #ruby
SeepingN has joined #ruby
gix has quit [Ping timeout: 256 seconds]
SeepingN has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
buckworst has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wilhelm418 has quit [Ping timeout: 264 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
markopasha has quit [Remote host closed the connection]
entel has quit [Quit: Connection closed for inactivity]
cd has quit [Quit: cd]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
<ule>
phaul: yeah, really interesting
<ule>
Looks like Python does the same thing
oncall-pokemon has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
sergioro has quit [Quit: leaving]
buckworst has quit [Quit: WeeChat 2.8]
oncall-pokemon has quit [Client Quit]
oncall-pokemon has joined #ruby
nofxx has joined #ruby
<oncall-pokemon>
Hi, with net-ldap, is it possible to search via a filter for a user with ObjectClass=person but also only those that aren't uniqueMember's of a specific group? I can't seem to figure this out.
<oncall-pokemon>
I can search for example with Net::LDAP::Filter.eq('objectClass', 'person') but if I try to search for uniqueMember it never works
nofxx_ has joined #ruby
nofxx has quit [Ping timeout: 256 seconds]
greypack has quit [Ping timeout: 260 seconds]
drincruz has quit [Ping timeout: 250 seconds]
dandaman has joined #ruby
TCZ has quit [Quit: Leaving]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
cnsvc has quit [Ping timeout: 240 seconds]
sergioro has joined #ruby
Frobozz has quit [Quit: quit]
cnsvc has joined #ruby
dandaman has quit [Quit: Leaving.]
SuperL4g has joined #ruby
djdduty has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pandakekok9 has joined #ruby
SuperLag has quit [Ping timeout: 265 seconds]
SuperLag has joined #ruby
SuperL4g has quit [Ping timeout: 258 seconds]
dandaman has joined #ruby
arekushi has joined #ruby
<en10n>
Hello, I have an instance of a class inside of an array: [#<Product:0xXXXXXX @name="scissors", @price=8>] - what method can I use to pull out "scissors"?
<en10n>
I was trying things like 'product.first' and 'product.first.name' but they both kept returning the same array mentioned above.
alfiemax has joined #ruby
SuperLag has quit [Ping timeout: 256 seconds]
SuperLag has joined #ruby
dandaman has quit [Quit: Leaving.]
<havenwood>
en10n: Based on what you've said, I'd assume: array.first.name
<en10n>
havenwood: Thank you for trying to help me.
Esa__ has quit []
dandaman has joined #ruby
SuperL4g has joined #ruby
<havenwood>
en10n: Say more about the Product instance? Where'd it come from? What is just?: array.first.inspect
<havenwood>
DRY as in the sense of not repeating "name" or "price" even once. But at what cost?
<havenwood>
Also I didn't test it. >.> Presumed to work until proven otherwise.
SuperLag has quit [Ping timeout: 264 seconds]
SuperL4g has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
buckworst has quit [Quit: WeeChat 2.8]
SuperL4g has joined #ruby
regedit has quit [Quit: Connection closed for inactivity]
cliluw has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has joined #ruby
wymillerlinux has quit [Ping timeout: 256 seconds]
SuperL4g_ has joined #ruby
cthu| has joined #ruby
SuperL4g has quit [Ping timeout: 256 seconds]
cthulchu_ has quit [Ping timeout: 264 seconds]
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
SuperL4g has joined #ruby
SuperL4g_ has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 265 seconds]
pandakekok9 has quit [Read error: Connection reset by peer]
SuperLag has joined #ruby
SuperL4g has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
sauvin has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
pandakekok9 has joined #ruby
hassox has quit [Ping timeout: 256 seconds]
jinmiaoluo has quit [Ping timeout: 264 seconds]
jinmiaoluo has joined #ruby
buckworst has joined #ruby
vondruch has joined #ruby
imode has quit [Ping timeout: 250 seconds]
alfiemax has joined #ruby
vlingesh has joined #ruby
<vlingesh>
I upgraded ruby version to 2.5.x and when I try running some tests on a service in http server, I get this error "header field value cannot include CR/LF. Caused by header field value cannot include CR/LF". Does someone know what the issue is?
cnsvc has quit [Ping timeout: 240 seconds]
<havenwood>
vlingesh: Are any gems involved? If so, which? If not, can you share your code?
alfiemax has quit [Ping timeout: 256 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
<vlingesh>
a gem called httparty is used to send service requests. I'm can't share the code as it's for a company i'm interning, was asked to upgrade the ruby versions in the packages and this error comes
<havenwood>
vlingesh: Are you setting an ENV var for basic auth that has a \r\n or something?
alexherbo2 has joined #ruby
schne1der has joined #ruby
<vlingesh>
The username and password are encoded and is passed to the service for auth. They do not have \r\n in them
<vlingesh>
I did .gsub("/\r/, " ") .gsub("/\n/, " ") just to be sure
<havenwood>
vlingesh: Are there somehow two authorization headers accidentally?
<vlingesh>
Yes, the second link was asked to upgrade the google client, but i'm not running a google client
<havenwood>
vlingesh: Yeah, I don't know which gem is percolating up the issue and I haven't run into this.
<vlingesh>
and no, the auth is passed to the service as :http_authorization => "Basic #{Base64.encode64(user + ':' + password)}
<vlingesh>
just one line
cnsvc has joined #ruby
<havenwood>
vlingesh: Nothing comes to mind for me. Maybe use pry-rescue or something along those lines to get a REPL and pry-stack_explorer or something along those lines to go up the call-stack a bit to see where the offeding CRLF is coming from.
<vlingesh>
Cool! I'll try those out! Thank you so much!
<havenwood>
vlingesh: No prob! Hang around and someone else in the channel may have a better idea. Good luck!
<vlingesh>
Sure thing! Thanks!
cnsvc has quit [Ping timeout: 240 seconds]
sergioro has quit [Quit: leaving]
<havenwood>
vlingesh: byebug or pry-byebug are other options for looking at the stack.
buckworst has quit [Quit: WeeChat 2.8]
deathwishdave has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
buckworst has joined #ruby
vlingesh has quit [Remote host closed the connection]
TomyLobo has quit [Read error: Connection reset by peer]
cd has joined #ruby
cnsvc has joined #ruby
TCZ has quit [Quit: Leaving]
alexherbo21 has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo21 is now known as alexherbo2
arcaos has quit [Ping timeout: 265 seconds]
CrazyEddy has quit [Ping timeout: 265 seconds]
roadie has quit [Ping timeout: 260 seconds]
arcaos has joined #ruby
alexherbo20 has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo20 is now known as alexherbo2
androi has joined #ruby
<androi>
ruby is not working anymore.. if i check the version i got following error: ruby: invalid option -: (-h will show valid options) (RuntimeError) ... any hints?
cnsvc has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
wilhelm418 has quit [Ping timeout: 256 seconds]
<jhass>
what exactly are you running? Can you show us a gist of your terminal session?
<androi>
running on mac.. release 2.4.1, if I switch to a newer version it works
<jhass>
good then update, 2.4 is out of security mainteance anyhow and shouldn't be used anymore :P
<androi>
ok
<androi>
but i still can use rails without webpack?
roadie has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
alfiemax has joined #ruby
jinmiaoluo has joined #ruby
cnsvc has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
ldepandis has quit [Read error: Connection reset by peer]
conta has joined #ruby
androi has quit [Remote host closed the connection]
jinmiaoluo has quit [Remote host closed the connection]
drincruz has joined #ruby
wilhelm418 has joined #ruby
jinmiaoluo has joined #ruby
drincruz has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
jinmiaol2 has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
drincruz has joined #ruby
jinmiaol2 has quit [Ping timeout: 240 seconds]
Phoebus has joined #ruby
pandakekok9 has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
gitter1234 has joined #ruby
xco has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
TCZ has quit [Quit: Leaving]
Ai9zO5AP has quit [Quit: WeeChat 2.7.1]
TCZ has joined #ruby
pandakekok9 has joined #ruby
Ai9zO5AP has joined #ruby
vondruch has joined #ruby
leitz has joined #ruby
Ai9zO5AP has quit [Remote host closed the connection]
cnsvc has joined #ruby
burningserenity has joined #ruby
arcaos has quit [Remote host closed the connection]
alfiemax has joined #ruby
aesthe has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
pandakekok9 has quit [Read error: Connection reset by peer]
cnsvc has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
plutes has quit [Ping timeout: 256 seconds]
fercell has joined #ruby
TCZ has quit [Quit: Leaving]
jingjinghack has joined #ruby
yxhuvud has quit [Remote host closed the connection]
<mikedoty>
Noob question. We got this .erb file that has a line such as this: password: <%= node[:mail_settings][:password] %> which generated a .yml config file on deploy, with the actual password in it on the prod machine. I don't understand what "node" is in this context, or where the values come from.
burningserenity has quit [Read error: Connection reset by peer]
<mikedoty>
My searches on google keep turning up various nodejs results. I assumed node in this context was like "this machine node" but idk
ChmEarl has joined #ruby
burningserenity has joined #ruby
jingjinghack has quit [Quit: WeeChat 2.1]
<adam12>
mikedoty: It could be anything. can you find where the ERB file is rendered from? Maybe grep for the filename in your source and see if you can find a call to `ERB`
<mikedoty>
It looks like it comes from a chef file from some kind of aws deploy. Don't know much at all about how that all works, but now at least it makes sense where these env-ish values come from
banisterfiend has joined #ruby
<giorgian>
mikedoty: node, in chef, represents the current machine. node[:mail_settings][:password] can come from a cookbook, a role, and anvironment and so on
TCZ has quit [Quit: Leaving]
roadie has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
<giorgian>
You can look at the file(s) in the attributes/ directory in the cookbook (usually attributes/default.rb, but there could be environment specific files) to see the default value, that is, if the actual password is really hardcoded in the cookbook, which I hope not. Otherwise it's probably stored in either a role or an environment.
SeepingN has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
jinmiaoluo has joined #ruby
<giorgian>
If you are using Chef Server, you can type `knife node show NODE_NAME` to see the roles and environment, and then `knife role show ROLE` and `knife environment show ENVIRONMENT` to track where the value comes from. If you are using Chef Solo, roles and environments should be stored locally, in some nearby files
Phoebus has quit [Quit: Connection closed for inactivity]
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
SeepingN has joined #ruby
caterfxo has quit [Ping timeout: 264 seconds]
caterfxo has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 240 seconds]
jinmiaoluo has joined #ruby
rippa has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
nofxx_ has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
nofxx has joined #ruby
roadie has quit [Read error: Connection reset by peer]
roadie has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
sergioro has joined #ruby
cnsvc has joined #ruby
beilabs has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
cthu| has joined #ruby
burningserenity has quit [Ping timeout: 256 seconds]
wilhelm418 has quit [Ping timeout: 256 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
fercell has quit [Quit: WeeChat 2.8]
maxmanders has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby
maxmanders has quit [Max SendQ exceeded]
maxmanders has joined #ruby
imode has joined #ruby
darthThorik has quit [Ping timeout: 240 seconds]
gitter1234 has quit [Ping timeout: 246 seconds]
timwis has quit [Ping timeout: 246 seconds]
Net has quit [Ping timeout: 256 seconds]
maxmanders has quit [Ping timeout: 252 seconds]
fowlduck has quit [Ping timeout: 272 seconds]
Pillus has quit [Ping timeout: 272 seconds]
cnsvc has joined #ruby
KnownSyntax has quit [Ping timeout: 246 seconds]
peteretep has quit [Ping timeout: 272 seconds]
BuildTheRobots has quit [Ping timeout: 272 seconds]
jetpack_joe has quit [Ping timeout: 272 seconds]
itok has quit [Ping timeout: 272 seconds]
graphicsv has quit [Ping timeout: 240 seconds]
pilcrow has quit [Ping timeout: 246 seconds]
jinmiaol2 has joined #ruby
Liothen has quit [Ping timeout: 272 seconds]
Net has joined #ruby
darthThorik has joined #ruby
siasmj has quit [Read error: Connection reset by peer]
d3bug has quit [Quit: Connection closed for inactivity]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Tempesta has quit [Quit: See ya!]
Emmanuel_Chanel has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
d3bug has joined #ruby
Tempesta has joined #ruby
zapata has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
cnsvc has joined #ruby
chalkmonster has joined #ruby
rikkipitt has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
rikkipitt has quit [Read error: No route to host]
markopasha has joined #ruby
markopasha has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
ur5us has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
banisterfiend has quit [Quit: banisterfiend]
xco has quit [Ping timeout: 258 seconds]
SeepingN has quit [Ping timeout: 256 seconds]
psmolen has joined #ruby
SeepingN has joined #ruby
brool has joined #ruby
wilhelm418 has quit [Quit: Lost terminal]
funnel has quit [Ping timeout: 256 seconds]
funnel has joined #ruby
fercell has joined #ruby
Ai9zO5AP has joined #ruby
banisterfiend has joined #ruby
wymillerlinux has quit [Quit: wymillerlinux]
ur5us has quit [Ping timeout: 265 seconds]
cahoots has joined #ruby
<cahoots>
hi, i have some code like this: "if is_true { file = Rake::Task['build:mytask'].invoke }". the rake task returns a file path at the end. however, it doesn't seem that invoke returns the file path. how can i get the file path from the rake task?
SuperLag has quit [Ping timeout: 260 seconds]
SuperLag has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]