binaryhat has quit [Read error: Connection reset by peer]
_GoodTimes has quit [Client Quit]
tyfighter has joined #ruby
_GoodTimes has joined #ruby
_GoodTimes has quit [Client Quit]
testcore has quit [Quit: BitchX: good to the last drop!]
_GoodTimes has joined #ruby
Takle has quit [Remote host closed the connection]
_GoodTimes has quit [Client Quit]
wjimenez52711 has quit [Quit: Leaving.]
_GoodTimes has joined #ruby
doodlehaus has joined #ruby
narcan has joined #ruby
axilla has joined #ruby
taybin has joined #ruby
danshultz has joined #ruby
narcan has quit [Client Quit]
_GoodTimes has quit [Client Quit]
jahrichie has joined #ruby
<jahrichie>
about to ask a crappy question, so I'm sorry in advance.
<jahrichie>
if for any reason someone was on some good sort of drugs, and wanted to allow CORS on ONE single controller action
GriffinHeart has joined #ruby
<jahrichie>
would that be possible ?
ahofmann has quit [Quit: Computer has gone to sleep.]
<jahrichie>
(in rails)
_GoodTimes has joined #ruby
toastynerd has joined #ruby
ahofmann has joined #ruby
snath has joined #ruby
wjimenez5271 has joined #ruby
axilla has quit [Ping timeout: 252 seconds]
<Boohbah>
jahrichie: /join #RubyOnRails
<jahrichie>
roger that
<jahrichie>
thanks
<jahrichie>
apologies!
Robbo` has left #ruby ["Leaving"]
Xeago has joined #ruby
oorst has joined #ruby
jtiggo has left #ruby [#ruby]
GriffinHeart has quit [Ping timeout: 276 seconds]
ahofmann has quit [Ping timeout: 252 seconds]
andrewjanssen has quit [Quit: Leaving...]
Guest47880 has quit [Changing host]
Guest47880 has joined #ruby
Guest47880 is now known as guyz
shinobi_one has quit [Quit: shinobi_one]
andrewjanssen has joined #ruby
bradhe has joined #ruby
sdouglas has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
sdouglas has joined #ruby
oorst has quit [Quit: oorst]
mightybyte has joined #ruby
pietr0 has quit [Quit: pietr0]
mightybyte has left #ruby [#ruby]
danshultz has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
danshultz has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mary5030_ has quit [Remote host closed the connection]
gruz0[russia] has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 245 seconds]
cespare has joined #ruby
cespare has left #ruby ["WeeChat 0.4.1"]
toastynerd has joined #ruby
mijicd has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
superscott[8] has joined #ruby
Spami has joined #ruby
Vivekananda has quit [Ping timeout: 240 seconds]
oorst has joined #ruby
toastynerd has quit [Remote host closed the connection]
_GoodTimes has quit []
_GoodTimes has joined #ruby
doodlehaus has joined #ruby
Vivekananda has joined #ruby
taybin has quit [Quit: This computer has gone to sleep]
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
<csmrfx>
jahrichie: CORS is a server header, so if your rails app allows for per-response control of http response headers it is possible
Gil_ has joined #ruby
aantix has quit [Quit: aantix]
axilla has joined #ruby
Vivekananda has quit [Max SendQ exceeded]
zz_karupa is now known as karupa
Vivekananda has joined #ruby
oorst has quit [Quit: oorst]
Vivekananda has quit [Read error: Connection reset by peer]
stantona_ has joined #ruby
Vivekananda has joined #ruby
freerobby has quit [Quit: Leaving.]
clov3r has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
kenndel has joined #ruby
oorst has joined #ruby
Gil_ has quit [Ping timeout: 260 seconds]
stantona has quit [Ping timeout: 260 seconds]
toastynerd has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<jahrichie>
csmrfx: i tried it at an action level, and application level in my controller. Still getting No 'Access-Control-Allow-Origin' header is present on the requested resource…."
<jahrichie>
i dont get it?
ddv has quit [Ping timeout: 245 seconds]
<jahrichie>
i feel like i've used this in the past.
stantona_ has quit [Ping timeout: 240 seconds]
oorst has quit [Client Quit]
axilla has quit [Ping timeout: 252 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
oorst has joined #ruby
ahofmann has joined #ruby
_djbkd has quit [Remote host closed the connection]
ddv has joined #ruby
sailias has joined #ruby
oorst has quit [Client Quit]
kenneth has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
cearls has quit [Ping timeout: 265 seconds]
linuxnewb2 has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrDoctor_ has quit [Remote host closed the connection]
cashnguns has joined #ruby
combusean has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
rezzack has quit [Quit: Leaving.]
sailias has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
oo_ has joined #ruby
Arkaniad has quit [Ping timeout: 265 seconds]
nyamx2 has joined #ruby
wjimenez5271 has quit [Quit: Leaving.]
axilla has joined #ruby
Arkaniad has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
hpoydar has quit [Remote host closed the connection]
graspee has quit [Quit: Leaving]
tyfighter has quit [Quit: tyfighter]
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
ta has quit [Ping timeout: 265 seconds]
toastynerd has quit [Remote host closed the connection]
ari-_-e has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
axilla has quit [Ping timeout: 276 seconds]
_justin has joined #ruby
axilla_ has joined #ruby
bmurt has joined #ruby
shanlar has quit [Ping timeout: 276 seconds]
shanlar has joined #ruby
oorst has joined #ruby
jahrichie has quit [Ping timeout: 252 seconds]
ra4king has quit [Remote host closed the connection]
CodeBunny has quit [Ping timeout: 276 seconds]
ta has joined #ruby
bmurt has quit [Client Quit]
newvegas has quit [Read error: Connection reset by peer]
trhodes_ has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
axilla_ has quit [Ping timeout: 252 seconds]
phoo1234567 has quit [Remote host closed the connection]
jottr_ has joined #ruby
oorst has quit [Quit: oorst]
aspires has quit []
Kricir has quit [Remote host closed the connection]
mikepack_ has joined #ruby
charliesome has joined #ruby
bwilson has quit [Quit: bwilson]
ponga has quit []
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
ra4king has joined #ruby
oorst has joined #ruby
meinside has joined #ruby
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
mikepack has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 276 seconds]
mikepack_ has quit [Ping timeout: 240 seconds]
trhodes_ has joined #ruby
luisjose has quit [Quit: Leaving...]
olivier_bK has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 252 seconds]
_justin has quit [Quit: _justin]
oorst has quit [Quit: oorst]
newUser1234 has joined #ruby
tkuchiki has joined #ruby
reset has quit [Quit: Leaving...]
reset has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
Gadgetoid has quit [Ping timeout: 260 seconds]
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
superscott[8] has quit []
reset has quit [Ping timeout: 265 seconds]
bradhe has quit [Ping timeout: 265 seconds]
ra4king1 has joined #ruby
ra4king has quit [Ping timeout: 240 seconds]
troyready has quit [Ping timeout: 276 seconds]
ra4king has joined #ruby
Gadgetoid has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
_justin has joined #ruby
Xeago has quit [Remote host closed the connection]
<ramblinpeck>
let me put together a simplier example for my problem and see if I can figure it out or ask a better question :)
alexju has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
ner0x has joined #ruby
axilla has quit [Ping timeout: 276 seconds]
charliesome_ has quit [Ping timeout: 276 seconds]
axilla has joined #ruby
cashnguns has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
stantona has joined #ruby
Kricir has joined #ruby
Wolland has joined #ruby
MrDoctor has joined #ruby
Lwhite1 has joined #ruby
stantona has quit [Ping timeout: 276 seconds]
Tricon has joined #ruby
<ramblinpeck>
benzrf: so I'm confused,I'm breaking inside the "class << self" of my Order instance, and seems the only thing in scope is the Order Class
andrewjanssen has joined #ruby
danshultz has joined #ruby
<ramblinpeck>
I seem to be missing whatever the piece is that allows me to access methods on my Order instance that called it
<ramblinpeck>
or how to pass variables in, since self now refers to the Class and not the instance
<benzrf>
im tired sorry
<benzrf>
cant focus on helpng u :i
<ramblinpeck>
ok, no problem
<ari-_-e>
ramblinpeck: post some code?
<ramblinpeck>
ari-_-e: coming up
Spami has quit [Quit: This computer has gone to sleep]
danshult_ has joined #ruby
gcauchon has joined #ruby
senayar has quit [Remote host closed the connection]
<ramblinpeck>
CommercialOrder inherits from Object, and the initialize_workflow dynamically defines states in the workflow state machine depending on whether its reviewable or not
sdouglas has quit [Remote host closed the connection]
HashNuke has quit [Quit: Connection closed for inactivity]
sdouglas has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
Hobogrammer has quit [Ping timeout: 260 seconds]
<ari-_-e>
ramblinpeck: so what are you trying to do with the class << self?
<ari-_-e>
hm
sdouglas_ has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
<ramblinpeck>
ari-_-e: define the workflow, I realize its a bit convoluted, all the state machine gems I've found seem to dislike conditional states
sdouglas has quit [Read error: Connection reset by peer]
<ramblinpeck>
and I'm attempting to avoid the problem of defining different classes for each workflow, which branches out rather quickly
<ramblinpeck>
but the workflows are defined by the Class, so a bit confused about where I can pass parameters in, or get access to instance methods on the caller
freezey has quit [Remote host closed the connection]
ssut has joined #ruby
taybin has quit [Quit: This computer has gone to sleep]
MrDoctor has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
stantona has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
KLVTZ has joined #ruby
benzrf is now known as benzrf|offline
r0bby has quit [Quit: Konversation terminated!]
zorak has quit [Read error: Connection reset by peer]
larissa has quit [Quit: Leaving]
Alina-malina has joined #ruby
jottr_ has joined #ruby
stantona has quit [Ping timeout: 260 seconds]
Beoran_ has joined #ruby
robbyoconnor has joined #ruby
Sawbones has quit [Remote host closed the connection]
Gil_ has joined #ruby
krz has joined #ruby
Sawbones has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
jottr_ has quit [Ping timeout: 245 seconds]
datafirm has joined #ruby
Sawbones has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gil_ has quit [Ping timeout: 276 seconds]
xjiujiu has joined #ruby
datafirm has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
xjiujiu has quit [Client Quit]
emsilva has joined #ruby
bluOxigen has joined #ruby
GriffinHeart has joined #ruby
Bira_ has quit [Remote host closed the connection]
blueOxigen has joined #ruby
freerobby has quit [Quit: Leaving.]
bluOxigen has quit [Ping timeout: 276 seconds]
toastynerd has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
<KLVTZ>
I'm trying to call require "file.rb" in my irb and it reports cannot load such file -- methods.rb from /home/justin/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
<KLVTZ>
How should I fix this?
<toretore>
put the entire error message and stack trace on gist.github.com
b1205 has joined #ruby
<KLVTZ>
toretore: fixed it
<arrubin>
You almost certainly want require_relative.
<KLVTZ>
toretore: path issue, require "./file.rb"
<arrubin>
KLVTZ: Use require_relative instead.
<arrubin>
Generally.
<arrubin>
Although in IRB I could go either way.
<KLVTZ>
arrubin: use require_relative? Would that be relative to my current location in directoty?
ukd1 has joined #ruby
<KLVTZ>
*directory
<toretore>
it's the same as ./file
<toretore>
just better
<arrubin>
When it is used in a Ruby program it is relative to the program.
<toretore>
and don't use .rb with require
<toretore>
require_relative 'file'
Shidash has joined #ruby
<arrubin>
It seems that require_relative does not work in IRB.
<arrubin>
So ignore that advice for IRB.
<KLVTZ>
well i started using pry
<KLVTZ>
does pry use require_relative?
<arrubin>
Or maybe Rubinius is just wrong...
<KLVTZ>
toretore: no file extension. Gotha!
zz_jrhorn424 is now known as jrhorn424
<arrubin>
Worked fine in MRI.
datafirm has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
datafirm has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
zkay11 has joined #ruby
hermanmunster has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
tyfighter has joined #ruby
helpa has joined #ruby
whyy has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
hermanmu_ has joined #ruby
datafirm has quit [Ping timeout: 265 seconds]
Kricir has joined #ruby
tyfighter has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
aspires has quit []
toastynerd has quit [Remote host closed the connection]
steeve has joined #ruby
mikepack has quit [Remote host closed the connection]
DeadManGonzo has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
GriffinHeart has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
datafirm has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
whyy has quit [Remote host closed the connection]
sdouglas_ has quit [Remote host closed the connection]
_class_ has joined #ruby
whyy has joined #ruby
jahrichie has joined #ruby
Burgestrand_ has joined #ruby
Gil_ has joined #ruby
_class_ is now known as __class__
toastynerd has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 260 seconds]
emsilva has quit [Quit: Keep Walking (Computer Slept!)]
havenwood has joined #ruby
ner0x has quit [Quit: Leaving]
spastorino has quit [Quit: Connection closed for inactivity]
Gil_ has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
rhys has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
rhys has joined #ruby
rkazak_ has joined #ruby
xjiujiu has joined #ruby
<rkazak_>
evening people.
stantona has joined #ruby
dc has quit [Remote host closed the connection]
Burgestrand_ has quit [Quit: Burgestrand_]
mikepack has joined #ruby
dc has joined #ruby
Burgestrand_ has joined #ruby
mikepack has quit [Remote host closed the connection]
mrnugget has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
codezomb has joined #ruby
ndrei has joined #ruby
sdouglas has joined #ruby
narendraj9 has joined #ruby
xrt has joined #ruby
anaeem1 has joined #ruby
ukd1 has quit [Quit: Leaving...]
niftylettuce_ has joined #ruby
Burgestrand_ has quit [Quit: Burgestrand_]
DeadManGonzo has left #ruby [#ruby]
tungd- has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
Deele has joined #ruby
tungd has quit [Ping timeout: 240 seconds]
Darryl has joined #ruby
mr_snowf1ake has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
xrt has quit [Quit: leaving]
stantona has quit [Remote host closed the connection]
datafirm has joined #ruby
bradhe has joined #ruby
LexicalScope has joined #ruby
mikesplain has joined #ruby
maestrojed has joined #ruby
<ramblinpeck>
followup/somewhat related from my earlier question, is there a state machine gem that allows for conditional transitions? All seem to ignore a need for that
echevemaster has quit [Quit: Leaving]
b1205 has quit [Ping timeout: 265 seconds]
bradhe has quit [Ping timeout: 260 seconds]
katmandoo has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
kies has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
dik_dak has quit [Quit: Leaving]
Kricir has joined #ruby
sdouglas has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
sdouglas has joined #ruby
aganov has joined #ruby
SCommette has joined #ruby
Kricir_ has joined #ruby
aspires has quit []
sdouglas has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
jrhorn424 is now known as zz_jrhorn424
Kricir_ has quit [Ping timeout: 240 seconds]
mr_snowf1ake has quit [Quit: Leaving]
amargherio has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
alem0lars has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
boboc has joined #ruby
boboc has quit [Client Quit]
boboc has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
claymore has joined #ruby
n_b has quit [Ping timeout: 245 seconds]
why_away has joined #ruby
jhulten has quit [Remote host closed the connection]
jhulten has joined #ruby
shvelo has joined #ruby
whyy has quit [Ping timeout: 252 seconds]
bean has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
timonv has joined #ruby
DouweM has quit [Ping timeout: 265 seconds]
boboc has quit [Ping timeout: 240 seconds]
jhulten has quit [Ping timeout: 260 seconds]
ffranz has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
ta has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
steeve has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 252 seconds]
steeve has joined #ruby
KLVTZ has quit [Ping timeout: 252 seconds]
IceDragon has quit [Quit: Space~~~]
apeiros has joined #ruby
kiri has joined #ruby
whyy has joined #ruby
n_b has joined #ruby
ta has joined #ruby
klaut has joined #ruby
sdwrage has joined #ruby
why_away has quit [Ping timeout: 245 seconds]
alem0lars has quit [Quit: Going AFK...]
Kricir has joined #ruby
phansch has joined #ruby
senayar has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
bradhe has joined #ruby
diegoviola has joined #ruby
why_away has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
blueOxigen has quit [Ping timeout: 265 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrnugget has joined #ruby
timonv has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 265 seconds]
tesuji has joined #ruby
jprovazn has joined #ruby
GriffinHeart has joined #ruby
timonv has joined #ruby
alem0lars has joined #ruby
cina has joined #ruby
glenfern is now known as glenfe
shvelo has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
akonny has joined #ruby
oo_ has joined #ruby
yeticry has quit [Quit: leaving]
Takle has joined #ruby
sdwrage_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
bean has joined #ruby
GriffinHeart has joined #ruby
combusean has quit [Quit: Leaving.]
cina has quit [Ping timeout: 260 seconds]
jezen has joined #ruby
dc has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
ephemerian has joined #ruby
sdwrage has quit [Ping timeout: 252 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyb3r_ has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Ping timeout: 245 seconds]
JasmeetQA has quit [Quit: Leaving.]
Arkaniad has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
Wolland has joined #ruby
sinkensabe has quit [Remote host closed the connection]
anarang has joined #ruby
jhulten has joined #ruby
why_away has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
whyy has joined #ruby
zigomir has joined #ruby
Wolland has quit [Ping timeout: 252 seconds]
noop has joined #ruby
djbkd has quit [Remote host closed the connection]
The_NetZ has joined #ruby
<The_NetZ>
hey. so what is it about irb that makes it have that nice prompt?
Mattx has quit [Ping timeout: 245 seconds]
jhulten has quit [Ping timeout: 265 seconds]
tessi_zz is now known as tessi
kenneth__ has joined #ruby
comma8 has joined #ruby
mrnugget has quit [Quit: mrnugget]
jackneill has joined #ruby
<timgauthier>
OMGERRRRRDD
<timgauthier>
DER DIVIERRSION
sk87 has joined #ruby
<timgauthier>
sorry /video game interlude
schaary|afk is now known as schaary
ta has quit [Remote host closed the connection]
LexicalScope has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
boris has joined #ruby
why_away has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
Mattx has joined #ruby
Mattx has joined #ruby
Mattx has quit [Changing host]
whyy has quit [Ping timeout: 276 seconds]
KLVTZ has joined #ruby
papercode has joined #ruby
<apeiros>
The_NetZ: awesome_print maybe?
<The_NetZ>
apeiros: wondering why when I launch irb.bat I get it but not when I use irb(the pure ruby script)
dc has joined #ruby
Morkel has joined #ruby
GriffinHeart has joined #ruby
<apeiros>
The_NetZ: read irb.bat then and see what it does differently.
scx_ has joined #ruby
helpa has quit [Remote host closed the connection]
Xeago has joined #ruby
akonny has quit [Quit: akonny]
dc has quit [Ping timeout: 240 seconds]
scx has quit [Ping timeout: 260 seconds]
helpa has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
sinkensabe has joined #ruby
datafirm has joined #ruby
andikr has joined #ruby
mijicd has joined #ruby
<The_NetZ>
apeiros: will do, but as far as i can tell its just a little bit of batch witchery with 'irb' embedded right into it.
dc has joined #ruby
Wolland has joined #ruby
dc has quit [Remote host closed the connection]
dc has joined #ruby
* The_NetZ
has very little experience with batch files, prefers bash a thousandfold
klaut has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
tectonic has quit []
vinleod has joined #ruby
helpa has joined #ruby
senayar has quit [Remote host closed the connection]
scx_ has quit [Ping timeout: 276 seconds]
datafirm has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
Wolland has quit [Ping timeout: 245 seconds]
sdwrage_ has quit [Quit: This computer has gone to sleep]
railzForDaiz has joined #ruby
kireevco has quit [Quit: Leaving.]
Macaveli is now known as Macaveli|BRB
bradhe has quit [Ping timeout: 265 seconds]
ta has joined #ruby
lxsameer has joined #ruby
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narendraj9 has quit [Quit: Connection closed for inactivity]
klaut has joined #ruby
ecksit has joined #ruby
Macaveli|BRB is now known as Macaveli
Xeago has quit [Ping timeout: 252 seconds]
Takle has quit [Remote host closed the connection]
circ-user-mmQTg has joined #ruby
adac has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
<adac>
Creating a gem, do I have to define the version numbers of the gems I include within the Gemspec file? It seems that when I do not do that I do get in trouble
<The_NetZ>
apeiros: I can't see any difference; I even ran a diff against the entire irb folder in the load pathc.
<adac>
apeiros, Sorry I think I was not that precise with my question. I was curious about the gems that I include in the Gemspecs
<adac>
ok thanks
onewheelskyward has left #ruby ["Textual IRC Client: www.textualapp.com"]
<apeiros>
adac: I don't know what you mean by that. how do you include gems in the gemspec?
<apeiros>
adac: also "I do get in trouble" isn't a usable problem description
<apeiros>
The_NetZ: I don't have windows, so can't help there.
<The_NetZ>
its just a minor irritation, but an irritation nonthless :P
j_mcnally has quit [Ping timeout: 252 seconds]
<adac>
apeiros, Well I have gems included as dependencies in the .gemspec file of my gem. So the question was if they need explicitly to be set to a version.
hermanmu_ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<apeiros>
adac: no. but it's a good idea to specify a version. preferably with ~>.
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: chrishough]
elaptics`away is now known as elaptics
<adac>
apeiros, I did not specify the version for a cetrain gem (aws-sdk) and then a weird error appeard when I used this gem in one of my applications. So I thought maybe versioning within the gems is required. I will now try to set a version with ~> as you suggested and then it should work again
<adac>
thanks!
sdouglas has joined #ruby
<apeiros>
adac: "a weird error" isn't any better a problem description than "run into trouble".
<adac>
this was the error: Could not find aws-sdk-1.40.2 in any of the sources
juco has quit [Read error: Connection reset by peer]
<adac>
apeiros, ^^
Darryl has joined #ruby
<apeiros>
means it resolved aws-sdk to version 1.40.2 and couldn't install that. given that I don't see it listed only, the only confusing thing is as to where it has that version number from.
davedev24_ has joined #ruby
<apeiros>
ah, wait, I see it. I looked at 1.42, not 1.40
Wolland has joined #ruby
<circ-user-mmQTg>
Why does ruby have a sort_by method for hashes? Aren't hashes, by definition unordered?
<apeiros>
in that case, the only odd thing is why it failed to load it. you can try installing it manually. if that fails, you can debug that issue.
doev has joined #ruby
<apeiros>
circ-user-mmQTg: rubys hashes have order since 1.9
<apeiros>
circ-user-mmQTg: also sort_by is Enumerable#sort_by which returns an array anyway.
sdouglas has quit [Ping timeout: 240 seconds]
<apeiros>
same for #sort
<adac>
apeiros, it works as soon as I set the version number within my gem. Then installing the gem + the aws dependency is just working fine
<apeiros>
voodoo debugging. fine. not my project :)
charliesome_ has quit [Read error: Connection reset by peer]
<circ-user-mmQTg>
apeiros: Thanks for the info!
circ-user-mmQTg has quit [Remote host closed the connection]
charliesome has joined #ruby
charliesome has quit [Client Quit]
banister has joined #ruby
sinkensabe has joined #ruby
ninegrid has quit [Ping timeout: 245 seconds]
Wolland has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
<adac>
apeiros, Well it should have installed the newsest versionwhen there was no version number set within the gem. Which didn't happen, instead I got the error above. For unkown reasons I can resolve it with setting the version number of aws within my gem.
steeve has quit [Remote host closed the connection]
elabs-developer has joined #ruby
<adac>
Since it is better to set a version number via ~> anyways, I will just do that ;-)
elabs-developer has left #ruby [#ruby]
Takle has joined #ruby
Joulse has joined #ruby
nfk has joined #ruby
juco has joined #ruby
timonv has quit [Remote host closed the connection]
marr has joined #ruby
qba73 has joined #ruby
spider-mario has joined #ruby
mikecmpbll has joined #ruby
why_away has quit [Remote host closed the connection]
whyy has joined #ruby
MrDoctor has joined #ruby
klaut has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
andrewlio has joined #ruby
Takle has joined #ruby
Rahul_Roy has joined #ruby
alex88 has joined #ruby
jpierre03 has quit [Read error: Connection reset by peer]
whyy has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
jpierre03 has joined #ruby
steeve has joined #ruby
Takle has joined #ruby
RubyPanther has quit [Ping timeout: 276 seconds]
bradhe has joined #ruby
Azulinho has joined #ruby
bluOxigen has joined #ruby
<apeiros>
bah, finding names for projects is really hard :(
forcefsck has joined #ruby
Takle_ has quit [Ping timeout: 252 seconds]
Rails_noob has joined #ruby
dc has quit [Remote host closed the connection]
weems has quit [Changing host]
weems has joined #ruby
Rails_noob has quit [Client Quit]
bluOxigen has quit [Read error: No route to host]
lkba has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 265 seconds]
The_NetZ has quit [Quit: Leaving]
bluOxigen has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
Takle has quit [Read error: Connection reset by peer]
<lxsameer>
apeiros: is there something like "A.subclasses" for included modules for example "B.included" or something ?
oorst has quit [Quit: oorst]
yfeldblum has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
dilated_dinosaur has quit [Ping timeout: 276 seconds]
<Mon_Ouie>
Look at the ancestors that are modules
yfeldblu_ has quit [Ping timeout: 245 seconds]
Norrin has joined #ruby
<banister>
lxsameer not unless u keep track of it yourself
hermanmunster has joined #ruby
<Mon_Ouie>
(Keep in mind a module is more like a superclass than a subclass, although methods would be looked up in the module itself before the class if you use #prepend)
<Mon_Ouie>
Oh actually there is just that…
<Mon_Ouie>
Module#included_modules
<banister>
Mon_Ouie i heard that you dislike #prepend, is that true? you find it a confusing addition to the ruby object model and think it breaks a number of assumptions
dangerou_ has quit [Read error: Connection reset by peer]
dANOKELOFF has joined #ruby
dangerousdave has joined #ruby
<banister>
Mon_Ouie but that's the other way round isn't it? doesn't he want to find which modules/classes include a given module? not which modules a given class/module include
mercerist has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
Oh, that would make more sense then
<apeiros>
lxsameer: for debugging, you can use ObjectSpace.each_object(A.singleton_class)
<apeiros>
but should not use this in production
maximski has quit []
<apeiros>
since when did #included_modules happen? o0
nemesit|znc has quit [Read error: Connection reset by peer]
<banister>
apeiros have you read the magician's nephew by c.s lewis?
<apeiros>
how did I not know about that?
<apeiros>
banister: nope
jottr_ has joined #ruby
<banister>
apeiros there's a boy sleeping under a tree in the wood between the world's, a girl arrives from a pool (coming from another world herself) and asks the boy how long he's been there, he replies "always". But she knows that he just came up from a pool himself. I guess he just felt like he'd been there forever
<apeiros>
o0
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
I guess I've always been in this channel and used ruby…
jds has joined #ruby
doev has quit [Remote host closed the connection]
<Mon_Ouie>
Well it wasn't in 1.0, so there's that. It may even have been added only in 1.9 and backported in 1.8.7.
ndrei has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
<lectrick>
apeiros: yeah. also banister simply mentioned "proxy" and I figured it out (so far)
p8952 has joined #ruby
sdouglas has joined #ruby
<apeiros>
I think benzrf gave a good answer
whyy has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
freerobby has joined #ruby
n_b has joined #ruby
sdouglas has quit [Remote host closed the connection]
maximski_ has joined #ruby
sdouglas has joined #ruby
maximski has quit [Read error: Connection reset by peer]
maximski_ has quit [Client Quit]
robertodecurnex has joined #ruby
tiguser has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
alem0lars has quit [Quit: Going AFK...]
vpretzel has quit [Remote host closed the connection]
sdouglas has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
vpretzel has joined #ruby
sdouglas has joined #ruby
tiguser has joined #ruby
p8952 has quit [Quit: Leaving]
<lectrick>
yeah i am running with it. thanks folks, as usual
paulfm has joined #ruby
<lectrick>
in unrelated news, i pick up a new tesla model S in about an hour
oorst has joined #ruby
<apeiros>
you bought one?
<lectrick>
yep
<apeiros>
nice
<lectrick>
:)
* apeiros
doesn't even own a car
<lectrick>
i respect that :)
joostshao has joined #ruby
<lectrick>
i used to live in manhattan
<apeiros>
I should finally get my license, though :-/
<lectrick>
i love driving, honestly
<apeiros>
I'm not looking forward to it. so many people drive like assholes :-{
adac has quit [Ping timeout: 265 seconds]
<lectrick>
yep, this I can confirm
<joostshao>
hi
<lectrick>
biggest pet peeve is lack of blinker use
stantona has joined #ruby
<apeiros>
biggest pet peeve (observation only): insufficient distance.
joostshao has left #ruby [#ruby]
<lectrick>
yeah. like those guys who weave through traffic, no blinkers, leaving no room for error... assholes
<apeiros>
sorry, but no, you can't brake properly with only ~2m distance to the next care when driving ~80km/h
<shvelo>
why the hell was I using IRB all the time, PRY for life
<lectrick>
shvelo: welcome to the PRY club
<railzForDaiz>
pry so complicated
Bhu has left #ruby [#ruby]
cocotton has quit [Remote host closed the connection]
<shvelo>
pry stronk
<railzForDaiz>
any good tutorials for pry
<apeiros>
o0
<lectrick>
i think the goal is to have a good enough unit test suite that you won't need pry much :)
<apeiros>
railzForDaiz: just type your ruby code and hit enter
<shvelo>
type, enter, repeat
<lectrick>
there's a pry screencast somewhere, although it's probably out of date now
<lectrick>
props to banister for the pry work (again)
<shvelo>
I like how you can ls
<MrDoctor>
Is there a way to wrap singleton classes into a normal classes so that we can create two distinct instances of the singleton class, with different values for it's instance variables?
<apeiros>
MrDoctor: no
<apeiros>
singleton classes are called singleton classes precisely because there can only be one instance
<lectrick>
it wouldn't be a singleton class then. it would be a (wait for it...) gemini class
<apeiros>
MrDoctor: what problem do you want to solve that way anyway?
<lectrick>
hmmm, a gemini class would be fun to build
<lectrick>
because they would have to know about each other
<apeiros>
MrDoctor: I bet you that you're trying to use the wrong tool for the job and that ruby has something appropriate.
<lectrick>
MrDoctor: I would agree w/apeiros with the grain of salt that MAYBE you are actually trying to do something very special :)
<shevy>
34°C
<shevy>
it's too hot
<lectrick>
72F, rainy and humid as hell here in cloudy Long Beach. Long Island
<banister>
railzForDaiz what do you find complicated?
<apeiros>
MrDoctor: also, if you instantiate a class twice - you get two singleton classes, each with their own set of ivars, attached to the objects you just created ;-)
<shevy>
well there is no rain here, only sun sun sun
sdouglas has quit [Remote host closed the connection]
<lectrick>
shevy: where is here? I lived in california for 4 years and got tired of constant sun. Rain is good sometimes to break things up a bit
cocotton has joined #ruby
<shvelo>
I can haz pry inside irb
cocotton has quit [Remote host closed the connection]
<shevy>
lectrick central europe
cocotton has joined #ruby
why_away has joined #ruby
<shevy>
lectrick I had to check what 72F means; now about 22°C, that would be soooo comfortable
mrnugget has quit [Quit: mrnugget]
workmad3 is now known as wm3|away
<MrDoctor>
I am building on a rails app, and I have to use a ruby REST api to fetch some data. The rest API's require login credentials. Now, if I have two different users, I want to use the API to query data from their respective accounts. The problem is that since the rest API defines singleton classes, I can do it only for one user at a time.
<shevy>
I also have to leave here soon and be out under the hot sun for at least an hour :(
<MrDoctor>
How could I circumvent the issue?
anaeem1_ has quit [Remote host closed the connection]
sdouglas_ has joined #ruby
<apeiros>
MrDoctor: you hit the author with a club and tell him not to abuse the singleton pattern
sambao21 has joined #ruby
<apeiros>
that's what I mean when I usually tell people that they want multiton with default, not singleton, when they ask about singleton pattern for things like db connections…
tesuji has quit [Ping timeout: 260 seconds]
<lectrick>
shvelo: obligatory "yo dawg, heard you like REPLs, so I put a pry in your irb so you can debug while you debug"
<shvelo>
why do we even need singleton classes in Ruby
<lectrick>
shevy: lol at having to look up 72F
bmurt has joined #ruby
luisjose has joined #ruby
<lectrick>
I should have honestly remembered it was 22C
<MrDoctor>
Creating different processes for distinct users can do the job, but I wanted to use resque jobs
<lectrick>
72F -> 22C is the most common conversion
whyy has quit [Ping timeout: 265 seconds]
<bmurt>
i'd think 32F -> 0C would be
<lectrick>
shevy: re: hot sun: Don't forget your sun protection (my mom has skin cancer now, was a sun worshiper in her youth)
<shevy>
we should all just measure in Kelvin
<bmurt>
ill pass
<shevy>
then hotness becomes relative to absolute coldness
<apeiros>
MrDoctor: you could try to dup the class. might very well not work.
<bmurt>
shevy: where's our boy from yesterday?
<bmurt>
did deployee win?!
<shevy>
lectrick well I can't think of problems in 20 years when I have problems right now! but I think once I am out on the streets it'll get better, right now I don't move and it's getting unbearable
<shevy>
bmurt no, he calls it "management"
<lectrick>
we should move 0C to 22C so that 0C is "most comfortable human temperature", that way anything below is "cold" and anything above is "hot"
<shevy>
the most boring name ever to pick for a project
<bmurt>
that's even worse
<shevy>
I can't be friends with him any longer
<bmurt>
agreed
<bmurt>
that's even less descriptive
<lectrick>
naming is hard
<shevy>
I always favoured your choice bmurt
<shvelo>
can someone explain what's the difference between singleton classes and modules?
<shevy>
but even the name his wife picked for him he rejected
<shevy>
he shouldn't get to name the kids either
<MrDoctor>
There should be a non-linear temperature scale, with 0 as 22 C. Giving one a fair idea how sultry or chilly it is
luksaur has joined #ruby
<lectrick>
shevy: a class is a singleton in that there is only ever 1 instance of it, and because it's an Object, it's an instance of Object, therefore it is also a singleton
<banister>
shvelo they're not even similar :)
<lectrick>
shvelo: I autocompleted the wrong name, sorry shevy
<lectrick>
shvelo: a module is a bunch of code that can't be instantiated, you have to mix it in to a class to use it (unless you define methods at the module level, but I digress)
krz has quit [Quit: WeeChat 0.4.3]
<shevy>
haha
<shevy>
shvelo my IRC nick brother!
<shvelo>
ahoy shev
<shvelo>
shevy,
<shevy>
if we get shlevy from #nixos we'd be "The Great Three"
<shvelo>
my client autocompletes sheepman
yalue has joined #ruby
<shevy>
sheepman lol
<shevy>
hahaha
<shevy>
benzrf, you have new competition
<sheepman>
who what where?
cnj has joined #ruby
<lectrick>
shimilarity
<shevy>
sheepman just people miscompleting to your nick :)
<shevy>
you can go back idling with your sheeps in safety now
<sheepman>
ah! :)
<shevy>
oops *sheep
<sheepman>
will do! ta
<sheepman>
i prefer sheepies but ok :D
<shevy>
hehe
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<apeiros>
sheepless in seattle
taybin has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
<sheepman>
no one should be sheepless
ra4king1 has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
mercerist has joined #ruby
Wolland has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<shvelo>
I was trying to renew my domain for a year but they charged me for 2 years :D dang
wm3|away is now known as workmad3
jheg has joined #ruby
davedev24_ has joined #ruby
<jheg>
o/
<jheg>
afternoon all depending on where you are
ra4king has quit [Ping timeout: 276 seconds]
jcarouth has quit [Excess Flood]
jhulten has joined #ruby
<jheg>
in ruby docs I'm looking at some methods and there seem to be various characters preceeding each method
<jheg>
for exampl :: or #
Wolland has quit [Ping timeout: 260 seconds]
<jheg>
what do they mean?
<apeiros>
:: means class method, # is instance mehtod
<apeiros>
only in documentation. you invoke both with a . (dot)
<jheg>
apeiros, thanks I havent yet got my head around classes
<apeiros>
they're just objects which can create new objects :)
jottr has joined #ruby
<apeiros>
(and define those new objects' behaviors)
cephalostrum has quit [Ping timeout: 255 seconds]
<jheg>
apeiros, thanks again :)
doodlehaus has joined #ruby
<jheg>
Just at the early stages of learning and the most difficult thing is catergorising in my head what/where each thing is
Sawbones has joined #ruby
jhulten has quit [Ping timeout: 260 seconds]
akonny has joined #ruby
<jheg>
so I often ask a question and then answers creates my q's than it answered lol
noop has quit [Ping timeout: 260 seconds]
<jheg>
it it slowly clicking
<jheg>
anyway, thanks for the explanations
cephalostrum has joined #ruby
mengu has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
ryanleesipes has joined #ruby
sinkensabe has joined #ruby
MrDoctor has quit [Remote host closed the connection]
MrDoctor has joined #ruby
ta has joined #ruby
Takle has joined #ruby
renatosuero has quit []
rhys has quit [Read error: Connection reset by peer]
Kruppe has joined #ruby
Zenigor has joined #ruby
renatosuero has joined #ruby
havenwood has quit [Remote host closed the connection]
rhys has joined #ruby
sinkensabe has quit [Ping timeout: 276 seconds]
timonv has quit [Remote host closed the connection]
sdouglas_ has quit [Remote host closed the connection]
sdouglas has joined #ruby
MrDoctor has quit [Read error: No route to host]
christianmrtt has quit []
MrDoctor has joined #ruby
christianmoretti has joined #ruby
christianmoretti has quit [Client Quit]
mikesplain has joined #ruby
renatosuero has left #ruby [#ruby]
christianmrtt has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
ringarin has joined #ruby
dilated_dinosaur has joined #ruby
Advocation has quit [Ping timeout: 245 seconds]
xaxisx has quit [Quit: xaxisx]
dc has joined #ruby
Emmanuel_Chanel has joined #ruby
stantona has quit [Remote host closed the connection]
zarubin has joined #ruby
xaxisx has joined #ruby
stantona has joined #ruby
beef-wellington has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
onewheelskyward has joined #ruby
Channel6 has quit [Quit: Leaving]
NukePuppy has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stantona has quit [Ping timeout: 260 seconds]
amargherio has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
qwyeth has joined #ruby
Wolland has joined #ruby
jrhe has joined #ruby
beef-wellington has quit [Ping timeout: 265 seconds]
ari-_-e has quit [Quit: Leaving]
sinkensabe has joined #ruby
<GeorgesLeYeti>
If i have a = "Hello STOP world STOP" and b = "Hello STOP world " and i make split('STOP') the result will be the same but how could i rebuild a and b ?
sdwrage has joined #ruby
benzrf|offline is now known as benzrf
<apeiros>
GeorgesLeYeti: you lose information. you can't.
stevesmename has quit [Quit: Leaving]
<GeorgesLeYeti>
apeiros: ok
<apeiros>
either you need a different result so it includes the information about the trailing stop, or you can't rebuilt them identically to what they started out as.
andikr has quit [Remote host closed the connection]
<apeiros>
you can force split to include the empty string in the result by passing -1, then you have a different result which when you join it is identical to what you started out with:
Wolland has quit [Ping timeout: 260 seconds]
dc has quit [Remote host closed the connection]
<apeiros>
>> "Hello STOP world STOP".split('STOP', -1).join('STOP')
dilated_dinosaur has quit [Ping timeout: 240 seconds]
tungd has quit [Remote host closed the connection]
exgf has joined #ruby
yfeldblum has joined #ruby
Sawbones has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
jonahR has quit [Ping timeout: 276 seconds]
linojon has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
Czupa has joined #ruby
ta has quit [Ping timeout: 276 seconds]
cocotton has joined #ruby
lemur has joined #ruby
tobago has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
hamakn has quit [Remote host closed the connection]
badhatter has quit [Quit: leaving]
hpoydar has joined #ruby
lemur has quit [Read error: Connection reset by peer]
beef-wellington has joined #ruby
lemur has joined #ruby
luksaur has joined #ruby
Uranio-235 has left #ruby [#ruby]
ta has joined #ruby
vifino has joined #ruby
snath has joined #ruby
pietr0 has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
udoprog has joined #ruby
kpshek has joined #ruby
mengu has quit []
badhatter has joined #ruby
bluenemo has quit [Remote host closed the connection]
sailias has joined #ruby
phinfonet has joined #ruby
<udoprog>
Hey, is it possible to specify another ruby prefix at runtime? So a ruby compiled with the PREFIX /opt/ruby could be run from /opt/ruby2? My investigations so far seem to indicate that the prefix is compiled in and not overrideable at runtime.
apeiros has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
dilated_dinosaur has joined #ruby
robbyoconnor has joined #ruby
Bira has joined #ruby
jonahR has joined #ruby
ta has quit [Ping timeout: 260 seconds]
ta has joined #ruby
SCommette has joined #ruby
jonahR_ has quit [Ping timeout: 252 seconds]
mikesplain has quit [Ping timeout: 260 seconds]
SCommette has quit [Client Quit]
_GoodTimes has quit [Ping timeout: 276 seconds]
chipotle has quit [Quit: cya]
SCommette has joined #ruby
<bmurt>
udoprog: couldn't you just do /opt/ruby2 cool_stuff.rb
ta has quit [Ping timeout: 252 seconds]
Zenigor has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
lemur has quit [Read error: Connection reset by peer]
lemur has joined #ruby
timonv has joined #ruby
benzrf is now known as benzrf|offline
cHarNe2 has quit [Ping timeout: 276 seconds]
SBoolean has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
rmillerx_ has joined #ruby
Mohd__ has joined #ruby
toastynerd has joined #ruby
SBoolean has joined #ruby
steeve has quit [Ping timeout: 260 seconds]
<Mohd__>
hey guys. I am looking to for a way to match words in quotes. I have the regex: /(["'])(?:\\\1|.)*?\1/
rkazak has joined #ruby
xaxisx has quit [Quit: xaxisx]
<Mohd__>
how do I use it? if I do math() I get MatchData. I want an array of the matched strings
arrubin has joined #ruby
mikespla_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
ringarin has quit [Quit: Leaving]
thesheff17 has joined #ruby
xaxisx has joined #ruby
bradhe has joined #ruby
rmillerx_ has quit [Remote host closed the connection]
mikepack has joined #ruby
hpoydar has quit [Remote host closed the connection]
<bmurt>
shevy: apeiros: how would you guys format the yml config file to be populated?
<bmurt>
obviously in yaml standard formatting
<certainty>
banister: i remember you were talking about your company deploying SOA at bigger scale. How do you manage the development, test complexity that may arise from that. Do you ever make fully integrated tests that run against test setups of your APIs? This surely increases with each new API.
<bmurt>
but do ya'll have a quick link handy?
<certainty>
i should probably have added a ? :)
<shevy>
bmurt what data does it store? usually I go for hash
<shevy>
if the dataset is much simpler then an array will suffice
<shevy>
but I dont want to have to write any file, I want it to be exactly like: "package foo" and no further action is ever required from a user
<workmad3>
shevy: where do you expect this magical command to get information about what the dependencies are?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<guilund>
i want to merge @index_gallery, @index_list, @index_text as like Hash['index' => @index_gallery + @index_list + @index_text]
<shevy>
workmad3 "gem foo" works
<shevy>
workmad3 if it were unavailable, it could scan through all require* calls
spider-mario has quit [Read error: Connection reset by peer]
doug1 has joined #ruby
sdwrage has joined #ruby
<doug1>
test
<workmad3>
shevy: what about the many gems that don't follow normal naming conventions?
<shevy>
workmad3 which ones?
<workmad3>
shevy: rmagick for one :P
<shevy>
is that still not dead?
<doug1>
I am confused. This might be a chef-ism, but I'm setting a dictionary to nil. When I print it with inspect it shows false. That makes no sense.
<doug1>
If I set it to a value, and print it, I see the value
qwyeth_ has quit [Remote host closed the connection]
akonny has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
edmellum has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
Azulinho has quit [Ping timeout: 260 seconds]
treehug88 has quit [Ping timeout: 260 seconds]
aniM has quit [Remote host closed the connection]
kpshek has quit []
Hanmac has joined #ruby
bradleyprice has joined #ruby
Takle has quit [Remote host closed the connection]
EminenceHC has joined #ruby
Kruppe has joined #ruby
almostwhitehat has joined #ruby
mikespla_ has quit [Ping timeout: 252 seconds]
<EminenceHC>
I have a serialized column whoes value is: {"1"=>"answer 1", "2"=>"answer 2"} I am trying to map the key/values but I am struggling to figure out how. I want to print the key next to the value for each.
Hanmac1 has quit [Ping timeout: 260 seconds]
tier has joined #ruby
niklasb has joined #ruby
ldnunes has quit [Remote host closed the connection]
reset has joined #ruby
mikesplain has joined #ruby
<apeiros>
EminenceHC: uh? deserialize it and then use all the good old hash methods?
<EminenceHC>
apeiros: How can I deserialize it?
<apeiros>
EminenceHC: I'd assume you serialized it, did you not?
Xeago has quit [Remote host closed the connection]
makerops has joined #ruby
dolan is now known as shvelo
<asteve>
is anyone else having trouble with geocoder? we're getting empty array responses; I tried updating to the latest gem and now I'm getting timeouts or connection refused errors
<shvelo>
I've learned how to YARD
<makerops>
what kind of actions can i take in a rescue Exception?
dangerousdave has quit [Read error: Connection reset by peer]
<makerops>
i have a script that runs, and I want it to send a log messsage upon dying, i cant seem to get it to work properly
dangerousdave has joined #ruby
<Sigma00>
well, how are you logging?
<matti>
makerops: Any, technically.
<matti>
makerops: What are you doing?
<matti>
;]
jahrichie2 has joined #ruby
<makerops>
lemme gist
jujhar has joined #ruby
jahrichie2 has quit [Client Quit]
bwilson has joined #ruby
<makerops>
so this is the relevant part/the end of the script
<newusr>
makerops, basically an alternative to calling system(some system call)?
<makerops>
newusr, more like an init script
tier has quit [Remote host closed the connection]
<newusr>
makerops, so you can do stuff that you need for app start, like lets say some file that you need for you app to run, some process that you need to start
dangerousdave has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
<makerops>
when i run foreman start, it looks at that and runs everything, keeps everything logged nicely/color coded etc
luisjose has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
tier has joined #ruby
jprovazn has joined #ruby
<newusr>
whats a procfile? like gemfile for bundler, Vagrantfile for vagrant, similar for foreman?
sdwrage has joined #ruby
beef-wellington has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
stantona has quit [Remote host closed the connection]
doodlehaus has joined #ruby
jhass|off is now known as jhass
<makerops>
newusr yes
<newusr>
thanks makerops
<makerops>
np
tier has quit [Client Quit]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
<newusr>
can some one explain whats a gem? i know its a package, but again i dont what that exactly means/
<apeiros>
what about it do you need explained?
<apeiros>
it's usually a bunch of ruby code files in a lib directory. sometimes accompanied by an executable in the bin dir.
lord4163 has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
<apeiros>
the .gem file itself is really a .tgz
Rollabunna has joined #ruby
kaspergrubbe has joined #ruby
dangerou_ has joined #ruby
chipotle has quit [Quit: cya]
<newusr>
wait but why do you need executable, so my understanding is, you install a gem is as good as you have a what you call a jar in java world
beef-wellington has quit [Ping timeout: 276 seconds]
enebo has joined #ruby
<newusr>
apeiros, so a gem is just a bunch of ruby code
<apeiros>
usually. can contain other code too.
<newusr>
that i can require in my code
timonv has quit [Remote host closed the connection]
<apeiros>
native gems usually contain C files, or for jruby java files.
SilverKey has joined #ruby
<newusr>
you mean like dependancy and stuff
bradleyprice has quit [Ping timeout: 260 seconds]
<eam>
newusr: packaging can contain libraries, and can also contain self-contained programs
sdouglas has joined #ruby
<apeiros>
no. the word "dependency" usually implies it's external.
<newusr>
but that way the gem wont be platform indepandant, right?
<apeiros>
if it contains C code?
<apeiros>
it can contain C code and still be platform independent
Wolland has joined #ruby
Hanmac has joined #ruby
<momomomomo>
(if it's good C code)
<apeiros>
it is no longer runtime independent, though (jruby won't work with C extensions)
<eam>
maybe if your idea of platform independent is "common unixes"
jxf has joined #ruby
<apeiros>
you can be platform dependent with plain ruby code too - fork e.g. is not available on windows
Mattias has joined #ruby
dangerousdave has quit [Ping timeout: 276 seconds]
kaspergrubbe has quit [Remote host closed the connection]
<momomomomo>
i'll just go ahead and use a bunch of int4's
<momomomomo>
haha
<newusr>
apeiros, so the gem will need to have some native things alreadt installed on my box
kaspergrubbe has joined #ruby
karmatr0n has quit [Remote host closed the connection]
<momomomomo>
newusr maybe... gcc or clang for osx
klaut has joined #ruby
<apeiros>
iow, platform dependency is not inherent to which language you use. but whether you use stuff which is available across platforms. and you'll *always* be in some way limited on what platforms your code will run.
Arkaniad has joined #ruby
<lord4163>
Thinking of learning Ruby, what are the recommended learnning resouces? I saw Learn Code The Hard Way had a book, is that any good?
<eam>
you know what I've been missing from gems? A good way to configure build parameters
RaCx has joined #ruby
<eam>
like, let's say I want to tweak the rpath in all the shared objects gem/bundler builds
<apeiros>
eam: afaik you can pass them to `gem install`
<eam>
apeiros: I found that, but it's sparsely implemented by gems
SCommette has joined #ruby
<eam>
there should be a generic way to specify common environment
<apeiros>
eam: oh, the gem has to actively read it?
<eam>
afaik yes
havenwood has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 260 seconds]
<apeiros>
that's unfortunate indeed
<eam>
I think the closest I can get is the original build config of the interpreter
<apeiros>
but well, I guess it fits
<apeiros>
rubygems doesn't prescribe much about how the build process actually works
<apeiros>
if you want to build stuff in detail, you have to manually download the gem, unpack it, visit the ext/** dirs and manually compile the parts, then install it
<makerops>
so if i run that using foreman run script, and throw a ctrl-c at it, it sends my alert message properly
<makerops>
but if i use foreman start, it does not?
mikesplain has quit [Ping timeout: 260 seconds]
mary5030 has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
paulfm has joined #ruby
mikespla_ has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
bwilson has quit [Quit: bwilson]
braincrash has quit [Quit: bye bye]
<shevy>
<makerops> it's just a process rapper
aspires has joined #ruby
<shevy>
hahaha :D
<makerops>
i corrected it!
b1205 has joined #ruby
sdouglas has quit [Remote host closed the connection]
jhulten has left #ruby [#ruby]
<shevy>
yeah
<shevy>
but that makes it less fun
<shevy>
so I am against correcting mistakes!
sdouglas has joined #ruby
cocotton has joined #ruby
stantona has joined #ruby
qba73 has joined #ruby
mehlah has joined #ruby
mradmacher has quit [Ping timeout: 260 seconds]
<momomomomo>
makerops: Not sure what you're doing, but sha1 is a bad hashing algorithm to use if all you're trying to do is avoid collisions
<newusr>
so, in a broader perspective, rvm is to switch between rubies and also gems for that ruby version, gem is again a command scoped for a ruby version by rvm, bundler is a gem which reads gemfile and installs specified gems, and a gem is just a package with specified format which might contain a binary along with some native dependancy
nanoyak has quit [Quit: Computer has gone to sleep.]
<makerops>
momomomomo, not trying to avoid them
<momomomomo>
let me rephrase makerops: Unless you're hashing for some sort of security, sha1 is probably a sub-optimal choice
<Pulpie>
I am trying to catch the exception: Unable to download file from net/sftp but it seems to even go through Exception => e what can I use to catch download failures?
<nycto>
Overall.
Czupa has quit [Quit: Wychodzi]
<momomomomo>
Pulpie: !code
<helpa>
Pulpie: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
vpretzel_ has quit [Quit: Adios!]
<shvelo>
PSA: writing a complex-ish project is a must for learning Ruby development. I haven't bothered with documentation and testing until now
RaCx_ has joined #ruby
<Pulpie>
momomomomo: sure I can put some some code
RaCx has quit [Ping timeout: 260 seconds]
RaCx_ is now known as RaCx
<Pulpie>
momomomomo: but its not going to make sense to you
newusr has quit [Quit: Page closed]
vpretzel has joined #ruby
<momomomomo>
!pm
sdwrage has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
<Pulpie>
lol what is that suppose to do?
GriffinHeart has joined #ruby
<shvelo>
>> pry
<eval-in>
shvelo => undefined local variable or method `pry' for main:Object (NameError) ... (https://eval.in/160702)
<Pulpie>
might as well pastebin it at a certain point.
<apeiros>
eam: you're only supposed to rescue exceptions you can and want to actually handle. the Exception class contains exceptions you usually don't want to or can't handle. such as NoMemory (can't), or Interrupt (don't want to - usually)
<eam>
both can be handled
<eam>
I'm just saying, leting the system handle Interrupt is hackish
<momomomomo>
apeiros: good on you, I wasn't even going to continue down the road
vpretzel_ has joined #ruby
<apeiros>
eam: tell me how you handle NoMemory in ruby.
Notte has joined #ruby
<eam>
ideally a "real" program would at least catch ^C and print something nice
<Pulpie>
apeiros: actually you could invoke a memory clean up.
<apeiros>
(hint: no, you can't. NoMemory within ruby is end-of-road. and yes, I know about neverdie)
<eam>
or nothing at all
vpretzel_ has quit [Client Quit]
<eam>
apeiros: I mean in the abstract of languages with exceptions
<apeiros>
eam: yes. and now tell me *where* you handle Interrupt
<momomomomo>
trick question apeiros
<apeiros>
you don't put a blind rescue Exception at every point where exceptions might happen
<eam>
apeiros: oh I agree with that
<apeiros>
because you'll rescue an exception which *that* rescue can't handle
<apeiros>
hence: context of "all"
segv has joined #ruby
<apeiros>
yes, I agree, you want and should handle Interrupt at some point
<apeiros>
if that's what you're saying
C0deMaver1ck has joined #ruby
<momomomomo>
^^^ see this Pulpie - apeiros is mre patient than I
<eam>
I'm just saying, a rescue Exception around the entire program is correct for a fully polished program
<momomomomo>
no, it's not
KLVTZ has joined #ruby
<eam>
bubbling up an exception to a user is never correct
codydh has joined #ruby
<eam>
for real stuff
<Pulpie>
momomomomo: yeah lot of kiddy scripters don't have patience.
<apeiros>
eam: since it hits things like NoMemory, I'd disagree. your code might explode rather violently in such a case.
<eam>
even if you trap it and print nothing, or a sanitized error code, etc
<apeiros>
but I agree to the general idea
larsam has quit [Quit: larsam]
vpretzel has quit [Ping timeout: 240 seconds]
<momomomomo>
ha, why are you on the offensive Pulpie ?
<eam>
apeiros: eh NoMemory is going to be common - a "real" commercial app may want to print something like ERR 1234 contact support at X
<eam>
(and yes, I can print that after NoMemory :D)
SCommette has quit [Quit: SCommette]
<apeiros>
you might be able to print. you also might not be able to print.
<codydh>
Installing rails on Mavericks is so slow... "Installing ri documentation for rails-4.1.1" has ruby pegged at 100% CPU for minutes
<Pulpie>
momomomomo: same reason you were from the getgo.
<eam>
apeiros: I can print.
railzForDaiz has quit [K-Lined]
<eam>
with forethought and design, guaranteed
<momomomomo>
codydh: You can disable rdoc
<apeiros>
eam: I've had NoMemory where the exception violently crashed in print. because - no memory.
<eam>
in ruby's print
<codydh>
momomomomo: If I'm new, I should probably allow it to be there, though, right?
<eam>
so don't call that :D
<momomomomo>
Pulpie: Literally our entire discussion has been me saying 3 things - !code, linking you to an article about not rescuing exceptions, and this
<momomomomo>
if you're reading into that for some reason, that's your own issue
<eam>
I mean the real story here is no one puts this kind of polish on ruby scripts
mary5030 has joined #ruby
<toretore>
cause it's hard
<Pulpie>
momomomomo: I'm not, you have said more to me than that.
<momomomomo>
scroll up
<Pulpie>
momomomomo: yeah and?
<Pulpie>
I'm looking at evidence of you saying more crap.
<Mon_Ouie>
shevy: You can't require C extensions in eval-in
<shevy>
I hate eval-in
<apeiros>
shevy: write something better!
nanoyak has quit [Read error: Connection reset by peer]
Vivekananda has joined #ruby
nanoyak has joined #ruby
ezra has quit [Ping timeout: 276 seconds]
mordocai has quit [Remote host closed the connection]
ezra_ has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bmurt>
any other suggestions?
ghr has quit [Ping timeout: 255 seconds]
<csmrfx>
pry?
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
EminenceHC has joined #ruby
<Mon_Ouie>
Well "doesn't work" does not explain anything. What happens? What error does it print?
<csmrfx>
oh, wait, it was shevy hating on evalin
benzrf|offline is now known as benzrf
toastynerd has joined #ruby
sambao21 has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
<shevy>
apeiros I might eventually!
* apeiros
must refuse to snark
e-jambon has left #ruby [#ruby]
bluenemo has joined #ruby
<jezen>
can I chain a bunch of methods together if they don’t return `self`?
<benzrf>
jezen: heuh?
<benzrf>
what do you mean
<apeiros>
jezen: yes
<apeiros>
but the methods operate on the return value
sdwrage has joined #ruby
<jezen>
I have a bunch of methods that take values and return values, and I’d like to pass some value into method1, which returns a value that method2 takes, which returns a value that method3 takes, etc
<apeiros>
so "yes, if you want to process the return value"
<apeiros>
1 + 2 * 3 - 3 # <-- none returns self, of course we chain
<banister>
jezen you can use tap
bradhe has joined #ruby
<apeiros>
jezen: "a value that method 2 takes" (etc.) - as receiver or as argument?
morinap has quit [Remote host closed the connection]
morinap has joined #ruby
blackmesa has joined #ruby
AMcP has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
x1337807x has joined #ruby
bricker`1A has joined #ruby
bricker`1A is now known as bricker`work
AMcP has quit [Remote host closed the connection]
gattuso has joined #ruby
stantona has quit [Remote host closed the connection]
bradhe has joined #ruby
yfeldblu_ has joined #ruby
jaimef has joined #ruby
brunops has quit [Quit: leaving]
ahofmann has joined #ruby
<happytux>
shevy: I got some experience with image manipulation in general (PHP, Java and cli).
nanoyak has joined #ruby
braincrash has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<happytux>
shevy: Basically you have the choice between a native ruby image manipulation library, which is easier to install and setup but often limiting (reinventing the wheel) and less performant or a ruby binding with a popular image library (mostly written in C or similar).
morinap has quit [Ping timeout: 245 seconds]
<happytux>
shevy: And then there are tools build on top of them which facilitate specific tasks, like barcodes and such.
<happytux>
shevy: What exactly are you planning to archive?
<CaioTSan>
it guy at my school taught me to always use self
<CaioTSan>
when inside methods
<CaioTSan>
is it wrong?
<shevy>
then you must start to replace other people with the thing in your head
Nilium_ has quit [Ping timeout: 240 seconds]
Nilium has joined #ruby
<workmad3>
CaioTSan: in what you just wrote... yes
<shevy>
just forget what that guy said and you'll live a happier life
pietr0 has joined #ruby
<csmrfx>
coul say that: self is useful if you made the object yourself
<shevy>
or you might end up dead in a tragic railroad accident, who knows
<workmad3>
CaioTSan: I was also meaning 'don't define a top-level method "strip" that just calls .strip on the argument'
<CaioTSan>
ok
<csmrfx>
hey CaioTSan, you know "ri"?
<CaioTSan>
csmrfx: don’t think i do
noob101 has joined #ruby
<csmrfx>
ok you want ri
<noob101>
Hello guys, how's it going. I always have a question to ask.
<csmrfx>
CaioTSan: do you know "irb"?
<CaioTSan>
csmrfx: are those packages?
m8 has quit [Quit: Sto andando via]
kpshek has quit []
<csmrfx>
CaioTSan: those are little tools that will make you a ruby wizard in no time
<noob101>
My question is, What is the terminology for these commonly used things, puts, if, else, end. What is the specific term for these main terms used in ruby?
<csmrfx>
CaioTSan: you want to install ri, and if you have ruby you already have irb
<workmad3>
Noob101: that's a difficult question to answer, because you've mixed up syntax keywords with methods defined on Kernel there
<noob101>
Like are they methods? What are they?
<drizz>
if, else and end are keywords
<CaioTSan>
csmrfx: oh, irb is integrated ruby whatever?
<drizz>
puts is a method
<noob101>
workmad3: Oh I am sorry.
<workmad3>
Noob101: 'puts' is a method defined on Kernel, if, else, end, are keywords :)
<CaioTSan>
csmrfx: i have that
<csmrfx>
CaioTSan: ri is like "help" for ruby. irb is a ruby evaluation tool, yes
<workmad3>
Noob101: as drizz just said :)
lemur has joined #ruby
<CaioTSan>
csmrfx: to get ri is like sudo apt-get ri ?
<noob101>
workmad3: so if, else and `are` are keywords in ruby?
<csmrfx>
yes, exactamundo
<csmrfx>
looks like you have a nice OS, too!
<noob101>
workmad3: How do I know if something is a keyword? o_O?
<CaioTSan>
csmrfx: actually im on a mac, but i also have a ubuntu
<csmrfx>
ri will tell you about objects and methods, like this:
unic0rn has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
toastynerd has joined #ruby
combusean has quit [Quit: Leaving.]
tonyhb has quit [Quit: peace]
momomomomo has quit [Quit: momomomomo]
yubrew has quit [Ping timeout: 260 seconds]
arrubin has joined #ruby
moritzs has joined #ruby
x1337807x has joined #ruby
geggam has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 252 seconds]
x1337807x has quit [Client Quit]
hpoydar has joined #ruby
hpoydar has quit [Remote host closed the connection]
hpoydar has joined #ruby
pietr0 has quit [Quit: pietr0]
<shevy>
happytux I wish to compile a list of all kind of effects and transformations
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fresham has quit [Quit: fresham]
dc has joined #ruby
moritzs has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Bira has quit [Remote host closed the connection]
codezomb has joined #ruby
Elros has joined #ruby
blackgoat has quit [Remote host closed the connection]
vifino has quit [Quit: Ze Cat now leaves...]
blackgoat has joined #ruby
Bira has joined #ruby
jonathanwallace has quit [Ping timeout: 245 seconds]
andrewjanssen has quit [Quit: Leaving...]
jpstokes has quit [Remote host closed the connection]
Uranio has joined #ruby
zigomir has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
sputnik13 has joined #ruby
Takle has quit [Remote host closed the connection]
sputnik13 has quit [Client Quit]
sputnik13 has joined #ruby
nowthatsamatt has joined #ruby
<happytux>
shevy: So the criteria would be that it is a native Ruby image library, not a binding?
sputnik13 has quit [Client Quit]
mercerist has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Remote host closed the connection]
<shevy>
happytux hmm
<shevy>
happytux no, the main criteria is to be able to do a lot of image manipulation; an ideal criteria would be if it were purely Ruby
ghr has joined #ruby
hermanmunster has joined #ruby
nowthatsamatt has quit [Client Quit]
robbyoconnor has quit [Excess Flood]
ukd1 has quit [Quit: Leaving...]
cpruitt_ has joined #ruby
robbyoconnor has joined #ruby
ehc has quit [Quit: ehc]
sdouglas has joined #ruby
benzrf|offline is now known as benzrf
sputnik13 has joined #ruby
kevind has quit [Quit: kevind]
cpruitt has quit [Ping timeout: 260 seconds]
cpruitt_ is now known as cpruitt
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
benlieb has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
Uranio has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
jkline has quit [Quit: jkline]
ephemerian has quit [Remote host closed the connection]
Elros is now known as CaioTSan
aspires has joined #ruby
CaioTSan is now known as Elros
Elros is now known as CaioTSan
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 252 seconds]
codydh has joined #ruby
<CaioTSan>
Hey
mitt3ns has quit [Read error: Connection reset by peer]
Takle has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
Takle has joined #ruby
<CaioTSan>
If i have a loop that creates objects, can the names of the objects change as with the loop? like, on the first go it creates Object1, on the second go ot creates Object2 and so on?
mattmcclure has quit [Quit: Connection closed for inactivity]
mikesplain has joined #ruby
zkay11 has joined #ruby
bmurt has joined #ruby
<jle`>
CaioTSan: the class?
<jle`>
or just like a string given to the object to be its name?
<CaioTSan>
i mean, i have a class, with a few parameters. Each loop changes these parameters and so I’d like to save the newly created objects with different names
bradhe has joined #ruby
Arkaniad has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
jmurray has quit [Quit: jmurray]
<wallerdev_>
sounds like you want an array
jkline has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<CaioTSan>
OOhhhhh, you mean like, list[n]=object.new ?
<CaioTSan>
sounds like right
nyamx2 has joined #ruby
karmatr0n has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 260 seconds]
cpruitt has quit [Quit: cpruitt]
wjimenez5271 has quit [Quit: Leaving.]
sdouglas has quit [Remote host closed the connection]
KLVTZ has quit [Ping timeout: 260 seconds]
Newman has joined #ruby
<Newman>
Anyone have any experience with Sidekiq?
anibara has quit [Quit: anibara]
<wallerdev_>
CaioTSan: yeah pretty much
<CaioTSan>
thank you
nyamx2 has quit [Ping timeout: 265 seconds]
<shevy>
Newman I often feint a frontlegkick, then swing the leg sideways into a sidekiq
sepp2k1 has joined #ruby
<Newman>
lol shevy - well played
<shevy>
CaioTSan keep in mind the first character upcased, so object.new should be Object.new
<CaioTSan>
I did it in my code, just forgot to put it here :p