<foomanbar>
havenwood, I've used as much FileUtil as I think I can. There are some things I'm not sure about about. What if i need to just run some basic commands such as './configure"
anaeem1 has joined #ruby
britneywright has joined #ruby
Noob101 has quit [Quit: Page closed]
wallerdev has quit [Quit: wallerdev]
<havenwood>
Connie: I don't see `sass-gobbling` on RubyGems, a custom gem?
linoj has quit [Quit: linoj]
Noob101 has joined #ruby
<Connie>
wait a sec..
chipotle has quit [Quit: cya]
<Connie>
jeez..
<havenwood>
foomanbar: hem, yeah i think just shelling out there
<Connie>
i got the name wrong.... this is embarrassing
<foomanbar>
havenwood, if i use Zlib, how to I ensure the inflated data is saved ?
<foomanbar>
ie, what do i do with "uncompressed_data"
<foomanbar>
do i need to iterate that and save each file individually?
linoj has joined #ruby
<havenwood>
foomanbar: File and Zlib::Inflate or Zlib::GzipReader.
<foomanbar>
havenwood, ok let me throw up a gist
sgen has quit [Quit: Leaving]
mgberlin has quit [Remote host closed the connection]
linoj has quit [Client Quit]
saarinen has quit [Client Quit]
reset has quit [Quit: Leaving...]
yubrew has joined #ruby
<bricker`LA>
apeiros: The psych gem throws an error when calling "to_yaml": https://github.com/fatfreecrm/fat_free_crm/issues/281 :( I added `gem 'psych'; require 'psych'` after installing the gem. Oh well... I'll just shamefully gsub the file
<foomanbar>
so can I File.open() a folder?
<foomanbar>
in_folder = File.open('/some/dir')
<bricker`LA>
foomanbar: What would expect that command to do? Launch Finder? :)
<foomanbar>
bricker`LA, hahaha
MatthewsFace has joined #ruby
<foomanbar>
Im thinking to hard i guess
<bricker`LA>
finges: Use Dir.foreach() to iterate over files in a directory
<ericwood>
I recommend doing File.open in a block so you get the automatic close at the end :)
yubrew has quit [Ping timeout: 260 seconds]
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
wallerdev has joined #ruby
chipotle has joined #ruby
gzl has joined #ruby
Martxel has quit [Read error: Connection reset by peer]
<havenwood>
foomanbar: You could `require 'rubygems/package'` for `Gem::Package::TarReader` but yeah, the tar bit isn't as straight forward as from the command line.
<foomanbar>
havenwood, thats the solution i saw. bummed there is no Magic::extract('somefile.tar.gz') XD
<foomanbar>
im working with Zlib.. i think im close
<benzrf>
foomanbar: u could make it :-O
<foomanbar>
Magic::perform('save the world')
<bricker`LA>
foomanbar: You can try the Cocaine gem, it helps you safely run shell commands from inside Ruby programs
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
thesheff17_ has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Disconnected by services]
mehlah has quit [Ping timeout: 264 seconds]
thesheff17_ is now known as thesheff17
charlied3 has quit [Ping timeout: 252 seconds]
braincra- has quit [Quit: bye bye]
linoespinoza has joined #ruby
Shidash has joined #ruby
charlied3 has joined #ruby
saarinen has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
braincrash has joined #ruby
aspires has quit []
charlied3 has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 255 seconds]
aspires has joined #ruby
zorak has quit [Ping timeout: 260 seconds]
neiled has joined #ruby
neiled has quit [Max SendQ exceeded]
charlied3 has joined #ruby
aspires has quit [Client Quit]
cobakobodob has quit [Ping timeout: 255 seconds]
vifino has quit [Quit: Ze Cat now leaves...]
kenndel has joined #ruby
Solnse has quit [Remote host closed the connection]
ixti has joined #ruby
kenndel_ has quit [Ping timeout: 240 seconds]
ddv has quit [Ping timeout: 245 seconds]
charlied3 has quit [Ping timeout: 260 seconds]
MatthewsFace has joined #ruby
ddv has joined #ruby
oo_ has quit [Remote host closed the connection]
digifiv5e has joined #ruby
digifiv5e is now known as Guest22956
enebo has quit [Quit: enebo]
aspires has joined #ruby
britneywright has joined #ruby
pwh has joined #ruby
foomanbar has quit [Quit: Leaving]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
aspires has quit [Client Quit]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Azure_ is now known as Azure
zorak has joined #ruby
Orthest has joined #ruby
<Orthest>
lol
<Orthest>
the number of people here is less than the number of my facebook contacts
<Orthest>
hehehe
Connie has quit [Ping timeout: 255 seconds]
reset has joined #ruby
<Orthest>
do you have a facebook group ?
<Orthest>
i will see
dideler has quit [Ping timeout: 264 seconds]
<Orthest>
i mean i will check for some fb gtoups
MatthewsFace has joined #ruby
benzrf is now known as benzrf|offline
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
altin has quit [Ping timeout: 255 seconds]
Georg3 has joined #ruby
<Georg3>
Is there any sort of real value to the methods .center, .ljust, .rjust? From what I can think of, their only real value would be maybe inside a command line application?
<godd2>
sounds like a good use case
<godd2>
especially for output of help options
cobakobodob has joined #ruby
<Georg3>
hm ok, just making sure I wasn't missing something obvious.
<godd2>
also, csv files need a certain number of commas per line with empty values so youd need enough to fill up a line
nasj has joined #ruby
<Georg3>
Hm ok, guess there are a couple edge cases. Probably most when dealing with file output
Channel6 has joined #ruby
nanodano has joined #ruby
njection has joined #ruby
yubrew has joined #ruby
nasj has quit [Ping timeout: 248 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
duncannz has quit [Quit: Leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Connie has joined #ruby
sputnik13 has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
pika_pika has quit [Quit: Leaving]
kireevco has quit [Quit: Leaving.]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CodeLicker has joined #ruby
Sawbones has quit [Ping timeout: 244 seconds]
davedev24_ has joined #ruby
<jrhe>
Whats the best practice for requiring your gem from a bin script when authoring a gem? I have tried just requiring it without luck. Guesisng I need to fiddle with the load path to add lib...
yubrew has quit [Ping timeout: 244 seconds]
awkwords has quit [Ping timeout: 260 seconds]
uffs has joined #ruby
tyfighter has quit [Quit: <3]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
<Hanmac1>
jrhe ruby version?
Hanmac1 is now known as Hanmac
<jrhe>
Hanmac: jruby
<Hanmac>
oh thats even worse ... okay question again ... what ruby version does your jruby version use?
bogeyd6 has quit [Ping timeout: 264 seconds]
<jrhe>
Hanmac: 1.9.3
wildroman2 has joined #ruby
<Hanmac>
then itshould be able to find the gem
bogeyd6 has joined #ruby
warprobot has joined #ruby
wildroman3 has joined #ruby
jamto11 has joined #ruby
sigurding has joined #ruby
wildroman2 has quit [Ping timeout: 248 seconds]
shvelo has joined #ruby
nasj has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
agjacome has quit [Quit: leaving]
BeanDip has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 264 seconds]
gnfz has joined #ruby
BeanDip has joined #ruby
nasj has quit [Ping timeout: 260 seconds]
tacos1de has joined #ruby
Alina-malina has joined #ruby
noocode has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
netto_ has joined #ruby
noocode has joined #ruby
dc_ has quit [Remote host closed the connection]
yacks has joined #ruby
dc_ has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
sigurding has quit [Quit: sigurding]
claymore has joined #ruby
Noob101 has quit [Quit: Page closed]
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
bradhe has quit [Remote host closed the connection]
wildroman3 has quit [Remote host closed the connection]
m8 has joined #ruby
sigurding has joined #ruby
mikecmpbll has joined #ruby
techsethi has quit [Quit: techsethi]
Mon_Ouie has joined #ruby
Sawbones has joined #ruby
tectonic has quit []
yubrew has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
iamcalledrob has joined #ruby
banister has joined #ruby
Hanmac1 has joined #ruby
Sawbones has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
tectonic has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
BadQuanta has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has quit []
postmodern has quit [Quit: Leaving]
jhass|off is now known as jhass
ctp has joined #ruby
ctp has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
mike32 has joined #ruby
alem0lars has joined #ruby
stytown has quit [Quit: stytown]
bubbajones has quit [Ping timeout: 260 seconds]
JoshGlzBrk has joined #ruby
<diegoviola>
what's the difference with procs, blocks and lambdas?
<Mon_Ouie>
A block is a syntactic construct: do |x, y| x + y end
<Mon_Ouie>
A proc is an object that can be created from a block
Georg3 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
A lambda is a special kind of proc that will 1) check the amount of arguments you pass to it and 2) behave differently with regards to 'return'
claymore has quit [Ping timeout: 272 seconds]
nasj has joined #ruby
redlegion has quit [Ping timeout: 264 seconds]
netto_ is now known as nettofarah
claymore has joined #ruby
Sawbones has joined #ruby
<shevy>
diegoviola here is how to remember - a block has XP 0. Once it gained 100 XP, it reaches level 2 and becomes a proc. For a mere +50XP it can then be upgraded to a level 3 object called lambda
godd2 has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
<diegoviola>
what's XP in this context?
<Edelwin>
it's for the metaphore
Orthest has left #ruby [#ruby]
warprobot has quit [Remote host closed the connection]
nasj has quit [Ping timeout: 260 seconds]
<diegoviola>
not sure i understand that
<diegoviola>
sorry
bradhe has quit [Ping timeout: 244 seconds]
JBreit has joined #ruby
Soda has joined #ruby
<diegoviola>
hrm
<diegoviola>
so is it just an example in this case?
techsethi has joined #ruby
bubbajones has joined #ruby
<jhass>
it's just another ignore shevy and read what Mon_Ouie said
<shevy>
listening to jhass is associated with a loss of XP
GriffinHeart has joined #ruby
<diegoviola>
shevy: what do you mean with XP?
gruz0[russia] has joined #ruby
rippa has joined #ruby
dangerousdave has joined #ruby
<shevy>
diegoviola have you never played any MUDs?
<diegoviola>
no, i'm not really a gamer
<diegoviola>
but I tried to run Limbo on archlinux recently, without much success
<eval-in_>
shevy => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/169793)
arkneca has joined #ruby
<shevy>
so lambda will scream and say "I'm not gonna work if you forget arguments!!!" whereas proc is like the lebowski guy "hey dude, take it easy, let's be lazy"
<pontiki>
the proc abides
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkxploit has joined #ruby
<apeiros>
diegoviola: huh? nicer? than what?
<apeiros>
I only wanted to show what Proc.new without a block can do (namely: create a proc from the passed block)
<apeiros>
I wouldn't use that except for very esoteric cases
karupa is now known as zz_karupa
<diegoviola>
apeiros: i just like one liners
<pontiki>
such as teaching :)
<shevy>
yeah
<shevy>
apeiros also likes one-liners
rdark has joined #ruby
<diegoviola>
apeiros: thought it was nicer than the 2-lines i pasted above, but i guess they are doing different things? i don't know
<pontiki>
i figure a one liner is like keith richards working a complex riff of 7 or 9 chords down the necessary 2 chords
lxsameer has joined #ruby
lxsameer has joined #ruby
<pontiki>
in a lesser player, such a thing would become a train wreck
<diegoviola>
why does the #call in lambda requires an argument and with proc it doesn't?
iamcalledrob has quit [Quit: Computer has gone to sleep.]
techsethi has quit [Quit: techsethi]
ph8 has quit [Read error: Connection reset by peer]
shvelo has quit [Ping timeout: 272 seconds]
iamcalledrob has joined #ruby
Derander has quit [Ping timeout: 240 seconds]
CorpusCallosum has quit [Ping timeout: 264 seconds]
top4o has quit [Read error: Connection reset by peer]
Sawbones has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
iamcalledrob has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 272 seconds]
Derander has joined #ruby
febuiles_ has joined #ruby
arkneca has quit [Quit: Leaving]
duncannz has joined #ruby
banister has joined #ruby
febuiles has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
banister has quit [Client Quit]
banister has joined #ruby
banister has quit [Client Quit]
dangerou_ has joined #ruby
banister has joined #ruby
dc_ has joined #ruby
bradhe has joined #ruby
jamto11 has joined #ruby
dangerousdave has quit [Ping timeout: 248 seconds]
luckyruby has joined #ruby
dc_ has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 272 seconds]
jamto11 has quit [Ping timeout: 255 seconds]
theharshest has joined #ruby
frank_____ has joined #ruby
Xeago has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
theharshest has quit [Client Quit]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lukebyrne has quit []
klaut has quit [Remote host closed the connection]
lulzmachine has joined #ruby
shvelo has joined #ruby
iamcalledrob has joined #ruby
senayar has joined #ruby
lulzmachine2 has joined #ruby
echevemaster has quit [Quit: Leaving]
gruz0[russia] has joined #ruby
bayed has joined #ruby
kireevco has quit [Quit: Leaving.]
<luckyruby>
Is there a name for a data structure that's like a hash where keys are unique, values are unique, and you can do a lookup using either key or value.
iamcalledrob has quit [Ping timeout: 248 seconds]
dangerousdave has joined #ruby
<apeiros>
luckyruby: I'm not aware of any. but you can achieve that using 2 hashes
Xeago has quit [Remote host closed the connection]
<luckyruby>
yea, I've been using Hash#invert to accomplish that.
<apeiros>
well, that alone won't guarantee you unique values in the source hash, though
<pontiki>
well, let's call it a lucky inversion, then
dangerou_ has quit [Ping timeout: 248 seconds]
shvelo has quit [Ping timeout: 244 seconds]
wildroman2 has joined #ruby
<pontiki>
tough room
yubrew has joined #ruby
shvelo has joined #ruby
<shevy>
lol
<shevy>
you are having a good day pontiki
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
sevenseacat has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
shredding has joined #ruby
nfk has joined #ruby
andikr has quit [Remote host closed the connection]
altin has joined #ruby
nasj has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
gregf has quit [Ping timeout: 272 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
nasj has quit [Ping timeout: 248 seconds]
shvelo has quit [Ping timeout: 272 seconds]
duper has quit [Ping timeout: 260 seconds]
Azure has quit [Ping timeout: 240 seconds]
buub has quit [Ping timeout: 240 seconds]
duper has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
techsethi has joined #ruby
bradhe has joined #ruby
larsam has joined #ruby
gregf has joined #ruby
duper has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
bradhe has quit [Ping timeout: 255 seconds]
Deele has joined #ruby
Prandium has joined #ruby
Guilt has joined #ruby
Guilt has quit [Changing host]
Guilt has joined #ruby
nasj has joined #ruby
<Guilt>
Is there a way to access reqyest headers in the response object, Rails?
drawingthesun has joined #ruby
<Guilt>
I wanted to Monkey patch the response objects and not have it done thru the controller.
wildroman2 has quit [Remote host closed the connection]
<Guilt>
I was also looking at per-request thread safe global variables for this, but not sure if that's the way.
GriffinHeart has joined #ruby
<olivier_bK>
how i can store data in my database
<shevy>
generate .sql files olivier_bK
<Guilt>
So, to give more context, Rails 2.2
<olivier_bK>
no it's no the problem
<olivier_bK>
i try to find a word for explain
<Guilt>
and people write controllers all over the place.
GriffinHeart has quit [Ping timeout: 244 seconds]
lulzmachine2 has quit [Quit: This computer has gone to sleep]
lulzmachine has quit [Quit: lulzmachine]
Prandium has quit [Remote host closed the connection]
<luckyruby>
assuming you have class Foo < ActiveRecord::Base; end; in app/models/foo.rb
grug has joined #ruby
Prandium has quit [Remote host closed the connection]
lulzmachine has joined #ruby
lulzmachine3 has joined #ruby
<grug>
hey there - i'm following the following tutorial to create my first gems package (http://guides.rubygems.org/make-your-own-gem/) and am getting a "ERROR: While executing gem ... (Gem::FilePermissionError)" when trying to install my generated gem file. i can install the gem file using "sudo" but then when i go to require my module in irb i get the following error: LoadError: cannot load such file - any help or guidance would be much appreciated
Prandium has joined #ruby
Zackio has joined #ruby
lulzmachine3 has quit [Client Quit]
lulzmachine has quit [Client Quit]
lulzmachine has joined #ruby
lulzmachine2 has joined #ruby
iamcalledrob has joined #ruby
Soda has quit [Remote host closed the connection]
larsam has quit [Read error: Connection reset by peer]
iamcalledrob has quit [Ping timeout: 252 seconds]
vyorkin has joined #ruby
yubrew has joined #ruby
lulzmachine2 has quit [Quit: This computer has gone to sleep]
lulzmachine has quit [Quit: lulzmachine]
<jhass>
grug: make a gist of your gemspec and the output of the tree command
<grug>
i believe the gem is being generated correctly and that the issue might be how i have ruby configured on my development box - but don't seem to be getting much love from google
<grug>
i don't want to have to resort to chmod -R 777'ing the paths that it says it doesn't have write access to - ideally i'd understand the problem and be able to configure my dev environment so this isn't a problem
shredding has joined #ruby
marr has joined #ruby
vyorkin has quit [Quit: WeeChat 0.4.3]
<jhass>
you don't add any files to your gem
<jhass>
s.files = ... is missing
<grug>
just out of curiosity - why would that be the root cause of the following error: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
<grug>
?
Zebroid has joined #ruby
<grug>
but yes, you are correct :) I am missing that line
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
<jhass>
it's not, you solved that on your own by using sudo gem install
<jhass>
it's the reason for the cannot load such file error
<grug>
ah yep, good point :)
eka has joined #ruby
<apeiros>
grug: since you're on osx, I'd recommend you install a user-installation of ruby. e.g. via rvm.
<apeiros>
then you don't need sudo and you don't touch system ruby
<grug>
that's what i'm trying to wrap my head around at the moment - how do i force my system to use my installation of ruby and not the root install?
alem0lars has quit [Quit: Going AFK...]
<grug>
and i do agree - i should be using a user-install of ruby - i've got rvm installed now but i dont seem to be able to force that install to be used
<grug>
if that makes sense
Takle has quit [Remote host closed the connection]
<apeiros>
open a new shell, run `rvm install 2.1` then `rvm use 2.1 --default`
vifino has joined #ruby
vyorkin has joined #ruby
<grug>
will that ensure that any time i invoke irb that the rvm user-install will be used?
vyorkin has quit [Client Quit]
<apeiros>
oh, and `rvm docs generate`
<apeiros>
yes, the --default does that
<grug>
awesome - will give that a shot now :)
vyorkin has joined #ruby
chipotle has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
steeve has quit [Remote host closed the connection]
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
steeve has joined #ruby
sigurding has quit [Quit: sigurding]
kyb3r_ has quit [Read error: Connection reset by peer]
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
vyorkin has quit [Client Quit]
Takle has joined #ruby
vyorkin has joined #ruby
bradhe has joined #ruby
steeve has quit [Remote host closed the connection]
steeve has joined #ruby
steeve has quit [Remote host closed the connection]
wildroman2 has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vyorkin has quit [Quit: WeeChat 0.4.3]
vyorkin has joined #ruby
ValicekB has joined #ruby
VTLob has joined #ruby
h0lyalg0rithm has joined #ruby
luckyruby has quit [Quit: Leaving...]
jxf has joined #ruby
<shevy>
gcc is so confusing sometimes
ndrei has joined #ruby
<shevy>
the more recent ones show so many new warnings/output
kirun has joined #ruby
nasj has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 255 seconds]
nasj has joined #ruby
techsethi has quit [Quit: techsethi]
certaint1 is now known as certainty
nasj has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 255 seconds]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
alem0lars has joined #ruby
<grug>
apeiros: that worked perfectly - thankyou for your help :)
SouL___ has quit [Read error: Connection reset by peer]
wildroman2 has quit [Remote host closed the connection]
schaerli has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
iamcalledrob has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
schaerli has quit [Remote host closed the connection]
Caius has quit [Ping timeout: 255 seconds]
Ankhers has quit [Remote host closed the connection]
yfeldblum has joined #ruby
gruz0[russia] has joined #ruby
senayar has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: WeeChat 0.4.3]
vyorkin has joined #ruby
senayar has joined #ruby
warprobot has quit [Remote host closed the connection]
timfoo has joined #ruby
SouL___ has joined #ruby
Caius has joined #ruby
danijoo has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
warprobot has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
freggles has joined #ruby
freggles has quit [Changing host]
freggles has joined #ruby
bradhe has joined #ruby
chipotle has quit [Quit: cya]
toretore has joined #ruby
timfoo has quit [Ping timeout: 255 seconds]
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
bradhe has quit [Ping timeout: 252 seconds]
Dr3amc0d3r|away has quit [Changing host]
Dr3amc0d3r|away has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
GriffinHeart has joined #ruby
maximski has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
timfoo has joined #ruby
shredding has quit [Quit: shredding]
Neomex has joined #ruby
shredding has joined #ruby
unshadow has joined #ruby
techsethi has joined #ruby
warprobot has quit [Remote host closed the connection]
<unshadow>
Hi guys, any one has some experience with the ftpd gem ? I got into some issues
warprobo_ has joined #ruby
techsethi has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
anaeem1 has joined #ruby
senayar has joined #ruby
warprobo_ has quit [Ping timeout: 248 seconds]
yubrew has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
donnoc has joined #ruby
ndrei has quit [Quit: Lost terminal]
ndrei has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
donnoc has quit [Client Quit]
ndrei has quit [Remote host closed the connection]
iamcalledrob has joined #ruby
mike32 has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
bradhe has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
zz_karupa is now known as karupa
Takle has quit [Ping timeout: 248 seconds]
godd2 has joined #ruby
iamcalledrob has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
darkxploit has quit [Ping timeout: 264 seconds]
Soda has joined #ruby
yfeldblum has joined #ruby
nemesit|znc has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
karupa is now known as zz_karupa
bradhe has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<shevy>
how to get the host OS from ruby?
altin has quit [Quit: Ex-Chat]
nemesit|znc has joined #ruby
<shevy>
hmm
<shevy>
Gem::Platform.local.os
phoo1234567 has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
MindfulMonk has quit [Read error: Connection timed out]
bradhe has quit [Ping timeout: 264 seconds]
MindfulMonk has joined #ruby
<certainty>
shevy: yow
MindfulMonk has quit [Max SendQ exceeded]
darkxploit has joined #ruby
MindfulMonk has joined #ruby
MindfulMonk has quit [Max SendQ exceeded]
yokel has quit [Ping timeout: 264 seconds]
Dr3amc0d3r is now known as Dr3amc0d3r|away
Shidash has joined #ruby
MindfulMonk has joined #ruby
MindfulMonk has quit [Max SendQ exceeded]
MindfulMonk has joined #ruby
MindfulMonk has quit [Max SendQ exceeded]
yokel has joined #ruby
MindfulMonk has joined #ruby
MindfulMonk has quit [Max SendQ exceeded]
ctp has joined #ruby
yacks has quit [Read error: Connection reset by peer]
<shevy>
yo certainty
MindfulMonk has joined #ruby
<shevy>
are you hacking something great
zorak has quit [Ping timeout: 264 seconds]
zorak has joined #ruby
yacks has joined #ruby
gruz0[russia] has quit [Quit: Leaving]
Takle_ has joined #ruby
brian___ has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
thomasxie has joined #ruby
moritzs has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
anaeem1 has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
lolmaus has quit [Remote host closed the connection]
yubrew has joined #ruby
dapz has joined #ruby
jxf has quit [Ping timeout: 248 seconds]
yokel has quit [Remote host closed the connection]
cashnguns has joined #ruby
yokel has joined #ruby
thomasxie has left #ruby [#ruby]
timfoo has quit [Ping timeout: 255 seconds]
phoo1234567 has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
lw has joined #ruby
Takle_ has quit [Remote host closed the connection]
doev has joined #ruby
bradhe has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 272 seconds]
bradhe has quit [Ping timeout: 264 seconds]
ctp has joined #ruby
brunops has joined #ruby
iamcalledrob has joined #ruby
timfoo has joined #ruby
ferr has joined #ruby
lw has quit [Quit: s]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
St_Marx has joined #ruby
doev has quit [Ping timeout: 240 seconds]
ctp has quit [Client Quit]
iamcalledrob has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
maximski has quit []
vyorkin has quit [Ping timeout: 264 seconds]
maddtech has joined #ruby
britneywright has joined #ruby
phoo1234567 has joined #ruby
FDj has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
jottr_ has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
bmurt has joined #ruby
phoo1234567 has quit [Read error: Connection reset by peer]
phoo1234567 has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
doev has joined #ruby
pwh has joined #ruby
wildroman2 has quit []
<unshadow>
How can I fork a specific ruby command ? right now I use "fork do" but It also create a clone of the whole program and I end up with two programs running in the background ...
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carraroj has quit [Ping timeout: 272 seconds]
<jhass>
unshadow: that's what fork does. Maybe you want threads?
jrhe has quit [Quit: Connection closed for inactivity]
banister has joined #ruby
<jhass>
you really should tell us what you're actually trying to achieve. Don't ask for the solution you think you need
GriffinHeart has joined #ruby
<unshadow>
Jhass, well, the issue is I want to do a command and then kill its PID after it finishes , threads dont have a different PID do they ?
<jhass>
no, I think you want Kernel#spawn
yeticry has quit [Ping timeout: 272 seconds]
alexherbo2 has joined #ruby
ghr has joined #ruby
yeticry has joined #ruby
alexherbo2 has quit [Client Quit]
GriffinHeart has quit [Ping timeout: 255 seconds]
doev has quit [Ping timeout: 252 seconds]
alexherbo2 has joined #ruby
PCFutbol has joined #ruby
xcv has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
alexherbo2 has quit [Client Quit]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
why do you want to sudo kill your own process?
alexherbo2 has joined #ruby
shredding has quit [Quit: shredding]
<jhass>
(spawn is for launching child processes, it doesn't take a block)
<godd2>
filicide
sevenseacat has quit [Remote host closed the connection]
<unshadow>
becuse the gem is flawed, the ftpd wont kill it self after server.stop, I'm doing a work around, this is why I want to create a different proccess for it and kill it without killing my main program
techsethi has joined #ruby
User458764 has joined #ruby
<jhass>
1) monkey patch ftpd to properly kill itself 2) make that a second independent ruby script that just receives the necessary parameters over ARGV and spawn that
<jhass>
(that's the two alternatives I see)
ValicekB has quit []
nasj has joined #ruby
yubrew has joined #ruby
<unshadow>
isn't there a way to fork a command out of the main program ?
<jhass>
a command, yes. Ruby code without duplicating the current process, no.
<jhass>
I mean you could pipe some code into the ruby executable, but eww
perlsyntax has joined #ruby
<unshadow>
I see, well, then you are right , I think I'll look around at why ftpd gem isn't dyeing gracefully
marr has quit []
foomanbar has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
ctp has joined #ruby
carraroj has joined #ruby
ctp has quit [Client Quit]
timgauthier has joined #ruby
ValicekB has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
ugh, i want to build an iOS app idea i have, but i'm scared to learn swift + get going. I had this happen to me when I wanted to build a webapp with rails and i just hit a brick wall of not knowing how to solve an issue and keep going. :S
<jhass>
that's ActiveSupport (not today, but the rest)
darkxploit has joined #ruby
<RoryHughes>
Good idea, yeah i'm using ActiveSupport, thanks
mordof has joined #ruby
nw has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 264 seconds]
phoo1234567 has joined #ruby
techsethi has quit [Quit: techsethi]
dylannorthrup has joined #ruby
<shevy>
hehe
<jhass>
the beginning_of_week is unecessary btw
<RoryHughes>
jhass: Yeah
<jhass>
next_week takes a param to set it and defaults to that
<RoryHughes>
Hmm, but what if it was a thusday and the params to my 'next' method were 5hours, 5mins and is a friday
<RoryHughes>
your method would give me the friday in 8 days not tomorrow
<jhass>
next_week resets to 00:00
mercwithamouth has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
<RoryHughes>
Don't mind the time, it's about the day. If i was to do Date.today.next_week + d.days (because you should be able to pass a day of the week 0-6) it wouldn't necessarily give the next one
foomanbar has quit [Quit: Leaving]
Trynemjoel has joined #ruby
<jhass>
you'd do Date.today.next_week(d) with d = 0 = Sunday, d = 6 = Saturday
vadzimt has joined #ruby
dangerou_ has joined #ruby
VTLob has joined #ruby
<godd2>
you could try something like date = Date.today; date = date.next until date.wday == 5 if you want next friday
ValicekB has quit []
tus has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<RoryHughes>
godd2: interesting
<godd2>
oh you can just ask if its friday until date.friday?
dangerousdave has quit [Ping timeout: 248 seconds]
<jhass>
RoryHughes: which version of AS do you have?
<RoryHughes>
Yeah, ok but this has to be dynamic
agjacome has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
<RoryHughes>
4.1.1
<jhass>
Date.today.next_week(:friday)
<RoryHughes>
jhass: ah i was so confused to why it wouldn't accept an integer
darkxploit has quit [Quit: Leaving]
<jhass>
my bad for assuming it would be anything like stdlib
IceDragon has joined #ruby
darkxploit has joined #ruby
schaerli has joined #ruby
Jam_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
<RoryHughes>
jhass: Ok that actually doesn't work :( if i set d to the date this wednesday and do d.next_week(:friday) it gives me friday 18th but i want it to give me the next friday which is 2 days from d
schaerli has quit [Remote host closed the connection]
<jhass>
so it's not next week
<jhass>
it's the next one that's coming
<RoryHughes>
Yes
<RoryHughes>
sorry if i didn't make that clear enough above
iamcalledrob has joined #ruby
<timgauthier>
uber-uber-wochenende
<timgauthier>
uber-uber-woche friday is what you're looking for.
Jam_ has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
ValicekB has joined #ruby
<RoryHughes>
?
mercwithamouth has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
<timgauthier>
sorry, that was a question, your not looking for this week, your looking for next week, or are you looking for next next week?
chipotle has joined #ruby
<RoryHughes>
basically I want to be able to take the time T and say i want the next time after T where the day is D, hour is H and minute is M with it calculating the rest
iamcalledrob has quit [Ping timeout: 272 seconds]
mike32 has joined #ruby
darkxploit has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
GriffinHeart has joined #ruby
Azure has joined #ruby
<RoryHughes>
timgauthier ^
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<timgauthier>
so in english you want to know when next sunday is?
unshadow has quit [Quit: leaving]
<timgauthier>
but calculate how long it is from a specific time/date?
<timgauthier>
why not just find the day your looking for, then subtract the day you're starting from?
<RoryHughes>
timgauthier: well not even that, just get the timestamp of it
Lewix has joined #ruby
iswell has joined #ruby
darkxploit has joined #ruby
<timgauthier>
thats literally what i do when i need to find the difference in days, i take the UTC notation
<jhass>
def next_weekday(date, day = :monday); date = date.beginning_of_week(day); date += 7 if date <= Date.today; date; end; ?
<jhass>
+ time stuff
BadQuanta has joined #ruby
sheperson has joined #ruby
GriffinHeart has quit [Ping timeout: 248 seconds]
ValicekB has quit []
benzrf|offline is now known as benzrf
fold has joined #ruby
mercwithamouth has joined #ruby
darkxploit has quit [Client Quit]
<jhass>
RoryHughes: there's the full thing: def next_time(date, day = :monday, hour = 0, minute = 0); date = date.beginning_of_week(day).to_datetime.change(hour: hour, min: minute); date += 7 if date <= DateTime.now; date; end (give it a better name)
Zebroid has quit [Remote host closed the connection]
<RoryHughes>
jhass: Thanks!
northfurr has joined #ruby
binxiao has joined #ruby
sigurding has joined #ruby
ValicekB has joined #ruby
arrubin has joined #ruby
endash has joined #ruby
Jam_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
brunops has joined #ruby
mercwithamouth has quit [Read error: Connection reset by peer]
camt has joined #ruby
mercwithamouth has joined #ruby
mijicd has joined #ruby
Zebroid has joined #ruby
Zebroid has quit [Remote host closed the connection]
cashnguns has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Remote host closed the connection]
binxiao has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
vyorkin1 has quit [Quit: WeeChat 0.4.3]
gzl_ is now known as gzl
gzl has quit [Changing host]
gzl has joined #ruby
robbyoconnor has joined #ruby
r0bby has joined #ruby
r0bby has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
olivier_bK has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 248 seconds]
robbyoconnor has joined #ruby
Zebroid has quit [Ping timeout: 252 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
omensp4wnz has joined #ruby
supdoge has joined #ruby
Zebroid has joined #ruby
supdoge has left #ruby [#ruby]
Channel6 has joined #ruby
Caius has quit [Ping timeout: 255 seconds]
r0bby has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
omensp4wnz is now known as liz4rd-zzzz
sheperson has quit [Quit: sheperson]
r0bby is now known as robbyoconnor
neoice has quit [Ping timeout: 240 seconds]
Zebroid_ has joined #ruby
neoice has joined #ruby
fold has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
r0bby has joined #ruby
Zebroid has quit [Ping timeout: 248 seconds]
r0bby has quit [Remote host closed the connection]
maestrojed has joined #ruby
rdark has quit [Quit: leaving]
darkxploit has joined #ruby
Ca1us has joined #ruby
brunops has quit [Ping timeout: 252 seconds]
brunops has joined #ruby
Dr3amc0d3r|away is now known as Dr3amc0d3r
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
iswell has joined #ruby
relix has joined #ruby
brunops has quit [Ping timeout: 264 seconds]
iamcalledrob has joined #ruby
brunops has joined #ruby
lkba has joined #ruby
User458764 is now known as User458764_NotHe
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jam has joined #ruby
\q has joined #ruby
absolutezeroff has joined #ruby
Jam is now known as Guest27760
theharshest has joined #ruby
theharshest has quit [Client Quit]
Zebroid_ has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
iamcalledrob has quit [Ping timeout: 248 seconds]
benzrf is now known as benzrf|offline
brunops has quit [Ping timeout: 248 seconds]
User458764_NotHe has quit [Ping timeout: 248 seconds]
CodeLicker has quit [Read error: Connection reset by peer]
timgauthier has joined #ruby
sputnik13 has joined #ruby
theharshest has joined #ruby
lulzmachine_ has quit [Quit: lulzmachine_]
lulzmachine has quit [Quit: This computer has gone to sleep]
fold has joined #ruby
CodeLicker has joined #ruby
pskosinski has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
iamcalledrob has joined #ruby
earthquake has joined #ruby
sputnik13 has joined #ruby
St_Marx has joined #ruby
zorak has quit [Ping timeout: 272 seconds]
TheSojourner has joined #ruby
TheSojourner has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
IceDragon has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
mjulian has quit [Ping timeout: 272 seconds]
mrmargolis has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
sputnik13 has quit [Ping timeout: 264 seconds]
mrmargol_ has joined #ruby
soulcake has quit [Remote host closed the connection]
yubrew has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soulcake has joined #ruby
User458764 has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
siefca has left #ruby [#ruby]
dangerousdave has joined #ruby
mrmargolis has quit [Ping timeout: 260 seconds]
sigurding has quit [Quit: sigurding]
yubrew has quit [Ping timeout: 260 seconds]
elikem has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theharshest has joined #ruby
Dr3amc0d3r is now known as Dr3amc0d3r|away
benzrf|offline is now known as benzrf
bradhe has joined #ruby
IceDragon has joined #ruby
DivineEntity has quit [Quit: leaving]
maestrojed has quit [Quit: Computer has gone to sleep.]
DivineEntity has joined #ruby
uffs has quit [Ping timeout: 272 seconds]
maestrojed has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
CorpusCallosum has joined #ruby
ponga has quit []
LadyRainicorn has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
mrmargol_ has quit [Remote host closed the connection]
User458764 has joined #ruby
MatthewsFace has joined #ruby
klaut has joined #ruby
chipotle has quit [Quit: cya]
Guest27760 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Ping timeout: 240 seconds]
mattstratton has joined #ruby
iamjarvo has joined #ruby
benzrf is now known as benzrf|offline
chipotle has joined #ruby
mattstratton has quit [Client Quit]
IceDragon has quit [Read error: Connection reset by peer]
Rainicorn has joined #ruby
warprobot has joined #ruby
Zebroid has joined #ruby
dangerou_ has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
mattstratton has joined #ruby
Zebroid has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Ping timeout: 248 seconds]
mattstratton has quit [Client Quit]
ctp has joined #ruby
CorpusCallosum has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
ctp has quit [Client Quit]
dangerousdave has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
mercwithamouth has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
mattstratton has joined #ruby
mercwithamouth has joined #ruby
theharshest has joined #ruby
aspires has joined #ruby
GriffinHeart has joined #ruby
User458764 is now known as User458764_NotHe
theharshest has quit [Client Quit]
Rainicorn is now known as LadyRainicorn
Takle has quit [Ping timeout: 272 seconds]
vifino has quit [Quit: Ze Cat now leaves...]
iamcalledrob has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
User458764_NotHe has quit [Ping timeout: 252 seconds]
iamcalledrob has joined #ruby
theharshest has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
x1337807x has joined #ruby
iamcalledrob has quit [Ping timeout: 272 seconds]
dc_ has joined #ruby
pwh has quit []
iamjarvo has joined #ruby
x1337807x has quit [Client Quit]
cashnguns has joined #ruby
liz4rd-zzzz has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
x1337807x has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
<havenwood>
Always a Pythonista or HAMLite out there somewhere who wants to change ruby.
agaust has left #ruby [#ruby]
<havenwood>
oh, though i guess Haml isn't an ancronym
chipotle has quit [Quit: cya]
<havenwood>
Hamlite, Hamlian, Hamlonian?
northfurr has quit [Quit: northfurr]
ferr has quit [Ping timeout: 272 seconds]
einarj has quit [Remote host closed the connection]
<havenwood>
Hamler
ValicekB has quit []
lotherk has left #ruby [#ruby]
<havenwood>
Would be good to have a canonical resource for what to call those who program in X.
<havenwood>
Scalite, Basher, Rubyist, Pythonista. Hard to guess unless you ask. And not all so easy to google for it seems.
<yxhuvvd>
X as in the display system? masochist?
<havenwood>
yxhuvvd: don't know what to call them, for example
<havenwood>
yxhuvvd: though Masochists makes sense
marr has joined #ruby
bradhe has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 252 seconds]
brunops has joined #ruby
bradhe has joined #ruby
rippa has joined #ruby
manolis_ has quit [Quit: Zzzzz ...]
warprobot has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 264 seconds]
MrDoctor_ has joined #ruby
neoice has joined #ruby
warprobot has joined #ruby
MrDoctor has quit [Ping timeout: 264 seconds]
vifino has quit [Quit: Ze Cat now leaves...]
bradhe has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
iamcalledrob has joined #ruby
simoz1111114 has joined #ruby
ValicekB has joined #ruby
simoz1111115 has joined #ruby
nasj has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
AntelopeSalad_ has quit []
sigurding has quit [Quit: sigurding]
mike32 has quit [Ping timeout: 248 seconds]
iamcalledrob has quit [Ping timeout: 240 seconds]
simoz1111114 has quit [Ping timeout: 248 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
theharshest has joined #ruby
uffs has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
Rainicorn has joined #ruby
theharshest has quit [Client Quit]
apeiros has joined #ruby
ValicekB has quit []
sigurding has joined #ruby
LadyRainicorn has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
theharshest has joined #ruby
iamjarvo has joined #ruby
shredding has joined #ruby
<nanodano>
a PHPist?
kaiserpathos has joined #ruby
binaryhat has quit [Remote host closed the connection]
binaryhat has joined #ruby
theharshest has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
kaiserpathos has quit [Client Quit]
nectarys has joined #ruby
ValicekB has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
timgauthier has joined #ruby
MrDoctor_ has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
nectarys has quit [Max SendQ exceeded]
sigurding has quit [Quit: sigurding]
lkba has joined #ruby
relix has joined #ruby
Rainicorn has quit [Quit: Bye]
fold has quit [Quit: WeeChat 0.4.3]
fold has joined #ruby
fwaokda has joined #ruby
chipotle has joined #ruby
senayar has joined #ruby
<fwaokda>
if I want to put a connection to a database somewhere in a file by itself would I just put it in a file (without class) ".rb" and user require 'nameoffile' ?
mgberlin has quit [Remote host closed the connection]
yubrew has joined #ruby
<jhass>
fwaokda: I'd make it the typical two step process: a configuration file (json, yaml, ...) that is loaded by a (maybe singleton) connection class that either only hands out only itself or even does connection pooling
bradhe has joined #ruby
<fwaokda>
jhass, ok I'm going to try that thanks!
<jhass>
that said, did you look at sequel or even activerecord?
sigurding has joined #ruby
manolis_ has joined #ruby
AlyssaDaemon has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
AntelopeSalad has joined #ruby
lulzmachine has joined #ruby
lulzmachine3 has joined #ruby
kireevco has quit [Quit: Leaving.]
nectarys has joined #ruby
manolis_ has quit [Client Quit]
mijicd has quit [Remote host closed the connection]
lulzmachine has quit [Client Quit]
lulzmachine3 has quit [Client Quit]
mrmargolis has joined #ruby
lulzmachine3 has joined #ruby
lulzmachine has joined #ruby
pwh has joined #ruby
lulzmachine has quit [Client Quit]
lulzmachine3 has quit [Client Quit]
aspires has quit []
Sawbones has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
iamjarvo has joined #ruby
eka has joined #ruby
hackeron_ is now known as hackeron
hackeron has quit [Changing host]
hackeron has joined #ruby
bluOxigen has quit [Remote host closed the connection]
dapz has joined #ruby
bluOxigen has joined #ruby
AntelopeSalad has quit [Quit: Page closed]
theharshest has joined #ruby
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
theharshest has quit [Client Quit]
maximski has quit []
zorak has joined #ruby
Cache_Money has joined #ruby
zorak_ has joined #ruby
zorak has quit [Client Quit]
zorak_ has quit [Client Quit]
zorak has joined #ruby
AntelopeSalad has joined #ruby
maximski has joined #ruby
theharshest has joined #ruby
mrmargolis has quit [Remote host closed the connection]
havenwood has quit []
sigurding has joined #ruby
dc_ has joined #ruby
decoponio has quit [Quit: Leaving...]
dc_ has quit [Remote host closed the connection]
vadzimt has joined #ruby
JoshGlzBrk has joined #ruby
iamcalledrob has joined #ruby
dc_ has joined #ruby
iamcalledrob has quit [Ping timeout: 248 seconds]
Hanmac1 is now known as Hanmac
kireevco has joined #ruby
kireevco has quit [Client Quit]
<bricker`LA>
I'm trying to use cap3 with only one stage, but I keep getting: "Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.
<godd2>
that won't really work because your active model object isn't called when this file is loaded
<Hanmac>
brian___: #rubyonrails
<brian___>
yeah i tried the ROR room, but no one answered : /
<godd2>
ill answer over there
mehlah has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
banister has quit [Ping timeout: 264 seconds]
jhass is now known as jhass|off
bradhe has joined #ruby
charlied3 has quit [Ping timeout: 255 seconds]
sheperson has quit [Quit: sheperson]
Channel6 has joined #ruby
theharshest has joined #ruby
theharshest has quit [Client Quit]
spider-mario has quit [Remote host closed the connection]
ziyadb has joined #ruby
claymore has quit [Quit: night]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
freerobby has quit [Quit: Leaving.]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
iamcalledrob has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
dangerousdave has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
user___ has joined #ruby
user___ has joined #ruby
ctp has joined #ruby
user___ is now known as icarus
iamcalledrob has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
freerobby has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
maximski has joined #ruby
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maximski has quit [Max SendQ exceeded]
banister has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
benlieb has joined #ruby
maximski has quit [Max SendQ exceeded]
klaut has quit [Remote host closed the connection]
iamcalledrob has joined #ruby
maximski has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
pwh has quit []
freeBlue has joined #ruby
freeBlue has quit [Client Quit]
mgberlin has joined #ruby
iamcalledrob has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
Arkaniad|Laptop has quit [Ping timeout: 248 seconds]
maximski has quit [Ping timeout: 260 seconds]
Wolland has quit [Ping timeout: 255 seconds]
mgberlin has quit [Remote host closed the connection]
nasj has quit [Remote host closed the connection]
Wolland has joined #ruby
Shidash has joined #ruby
andrewlio has quit [Remote host closed the connection]
theharshest has joined #ruby
Zebroid has quit [Remote host closed the connection]
nasj has joined #ruby
banister has quit [Ping timeout: 264 seconds]
brian___ has quit [Quit: brian___]
pwh has joined #ruby
mary5030 has quit [Remote host closed the connection]
zz_karupa is now known as karupa
maestrojed has joined #ruby
timonv has joined #ruby
zorak has quit [Ping timeout: 255 seconds]
maestrojed has quit [Client Quit]
banister has joined #ruby
sputnik13 has joined #ruby
nasj has quit [Ping timeout: 272 seconds]
DivineEntity has quit [Ping timeout: 240 seconds]
_KaszpiR_ has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
_KaszpiR_ has joined #ruby
karupa is now known as zz_karupa
nectarys_ has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
nectarys has quit [Ping timeout: 255 seconds]
<shevy>
wasamasa #ruby-lang is the official one; I believe #ruby might have been started earlier but the channel owner was inactive initially, or something like that, so another channel was started
<shevy>
most people will just join #NAME_OF_LANGUAGE
mijicd has joined #ruby
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
riotjones has joined #ruby
Prandium has quit [Quit: Prandium]
sandbags0 has joined #ruby
sandbags0 has quit [Client Quit]
sandbags has joined #ruby
Wolland_ has joined #ruby
zorak has joined #ruby
DivineEntity has joined #ruby
Wolland has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
maestrojed has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
Soda has quit [Remote host closed the connection]
DivineEntity has quit [Ping timeout: 248 seconds]
mjsmith2 has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
mgberlin has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
warprobot has quit [Remote host closed the connection]
mercwithamouth has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jam_ has joined #ruby
Neomex has quit [Quit: Leaving]
kies has quit [Ping timeout: 255 seconds]
Arkaniad|Laptop has joined #ruby
postmodern has quit [Quit: Leaving]
Prandium has joined #ruby
azkah2 has joined #ruby
nanodano has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Quit: This computer has gone to sleep]
thrownaway has joined #ruby
azkah1 has quit [Ping timeout: 260 seconds]
<nanodano>
Is it possible to chain together function calls with parameters without using parenthesis? For example User.find(x).inspect to User.find x .inspect
pwh_ has joined #ruby
ctp has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
tectonic has joined #ruby
kies has joined #ruby
kaiserpathos has joined #ruby
<benzrf>
nanodano: no
<benzrf>
u can do that in livescript
<benzrf>
ruby is more conservative
<benzrf>
nanodano: you could use haskell and some kind of piping operator
<benzrf>
findUser x |> show
britneywright has joined #ruby
* benzrf
basically only lurks here anymore to evangelize haskell
<Edelwin>
You think I'm not online. But I'm always here. Even if I'm not typing. I'm here. Reading. Judging.
<eval-in_>
benzrf => :inspect can't be coerced into Fixnum (TypeError) ... (https://eval.in/169904)
<benzrf>
oh wait
yfeldblum has joined #ruby
<benzrf>
crud
iamcalledrob has joined #ruby
SouL___ has joined #ruby
x1337807x has joined #ruby
bricker`LA has joined #ruby
DivineEntity has joined #ruby
nanodano has quit [Ping timeout: 264 seconds]
Sawbones has joined #ruby
Prandium has quit [Quit: Prandium]
iamcalledrob has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cya]
marr has quit [Ping timeout: 264 seconds]
bato has joined #ruby
mjsmith2 has quit []
x1337807x has quit [Ping timeout: 255 seconds]
Arkaniad|Laptop has quit [Ping timeout: 255 seconds]
SCHAAP137 has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
stytown has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Shidash has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Read error: Connection reset by peer]
EasyCo has joined #ruby
Arkaniad|Laptop has joined #ruby
mercwithamouth has joined #ruby
brunops has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
mgberlin has quit [Remote host closed the connection]
brunops has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
mgberlin has joined #ruby
dapz has joined #ruby
wallerdev has joined #ruby
beak has joined #ruby
chipotle has joined #ruby
<beak>
hi guys, hows everyone doing today?
Sawbones has quit []
zkay11 has quit [Ping timeout: 240 seconds]
zkay11 has joined #ruby
freerobby has quit [Quit: Leaving.]
d0lph1n98 has joined #ruby
Noob101 has joined #ruby
senayar has quit [Remote host closed the connection]
tectonic has quit []
senayar has joined #ruby
mmoretti has joined #ruby
nasj has joined #ruby
senayar has quit [Ping timeout: 248 seconds]
VTLob has quit [Quit: VTLob]
mikecmpbll has quit [Quit: i've nodded off.]
<benzrf>
beak: bretty good
charlied3 has joined #ruby
mmoretti has quit [Quit: Leaving...]
mijicd has quit [Remote host closed the connection]
nasj has quit [Ping timeout: 248 seconds]
yubrew has joined #ruby
SouL___ has quit [Quit: No Ping reply in 180 seconds.]
charlied3 has quit [Ping timeout: 264 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL___ has joined #ruby
charlied3 has joined #ruby
havenwood has quit [Remote host closed the connection]
frog0909 has quit []
yubrew has quit [Ping timeout: 264 seconds]
moritzs has joined #ruby
nectarys_ has quit [Quit: Ex-Chat]
Hanmac1 has joined #ruby
bricker`1A has joined #ruby
<bricker`1A>
bahar: put it at the beginning of the spec (inside 'scenario')
bricker`LA has quit [Read error: Connection reset by peer]
bricker`1A is now known as bricker`LA
d0lph1n98 has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
tectonic has joined #ruby
<bahar>
bricker`LA ok, now when I run User.all i do get results. email: thedude3@abides.com. just the one user
Takle has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 272 seconds]
<bricker`LA>
bahar: so where is that user coming form?
<bricker`LA>
from*
tplpnm has joined #ruby
simoz1111115 has quit [Ping timeout: 255 seconds]
Xiti has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 248 seconds]
<bahar>
User factory I believe
<bricker`LA>
bahar: things to check: before :all hooks are often the cause of things like this. It *shouldn't* be a problem with truncation, but worth looking into
<bricker`LA>
bahar: I mean where in your tests
<bahar>
bricker`LA I'm enough of a noob that I'm not sure what you mean.
<bahar>
:-/
<bricker`LA>
bahar: In cases like this, I usually add `$stdout.puts User.count` to spec_helper's `before :each` block (before DatabaseCleaner.start). Then I'll look for the spec that prints `1`, and you have it narrowed down
<bahar>
i don't see before :each in spec_helper.
ta has joined #ruby
pwh_ has quit []
ta__ has quit [Read error: Connection reset by peer]
iamcalledrob has joined #ruby
<bahar>
bricker`LA is that possibly the problem?
<bricker`LA>
bahar: it's in your database_cleaner file. I would put that stuff directly into spec_helper
tplpnm has quit []
timonv has joined #ruby
maestrojed has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
Zenigor has joined #ruby
nanodano has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<bahar>
bricker`LA ahhh ok. before or in the Rspec.configure.do block?
lw has joined #ruby
chipotle has quit [Read error: Connection reset by peer]