pigram86 has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
pygospa has joined #ruby
axsuul has joined #ruby
<havenwood>
n1lo: Sinatra is great but not a lot of work to do there. You might look at one of the new Rack frameworks like Hobbit, Lotus or Roda. Or a nascent non-Rack one like Lattice.
ghr has joined #ruby
godd2 has joined #ruby
dingus_khan has joined #ruby
toastynerd has quit [Remote host closed the connection]
<havenwood>
n1lo: Find some Rubyists whose stuff you like and look at their recently created or contributed-to repos.
yubrew has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 245 seconds]
<havenwood>
n1lo: Any area in particular you're interested in? We might be able to give better recommendations.
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
<havenwood>
godd2: ah, it's a gem
alvaro_o has quit [Quit: Ex-Chat]
<havenwood>
godd2: I do a Gemfile that just has: source 'https://rubygems.org'; gemspec
icebourg has joined #ruby
amacou has quit [Remote host closed the connection]
icebourg has quit [Max SendQ exceeded]
toastyne_ has joined #ruby
<havenwood>
godd2: it's bundler's convention to do ^
nateberkopec has joined #ruby
icebourg has joined #ruby
<godd2>
To do what? I don't understand.
<godd2>
Is a gem not supposed to have a Gemfile?
icebourg has quit [Max SendQ exceeded]
braincrash has joined #ruby
<godd2>
I put one in to see if travis still complained. I have no idea what I'm doing.
<havenwood>
There is no Gemfile at the moment. It's optional for a gem to have a Gemfile. It is bundler's suggestion that you do, but just point it at your gemspec.
icebourg has joined #ruby
<godd2>
Ah ok.
icebourg has quit [Max SendQ exceeded]
<havenwood>
godd2: Try `bundle gem example_gem` and look at the `example_gem/Gemfile` for what I mean.
<godd2>
And of course in my gemspec, I list development/runtime dependencies which travis will pick up on?
toastyne_ has quit [Remote host closed the connection]
nateberkopec has quit [Read error: Connection reset by peer]
nateberkope has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
toastynerd has joined #ruby
<godd2>
So what should I add to my gemspec for travis then? I currently don't have any dependencies listed in it. Do I just need to watch what Travis complains about in a failed build and add that?
patrick99e99 has quit [Ping timeout: 245 seconds]
nateberkope has quit [Ping timeout: 240 seconds]
toastynerd has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
tylerkern has quit [Ping timeout: 255 seconds]
xcesariox has joined #ruby
jftf has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
arya_ has quit [Quit: sayonara^_^]
tylerkern has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
Danibal has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
orangerobot has joined #ruby
wjimenez5271 has joined #ruby
ascarter has joined #ruby
cpruitt has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
ascarter has quit [Client Quit]
Danibal has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 240 seconds]
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
toastynerd has joined #ruby
ascarter has joined #ruby
gondalier has joined #ruby
<havenwood>
godd2: do #add_development_dependency
<havenwood>
godd2: for the gems you'd need on a fresh Ruby install
<sevenseacat>
and pick_option is on an entirely different model
<dopie>
correct
john___ has quit [Remote host closed the connection]
<dopie>
but isnt an instance variable?
<sevenseacat>
so just because you defined @player_pick on one model, doesnt mean its available on a different one
<dopie>
humm
<dopie>
ok
<dopie>
how would i get the human class player pick to show up in the other class?
einarj has joined #ruby
<dopie>
sevenseacat, as you can tell still learning the basics :)
<dopie>
or trying too
<sevenseacat>
well you've got a reference to the player
<sevenseacat>
and the player has a player_pick
bMalum has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
Danibal has joined #ruby
d4ryus has left #ruby [#ruby]
jimmyhoughjr has quit [Ping timeout: 260 seconds]
<godd2>
dopie you need to change line 56. It's asking for Game's player_pick
thams has quit [Quit: thams]
<godd2>
but you want player's player pick.
tylerkern has joined #ruby
<godd2>
You have an @player, so how do you ask for his player_pick?
tylerkern has quit [Client Quit]
<dopie>
@player.player_pick
<godd2>
eyp!
<godd2>
yep*
<dopie>
aha!
<dopie>
got a little lost
<godd2>
The first few times you deal with several classes interacting with one another it can be a little confusing, but just keep doing it and itll be second nature
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenskarlsen has joined #ruby
kyb3r_ has joined #ruby
jenskarlsen has left #ruby [#ruby]
einarj has quit [Ping timeout: 255 seconds]
duper has quit [Read error: Connection reset by peer]
<godd2>
Also, you may want to consider renaming player_pick to just pick, so that line 56 would look like this: @player.pick
bMalum has quit [Ping timeout: 260 seconds]
<godd2>
But that's a design choice, as one may interpret pick as a verb instead of a noun
duper has joined #ruby
toastynerd has joined #ruby
echooo1 has joined #ruby
Danibal has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
<Hanmac>
godd2 about your mutable problem ... as far as i know does not add your own children method like "def children; @children.dup.freeze; end" that does return a frozen copy ... hm i need to test how that works because i dont know if the strings in the original array does get frozen too ... if they does, just return a copy for now until i find better ways
d4ryus has joined #ruby
echooo has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
<godd2>
Yea I think manually sending a dup is fine. Thanks for the tip.
yeticry has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
<dopie>
ok just let me bounce this off my head here
<dopie>
Since I have attr_accessor :pick in Player
<dopie>
the @pick = choice in Human < Player becomes available
yubrew has quit [Ping timeout: 245 seconds]
<sevenseacat>
no
<sevenseacat>
the setting of @pick is always available
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
CorySimmons has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 245 seconds]
dawkirst has quit [Client Quit]
razum2um has joined #ruby
niharvey has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
<godd2>
dopie remember that when you have an person object (like person = Person.new) that person has instance variables, and it has methods, which are two different things. If you say person.legs, then you might have a #legs method which returns the value inside the @legs instance variable, but the method and the instance variable are two separate things.
<godd2>
attr_accessor is a little bit of magic which writes a method for you so you can access an instance variable of the same name
niharvey has joined #ruby
benzrf is now known as benzrf|offline
balazs has quit [Ping timeout: 255 seconds]
InfraRuby has left #ruby [#ruby]
sudomatic has quit [Ping timeout: 272 seconds]
Audace has joined #ruby
amacou has joined #ruby
urtokk has quit [Quit: WeeChat 0.4.3]
anaeem1_ has joined #ruby
Photism has quit [Quit: Leaving]
jprovazn has joined #ruby
nateberkopec has joined #ruby
Rollabunna has joined #ruby
amacou has quit [Remote host closed the connection]
bal has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
Matadoer has quit [Remote host closed the connection]
techsethi has joined #ruby
amacou has joined #ruby
fgo has quit [Remote host closed the connection]
flowerhack has quit [Remote host closed the connection]
yubrew has joined #ruby
bMalum has joined #ruby
einarj has joined #ruby
tobago has joined #ruby
Danibal has joined #ruby
sethen has joined #ruby
urtokk has joined #ruby
flowerhack has joined #ruby
yubrew has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 245 seconds]
Blizzy has quit [Ping timeout: 255 seconds]
einarj has quit [Ping timeout: 250 seconds]
<eam>
ok, I've tracked down some of the build problems with gem
<eam>
there are quoting issues with $ in LDFLAGS so for example an rpath in the base ruby's build won't be shared with gems
<shevy>
"people would like to write that in a more concise way. In order to do that, a symbol, the method Symbol#to_proc, implicit class casting, and & operator are used in combination"
nighter_ is now known as nighter
<arup_r>
shevy: That is not my question.
<arup_r>
Why ObjectSpace.each_object(Module) is giving class names inside the blocks..
<Mon_Ouie>
Because you asked it to iterate over every Module
ta has joined #ruby
<Mon_Ouie>
And a Class is a kind of Module
<arup_r>
What I don't understand is why Symbol, Proc they are class.. How they become instances of Module
<dopie>
how do i make it that winning_text(player_selection) the case player_selection has @human.name
<dopie>
how do i make it that it also would have the @computer.name depending on what parameter is sent to player_selection
<dopie>
if @p than use @human.name
<dopie>
if @c than use @computer.name
Insanity_ has joined #ruby
<dopie>
kinda like 2 cases
<Insanity_>
Could someone help with a problem?
<Insanity_>
*help me
<jhass>
dopie: 1 stands for paper, 2 for rock and so on?
<dopie>
yeah
krisquigley has joined #ruby
<jhass>
dopie: don't do that, use symbols, like :paper, :rock
<ddv>
Insanity_: don't ask to ask
nateberkopec has joined #ruby
<dopie>
jhass, umm how would i use symbols?
<jhass>
dopie: if you have to convert that from something like a text input do a hash PICKS = {"1" => :paper, "2" => :rock}; ... pick = PICKS[gets.chomp]
<Insanity_>
Everytime I use the gem package task in my rakefile I get this error: rake aborted! Don't know how to build task 'README.rdoc'
<Insanity_>
The thing is I don't want to generate rdoc docs in the first place
<sevenseacat>
i like this game, the human never loses
<dopie>
i know
<dopie>
:)
<dopie>
winning_text
<sevenseacat>
even after his soul gets crushed, he still wins
<dopie>
hahaha
mist has quit [Quit: leaving]
arup_r has quit [Remote host closed the connection]
einarj has joined #ruby
Takle has joined #ruby
Danibal has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
zarul has quit [Ping timeout: 260 seconds]
einarj has quit [Ping timeout: 260 seconds]
Danibal has quit [Ping timeout: 246 seconds]
rmulligan has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
wallerdev has quit [Quit: wallerdev]
rmulligan has quit [Remote host closed the connection]
chihhsin has quit [Ping timeout: 264 seconds]
Zespre has quit [Ping timeout: 272 seconds]
chihhsin has joined #ruby
Zespre has joined #ruby
nat2610 has quit [Quit: Leaving.]
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
Bira has joined #ruby
mbuf has joined #ruby
Xeago has joined #ruby
kalz has quit [Ping timeout: 250 seconds]
W0rmDr1nk has joined #ruby
Xeago_ has joined #ruby
toastynerd has joined #ruby
Xeago_ has quit [Remote host closed the connection]
philcrissman has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
Bira has quit [Ping timeout: 244 seconds]
toastynerd has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
lyuzashi has quit [Ping timeout: 272 seconds]
carraroj has joined #ruby
xenomorph is now known as {xenomorph}
oo_ has quit [Remote host closed the connection]
lkba has joined #ruby
oo_ has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 240 seconds]
marr has joined #ruby
toastynerd has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
yetanotherdave has joined #ruby
armyriad has joined #ruby
InhalingPixels has joined #ruby
hellangel7 has joined #ruby
gaussblurinc1 has joined #ruby
Photism has joined #ruby
Xeago has joined #ruby
InhalingPixels has quit [Ping timeout: 272 seconds]
yetanotherdave has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
stef_204 has joined #ruby
Olipro has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: Leaving.]
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
ari-_-e has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
gogohome has joined #ruby
decoponio has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
Olipro has joined #ruby
Olipro has quit [Changing host]
Olipro has joined #ruby
abuzze_ has joined #ruby
mbuf has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
craigp has joined #ruby
dawkirst has joined #ruby
mbuf has joined #ruby
ari-_-e has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
amacou has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
yubrew has joined #ruby
codecop has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Wolland has quit []
benlieb has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
patric100e99 has joined #ruby
Xeago has joined #ruby
cHarNe2_ is now known as cHarNe2
ArchBeOS-work has quit [Quit: Leaving]
nateberkopec has joined #ruby
patric100e99 has quit [Ping timeout: 264 seconds]
kalz has joined #ruby
spider-mario has joined #ruby
Wolland has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
AlSquire has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
einarj has joined #ruby
timonv_ has joined #ruby
zarul has joined #ruby
Danibal has joined #ruby
realDAB has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 245 seconds]
wmp has left #ruby ["Konversation terminated!"]
Danibal has quit [Ping timeout: 240 seconds]
Wolland has quit []
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
InfraRuby has joined #ruby
emmesswhy has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
nszceta has joined #ruby
bcavileer has quit [Ping timeout: 250 seconds]
ggherdov has quit [Ping timeout: 240 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
Bira has joined #ruby
dioms_ has quit [Ping timeout: 240 seconds]
pusewicz has quit [Ping timeout: 240 seconds]
bcavileer has joined #ruby
echooo1 has quit [Quit: echooo1]
Striki has quit [Ping timeout: 260 seconds]
halfdan has quit [Ping timeout: 240 seconds]
dziga has quit [Ping timeout: 272 seconds]
jeregrine has quit [Ping timeout: 260 seconds]
Tranquility has quit [Ping timeout: 272 seconds]
metadave has quit [Ping timeout: 272 seconds]
ballPointPenguin has quit [Ping timeout: 240 seconds]
neersighted has quit [Ping timeout: 240 seconds]
CJD14___ has quit [Ping timeout: 240 seconds]
pygospa has quit [Quit: leaving]
nfk has quit [Quit: yawn]
natewalck has quit [Ping timeout: 272 seconds]
Darryl has quit [Ping timeout: 240 seconds]
im0b has quit [Ping timeout: 240 seconds]
ikanobori has quit [Ping timeout: 240 seconds]
paulog has quit [Ping timeout: 240 seconds]
dmoe______ has quit [Ping timeout: 240 seconds]
dioms_ has joined #ruby
pygospa has joined #ruby
Scorchin has quit [Ping timeout: 250 seconds]
jpinnix has quit [Ping timeout: 240 seconds]
bedouin has quit [Ping timeout: 240 seconds]
charles81 has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
culturelabs__ has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby
meinside has quit [Ping timeout: 260 seconds]
pusewicz has joined #ruby
lectrick has quit [Ping timeout: 240 seconds]
Striki has joined #ruby
maZtah has quit [Ping timeout: 240 seconds]
jds has quit [Ping timeout: 260 seconds]
daxroc_ has quit [Ping timeout: 260 seconds]
bjeanes has quit [Ping timeout: 250 seconds]
Bira has quit [Ping timeout: 246 seconds]
goshdarnyou has quit [Ping timeout: 240 seconds]
tarcwynne has quit [Ping timeout: 240 seconds]
skmp has quit [Ping timeout: 240 seconds]
halfdan has joined #ruby
benlieb has quit [Quit: benlieb]
Scorchin has joined #ruby
schaary has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE has quit [Ping timeout: 240 seconds]
rickruby has quit [Ping timeout: 240 seconds]
chihhsin_cloud has quit [Ping timeout: 272 seconds]
mroth has quit [Ping timeout: 240 seconds]
vcoinminer____ has quit [Ping timeout: 250 seconds]
cbetta has quit [Ping timeout: 250 seconds]
olleromo__ has quit [Ping timeout: 272 seconds]
charles81 has joined #ruby
achoom has quit [Ping timeout: 240 seconds]
adambeynon has quit [Ping timeout: 240 seconds]
mjc_ has quit [Ping timeout: 250 seconds]
jeregrine has joined #ruby
ikanobori has joined #ruby
paulog_ has joined #ruby
olivier_bK has quit [Remote host closed the connection]
antonishen has quit [Ping timeout: 272 seconds]
im0b has joined #ruby
ceej has quit [Ping timeout: 260 seconds]
dmoe______ has joined #ruby
alol has quit [Ping timeout: 240 seconds]
glowcoil has quit [Ping timeout: 240 seconds]
frode15243 has quit [Ping timeout: 250 seconds]
ramblinpeck has quit [Ping timeout: 272 seconds]
pigram86 has joined #ruby
tiagonobre has quit [Ping timeout: 260 seconds]
yo61 has quit [Ping timeout: 260 seconds]
kapowaz has quit [Ping timeout: 260 seconds]
troter has quit [Ping timeout: 240 seconds]
amitchellbullard has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 272 seconds]
akitada has quit [Ping timeout: 272 seconds]
mattyohe has quit [Ping timeout: 272 seconds]
jrunning has quit [Ping timeout: 272 seconds]
ballPointPenguin has joined #ruby
pigram86 has quit [Read error: Connection reset by peer]
CJD14___ has joined #ruby
vcoinminer____ has joined #ruby
dziga has joined #ruby
culturelabs__ has joined #ruby
toastynerd has quit [Ping timeout: 260 seconds]
bcavileer has quit [Ping timeout: 260 seconds]
pigram86 has joined #ruby
maZtah_ has joined #ruby
ggherdov has joined #ruby
wackobobby has joined #ruby
EasyCo has quit [Ping timeout: 250 seconds]
andrewcarter has quit [Ping timeout: 250 seconds]
bayed has quit [Ping timeout: 240 seconds]
benlakey has quit [Ping timeout: 240 seconds]
Darryl has joined #ruby
mjc_ has joined #ruby
dziga is now known as Guest16224
ssut has quit [Ping timeout: 250 seconds]
metadave has joined #ruby
achoom__ has quit [Ping timeout: 250 seconds]
adambeynon has joined #ruby
tarcwynne has joined #ruby
InhalingPixels has joined #ruby
cmaxw_____ has quit [Ping timeout: 260 seconds]
tadejm has quit [Ping timeout: 240 seconds]
jeregrine has quit [Ping timeout: 244 seconds]
yetanotherdave has joined #ruby
ikanobori has quit [Ping timeout: 240 seconds]
paulog_ has quit [Ping timeout: 272 seconds]
Guest85414______ has quit [Ping timeout: 272 seconds]
cbetta has joined #ruby
dioms_ has quit [Ping timeout: 260 seconds]
juz88 has joined #ruby
mattyohe has joined #ruby
andrewstewart has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 260 seconds]
kapowaz has joined #ruby
bjeanes has joined #ruby
yo61 has joined #ruby
alol_ has joined #ruby
EasyCo has joined #ruby
machty has joined #ruby
amitchellbullard has joined #ruby
frode15243_ has joined #ruby
troter has joined #ruby
olleromo__ has joined #ruby
Grantlyk has joined #ruby
jrunning has joined #ruby
tiagonobre has joined #ruby
jpinnix has joined #ruby
achoom has joined #ruby
skmp has joined #ruby
daxroc_ has joined #ruby
tadejm has joined #ruby
chihhsin_cloud has joined #ruby
ramblinpeck has joined #ruby
ssut has joined #ruby
schaary|afk has joined #ruby
akitada has joined #ruby
benlakey has joined #ruby
thesheff17 has joined #ruby
Tranquility_ has joined #ruby
lectrick has joined #ruby
jds has joined #ruby
rickruby has joined #ruby
glowcoil has joined #ruby
natewalck has joined #ruby
achoom__ has joined #ruby
mroth has joined #ruby
andrewcarter has joined #ruby
tokengingerkimjo has joined #ruby
antonishen has joined #ruby
bayed has joined #ruby
cmaxw_____ has joined #ruby
Guest85414______ has joined #ruby
ikanobori has joined #ruby
dioms_ has joined #ruby
paulog_ has joined #ruby
ELLIOTTCABLE has joined #ruby
meinside has joined #ruby
bcavileer has joined #ruby
rfv has joined #ruby
ceej has joined #ruby
InhalingPixels has quit [Ping timeout: 240 seconds]
andrewstewart_ has joined #ruby
jeregrine has joined #ruby
bedouin_ has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
kaspertidemann has quit []
sandelius has joined #ruby
yubrew has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
nszceta has quit []
yubrew has quit [Ping timeout: 240 seconds]
mackintosh has quit [Quit: Lost terminal]
LangeOortjes has joined #ruby
karupa is now known as zz_karupa
lolmaus has quit [Ping timeout: 245 seconds]
abuzze has joined #ruby
olivier_bK has joined #ruby
felixjet_ has joined #ruby
iteratorP has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 260 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandelius has joined #ruby
nateberkopec has joined #ruby
InfraRuby has left #ruby [#ruby]
felixjet has quit [Ping timeout: 260 seconds]
amacou has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
CorySimmons has quit [Quit: Zzz...]
frode15243_ is now known as frode15243
frode15243 has quit [Changing host]
frode15243 has joined #ruby
annelies has joined #ruby
annelies has left #ruby ["Leaving"]
nateberkopec has quit [Ping timeout: 240 seconds]
froggy__ has joined #ruby
juz88 has quit [Ping timeout: 250 seconds]
amacou has quit [Remote host closed the connection]
<gogohome>
Hello
mrmist has joined #ruby
taybin has joined #ruby
amacou has joined #ruby
Bira has joined #ruby
froggy_ has quit [Ping timeout: 255 seconds]
amacou has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mrmist is now known as mist
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
kephra has joined #ruby
<kephra>
moin
<tagrudev>
yolo
juz88 has joined #ruby
<kephra>
is there a way to tell create_makefile to give the Makefile a different name?
Lucky_ has joined #ruby
Zespre has quit [Quit: leaving]
Danibal has joined #ruby
Zespre has joined #ruby
Zespre has quit [Client Quit]
CorySimmons has joined #ruby
Zespre has joined #ruby
tokik has quit [Ping timeout: 260 seconds]
luckyruby has quit [Quit: Leaving...]
CorySimmons has quit [Client Quit]
amacou has joined #ruby
\u has quit [Ping timeout: 250 seconds]
amacou has quit [Remote host closed the connection]
mbuf has quit [Ping timeout: 250 seconds]
shredding has quit [Ping timeout: 255 seconds]
philcrissman has joined #ruby
Danibal has quit [Ping timeout: 272 seconds]
realDAB has quit [Quit: realDAB]
duper has quit [Ping timeout: 260 seconds]
Bira has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 272 seconds]
duper has joined #ruby
shredding has joined #ruby
\q has joined #ruby
keen______ has joined #ruby
keen_____ has quit [Ping timeout: 250 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pigram86_ has joined #ruby
Takle has quit [Remote host closed the connection]
pigram86 has quit [Ping timeout: 255 seconds]
InfraRuby has joined #ruby
toastynerd has joined #ruby
lolmaus has joined #ruby
amacou has joined #ruby
whyy has quit [Remote host closed the connection]
realDAB has joined #ruby
<Hanmac>
kephra: you can change the name of the output lib with a parameter but i think the name of the makefile is fix ... its also a bit important to have that name, otherwise make might not find it
whyy has joined #ruby
kaspertidemann has joined #ruby
<kephra>
Hanmac, the ruby extension is only one of many usages of my lib - so its nasty that create_makefile overwrites the main makefile
juz88 has quit [Ping timeout: 255 seconds]
Shakyj has left #ruby [#ruby]
<kephra>
so far all those make helpers are half baked shit, regardless if Qt, Ruby or others ;-(
<Hanmac>
put the ruby ext into a secondary dir
max06 has joined #ruby
tjr9898 has joined #ruby
toastynerd has quit [Ping timeout: 240 seconds]
tkuchiki_ has joined #ruby
alexju has joined #ruby
whyy has quit [Ping timeout: 260 seconds]
taybin has quit [Quit: This computer has gone to sleep]
InhalingPixels has joined #ruby
basiclaser has quit [Excess Flood]
godd2 has quit [Ping timeout: 244 seconds]
InfraRuby has left #ruby [#ruby]
yetanotherdave has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
basiclaser has joined #ruby
jdj_dk has joined #ruby
siukit2014 has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki_ has quit [Ping timeout: 246 seconds]
yubrew has joined #ruby
taybin has joined #ruby
phinfonet has joined #ruby
netzfisch has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
taybin has quit [Client Quit]
thomasxie has left #ruby [#ruby]
phoo1234567 has joined #ruby
nszceta has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
yubrew has quit [Ping timeout: 245 seconds]
phoo1234567 has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
juz88 has joined #ruby
gogohome has quit [Quit: gogohome]
Takle has joined #ruby
mbuf has joined #ruby
maroloccio has joined #ruby
arup_r has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
oo_ has joined #ruby
chrishough has quit [Quit: chrishough]
InfraRuby has joined #ruby
<kephra>
i'm doing this right now - fearing that incompatibilities of directory naming of non free operating system might cause later problems
shredding has quit [Quit: shredding]
InfraRuby has left #ruby [#ruby]
oo_ has quit [Ping timeout: 264 seconds]
<workmad3>
kephra: well, windows will use / as a path separator normally
<workmad3>
kephra: so that's less of a concern than having a sane POSIX build environment on said OS ;)
oo_ has joined #ruby
<kephra>
I wonder, if someone here uses WIndows, and can test my Ruby extension in a few hours
siukit2014 has joined #ruby
gtrak has joined #ruby
<workmad3>
kephra: not to mention that ruby will also handle translating / in file paths appropriately
<kephra>
the extension implements Wylie tibetan transliteration - so it wont be useful for most people
<workmad3>
kephra: which is why File::SEPARATOR is always "/" in ruby ;)
gogohome has joined #ruby
netzfisch is now known as netzfisch_
jdj_dk has quit [Remote host closed the connection]
<kephra>
so next question - how to tell create_makefile that the extension requires a library in a different directory?
cobakobodob has quit [Ping timeout: 260 seconds]
patrick99e99 has joined #ruby
dorei has joined #ruby
Grantlyk has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Remote host closed the connection]
lanox has joined #ruby
iteratorP has joined #ruby
juz88 has quit [Ping timeout: 260 seconds]
Danibal has joined #ruby
Danibal has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
professor_soap has joined #ruby
Grantlyk has joined #ruby
<professor_soap>
hello
Bira has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
Danibal has joined #ruby
nateberkope has joined #ruby
gccostabr has joined #ruby
<professor_soap>
If I have a file with json objects, NOT speperated with commas, just like this: {"foo":"bar"}{"foo":"bar"}, is there a way to parse this and extract the objects to make a valid json array out of it?
mijicd has quit [Remote host closed the connection]
<_lazarevsky>
I want to iterate over the keys for each of the roles
<_lazarevsky>
namely get the key and value of update, key and value of create, etc..
thumpba_ has joined #ruby
Danibal has quit [Remote host closed the connection]
gtrak has quit [Ping timeout: 264 seconds]
max06 has quit [Quit: Leaving.]
thumpba has quit [Ping timeout: 264 seconds]
\q has quit [Ping timeout: 264 seconds]
ltd has quit [Ping timeout: 264 seconds]
tewlz has joined #ruby
\q has joined #ruby
lkba has joined #ruby
ltd has joined #ruby
_justin has joined #ruby
ldnunes has joined #ruby
larsam has quit [Ping timeout: 250 seconds]
doev has quit [Quit: Verlassend]
netzfisch_ has quit [Read error: Connection reset by peer]
abuzze has quit [Remote host closed the connection]
<Hanmac>
professor_soap: i managed to use that JSON.load("["+s.gsub("}{","},{")+"]") ... so adding the commas does solve the problem
chillibite has joined #ruby
<kephra>
I'm trying `find_library("../../../src/WylieUTF8.o", "UTFfromWylie")` but this results in `checking for UTFfromWylie() in -l../../../src/WylieUTF8.o... no` even if nm tells me that the function is there
ValicekB has quit [Ping timeout: 255 seconds]
teddyp1cker has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
amundj has joined #ruby
krisquigley has joined #ruby
DaniG2k has joined #ruby
chillibite has left #ruby [#ruby]
tewlz has quit [Ping timeout: 255 seconds]
cobakobodob has joined #ruby
shredding has joined #ruby
arup_r has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
toastynerd has joined #ruby
_justin has quit [Quit: _justin]
oo_ has quit [Remote host closed the connection]
chridal has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
easier has joined #ruby
oo_ has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
oo_ has joined #ruby
<kephra>
can someone explain how find_library is supposed to work?
ValicekB has joined #ruby
<professor_soap>
Hanmac: True, that would work but I found a better solution for this specific case. Yours would solve it if it wasn't for the fact that I have nested object in there as well. I realized all the object was actually seperated with "\n"s, so I ended up gsubbing them into commas and them chomp out the last one for a valid json result. Thx anyway!
yubrew has joined #ruby
chridal has joined #ruby
professor_soap has quit []
toastynerd has quit [Ping timeout: 255 seconds]
mijicd has joined #ruby
<jhass>
_lazarevsky: did you even try? it's pretty easy: permissions.each do |role_name, actions| actions.each do |action, to|
InhalingPixels has joined #ruby
ChrisHein has joined #ruby
whyy has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
spastorino has joined #ruby
nateberkopec has joined #ruby
yetanotherdave has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
timonv has joined #ruby
InhalingPixels has quit [Ping timeout: 250 seconds]
timonv has quit [Client Quit]
sk87 has joined #ruby
sk87 has quit [Client Quit]
krz has quit [Quit: WeeChat 0.4.3]
yetanotherdave has quit [Ping timeout: 245 seconds]
axilla has joined #ruby
parduse has joined #ruby
* kephra
still curses find_library
shredding has quit [Quit: shredding]
Grantlyk has quit [Ping timeout: 260 seconds]
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
workmad3 is now known as wm3|away
Grantlyk has joined #ruby
_justin has joined #ruby
jottr has joined #ruby
carraroj has joined #ruby
qmfnp has joined #ruby
ari-_-e has quit [Ping timeout: 272 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iteratorP has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
timfoo has joined #ruby
<n1lo>
hello.. good morning fellas.
iteratorP has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
* kephra
curses
<kephra>
looking at the mkmf.log: conftest.c:5:53: error: 'UTFfromWylie' undeclared (first use in this function)
<kephra>
so this will never work, because find_library produces a C file that does not even compile, and therefore never links
sambao21 has joined #ruby
larsam has joined #ruby
phutchins has joined #ruby
failshell has joined #ruby
whyy has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
tonyhb has joined #ruby
ppinto has joined #ruby
carraroj has quit [Ping timeout: 250 seconds]
ChrisHein has quit []
tarcwynne is now known as mr_flibble
ppinto has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
failshel_ has joined #ruby
britneywright has joined #ruby
anaeem1 has joined #ruby
abuzze has joined #ruby
yfeldblum has joined #ruby
TieSoul has joined #ruby
philcrissman has quit [Ping timeout: 245 seconds]
failshell has quit [Ping timeout: 240 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
<davidleung>
mikecmpbll: huh? bundle install? no, I'm new to ruby. It's my first try
TorpedoSkyline has quit [Ping timeout: 260 seconds]
<mikecmpbll>
seems like you haven't installed the bundle
jftf has quit [Ping timeout: 246 seconds]
<davidleung>
mikecmpbll: seems like it starts to grep something
<mikecmpbll>
bear in mind though, that repo hasn't been updated for 3 years or so, it's likely not to work with the latest ruby.
<davidleung>
Mon_Ouie: btw, what's the command pulling the submodules of it
<davidleung>
mikecmpbll: where's the newest repo for tryruby?
tonyhb has quit [Read error: Connection reset by peer]
wm3|away is now known as workmad3
<davidleung>
mikecmpbll: tryruby.org works like a charm
<mikecmpbll>
well we don't know what ruby tryruby.org runs on, do we?
tonyhb has joined #ruby
<davidleung>
mikecmpbll: anything similar should be fine
<mikecmpbll>
what do you mean?
Guest16224 has quit []
dziga has joined #ruby
cocotton has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cocotton has joined #ruby
bearish has quit [Remote host closed the connection]
<davidleung>
mikecmpbll: any tryruby rail app would be fine for me to test and run
Grantlyk has quit [Remote host closed the connection]
Xeago_ has joined #ruby
Grantlyk has joined #ruby
bearish has joined #ruby
<mikecmpbll>
if you type RUBY_VERSION into tryruby.org
<mikecmpbll>
you'll see it runs on 1.9.3
arup_r has quit []
<davidleung>
mikecmpbll: oh
<mikecmpbll>
so if you're running 2.1.0 for instance, you may (repeat may) have problems.
<davidleung>
mikecmpbll: the bundle install process is so long o_O
freerobby has quit [Quit: Leaving.]
Blizzy has joined #ruby
yetanotherdave has joined #ruby
<davidleung>
mikecmpbll: what's your best bet that would work ?
mary5030 has joined #ruby
Xeago__ has joined #ruby
<mikecmpbll>
exactly what you're doing
<davidleung>
mikecmpbll: github has several try ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cocotton has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
<davidleung>
mikecmpbll: there are newer ones too
ValicekB has quit [Ping timeout: 272 seconds]
<mikecmpbll>
davidleung: what are you actually trying to achieve by running the tryruby web application?
mary5030 has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
<davidleung>
mikecmpbll: understand the interpreter interaction part
tokengingerkimjo is now known as goshdarnyou
<davidleung>
mikecmpbll: has been choosing the web server part for a while
goshdarnyou is now known as Guest76606
<mikecmpbll>
not sure i understand what you mean
<davidleung>
mikecmpbll: need a interpreter to work as a debugger
<mikecmpbll>
heard of IRB?
<davidleung>
mikecmpbll: and the page shall be extensible by ruby scripts
<davidleung>
mikecmpbll: yeah
<mikecmpbll>
don't you just want irb?
<davidleung>
mikecmpbll: no
djcp has joined #ruby
<davidleung>
mikecmpbll: need a web UI ruby debugger
<mikecmpbll>
ok
_justin has quit [Quit: _justin]
Xeago_ has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
o0oo0o has quit [Quit: WeeChat 0.4.3]
abuzze_ has joined #ruby
Xeago__ has quit [Remote host closed the connection]
<davidleung>
mikecmpbll: and i want to be able to submit script to the webserver to make extensions to the app
johnmolina has joined #ruby
o0oo0o has joined #ruby
<mikecmpbll>
sounds fun.. anything involving remote code execution is
dumdedum has joined #ruby
bearish has quit []
wombo has joined #ruby
<davidleung>
mikecmpbll: and the script extend the database too
<davidleung>
mikecmpbll: that works as the admin(developer) part
wombo has quit [Client Quit]
abuzze has quit [Ping timeout: 245 seconds]
<davidleung>
mikecmpbll: but i don't know if it's possible to debug the ruby code like irb
<davidleung>
mikecmpbll: i mean like it's running inside irb
kotk_ has joined #ruby
<Mon_Ouie>
davidleung: It would be git submodule init I believe
teddyp1c_ has quit []
<davidleung>
Mon_Ouie: thx
philcrissman has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
Kricir has quit [Remote host closed the connection]
iteratorP has joined #ruby
amacou has quit [Read error: Connection reset by peer]
<davidleung>
mikecmpbll: it's like endless pulling process
amacou has joined #ruby
kotk has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
DEA7TH has joined #ruby
iteratorP has quit [Remote host closed the connection]
timfoo has joined #ruby
iteratorP has joined #ruby
cocotton has joined #ruby
iteratorP has quit [Remote host closed the connection]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
ValicekB has joined #ruby
yubrew has joined #ruby
InfraRuby has left #ruby [#ruby]
philcrissman has quit [Ping timeout: 250 seconds]
olivier_bK has quit [Quit: Quitte]
zz_jrhorn424 is now known as jrhorn424
Aaaal has joined #ruby
olivier_bK has joined #ruby
alexju has joined #ruby
JohnFord has joined #ruby
livingstn has joined #ruby
sk87 has joined #ruby
jdj_dk has quit [Remote host closed the connection]
jftf_ has joined #ruby
Xeago has joined #ruby
wpp has joined #ruby
mengu has quit []
itspots has joined #ruby
yfeldblum has joined #ruby
Xeago has quit [Remote host closed the connection]
jftf_ has quit [Ping timeout: 240 seconds]
tagrudev has quit [Remote host closed the connection]
freerobby has joined #ruby
pigram86 has quit []
jonahR has joined #ruby
amargherio has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Ping timeout: 250 seconds]
pigram86 has joined #ruby
taybin has quit [Quit: This computer has gone to sleep]
pigram86 has left #ruby [#ruby]
asteve has joined #ruby
niik00 has joined #ruby
snath has quit [Ping timeout: 250 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
<niik00>
Hi guys. I have with about 50 rake tasks. I'd like to know if they is an existing mechanism to trigger a handler when a rake task fail ? i.e. sending a mail with the stack trace
<niik00>
I don't really want to update my 50 tasks manually and one by one add some begin rescue blocks so it'd be awesome if something to handle errors exists
thams has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
crazydiamond has joined #ruby
ffranz has joined #ruby
jprovazn has quit [Quit: Odcházím]
<crazydiamond>
Hi. I have a script, that uses backticks in it, like `ls -la /` When I run it in general way like "ruby myscript.rb" it work well. But when I run it via supervisord and via sinatra, it says "No such file or directory - ls -la /". How can I fix it?
<niik00>
crazydiamond: you can try with system('ls -la /')
cpt_yossarian has joined #ruby
<crazydiamond>
niik00, does that differ from short form?
LBRapid has quit [Ping timeout: 272 seconds]
<niik00>
Well I'm not sure but backticks are maybe badly interpreted. Or maybe paste some code here
<crazydiamond>
niik00, system('ls -la /') via sinatra and supervisord returns nil, and works well via just "ruby myscript.rb"
jimmyhoughjr has joined #ruby
agjacome_ has quit [Quit: Lost terminal]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
LBRapid has joined #ruby
<niik00>
crazydiamond: if it returns nil, it means that your command failed.
tobago has quit [Remote host closed the connection]
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
enebo has joined #ruby
<crazydiamond>
niik00, ok, thanks
icebourg has joined #ruby
<crazydiamond>
btw, I guess now that this is rather rvm/supervisord configuration issue. Is there way to fix that instead? I.e. some manual how to deploy sinatra app with proper version of ruby (installed via rvm)?
<niik00>
crazydiamond: Are you trying to read the root content of your server with Sinatra ?
<crazydiamond>
it's no problem for eiter my user or root to do that
anaeem1_ has quit [Remote host closed the connection]
<crazydiamond>
I wanna my app to work on address like 127.0.0.1:8001
<crazydiamond>
when I boot the pc
<crazydiamond>
and when I visit it - to read stuff from disk and display info for me
szuletett has joined #ruby
<jhass>
niik00: I guess I'd just write a wrapper script that executes rake and does the mailing
<niik00>
crazydiamond: info like ? just file name & file size for example ?
iteratorP has quit [Ping timeout: 240 seconds]
toastynerd has quit [Ping timeout: 246 seconds]
<crazydiamond>
niik00, it reads contents of files, processes them and shows to me
<crazydiamond>
to count how many time I spend on things
<crazydiamond>
like silly time-management tool
kevind has joined #ruby
Mongey has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
charliesome has joined #ruby
afhammad has joined #ruby
bal has quit [Quit: bal]
taybin has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
newUser1234 has joined #ruby
treehug88 has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neersighted has joined #ruby
Mongey has joined #ruby
<niik00>
jhass: seems a good idea. Can you tell how you'll do that with a little more details ? All my rake tasks are called from cron btw that why I'd like to be notify when a fail happens.
<jhass>
why don't you just configure cron to mail you then?
yeticry has quit [Ping timeout: 250 seconds]
<jhass>
MAILTO=my@address as first line in your crontab
<niik00>
because I guess that I need root access to do that ? I don't think that the server has a smtp server installed
sergiomiranda has quit [Quit: sergiomiranda]
tylerkern has joined #ruby
<jhass>
sendmail might suffice
<jhass>
try if it does something
<jhass>
you certainly don't need root
<niik00>
well I'm gonna try :)
yetanotherdave has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
yeticry has joined #ruby
ringarin has quit [Ping timeout: 260 seconds]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
<jhass>
crazydiamond: that sounds like $PATH isn't setup in that environment, try /bin/ls as command
<jhass>
crazydiamond: I also hope that's not your real command, to list directory content use Dir.entries or Dir.glob or Dir[]
Bumptious has quit [Remote host closed the connection]
comma8 has quit [Ping timeout: 250 seconds]
wpp has quit []
xaxisx_ has joined #ruby
jftf_ has joined #ruby
<crazydiamond>
however. to check that I must output path in my actual environment and standard one, and compare them
LBRapid has quit [Ping timeout: 260 seconds]
Macaveli has quit [Ping timeout: 260 seconds]
wjimenez5271 has joined #ruby
LangeOortjes has quit [Remote host closed the connection]
patric100e99 has joined #ruby
razum2um has quit [Quit: Leaving.]
larsam has left #ruby [#ruby]
Macaveli has joined #ruby
LBRapid has joined #ruby
beryllium has quit [Ping timeout: 240 seconds]
jftf_ has quit [Ping timeout: 240 seconds]
<niik00>
jhass: seems it work like that. I just have to improve the system but it nice. Thanks !
snath has joined #ruby
xaxisx_ has quit [Quit: xaxisx_]
patric100e99 has quit [Ping timeout: 245 seconds]
xaxisx_ has joined #ruby
redondos has quit [Disconnected by services]
DaniG2k has quit [Quit: leaving]
beryllium has joined #ruby
Rollabunna has quit [Quit: Leaving...]
Macaveli has quit [Ping timeout: 240 seconds]
redondos- has joined #ruby
Bumptious has joined #ruby
Grantlyk has quit [Remote host closed the connection]
nszceta has quit [Ping timeout: 260 seconds]
Grantlyk has joined #ruby
szuletett has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
oo_ has joined #ruby
wjimenez_ has joined #ruby
jmbrown412 has joined #ruby
davidleung has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
emmesswhy has joined #ruby
chrishough has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
professor_soap has joined #ruby
Bumptious has quit [Ping timeout: 255 seconds]
benzrf|offline is now known as benzrf
Macaveli has joined #ruby
zastern has quit [Quit: WeeChat 0.4.3]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<professor_soap>
Ok I have a tricky string problem. I have a bunch of strings with some random data in them, but they all contain a certain piece of text like "special_info=something_of_value". Now this piece of information might be alone with a space carachter on both sides, or it might be joined with text on it's left side, All I know is every string has this pattern somewhere in it. How could I extraxt the value of these patt
<professor_soap>
ern on the right side of the "=" sign?
sambao21 has quit [Quit: Computer has gone to sleep.]
<professor_soap>
sorry for bad english
<apeiros>
if it's joined with text, how do you know where the boundary is?
Xeago has joined #ruby
<apeiros>
but generally, sounds like String#scan is what you need
sambao21 has joined #ruby
joonty has quit [Quit: Leaving]
Lucky___ has joined #ruby
<jhass>
if I got that right there's always a space to the right of the value
<jhass>
and known key
treehug88 has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
kireevco has joined #ruby
<jhass>
so I'd do .split("key=", 2).last.split(" ", 2).first
Macaveli has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
treehug88 has joined #ruby
Spami has joined #ruby
Grantlyk has quit [Remote host closed the connection]
<apeiros>
.scan(/knownkey=([^ ]*)/)
oo_ has joined #ruby
<apeiros>
.flatten if necessary
ponch_ has joined #ruby
workmad3 has joined #ruby
zastern has joined #ruby
<apeiros>
jhass: split won't get rid of the random data around the key-value pair
<apeiros>
professor_soap: additional question: does the pattern occur once only in the string or multiple times?
Grantlyk has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 260 seconds]
<Xeago>
SHA512 is longer, as is SHA3, you can truncate these sufficiently without compromising too much
<agent_white>
Ah alrighty!
bayed has quit [Quit: Connection closed for inactivity]
tjr9898_ has quit [Remote host closed the connection]
<Xeago>
why do you need a specific length?
nanoyak has quit [Quit: Computer has gone to sleep.]
tjr9898 has joined #ruby
<Xeago>
128b is sufficient to generate a 16*8 pattern
havenwood has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
<Xeago>
alternatively you can generate many hashes
nateberkopec has quit [Quit: Leaving...]
jftf_ has joined #ruby
<agent_white>
Ah basically I'm thinking, I want to have a 50x50 png image. And I want to cut it into 5x5 blocks, and I'll decide if that block is colored or not by splitting that string into groups of 2, and if it's a letter and a number it'll be on, otherwise off :)
<agent_white>
So I figured a string with length of 50 chars would be easier to chop up than a string with 40 chars.
cocotton has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago>
since this is not a security related aspect of the site, you can just generate hash(@user + i) for i in 0 .. 100
<Xeago>
you can just stretch the hash that way
jcromartie has joined #ruby
Takle has joined #ruby
<Xeago>
assuming 1 color, you'd need a 256b sequence
mr_flibble is now known as tarcwynne
<Xeago>
nah
<agent_white>
Ah I'll generate the colors separately.
freerobby has joined #ruby
sambao21 has joined #ruby
terrellt has quit [Remote host closed the connection]
<agent_white>
This is just to get the block placement right :D
<Xeago>
honestly, make your image generation stuff easier :)
<Xeago>
just map every 8bits into something
<Xeago>
and stretch the hash
<agent_white>
Hm alrighty. Otherwise I was thinking if I reverse the username, hash it, and add it to the current hash string?
terrellt has joined #ruby
<Xeago>
doesn't matter
<agent_white>
Okey doke!
tjr9898 has quit [Ping timeout: 255 seconds]
<agent_white>
Thanks for your input! :DD
<apeiros>
bmp header and feed the binary data right after it
<Xeago>
interesting things will pop up if you do things like that tho
<Xeago>
in my example
<Xeago>
user and user1 would share a block
tjr9898 has joined #ruby
shackleford has quit [Read error: Connection reset by peer]
beef-wellington has joined #ruby
CorySimmons has joined #ruby
jftf_ has quit [Ping timeout: 250 seconds]
icole has joined #ruby
shackleford has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Xeago>
I'd suggest PBM
<Xeago>
it's easier
i_s has joined #ruby
TieSoul has quit [Ping timeout: 255 seconds]
craigp has quit []
AndChat| has joined #ruby
jonahR has quit [Ping timeout: 260 seconds]
<coca_rails>
Hello people of all nations, I am here with a question: Watir or Capybara?
<coca_rails>
I am setting up a test harness for the QA team.
<apeiros>
I don't think those are on the same level
<apeiros>
at least iirc capybara can use watir
dbasch has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
beef-wellington has quit [Ping timeout: 250 seconds]
<apeiros>
step 3. get all your users data stolen? :)
<jhass>
step 3. you're doing it wrong
andikr has joined #ruby
postmodern has joined #ruby
kaiserpathos has quit []
omosoj has joined #ruby
xMopxShell has joined #ruby
noop has joined #ruby
<shevy>
step 4. go to toilet
claymore has joined #ruby
<shevy>
something is wrong with those steps
philcrissman has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
Xeago has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
GriffinHeart has joined #ruby
TieSoul has joined #ruby
tonyhb_ has quit [Quit: peace]
jftf_ has quit [Ping timeout: 255 seconds]
ValicekB has quit [Ping timeout: 272 seconds]
_maes_ has joined #ruby
<agent_white>
havenwood: Does that require the 'sha3' gem?
coderhs has joined #ruby
craigbowen3 has joined #ruby
lw has joined #ruby
mercwithamouth has joined #ruby
<agent_white>
OH
<agent_white>
NVM
<agent_white>
Saw the above. :P
cocotton has joined #ruby
CorySimmons has quit [Quit: Bye!]
cocotton has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
<agent_white>
Actually nvm.
cocotton has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 245 seconds]
<havenwood>
agent_white: it looks like digest-sha3 and sha3 gems require one of five specific lengths, while sha3-pure-ruby allows arbitrary lengths
<agent_white>
Ooo cool beans.
tylerkern has joined #ruby
<havenwood>
agent_white: i maintain sha3-pure-ruby so i could match the behavior :O, but is it really preferred??
<agent_white>
havenwood: Thank you for the heads :D
sambao21 has quit [Quit: Computer has gone to sleep.]
<agent_white>
Ah god knows. I'm just tinkering around so I have no preference at all.
<agent_white>
I just wanted to hash a string and make it 50 chars long. That's about it :P
TorpedoS_ has joined #ruby
<havenwood>
i like arbitrary hash length :P
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
adamfortuna has joined #ruby
<havenwood>
sure you usually wanna use a standard one, but.. maybe you don't >.>
aspires has quit []
adamfortuna has left #ruby [#ruby]
i_s has quit []
baordog_ has joined #ruby
sambao21 has joined #ruby
<havenwood>
i guess it could warn, oh well, dunno
<baordog_>
I'm on ubuntu
testcore has joined #ruby
<baordog_>
I have a gem I need, and I don't think it can handle 1.9.3
<baordog_>
What is the best way for me to revert to 1.9.1?
TorpedoSkyline has quit [Ping timeout: 255 seconds]
<havenwood>
baordog_: 1.9.1 is the ABI version of 1.9.3
<baordog_>
(it's wwmd, if anyone wants to help me with that)
<baordog_>
ABI?
<havenwood>
baordog_: the apt package for 1.9.3 is an alias to 1.9.1
<baordog_>
Ah
<havenwood>
baordog_: the real 1.9.1 was not a stable release and using it would be nuts
Cyrax_ has quit [Ping timeout: 245 seconds]
xaxisx_ has quit [Quit: xaxisx_]
cpruitt has quit [Quit: cpruitt]
<havenwood>
baordog_: there're apt packages for 1.8.7, 1.9.3, 2.0.0
<baordog_>
Well I'm getting an error from wwmd that says "Can't handle 1.9.x yet" Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.
<jhass>
it has support, doesn't mean you can't build apps that don't connect to one
<riceandbeans>
I thought rails pretty much revolved around the DB
troulouliou_dev has quit [Ping timeout: 250 seconds]
<riceandbeans>
I just have absolutely no need for a DB for this
<riceandbeans>
here's the game plan
<riceandbeans>
a web page with three text fields, you enter the info you need to, it does some mechanize on the backend, generates a file, and emails it to you
<riceandbeans>
that's it
yetanotherdave has joined #ruby
Sou|cutter has quit [Quit: WeeChat 0.4.3]
<centrx>
riceandbeans, Rails provides a lot of extra functionality and perhaps bloat that you do not want for this project
<riceandbeans>
I don't need routing, there will be 1 page
<havenwood>
riceandbeans: oh!
<riceandbeans>
literally 1
benzrf is now known as benzrf|offline
queequeg2 has quit [Remote host closed the connection]
<jhass>
so maybe indeed rack directly
<havenwood>
then Rack
<riceandbeans>
enter 3 fields, hit submit button, do the rest in ruby on the backend to interface to this appliance, email the response
queequeg1 has joined #ruby
<jhass>
an index.html + a rack app that takes the post request
<riceandbeans>
is rack hard to use directly? I've never tried
bascht has quit [Quit: Konversation terminated!]
<havenwood>
riceandbeans: just create a config.ru with a few lines and you're ready to rackup
heftig has joined #ruby
<jhass>
basically you just need an object that responds to call and returns an array
<riceandbeans>
(I'm more experienced in Perl at this point but I like Ruby too)
<jhass>
could even be a lambda
<havenwood>
well, one line really
doodlehaus has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
<havenwood>
run ->(_) { [200, {'Content-Type' => 'text/html'}, ['just one line']] }
georgelappies has joined #ruby
<jhass>
I'd recommend a class that implements call though
<havenwood>
jhass: aye
IceDragon has joined #ruby
<riceandbeans>
jhass: explain?
<jhass>
since you want to do some more complex stuff with the request
Grantlyk has quit [Remote host closed the connection]
<riceandbeans>
jhass: no no no
<riceandbeans>
jhass: the request itself is simple
<riceandbeans>
take the data from 3 text fields
<riceandbeans>
the rest I was going to have mechanize do
<riceandbeans>
pending success I might have page 2 that says success or failure
<jhass>
the tricky part may be doing the mechanize stuff outside the request cycle
<jhass>
if that's even wanted
<riceandbeans>
it is
<riceandbeans>
it's an entirely separate sequence
<riceandbeans>
I just need those 3 things from them
<ramblinpeck>
hi all, is there a method like Enumberable#find that returns the value of a function called on the element and not the element? eg [group1, group2, group3, group4].find {|group| group.invitation_template} and have that return the template instead of having to call invitation_template again?
<ramblinpeck>
little thing, but feels like there should be a way that I'm just not thinking of
<riceandbeans>
long story short, I'm working with a crappy vendor who won't hand over APIs, so I'm having to use mechanize to do the interaction with their web ui to make it less manual
tylerkern has joined #ruby
Aristata has joined #ruby
<jhass>
ramblinpeck: my hack for that is .lazy.map(&:invitation_template).find
<Aristata>
how do I checkout a gem into a local directory?
<ramblinpeck>
jhass: ah, I like that, a little terse but makes sense
hephaestus_rg has joined #ruby
TorpedoS_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
ringarin has quit [Ping timeout: 272 seconds]
<ramblinpeck>
jhass: find seems to return an enumerable with that
<ramblinpeck>
which is odd, I though find always returned the element
timonv_ has quit [Remote host closed the connection]
chunky_bacon has joined #ruby
ghr has joined #ruby
krisquigley has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<ramblinpeck>
yeah, ActiveSupport is
<jhass>
.find(&:present?)
<ramblinpeck>
ah, I see, I can jsut tack on find{|x| x} and it works
<jhass>
or that, yeah
chrisja has joined #ruby
<ramblinpeck>
interesting, I'd almost think that would be the default behavior, but I guess being able to pass around the enumerabble is useful sometimes
Grantlyk has joined #ruby
xaxisx_ has quit [Quit: xaxisx_]
eeezkil has quit [Read error: Connection reset by peer]
Rennex has quit [Ping timeout: 244 seconds]
<jhass>
yeah, I'd like that as default block for find too
poulet_a has joined #ruby
treehug88 has joined #ruby
bMalum_ has quit [Quit: Computer has gone to sleep.]
Sauvin has quit [Read error: Connection reset by peer]
qdbp is now known as MaryHarper
bMalum_ has joined #ruby
xaxisx_ has joined #ruby
deol has joined #ruby
xaxisx_ has quit [Client Quit]
poulet_a has quit [Client Quit]
<ramblinpeck>
oh well, its going to get a nice wrapper around it for my closure_tree object anyway, for find self or first ancestor with property
jsodini has joined #ruby
deol has quit [Client Quit]
beef-wellington has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
<ramblinpeck>
and thinking about it, I'm basically building an OO inheritance model for instances...
timonv_ has joined #ruby
<ramblinpeck>
I wonder if thats a screw up im not seeing yet
GriffinHeart has quit [Remote host closed the connection]
jftf_ has joined #ruby
<waxjar>
it sounds bad :p
threesixes has joined #ruby
Rennex has joined #ruby
bMalum_ has quit [Ping timeout: 264 seconds]
<ramblinpeck>
not sure how else it could be done though, basically groups are in a heirarchy. and if a leaf node doesn't have their own document template it asks its parent, and so on
<ramblinpeck>
but yeah, the more I talk through it the more it seems something is a little off
graft_ has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
Grantlyk has quit [Read error: Connection reset by peer]
Grantlyk has joined #ruby
hellangel7 has joined #ruby
<waxjar>
couldn't you simply set a default template for every group, only change it if necessary?
Spami has quit [Quit: This computer has gone to sleep]
alpha123 has quit [Remote host closed the connection]
jftf_ has quit [Ping timeout: 246 seconds]
<ramblinpeck>
waxjar: in this case no, and groups can have subgroups and its a requirement that they use their nearest ancestor
<ramblinpeck>
if not set
razorgfx has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
<waxjar>
i see
eeezkil has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
<shevy>
you don't see
<ramblinpeck>
so either I take care of it with update logic all over the place to propogate changes down to leaves when a parent changes
<shevy>
you are blind!
hellangel7 has joined #ruby
aspires has quit []
<ramblinpeck>
or have the logic look up
yfeldblum has joined #ruby
<waxjar>
i got contacts!
jdj_dk has joined #ruby
MaryHarper is now known as Snowstormer
<ramblinpeck>
yeah, heck with it, moving forward on this :)
aspires has joined #ruby
dawkirst has joined #ruby
carraroj has joined #ruby
aspires has quit [Client Quit]
chrishough has joined #ruby
andikr has quit [Remote host closed the connection]
rurban has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lkba has joined #ruby
shredding has joined #ruby
sambao21 has joined #ruby
diegoviola has joined #ruby
codeurge has quit [Quit: Sleep.]
mikepack has joined #ruby
mccollek has joined #ruby
beef-wellington has joined #ruby
Zebroid has joined #ruby
charliesome has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razum2um has joined #ruby
aspires has joined #ruby
Pumukel has joined #ruby
chunky_bacon has quit [Quit: leaving]
dru is now known as drusepth
Kricir has joined #ruby
jftf_ has joined #ruby
omosoj has quit [Quit: Leaving]
omosoj has joined #ruby
Macaveli has joined #ruby
yubrew has quit []
ponch_ has joined #ruby
coca_rails has quit [Quit: coca_rails]
coca_rails has joined #ruby
bradleyprice has quit [Remote host closed the connection]
jftf_ has quit [Ping timeout: 240 seconds]
bradleyprice has joined #ruby
vt102 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
superscott[8] has quit [Remote host closed the connection]
tylerkern has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
coca_rails has quit [Client Quit]
chunky_bacon has joined #ruby
superscott[8] has joined #ruby
coca_rails has joined #ruby
cocotton has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
cocotton has joined #ruby
ponch_ has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 260 seconds]
coca_rails has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
coca_rails has joined #ruby
Takle has joined #ruby
belozi has joined #ruby
bradleyprice has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
<riceandbeans>
ok, issue #1
danijoo has quit [Read error: Connection reset by peer]
p0sixpscl has joined #ruby
<riceandbeans>
in those 3 fields, let's say they contain sensitive data
<riceandbeans>
would the easiest solution be a nginx ssl passback to my app?
<jhass>
yep
danijoo has joined #ruby
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<riceandbeans>
ok
belozi has quit [Remote host closed the connection]
coca_rails has quit [Client Quit]
<p0sixpscl>
oh my god. guys.
<riceandbeans>
jhass: working directly with rack is weird man
cocotton has quit [Ping timeout: 250 seconds]
coca_rails has joined #ruby
<shevy>
like when you are a butcher right
<p0sixpscl>
did you know there is a SIRI-like bot for the console?
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
<riceandbeans>
how do I tell the rack server if I C-c it, to die
chrishough has quit [Quit: chrishough]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<riceandbeans>
I'm tired of C-b ps aux | grep ruby kill -9 PID
<shevy>
shout at it
<riceandbeans>
I guess I could just pkill -9 ruby
<riceandbeans>
it's the ONLY ruby app on the system at the moment
<eam>
riceandbeans: fix the signal handler for INT
<belozi>
I wrote a program the reads a text file, processes the information, and outputs a result.
agent_white has quit [Quit: bbl]
<riceandbeans>
eam: where might I do that?
<workmad3>
riceandbeans: yeah... that sometimes happens with webrick, it seems to be a weird bug with certain xterms
<belozi>
I just want to use the web browser to let them type in the file name and get a result without running a server.
<eam>
riceandbeans: no clue but that's the problem
<eam>
riceandbeans: also, if you're on linux: fuser -n tcp 3000 -k
axsuul has quit [Ping timeout: 255 seconds]
<eam>
assuming your run it on port 3000
<workmad3>
riceandbeans: assuming you haven't added a signal handler to capture sigint
<riceandbeans>
workmad3: tcsh in tmux in xfce4-terminal
<belozi>
...like using a browser to open up an html file, only using it to interact with the program.
<riceandbeans>
eam: I'm on DragonFlyBSD
tylerkern has quit [Read error: Connection reset by peer]
<eam>
riceandbeans: don't recall offhand what fuser does on that platform, it might support -n
tylerkern has joined #ruby
<eam>
lsof / kill can do it too in a pinch
<eam>
safer to write a "kill app on this port" vs grepping the process list
<workmad3>
eam: I personally like doing 'kill -9 ruby<tab>' in zsh :)
<riceandbeans>
there is no fuser in DragonFly
<eam>
riceandbeans: well then
<riceandbeans>
eam, pkill ruby is fine for now
<riceandbeans>
it's literally the ONLY ruby app on the system
<workmad3>
but yeah, lsof -i :3000 is also good for getting the pid
tewlz has joined #ruby
<riceandbeans>
and it's in testing
rurban has joined #ruby
<workmad3>
riceandbeans: you could try with a different app server too
<riceandbeans>
but in the FUTURE I'd like it to be cleaner
<workmad3>
riceandbeans: iirc, webrick is the only app server I've seen that happen with
<riceandbeans>
workmad3: not sure how to do that when doing directly with rack
rurban has left #ruby [#ruby]
nat2610 has quit [Quit: Leaving.]
<workmad3>
riceandbeans: make sure another app server is installed (e.g. gem install unicorn, or add it to the Gemfile if you're in bundler and bundle install)
havenwood has quit [Remote host closed the connection]
<workmad3>
riceandbeans: and then 'rackup -s unicorn'
<workmad3>
riceandbeans: or just 'unicorn config.ru'
jftf_ has joined #ruby
Aristata has quit [Quit: Leaving.]
<workmad3>
(second one in case I've forgotten my rackup-fu and -s doesn't find unicorn :) )
jackjackdrpr has joined #ruby
<baordog_>
Thanks for helping me with wwmd
<baordog_>
I got it working
<baordog_>
YAY
larsam has joined #ruby
havenwood has joined #ruby
tjr9898 has quit [Remote host closed the connection]
nat2610 has joined #ruby
<workmad3>
riceandbeans: could also try with thin, puma or passenger too, as alternate rack-based ruby app servers... all are pretty similar in starting up with either 'rackup -s <server>' or '<server> -c config.ru' (I think passenger will only support the second one due to its binary being somewhat more complicated and involving an embedded nginx server...)
godd2 has joined #ruby
jftf_ has quit [Ping timeout: 255 seconds]
gregf has joined #ruby
szuletett has quit [Ping timeout: 255 seconds]
tjr9898 has joined #ruby
Ankhers has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
Xeago has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
renderful has joined #ruby
Xeago has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Xeago has joined #ruby
<belozi>
Does anyone know if it's possible to use a web browser like chrome to interface with a ruby program with out using a server like Web Brick?
jheg has joined #ruby
razorgfx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
decoponio has quit [Quit: Leaving...]
renderful has quit [Remote host closed the connection]
philcrissman has joined #ruby
<hoelzro>
belozi: to what end?
mrrcp is now known as sammytheshark
renderful has joined #ruby
sammytheshark is now known as mrrcp
<eam>
belozi: well you could generate a file
ghr has joined #ruby
georgelappies has quit [Quit: Leaving]
<belozi>
I wrote a program that allows the user to enter a text file, which it reads and returns an out put. I wanted to use the browser to allow them to enter the name of the file and present the output.
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
philcrissman has quit [Ping timeout: 250 seconds]
razum2um has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 260 seconds]
fauzanqadri has joined #ruby
<belozi>
eam: generate a file?
iamjarvo has joined #ruby
Wolland has joined #ruby
cpruitt has quit [Quit: cpruitt]
razum2um has joined #ruby
rezzack has joined #ruby
superscott[8] has joined #ruby
<eam>
belozi: put the thing you want to display in a file, then use a url of file:///whatever.file
toastynerd has quit [Remote host closed the connection]
e4xit_ has joined #ruby
klaut has joined #ruby
MartinCleaver has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<riceandbeans>
workmad3: I like unicorn and puma
maximski has joined #ruby
mattmcclure has joined #ruby
<jhass>
veleno: well it hides the exception or you don't show it to us but probably the field doesn't contain a valid decimal number
sambao21 has quit [Client Quit]
maximski has quit [Max SendQ exceeded]
RandyT has joined #ruby
<workmad3>
riceandbeans: do they behave? :)
enebo has quit [Quit: enebo]
yalue has quit [Quit: Leaving]
e4xit has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
jftf_ has joined #ruby
<veleno>
jhass: oh sorry, the exception is: “Exception `TypeError' at /Users/veleno/.rvm/gems/ruby-1.8.7-p374/gems/dbi-0.4.5/lib/dbi/types.rb:98 - can't convert nil into String
maximski has joined #ruby
enebo has joined #ruby
maximski has quit [Max SendQ exceeded]
enebo has quit [Client Quit]
<jhass>
veleno: never worked with DBI but looks like the field contains NULL and DBI fails to parse that
<riceandbeans>
workmad3: need to install them on this system first :P
<arup_r>
When I write [1,2].each { |va| va } What is called these 2 pipes || ?
chunky_bacon has quit [Quit: leaving]
<arup_r>
what is the name of it ?
jshultz has joined #ruby
toastynerd has joined #ruby
<arup_r>
I knw it is used to decalre *block parameters*
<arup_r>
But what is called ?
<apeiros>
argument list of the block
wallerdev has joined #ruby
<jshultz>
i've got a really dumb question, i don't know why it doesn't work. All I can say is I'm from a php background and to me it "should work. I've got a value stored in a table cell that I know is true. if I echo student.scores.first.score_overidden i get true in the erb file. however, if I then try puts '*' if student.scores.first.score_overidden of puts '*' if
<jshultz>
student.scores.first.score_overidden == true I get nothing.
<jshultz>
I don't see why neither of those work?
emmesswhy has quit [Client Quit]
cocotton has quit [Remote host closed the connection]
banister has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
testcore has quit [Ping timeout: 264 seconds]
gtc has quit [Remote host closed the connection]
<waxjar>
what does student.scores look like?
chrishough has joined #ruby
Squarepy has quit [Quit: Leaving]
koderok has quit [Ping timeout: 240 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jheg has joined #ruby
<jshultz>
it's a tinyint that will return 1 if true or 0/nil depending on if it's been updated or not
<jshultz>
defaults to nil, though.
<apeiros>
jshultz: how do you "echo" the value?
havenwood has joined #ruby
<jshultz>
right now, in the record i'm testing it's set to 1
<apeiros>
since puts calls to_s, puts Bundler.setup.to_s is the same
newUser1234 has quit [Remote host closed the connection]
<jshultz>
yeah, i'm still very much in a php state of mind. it's not been easy trying to get 12+ years of php out of my head to use ruby/rails.
<apeiros>
and p instead of puts - well just prints the return value
<workmad3>
apeiros: I just got *really* weird output in guard...
<jshultz>
yeah, in an erb file
Bumptious has quit [Ping timeout: 255 seconds]
<workmad3>
apeiros: p calls inspect
<waxjar>
p uses #inspect, no?
<wallerdev>
itd have the quotes etc in it
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldbl__ has quit [Remote host closed the connection]
<workmad3>
apeiros: my weirdness was doing 'p Bundler.setup.inspect' in a guard console...
<apeiros>
waxjar: correct
<workmad3>
apeiros: it pauses and unpauses guard's file-monitoring
dangerousdave has joined #ruby
yfeldblum has joined #ruby
lazyguru has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
lw has joined #ruby
shredding has joined #ruby
<apeiros>
anyway, luckily I was just curious what the inspect was, so no need to go at lengths to get it properly printed
<apeiros>
hilarious nonetheless :D
<waxjar>
anyone know of a (lightweight) threadsafe implementation of Hash by any chance?
<workmad3>
apeiros: I'm just weirded out by 'p Bundler.setup.inspect' in guard now
agjacome has joined #ruby
<apeiros>
waxjar: define threadsafe in this context
<apeiros>
you mean all methods atomic?
mary5030 has quit [Ping timeout: 240 seconds]
<waxjar>
as long as the writes are synchronized
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has quit [Client Quit]
<waxjar>
and #map! & friends won't blow up
beryllium has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
heh, that's where it starts
<apeiros>
should map! lock the hash or only the element, or even only the read and write separately?
lazyguru has joined #ruby
<apeiros>
I'm not aware of a threadsafe hash implementation. but I'd be surprised if there wasn't a gem already. ruby-toolbox / google to the rescue
<apeiros>
in the worst case - roll your own, best using delegation
<workmad3>
apeiros: heh :) how about different levels of transactional isolation? so you could specify if you're allowing dirty-reads or not when starting it :)
yfeldblum has quit [Remote host closed the connection]
Leehro has quit [Quit: zzz]
Shidash has quit [Ping timeout: 272 seconds]
<waxjar>
yeah, i'll probably do that for now. i found hamster but that tries to be immutable, i'd like a drop-in replacement.
<waxjar>
oh well, thx anyway
troyready has joined #ruby
yfeldblum has joined #ruby
paulfm has joined #ruby
<apeiros>
sorry for not being more helpful :-/ please let me know if you find something
britneywright has joined #ruby
hephaestus_rg has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
yetanotherdave has quit [Read error: Connection reset by peer]
diegoviola has quit [Read error: Connection reset by peer]
ponch_ has quit [Ping timeout: 272 seconds]
lw has joined #ruby
tjr9898 has joined #ruby
<riceandbeans>
apeiros: thanks
Zenigor has quit [Remote host closed the connection]
ltd has quit [Ping timeout: 250 seconds]
maximski has quit []
ghr has joined #ruby
aspires has quit []
aspires has joined #ruby
ltd has joined #ruby
<omosoj>
hey guys, i'm using DateTime and i want to add 10 minutes to a time i've parsed
Tricon has joined #ruby
<wallerdev>
cool
InfraRuby has joined #ruby
<apeiros>
omosoj: DateTime#+
<omosoj>
ok, figured it out. d = DateTime.now; d + Rational(x, 86400)
bmurt has quit []
<omosoj>
thanks aperiros
<riceandbeans>
apeiros: mail looks easier than pony to me, but what do you recommend between the two?
<apeiros>
riceandbeans: I use plain mail
sepp2k has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 260 seconds]
<riceandbeans>
apeiros: then so too shall I
jaimef has quit [Excess Flood]
sigurding has joined #ruby
boccobrock has joined #ruby
sepp2k has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
newUser1_ has joined #ruby
cpruitt has joined #ruby
slowcon has quit []
ghostmoth has quit [Quit: ghostmoth]
newUser1234 has quit [Ping timeout: 260 seconds]
ptrrr has joined #ruby
dangerousdave has joined #ruby
shredding has quit [Quit: shredding]
<apeiros>
riceandbeans: but I haven't used pony, so can't really comment on how nice/not-nice it is :)
fauzanqadri has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
testcore has quit [Ping timeout: 264 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
testcore has joined #ruby
jftf_ has joined #ruby
jaimef has joined #ruby
tvw has quit []
carraroj has quit [Quit: Konversation terminated!]
crawfish has joined #ruby
x1337807x has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
tylerkern has joined #ruby
paulfm has quit []
tarcwynne is now known as mr_flibble
TieSoul has quit [Ping timeout: 246 seconds]
bMalum_ has quit [Ping timeout: 240 seconds]
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
jftf_ has quit [Ping timeout: 246 seconds]
sailias1 has quit [Quit: Leaving.]
Jackneill has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
polyidus has quit [Quit: EOF]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbasch has joined #ruby
codeurge has quit [Quit: Quit.]
dangerousdave has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
yetanotherdave has joined #ruby
bMalum_ has joined #ruby
InfraRuby has left #ruby [#ruby]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Ping timeout: 250 seconds]
haasn has quit [Ping timeout: 260 seconds]
mikepack_ has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostmoth has joined #ruby
duggiefresh has quit []
taybin has quit [Quit: This computer has gone to sleep]
mikepack has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jpierre03 has joined #ruby
nanoyak has joined #ruby
ponch_ has joined #ruby
Tricon has quit [Quit: Leaving...]
<riceandbeans>
how would I take the value from a text field submitted?
banister has quit [Read error: Connection reset by peer]
sigurding_ has joined #ruby
arup_r has quit [Quit: Leaving.]
banister has joined #ruby
<centrx>
riceandbeans, Depends on what you are using to handle HTTP requests?
banister has quit [Max SendQ exceeded]
nat2610 has quit [Quit: Leaving.]
sigurding has quit [Ping timeout: 272 seconds]
sigurding_ is now known as sigurding
nanoyak has quit [Client Quit]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
lw has quit [Quit: s]
greggawatt1 has joined #ruby
ponch_ has quit [Ping timeout: 250 seconds]
<riceandbeans>
centrx: rack
<greggawatt1>
Hey fellow rubyists. If i have the following string "Pacific Time (US & Canada)" is there a way i can convert that to a timezone number? I can't find an answer to this with google
emmesswhy has quit [Quit: This computer has gone to sleep]
timonv_ has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
emmesswhy has joined #ruby
jsodini has joined #ruby
<onewheelskyward>
That's a strange string. It's usually PST/PDT, America/Los_Angeles or the like.
autonomousdev has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<riceandbeans>
so what's the best way to reference the 3 fields individually?
beef-wellington has joined #ruby
philcrissman has quit [Ping timeout: 250 seconds]
renderful has quit [Remote host closed the connection]
<apeiros>
MarcWebe2: yes, pdfbox is java. I can ask the author whether he opensourced it (or would opensource it). given that it's not a core-business of ours we'd probably love some more eyes on the code.
Sonny|3oy has joined #ruby
<apeiros>
(it = our drb+jruby wrapper)
renderful has joined #ruby
bMalum_ has quit [Ping timeout: 260 seconds]
<riceandbeans>
apeiros: hints?
<MarcWebe2>
Reviewing PDF code is out of scope, I had a look at PDF specification once.. There are quite a lot of features.
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
riceandbeans: ew, pastebin :)
nat2610 has joined #ruby
<apeiros>
MarcWebe2: I think the pdf part is taken care of just fine by pdfbox (the java library)
<apeiros>
the part written by us is only the wrapper around it
<apeiros>
I'd have to ask tomorrow, though. midnight here.
<MarcWebe2>
I'll ping you again (in this public channel) if I haven't found a solution till tomorrow.
<apeiros>
ok
<MarcWebe2>
Maybe prawn-templates is good enough.
renderfu_ has joined #ruby
<riceandbeans>
apeiros: you got a better suggestion?
renderful has quit [Remote host closed the connection]
<apeiros>
riceandbeans: gist.github.com is my favorite. no ads. clonable git repository. history.
thoolihan has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gccostabr has quit [Quit: ZZZzzz…]
jpierre03 has quit [Ping timeout: 272 seconds]
jheg has quit [Quit: jheg]
<riceandbeans>
apeiros: yeah but I don't want that
<riceandbeans>
apeiros: this is embarrisingly bad experimental code
<riceandbeans>
apeiros: I don't want that saved for eons
<apeiros>
*shrug* don't put it on the internet then. not anywhere. not even pastebin.
<apeiros>
gists can afair be deleted
<riceandbeans>
no they can't
ghr has joined #ruby
afhammad has quit []
cocotton has joined #ruby
<apeiros>
then what does that fat red "Delete" button do?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gtrak has quit [Ping timeout: 264 seconds]
krisquigley has quit [Remote host closed the connection]
tvw has joined #ruby
<riceandbeans>
apeiros: only works if NO ONE else has ever seen it
<riceandbeans>
["Your data has been processed and you should receive an email with your certificate shortly.:n",JSON.pretty_generate(@req.POST)]]
<apeiros>
oh dear…
<apeiros>
you do mid-method returns
jftf_ has joined #ruby
shinobi_one has joined #ruby
<apeiros>
don't do that. leads to the spaghetti and confusion you have now
<riceandbeans>
I do copy-paste of examples to see if examples work to start learning by example
jespada has quit [Quit: Leaving]
<apeiros>
case … when … <return value>; when … <return value>; else <return value>; end; end
<shinobi_one>
Open-ended question: How do you feel about mutating objects in Ruby as opposed to non-destructive methods that leave the old one in tact?
<apeiros>
or assign it to a variable and have it at the end of the method. even better.
<riceandbeans>
apeiros: what?
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
riceandbeans: make sure your method has a single exit point. your return value matters and right now you're making a mess of it.
sdwrage has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
<apeiros>
your json part "works" because it has an explicit return in it (and hence exits the method mid-code, and hence does not execute line 23 and in consequence does not return the 404)
jrhorn424 is now known as zz_jrhorn424
greggawatt has joined #ruby
jftf_ has quit [Ping timeout: 260 seconds]
greggawatt1 has quit [Ping timeout: 260 seconds]
crdpink has joined #ruby
<riceandbeans>
maybe I chose a bad example to learn from :(
<MarcWebe2>
apeiros: http://dpaste.com/33N136T Code like this seems to work fine for my use case. Unlikely that I start packaging jruby for this simple use case (Main app is PHP anyway..)
<apeiros>
MarcWebe2: sure, the simpler the better
<apeiros>
I'm not sure at what point we abandoned prawn, and it might well be best suited for your task :)
krisquigley has joined #ruby
greggawatt1 has joined #ruby
johnmolina has quit [Remote host closed the connection]
greggawatt has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
pangur has joined #ruby
codecop has quit [Remote host closed the connection]
sambao21 has joined #ruby
aspires has joined #ruby
axsuul has joined #ruby
pangur has left #ruby ["/join"]
jpierre03 has joined #ruby
jonahR has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
machine_ has joined #ruby
machine_ is now known as machinewar
danijoo has joined #ruby
freerobby has quit [Quit: Leaving.]
Wolland has quit [Remote host closed the connection]
veleno has quit [Quit: veleno]
<Sou|cutter>
shinobi_one: it's easier to reason about immutable objects IMO
<riceandbeans>
apeiros: can you guide me in the right direction, maybe some documentation or something, I'm really lost on this
<riceandbeans>
would that be a better example to learn from?
nowthatsamatt_ has joined #ruby
<apeiros>
riceandbeans: your call method must return an array of the form [status_code, headers, body]
Grantlyk has joined #ruby
<shinobi_one>
Sou|cutter: That's probably true. I just hearsome of people claim you shouldn't do it as it can mux things up, but in some cases it's just plain 'ol faster.
nowthatsamatt has quit [Ping timeout: 240 seconds]
greggawatt1 has quit [Ping timeout: 255 seconds]
<centrx>
shinobi_one, It is a relatively small performance improvement
<shinobi_one>
centrx: when you look at << vs += with string concatenation is it still relatively small? i mean generally you're not doing this 10000 times, but still.
<centrx>
shinobi_one, Micro-optimizations like that should be done when specific code is identified as a hot spot.
qwyeth has quit [Remote host closed the connection]
<shinobi_one>
centrx: agreed
<centrx>
shinobi_one, Other places, clarity and avoiding bugs is most important
ssvo has quit [Ping timeout: 245 seconds]
<shinobi_one>
centrx: So your oppinion on it is that you shouldn't mutate unless you have a good reason to.
nowthatsamatt_ has quit [Ping timeout: 250 seconds]
<apeiros>
riceandbeans: working on answering the question?
kaspertidemann has quit []
amargherio has quit [Read error: Connection reset by peer]
kireevco has quit [Quit: Leaving.]
<centrx>
shinobi_one, Mutating causes subtle bugs for say a 15% performance improvement in one micro-area
<centrx>
shinobi_one, Also, always using immutable methods makes Ruby more like functional programming
<shinobi_one>
centrx: Way to not answer my question, but I'm gathering you have the same opinion as I do on it :P
bMalum_ has joined #ruby
<shinobi_one>
centrx: Are you saying functional programming is the best programming? xD
InfraRuby has joined #ruby
ssvo has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
bMalum_ has quit [Read error: Connection reset by peer]
baordog_ has quit [Ping timeout: 240 seconds]
<shinobi_one>
I'm sorry I was just trolling with that last one.. ;p
bMalum_ has joined #ruby
<riceandbeans>
[404, {}, ["not found oO"]]
aspires has quit []
<riceandbeans>
apeiros: ^^
<apeiros>
riceandbeans: that's one place. where else does it return?
kirun has quit [Quit: Client exiting]
jftf_ has joined #ruby
superscott[8] has joined #ruby
spider-mario has quit [Remote host closed the connection]
MartinCleaver has quit [Quit: MartinCleaver]
djbkd has quit [Remote host closed the connection]
<apeiros>
correct. so it *only* returns a 200 status for one case - when '/' === @req.path
nobitanobi has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
<riceandbeans>
apeiros: but if I do HTML in a variable like body, won't I need a heredoc?
<apeiros>
your code probably goes through when "/generate_certificate" just fine, but since it doesn't return from there, it'll go on to execute line 23 and return [404, {}, ["not found oO"]]
<shevy>
hmm
<riceandbeans>
and if I use a heredoc, I can't interpolate or take variables
<shevy>
is there a simple one liner to count n words in a file, through ruby?
<apeiros>
riceandbeans: huh?
<apeiros>
riceandbeans: take a step back
beef-wellington has quit [Ping timeout: 245 seconds]
<ari-_-e>
shevy: depends on how you define words :)
<shevy>
I guess with a regex? \w+ perhaps?
<apeiros>
riceandbeans: what should your server return when you send the form? i.e. when you open "/generate_certificate"?
bMalum_ has quit [Ping timeout: 255 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Mead error: Connection reset by beer]
<riceandbeans>
apeiros: at the moment, I don't know, I want to be able to take the content of the 3 fields and work with it
<riceandbeans>
apeiros: that's my primary concern
djbkd has joined #ruby
<apeiros>
riceandbeans: then you're messing up your questions and confusing things
<apeiros>
riceandbeans: because your last question was "I always get 404! why!"
<riceandbeans>
what should I be asking?
jftf_ has quit [Ping timeout: 260 seconds]
krisquigley has quit [Remote host closed the connection]
<shevy>
"what is the meaning of life?"
<apeiros>
well… decide what you want to ask and stick to it.
<shevy>
or ask a new question every time
ponch_ has joined #ruby
<apeiros>
as for "I want to work with the 3 fields", I already told you that @req.POST seems to be the proper way to access the fields
froggy_ has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
ValicekB has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140715214327]]
mikecmpbll has quit [Quit: i've nodded off.]
elaptics is now known as elaptics`away
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
flowerhack has joined #ruby
_justin has joined #ruby
froggy__ has quit [Ping timeout: 246 seconds]
alexju has quit [Remote host closed the connection]
ponch_ has quit [Ping timeout: 272 seconds]
alexju has joined #ruby
ptrrr has quit [Quit: ptrrr]
chrisja has joined #ruby
shackleford has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has joined #ruby
machinewar has quit [Remote host closed the connection]
dbasch has quit [Quit: dbasch]
alexju has quit [Ping timeout: 255 seconds]
kotk_ has joined #ruby
djbkd has joined #ruby
newUser1_ has quit [Remote host closed the connection]
livingstn has quit []
coca_rails has quit [Quit: coca_rails]
coca_rails has joined #ruby
kotk has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
_justin has quit [Quit: _justin]
vsoftoiletpaper has joined #ruby
w09x has joined #ruby
<riceandbeans>
apeiros: but it's not :(
aspires has quit [Client Quit]
ari-_-e has quit [Ping timeout: 245 seconds]
near77 has joined #ruby
RichardLitt has joined #ruby
<apeiros>
riceandbeans: and you come to this conclusion how?
<near77>
hi
dbasch has joined #ruby
<near77>
anyone knows a way in ruby to check if a string is a sql query?
<riceandbeans>
apeiros: because my rack app crashes when I reference @req on my own
dbasch has quit [Client Quit]
<near77>
im parsing strings and looking for queries
ari-_-e has joined #ruby
<near77>
but have a lot of false positives
<apeiros>
riceandbeans: and by "crash" you mean what exception exactly? (and seriously, pulling this out of your nose sucks - if you want help, provide that information)
andrewlio has quit [Quit: Leaving.]
andrewjanssen has joined #ruby
dbasch has joined #ruby
<apeiros>
riceandbeans: and of course, don't forget to gist the code you use which raises…
nobitanobi has joined #ruby
<nobitanobi>
Hi guys. Is there any way to see which variables are in a particular binding?
crdpink has quit [Ping timeout: 255 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
ghr has joined #ruby
aspires has joined #ruby
dbasch has quit [Client Quit]
OffTheRails has joined #ruby
<near77>
any gem?
<apeiros>
nobitanobi: local_variables
emmesswhy has quit [Quit: This computer has gone to sleep]
<nobitanobi>
apeiros: thanks!
dblessing has quit [Quit: dblessing]
mikepack_ has quit [Remote host closed the connection]
<nobitanobi>
apeiros: that's a private method though. I was trying to do p binding.local_variables
MartinCleaver has joined #ruby
<apeiros>
nobitanobi: use send
<nobitanobi>
+1 thanks
<nobitanobi>
crap. empty
<nobitanobi>
:D
<riceandbeans>
apeiros: I think I'm figuring it out...slowly
sambao21 has quit [Quit: Computer has gone to sleep.]
<riceandbeans>
just...not sure how to isolate data...
<nobitanobi>
I am trying to see which local variables are in my Rails controller
ghr has quit [Ping timeout: 240 seconds]
<apeiros>
riceandbeans: p data
<apeiros>
riceandbeans: or require 'pry' and binding.pry
iamjarvo has joined #ruby
<apeiros>
nobitanobi: um, just look at the code?
<riceandbeans>
apeiros: what's that do?
nanoyak has quit [Quit: Computer has gone to sleep.]
Sgeo has joined #ruby
sambao21 has joined #ruby
ValicekB has quit [Ping timeout: 244 seconds]
<apeiros>
riceandbeans: it opens a console in the current context. you must have the pry gem installed.