<adaedra>
apeiros: the footer of this page could be updated to something like "do a PR here" or something?
zast has joined #ruby
<Ox0dea>
wolffles: The Y in "system" is a vowel.
<Ox0dea>
Just sayin'.
ElFerna_ has quit [Ping timeout: 264 seconds]
<apeiros>
adaedra: "fork me on github" not good enough?
<wolffles>
its an exception on the ‘guidelines’
<adaedra>
apeiros: I'm talking about the existing message
<adaedra>
I forgot the corner thing is here, I tend to ignore them as I found them stupid, but that's my opinion
<apeiros>
oh, right. there's one. though iirc I wanted to add a way to submit suggestions directly.
<Ox0dea>
Who's jheg?
karapetyan has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 256 seconds]
<adaedra>
Because the message looks _a bit_ outdated.
nettoweb has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
akem has left #ruby ["Leaving"]
cajone has quit [Remote host closed the connection]
user083 has joined #ruby
benlieb has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DylanJ has joined #ruby
quakephil has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 256 seconds]
yatish27 has quit [Ping timeout: 240 seconds]
ereslibre has joined #ruby
ereslibre has joined #ruby
blt has joined #ruby
benlieb has quit [Quit: benlieb]
felipe has quit [Quit: Leaving]
cajone has joined #ruby
DylanJ has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
DylanJ has joined #ruby
reactor16 has quit [Quit: Leaving]
yatish27 has joined #ruby
marr has quit [Ping timeout: 256 seconds]
sauvin has quit [Remote host closed the connection]
sauvin has joined #ruby
sauvin has quit [Changing host]
sauvin has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sauvin has quit [Read error: Connection reset by peer]
sauvin has joined #ruby
s2013 has joined #ruby
s2013 has quit [Max SendQ exceeded]
zacstewart has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
dlitvak has joined #ruby
pandaant has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.4]
B1n4r10 has quit [Ping timeout: 256 seconds]
dlitvak has quit [Ping timeout: 272 seconds]
r4z3r has joined #ruby
askhat has quit [Read error: Connection reset by peer]
askhat has joined #ruby
yokel has joined #ruby
diegoviola has joined #ruby
graphettion has quit [Ping timeout: 248 seconds]
fer_ has joined #ruby
<fer_>
hi all
edwinvdgraaf has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 264 seconds]
SCHAAP137 has quit [Remote host closed the connection]
<fer_>
I am looking for some help with gem development, I am having troubles with matching runtime dependencies when setting source to gemfury repo
saneax_AFK is now known as saneax
eljimmy has quit [Quit: This computer has gone to sleep]
<fer_>
works fine when switching the source to the github repo though... so I am a bit lost
<fer_>
any ideas?
t4nk718 has joined #ruby
<t4nk718>
hi all
<r4z3r>
how's it going t4nk718
t4nk718 has quit [Ping timeout: 252 seconds]
DylanJ has quit [Quit: ggwp]
idefine has quit [Remote host closed the connection]
El3ktra has quit [Remote host closed the connection]
DylanJ has joined #ruby
decoponio has quit [Quit: Leaving...]
jottr has joined #ruby
saneax is now known as saneax_AFK
diegoviola has quit [Quit: WeeChat 1.4]
jottr has quit [Client Quit]
<shevy>
you killed the tank!
Domaldel has joined #ruby
<fer_>
the tank was me trying to access via webclient instead of xchat :)
<fer_>
sorry
ellistaa has quit [Quit: ellistaa]
Domaldel has quit [Client Quit]
user083 has quit [Quit: Lost terminal]
fer_ has left #ruby ["Saliendo"]
fer_ has joined #ruby
fer_ has quit [Quit: Saliendo]
pihpah has quit [Ping timeout: 256 seconds]
nanoz has joined #ruby
weemsledeux has joined #ruby
<shevy>
they prefer webchat over xchat :(((
<shevy>
what has the world become of...
_ht has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
<gizmore>
Is there active model like ActiveRecord::Result.new(User.new, User.new).where(:id => 2).to_json?
duckpuppy has joined #ruby
_ht has joined #ruby
nodejunkie has joined #ruby
eljimmy has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
r4z3r has quit [Quit: Windows can't be a virus, viruses do something.]
richardnixon has joined #ruby
askhat has quit [Read error: Connection reset by peer]
askhat has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trinaldi has quit [Quit: WeeChat 1.5-dev]
becker_12 has joined #ruby
JoshGlzBrk has joined #ruby
pawnbox has joined #ruby
diegoviola has joined #ruby
r4z3r has joined #ruby
johnmilton has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
SenpaiSilver has quit [Max SendQ exceeded]
pawnbox has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
z3uS has quit [Quit: /dev/null]
benlieb has joined #ruby
askhat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 264 seconds]
babblebre has joined #ruby
bronson has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
pawnbox has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
youch has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
lessless has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
youch has quit [Quit: Konversation terminated!]
richardnixon has quit [Ping timeout: 260 seconds]
richardnixon has joined #ruby
kies^ has quit [Ping timeout: 250 seconds]
Hackbinary has quit [Remote host closed the connection]
duckpuppy has joined #ruby
ramortegui has joined #ruby
B1n4r10 has joined #ruby
flughafen_ has quit [Ping timeout: 260 seconds]
dexter-tzu has quit [Read error: Connection reset by peer]
Aviio has quit [Read error: Connection reset by peer]
Sucks has quit [Ping timeout: 276 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
Sucks_ has joined #ruby
z3uS has joined #ruby
Rasi has quit [Quit: WeeChat 1.3]
Coldblackice has quit [Ping timeout: 256 seconds]
tokik_ has quit [Ping timeout: 276 seconds]
BTRRY has joined #ruby
barajasfab has quit [Quit: Leaving]
Teru has joined #ruby
dexter-tzu has joined #ruby
kies^ has joined #ruby
Rasi has joined #ruby
pawnbox has joined #ruby
flughafen_ has joined #ruby
BTRRY has quit [Quit: Leaving]
Teru has quit [Quit: Leaving]
_ht has quit [Read error: Connection reset by peer]
_ht has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
elifoster has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
diegoviola has quit [Quit: WeeChat 1.4]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
LoneHerm_ has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
Guest98055 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 256 seconds]
themsay has quit [Ping timeout: 256 seconds]
graphettion has joined #ruby
benlieb has joined #ruby
becker_12 has quit [Ping timeout: 256 seconds]
finisherr has joined #ruby
LoneHerm_ has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
ledestin has joined #ruby
<finisherr>
I'm having issues accessing an intance variable after instantiation. Is there anything I have to do outside of specifying the attribute in an attr_accessor method as a symbol?
baweaver has quit [Remote host closed the connection]
<finisherr>
and set in the initialize method
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
becker_12 has joined #ruby
jgt has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
<finisherr>
Yeah, that's what isn't working. What I have is a class with an instance variable that is actually an instance of another class (delegation)
<Ox0dea>
Post code?
pawnbox has joined #ruby
<finisherr>
I'll try,
benlieb has quit [Quit: benlieb]
bronson has joined #ruby
<finisherr>
many files
Sucks_ has quit [Ping timeout: 240 seconds]
<Ox0dea>
Well, that won't do.
Jardayn has quit [Ping timeout: 256 seconds]
<finisherr>
Oh whoops
<finisherr>
I think I found my issue possibly
<Ox0dea>
Forget to `super`?
<finisherr>
Fixed
<finisherr>
I just had my attr_accessor under module scope and not class scope
nofxx has joined #ruby
azure32 has joined #ruby
<Ox0dea>
Hm... what does that even do?
pawnbox has quit [Ping timeout: 240 seconds]
<finisherr>
I just put it in the wrong spot accidently
<Ox0dea>
Right, but now I'm wondering how you'd actually get hold of an attribute defined that way.
<Ox0dea>
Modules aren't instantiable.
<finisherr>
The class sits under a module
<finisherr>
that's all
duckpuppy has joined #ruby
karapetyan has joined #ruby
zacstewart has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LuckyABA has joined #ruby
yqt has quit [Ping timeout: 276 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
azure32 has quit [Ping timeout: 272 seconds]
sankaber has joined #ruby
becker_12 has quit [Ping timeout: 240 seconds]
nanoz has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
einarj has joined #ruby
braincrash has quit [Quit: bye bye]
blackgoat has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
yatish27 has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
rakm has joined #ruby
treaki has quit [Ping timeout: 256 seconds]
treaki has joined #ruby
graphettion_ has joined #ruby
graphettion_ has quit [Remote host closed the connection]
zast has quit [Quit: Leaving.]
graphettion has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
Ebok has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
atomical_ has joined #ruby
atomical has quit [Ping timeout: 272 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 240 seconds]
AlphaAtom has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gix has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
scottj has joined #ruby
benlieb has joined #ruby
ensyde_ has joined #ruby
The_Phoenix has joined #ruby
<scottj>
is there a way to use destructuring to rewrite "outline['foo'] + outline['bar']" to something like "{foo, bar} = outline; foo + bar"?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pickandmix has quit [Client Quit]
<ilhami>
That doesn't tell me what version to use though. :P 2.3.0 ?
davedev24 has quit []
LuckyABA has joined #ruby
LoneHerm_ has quit [Ping timeout: 256 seconds]
johny5t4G has joined #ruby
johny5t4G has left #ruby [#ruby]
<ilhami>
gem1.9.3 install bundler what am I installing here?
<ilhami>
can anyone tell me?
pickandmix has joined #ruby
<ilhami>
all the libs or what?
karapetyan has joined #ruby
yqfvwal has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 276 seconds]
Nilium has joined #ruby
becker_12 has joined #ruby
n00bdev has joined #ruby
coyo has joined #ruby
coyo has joined #ruby
adgtl has quit []
s2013 has joined #ruby
UtkarshRay has joined #ruby
duckpuppy has joined #ruby
s2013 has quit [Client Quit]
Sucks has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 260 seconds]
arthropododo has quit [Quit: Leaving]
Kryptonical has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pickandmix has quit [Quit: WeeChat 1.4]
blackgoat has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
y2mq37 has joined #ruby
pickandmix has joined #ruby
bronson has joined #ruby
baweaver has joined #ruby
intrigueD has joined #ruby
pickandmix has quit [Client Quit]
pickandmix has joined #ruby
einarj has joined #ruby
rsc___ has joined #ruby
Nilium has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
speakingcode has quit [Ping timeout: 250 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 260 seconds]
speakingcode has joined #ruby
Nilium has joined #ruby
x64- has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
dexter-tzu has quit [Ping timeout: 252 seconds]
moeabdol2 has joined #ruby
bkxd has joined #ruby
tokik has joined #ruby
moeabdol2 has quit [Client Quit]
mg^2 has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
intrigueD has quit [Remote host closed the connection]
moeabdol has joined #ruby
lxsameer has joined #ruby
awe has joined #ruby
<mg^2>
Time.now.methods.sort
<mg^2>
Bah, wrong window
awe has quit [Quit: Leaving]
RegulationD has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
febuiles has joined #ruby
pickandmix has quit [Ping timeout: 272 seconds]
mg^2 has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
pickandmix has joined #ruby
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
Marsupermammal has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
duncannz has quit [Read error: Connection reset by peer]
duncan_ has joined #ruby
rsc___ has quit [Quit: rsc___]
arlek has joined #ruby
ledestin has joined #ruby
gizmore_ has joined #ruby
gizmore has quit [Ping timeout: 252 seconds]
moeabdol1 has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
mybatman123 has joined #ruby
mybatman123 has left #ruby [#ruby]
karapetyan has joined #ruby
Chau has joined #ruby
yatish27 has joined #ruby
yatish27 has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
tvw has joined #ruby
becker_12 has quit [Ping timeout: 276 seconds]
jackjackdripper has joined #ruby
gizmore has joined #ruby
gizmore_ has quit [Ping timeout: 240 seconds]
Averna has quit [Ping timeout: 256 seconds]
gizmore has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
einarj has joined #ruby
gizmore has joined #ruby
p1k has joined #ruby
patchedmonkey has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
Gnut has joined #ruby
p1k has quit [Quit: WeeChat 1.4]
becker_12 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<ilhami>
hello
ruby-lang287 has joined #ruby
<ilhami>
hello
<ilhami>
hello
Averna has joined #ruby
<ilhami>
sorry
<ilhami>
was testing something :D
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kaynw80 has joined #ruby
Nilium has quit [Ping timeout: 250 seconds]
<kaynw80>
hy! I'm new to ruby. I come from PHP. My very basic Question: If I want to use a library like Nokogiri, do I have to include the source to my project or do I have to install Nokogiri on my system and tell everyone who uses my program that they have to install Nokogiri as well?
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
spider-mario has joined #ruby
Nilium has joined #ruby
ruby-lang287 has quit [Ping timeout: 252 seconds]
wolffles has quit [Quit: wolffles]
LoneHerm_ has joined #ruby
<Ox0dea>
kaynw80: Easiest is to package your thing as a gem and specify Nokogiri as a dependency.
<Ox0dea>
Then, when your users go to install your thing, Nokogiri will be installed alongside it if they didn't already have it.
idefine has quit [Remote host closed the connection]
floror has quit [Quit: floror]
arlek_ has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
duncan_ has quit [Remote host closed the connection]
arlek has quit [Ping timeout: 252 seconds]
wwwbukolaycom has quit [Read error: Connection reset by peer]
sergey_makagon has quit []
askhat has joined #ruby
ht_ has joined #ruby
_ht has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
dexter-tzu has joined #ruby
mdw has joined #ruby
duckpuppy has joined #ruby
codecop has joined #ruby
blur3d has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
_ht has quit [Client Quit]
_ht has joined #ruby
joonty has quit [Ping timeout: 256 seconds]
ht_ has quit [Ping timeout: 276 seconds]
kaynw80 has left #ruby [#ruby]
pawnbox has joined #ruby
kaynw80 has joined #ruby
william3 has joined #ruby
ht_ has joined #ruby
_ht has quit [Ping timeout: 240 seconds]
<kaynw80>
hy! I can't load an installed ruby gem. getting a load error. gem list shows it's installed however. stackoverflow isn't really helping.
Dimik has quit [Ping timeout: 272 seconds]
r4z3r is now known as zz_r4z3r
ponga has quit []
kirillzh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has quit [Ping timeout: 240 seconds]
_ht has joined #ruby
benlieb has joined #ruby
ht_ has quit [Ping timeout: 276 seconds]
houhoulis has quit [Remote host closed the connection]
<apeiros>
kaynw80: more details needed. which gem? how do you try to load it? what's the *precise* error you get (copy & paste to gist)
<apeiros>
kaynw80: generic answer: in case you've multiple rubies, make sure you're using the same ruby to run the code as you used to install the gem. make sure you actually require the right file (gem-name and file to require don't have to match).
mlehrer has joined #ruby
konsolebox has quit [Quit: Leaving]
<kaynw80>
apeiros: I think I fixed it. The Tutorial I used told me to require 'HTTParty'. However the gem is called 'httparty' (all lower case). I assume that makes no difference on a regular mac but does make a difference in linux. tl;dr it now works because I use require 'httparty'.
sugardrunk has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 260 seconds]
mlehrer has quit [Ping timeout: 240 seconds]
<apeiros>
kaynw80: it makes a difference on any system with case sensitive filesystem. require works with files, i.e. it takes a path (or part of a path)
<apeiros>
and yeah that tutorial is certainly wrong to spell it as `require 'httparty'`, and getting something such basic wrong would make me wary of that tutorial.
<apeiros>
whoops
<apeiros>
*is certainly wrong to spell it as `require 'HTTParty'`
wwwbukolaycom has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kaynw80>
apeiros: yap, but regular macs come with a case insensitive fs :) - I still have to get used to a case sensitive fs
jmdade has joined #ruby
<apeiros>
not quite correct. regular macs have configured case-preserving fs by default. you can have case-sensitive out of the box there too.
<kaynw80>
oh didn't know that
<apeiros>
but yeah, unless you do something, require 'HTTParty' would work on mac
benlieb has quit [Quit: benlieb]
KINGSABRI has quit [Ping timeout: 256 seconds]
blackgoat has joined #ruby
zapata has quit [Quit: WeeChat 1.4]
sheerfish999 has joined #ruby
<sheerfish999>
test
<sheerfish999>
gem install rqrcode
<sheerfish999>
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
<sheerfish999>
bad response Not Found 404
einarj has joined #ruby
<apeiros>
sheerfish999: works for me. updated rubygems? proxy settings correct? modified gem config?
<sheerfish999>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><RequestId>56C047AEFFFC811E30AD83F0</RequestId><HostId>rubygems-china.oss-cn-hangzhou.aliyuncs.com</HostId><Key>quick/Marshal.4.8/rqrcode-0.10.1.gemspec.rz</Key></Error>
<sheerfish999>
is that right ?
<sheerfish999>
"rqrcode-0.10.1.gemspec.rz"
mlehrer has joined #ruby
karapetyan has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
stardiviner has joined #ruby
zapata has joined #ruby
darkf has quit [Quit: Leaving]
pickandmix has quit [Quit: WeeChat 1.4]
dima_ has joined #ruby
DmitryBochkarev has quit [Ping timeout: 264 seconds]
pickandmix has joined #ruby
kmckelvin has joined #ruby
dima_ has quit [Client Quit]
DmitryBochkarev has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
Mon_Ouie has joined #ruby
william3 has quit [Remote host closed the connection]
blackmesa has joined #ruby
askhat has quit [Read error: Connection reset by peer]
askhat has joined #ruby
graffix222 has quit [Ping timeout: 250 seconds]
Youngmathimus0 has quit [Ping timeout: 276 seconds]
einarj has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
zeroDivisible has joined #ruby
duckpuppy has joined #ruby
william3 has joined #ruby
blackmesa has joined #ruby
karapetyan has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
n00bdev has quit []
atmosx has joined #ruby
askhat has quit [Read error: Connection reset by peer]
atmosx has quit [Client Quit]
BLuEGoD has quit [Quit: changing servers]
BLuEGoD has joined #ruby
BLuEGoD is now known as Guest88392
atmosx has joined #ruby
sandstrom has joined #ruby
zenlot1 is now known as zenlot
LoneHermit has joined #ruby
kaynw80 has quit [Quit: leaving]
bronson has joined #ruby
LoneHermit has quit [Ping timeout: 240 seconds]
askhat has joined #ruby
nanoz has joined #ruby
karapetyan has joined #ruby
akem has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
jdeen has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
jgt has quit [Ping timeout: 240 seconds]
n00bdev has joined #ruby
<jdeen>
Hi there. I am wondering if it is wise to overide equal comparator of a class so that some thing like 'Array#include?' will teturn true if an object with similar attribute values is included. If so what method should I override?
<canton7>
why not use 'any' and pass a block?
askhat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jdeen>
checking...
antgel has joined #ruby
<apeiros>
jdeen: == should be consistent with <=>
<jdeen>
canton7: thanks, i didn't see any in the documentation, but it seems to work, great
becker_12 has quit [Ping timeout: 260 seconds]
<jdeen>
apeiros: thanks, so in methods like #include? #find, i think it is using the == operator is it? so probably i will have to also override <=>
<apeiros>
jdeen: yes, Array#/Enumerable#include? use ==. Hash#include? otoh uses eql?.
firstdayonthejob has quit [Ping timeout: 240 seconds]
<jdeen>
apeiros: great, thanks for the information guys, happy hacking and an enjoyable sunday!
codecop has quit [Remote host closed the connection]
ph0 has joined #ruby
karapetyan has joined #ruby
blackmesa has joined #ruby
ph0 has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
einarj has joined #ruby
sheerfish999 has left #ruby ["Leaving"]
askhat has joined #ruby
atmosx has quit [Quit: This is aparting message!]
pickandmix has quit [Ping timeout: 256 seconds]
Xeago has quit [Ping timeout: 276 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
ekem is now known as NoTea
elifoster has quit [Ping timeout: 248 seconds]
voidDotClass has joined #ruby
<voidDotClass>
I have a rails class 'Foo', I have a static method: Foo.allowed_types , which returns an array. I'm trying to set a validation rule to only allow types which are included in the array returned by Foo.allowed_types
mdw has quit [Quit: Sleeping Zzzzz]
<voidDotClass>
I'm trying validates :type, presence: true, inclusion: {in: Foo.allowed_types} , but it gives a syntax error
Guest88392 is now known as BLuEGoD
<voidDotClass>
just doing self.allowed_types or just allowed_types doesnt work either
NoTea is now known as ekem
BLuEGoD is now known as Guest80382
intrigueD has joined #ruby
duckpuppy has joined #ruby
william3 has joined #ruby
n00bdev has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 260 seconds]
scottj has left #ruby [#ruby]
william3 has quit [Ping timeout: 250 seconds]
<apeiros>
voidDotClass: you should always gist your full exception if you get one. the code you pasted here is syntactically valid
<apeiros>
also note that there's no such thing as a "rails class".
<voidDotClass>
apeiros, It works only if I move that line below the method definition
<apeiros>
uh, yes, you can't call a method before you defined it
<apeiros>
but calling an undefined method does not raise a syntax error.
<voidDotClass>
apeiros it seems that if the static method is referred in the class def before its declared, then it doesnt work, gives an unknown constant error
<voidDotClass>
but if you just move the reference below the method declaration, like in archaic php, then it works
<apeiros>
I think you're mixing things up rather wildly
<voidDotClass>
let me give you the exact exception then
<apeiros>
best along with the code
<apeiros>
and yes, you absolutely have to define stuff before using it. can't possibly work any other way.
<voidDotClass>
apeiros, /home/ali/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/activerecord-4.2.5/lib/active_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable or method `allowed_types' for Foo (call 'Foo.connection' to establish a connection):Class (NameError)
<apeiros>
also note that your validation will validate against the values the method returns at the time of calling `validates`. i.e. it won't be dynamic.
<shevy>
gustavohmsilva a lot of the syntax is not necessary; puts() the () are not needed; the indent is not consistent and you should consider using a class instead for easier re-use of code in general
<gustavohmsilva>
Hum, thanks shevy... I'll read about classes and remove the () from the code
<gustavohmsilva>
thanks!
william3 has joined #ruby
william3 has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
stardiviner has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
gizmore has quit [Quit: Lost terminal]
Guest74305 is now known as BLuEGoD
BLuEGoD is now known as Guest29207
patchedmonkey has joined #ruby
Timberwo|f has quit [Quit: Sleep.]
duckpuppy has joined #ruby
Ishido has quit [Remote host closed the connection]
konsolebox has joined #ruby
dlitvak has quit [Ping timeout: 248 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
n00bdev has joined #ruby
Ishido has joined #ruby
Ishido has quit [Remote host closed the connection]
Ishido has joined #ruby
dlitvak has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
RLa has joined #ruby
<RLa>
i'm debugging this error: LoadError (cannot load such file -- zip/zip), it seems like some gem is missing
<RLa>
how do i turn zip/zip into a gem name?
n00bdev has quit [Ping timeout: 250 seconds]
roshanavand has quit [Read error: Connection reset by peer]
<havenwood>
RLa: Looks like rubyzip gem prior to version 1.0 was `require 'zip/zip'` and post 1.0 it's `require 'zip'`.
symm- has joined #ruby
<RLa>
it's 2013-era codebase, thanks for info, i try deduce which version i need
<havenwood>
RLa: If you don't have `require 'zip/zip'` in your code or `gem 'rubyzip'` in your Gemfile, you'll need to hunt down the gems depending on rubyzip and fix them or add the '< 1.0' to your Gemfile manually.
<RLa>
will do
<havenwood>
If they'd have followed convention it'd be: require 'rubyzip'
<havenwood>
:O
blackmesa has joined #ruby
<havenwood>
But I guess the name "zip" was taken. It happens!
cmoneylulz has joined #ruby
<havenwood>
Now as long as nobody wants to use the real zip gem with rubyzip...
<RLa>
it should be redmine dependency but is somehow missing, one of the plugins requires it
roshanavand has joined #ruby
<pushcx>
Watch out for 'zipruby' from that era, it has a case sensitivity bug that can destroy data.
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
DmitryBochkarev has joined #ruby
RegulationD has joined #ruby
al2o3-cr has quit [Ping timeout: 248 seconds]
cmoneylulz has quit [Remote host closed the connection]
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 264 seconds]
x77686d has joined #ruby
rsc___ has joined #ruby
Azure has joined #ruby
gregf has joined #ruby
dasher00 has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 248 seconds]
magic_1 has joined #ruby
patchedmonkey has joined #ruby
patchedmonkey has quit [Client Quit]
kknight has joined #ruby
dlitvak has joined #ruby
millerti has joined #ruby
al2o3-cr has joined #ruby
binaryplease has joined #ruby
jottr has joined #ruby
aryaching has quit [Read error: No route to host]
askhat has joined #ruby
ferr has quit [Ping timeout: 276 seconds]
aryaching has joined #ruby
pdoherty has joined #ruby
y2mq37 has quit [Ping timeout: 264 seconds]
zacstewart has joined #ruby
rodfersou has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
william3 has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
Hackbinary has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Ping timeout: 240 seconds]
cmoneylulz has quit [Client Quit]
william3 has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
mondok has quit [Ping timeout: 252 seconds]
ready has quit [Ping timeout: 245 seconds]
Timberwo|f has joined #ruby
patchedmonkey has joined #ruby
ziyadb has joined #ruby
rgtk has joined #ruby
Guest29207 is now known as BLuEGoD
BLuEGoD is now known as Guest1756
blackmesa has joined #ruby
dlitvak_ has joined #ruby
duckpuppy has joined #ruby
jmdade has joined #ruby
p1k has quit [Ping timeout: 250 seconds]
intrigueD has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
n00bdev has joined #ruby
mondok has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
railsForDaiz has joined #ruby
Ebok has joined #ruby
ready has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
n00bdev has quit [Ping timeout: 252 seconds]
flughafen_ has joined #ruby
Xeago has quit [Remote host closed the connection]
rsc___ has quit [Quit: rsc___]
chouhoulis has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
zeroDivisible has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
intrigueD has joined #ruby
lxsameer has quit [Quit: Leaving]
sankaber has quit [Remote host closed the connection]
mondok has quit [Ping timeout: 272 seconds]
pdoherty has quit [Ping timeout: 248 seconds]
sankaber has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has joined #ruby
x64- has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
LoneHerm_ has joined #ruby
InSync has joined #ruby
millerti has joined #ruby
dasher00 has joined #ruby
dlitvak_ has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
futilegames has joined #ruby
railsForDaiz has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
Danishman has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
IfSync has joined #ruby
Dimik has quit [Ping timeout: 276 seconds]
railsForDaiz has joined #ruby
InSync has quit [Remote host closed the connection]
IfSync has quit [Remote host closed the connection]
askhat has quit [Read error: Connection reset by peer]
askhat has joined #ruby
kknight has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
stardiviner has quit [Ping timeout: 250 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak_ has joined #ruby
mondok has joined #ruby
millerti has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
becker_12 has joined #ruby
millerti has quit [Client Quit]
davedev24 has joined #ruby
william3 has joined #ruby
mlehrer has quit [Remote host closed the connection]
millerti has joined #ruby
SCHAAP137 has joined #ruby
rgtk has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 240 seconds]
roshanavand has quit [Read error: Connection reset by peer]
millerti has quit [Client Quit]
platzhirsch has joined #ruby
roshanavand has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
railsForDaiz has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
millerti has quit [Client Quit]
Guest1756 is now known as BLuEGoD
BLuEGoD is now known as Guest76621
duckpuppy has joined #ruby
nofxx has joined #ruby
millerti has joined #ruby
magic_1 has quit [Ping timeout: 240 seconds]
futilegames has quit [Quit: futilegames]
duckpuppy has quit [Ping timeout: 276 seconds]
n00bdev has joined #ruby
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Client Quit]
n00bdev has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
pawnbox_ has joined #ruby
fedexo has joined #ruby
millerti has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
KINGSABRI has quit [Remote host closed the connection]
centrx has joined #ruby
tatsuo has quit [Remote host closed the connection]
benlieb has joined #ruby
tatsuo has joined #ruby
wolffles has joined #ruby
whiteline has quit [Ping timeout: 256 seconds]
mondok has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
LoneHerm_ has joined #ruby
volty has joined #ruby
gustavohmsilva has quit [Ping timeout: 276 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
arthropododo has joined #ruby
edwinvdgraaf has joined #ruby
n00bdev has joined #ruby
ferr has joined #ruby
railsForDaiz has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
agentmeerkat has joined #ruby
askhat has quit [Read error: Connection reset by peer]
askhat has joined #ruby
sandstrom has joined #ruby
dlitvak has joined #ruby
Burgestrand has joined #ruby
Spami has joined #ruby
rkazak has joined #ruby
vikaton has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
mondok has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
askhat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eljimmy has joined #ruby
tatsuo has quit [Remote host closed the connection]
william3 has joined #ruby
millerti has quit [Client Quit]
ferr has quit [Ping timeout: 272 seconds]
william3 has quit [Ping timeout: 240 seconds]
Anderson69s has joined #ruby
baweaver has joined #ruby
rodfersou has quit [Remote host closed the connection]
agentmeerkat has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
Guest76621 is now known as BLuEGoD
BLuEGoD is now known as Guest33672
solocshaw has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
solars has joined #ruby
zacstewart has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
richardnixon has quit [Remote host closed the connection]
rbennacer has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
pawnbox_ has quit [Ping timeout: 240 seconds]
nik0 has joined #ruby
niko is now known as Guest87562
nik0 is now known as niko
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
Guest87562 has quit [Ping timeout: 600 seconds]
Burgestrand has quit [Read error: Connection reset by peer]
speakingcode has quit [Ping timeout: 252 seconds]
william3 has joined #ruby
_ht has quit [Remote host closed the connection]
<shevy>
code code code
speakingcode has joined #ruby
* kaleido
codes
j0n3 has joined #ruby
codecop has joined #ruby
<shevy>
:)
william3 has quit [Ping timeout: 264 seconds]
rgtk has joined #ruby
yfeldblum has joined #ruby
blackmesa has joined #ruby
<platzhirsch>
code code code!
yfeldblum has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
eljimmy has quit [Ping timeout: 252 seconds]
davedev2_ has joined #ruby
dlitvak_ has joined #ruby
konsolebox has quit [Quit: Leaving]
al2o3-cr has quit [Ping timeout: 256 seconds]
Youngmathimus0 has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
PaulCapestany has quit [Quit: .]
davedev24 has quit [Ping timeout: 252 seconds]
dlitvak has quit [Ping timeout: 250 seconds]
rkazak has quit [Ping timeout: 250 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
spider-mario has joined #ruby
solars has quit [Ping timeout: 250 seconds]
eljimmy has joined #ruby
<havenwood>
x77686d: A just-compiled Ruby 2.2.4 on Ubuntu: ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
h99h9h88 has quit [Remote host closed the connection]
<x77686d>
thanks!
h99h9h88 has joined #ruby
idefine has quit [Remote host closed the connection]
<havenwood>
x77686d: (Not RVM but should be the same.)
<x77686d>
understood
baweaver has quit [Remote host closed the connection]
<havenwood>
unless 32-bit of course
PaulCapestany has joined #ruby
<havenwood>
2.2.4 is always patch level 230
<havenwood>
x77686d: If we can help brighten even just the end of the story let us know!
william3 has joined #ruby
<havenwood>
If it's not already beyond that point.
h99h9h88 has quit [Ping timeout: 276 seconds]
rgtk has joined #ruby
jottr has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
askhat has quit [Read error: Connection reset by peer]
askhat has joined #ruby
einarj has joined #ruby
preyalone has joined #ruby
andrewvos has joined #ruby
Cohedrin has joined #ruby
railsForDaiz has joined #ruby
moeabdol1 has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
moeabdol has quit [Ping timeout: 256 seconds]
Ebok has joined #ruby
intrigueD has joined #ruby
rbennacer has joined #ruby
al2o3-cr has joined #ruby
sharkman has joined #ruby
the_drow has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
<sharkman>
a = { car: "red", band: "blue", fan: "purple"}, c, b = a[:car], a[:band]
<sharkman>
is there a shorter way to do the second part, like a[:car, :band]
<sharkman>
a(*car, band)
<sharkman>
something like that?
blackmesa has joined #ruby
idefine has joined #ruby
<sharkman>
actually this is the real code i am working with, it may be clearer actually, pts, fga, fta = box_score[:pts], box_score[:fga], box_score[:fta]
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
angryz has quit [Quit: Connection closed for inactivity]
dlitvak has joined #ruby
thomas1 has joined #ruby
<DEA7TH>
wolffles: it's unclear what you mean by big/small and left/right coords
thomas1 has quit [Max SendQ exceeded]
<DEA7TH>
small as in minimum numbers for x/y coordinates?
<DEA7TH>
x or y*
<wolffles>
the greater of the two pars of x,y or lesser of the 2 pairs of x,y
llua has joined #ruby
trinaldi has joined #ruby
<Mon_Ouie>
Before thinking about rectangles, try thinking about how you'd solve the 1D version of the problem (finding the intersection of two ranges of numbers)
<wolffles>
in the set of cords your given the first array is the bottom left corner, and the second array is the top right corner
askhat_ has quit [Read error: Connection reset by peer]
sandstro_ has quit [Quit: My computer has gone to sleep.]
<wolffles>
oh i see what you mean of left and right
askhat has joined #ruby
<DEA7TH>
but it's not necessarily the case that any of the rectangles will occupy a corner
<DEA7TH>
if the first rectangle is said to take the top left corner, the other rectangle might be farther to the right, but above it; or farther to the left, but below it
<DEA7TH>
unless you're flexible on which corner you're looking at - then you get a guarantee yeah
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wolffles>
yes it wouldnt return anything
<wolffles>
ohh i see what your saying
<wolffles>
okay ya cuz itll still return values
<DEA7TH>
then you'd only have right and bottom left corners
KensoDev has joined #ruby
<DEA7TH>
if you flip that with 90 degrees, you'd instead only have top left and bottom right
mgorbach has joined #ruby
<DEA7TH>
but the intention was nice
idefine has joined #ruby
millerti has joined #ruby
e has quit [Quit: gone]
blackmesa has joined #ruby
<DEA7TH>
I'm referring to the corners of the grid btw
futilegames has joined #ruby
millerti has quit [Client Quit]
futilegames has quit [Client Quit]
mfb2 has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
millerti has joined #ruby
<wolffles>
the problem just got much harder
<wolffles>
find a way to check to see if they overlap
<wolffles>
dont tell me tho
<wolffles>
:D
inkky has left #ruby ["Parted"]
the_drow has quit [Quit: This computer has gone to sleep]
sakix has joined #ruby
<DEA7TH>
starting out with overlapping lines is solid advice
Guest36209 is now known as BLuEGoD
<DEA7TH>
try with an n-dimensional figure if you're feeling up for it :P
<DEA7TH>
figures*
BLuEGoD is now known as Guest34319
duckpuppy has joined #ruby
JohnBat26 has joined #ruby
Azure has joined #ruby
gregf has joined #ruby
benlieb has quit [Quit: benlieb]
Gnut has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 248 seconds]
decoponio has quit [Quit: Leaving...]
duckpuppy has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mfb2 has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
<wolffles>
o.O
<hays>
im on a mac and want to make quick and dirty gui applicatoins. should i use tcl/tk or something else
<wolffles>
no thank you on the n-dimensional figure #DEA7TH
<DEA7TH>
it's easier than you think
becker_11 has joined #ruby
stevemackinnon has joined #ruby
<DEA7TH>
n-dimensional rectangle anyway
<wolffles>
i dont think ive gotten that far mathmatically highest math ive done is calc or pre calc and that was years ago lol
<DEA7TH>
no math prerequisites, if it works for n = 1-3 it should work for n > 3
<havenwood>
hays: In the past the best bet would have been MacRuby, which shipped with OS X. Its successor, RubyMotion, has a $199 per year license to create OS X apps (unless you're a student or otherwise eligible for free).