havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
mlehrer has joined #ruby
ecuanaso has joined #ruby
donske has quit [Quit: Textual IRC Client: www.textualapp.com]
cagomez has joined #ruby
trac3r_ has quit [Ping timeout: 276 seconds]
nogic has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
trac3r_ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.9]
enodata has joined #ruby
cagomez_ has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 240 seconds]
grymmjack has quit [Ping timeout: 255 seconds]
roshanavand has quit [Quit: roshanavand]
cagomez_ has quit [Ping timeout: 240 seconds]
drim has quit [Quit: Textual IRC Client: www.textualapp.com]
jphase has joined #ruby
bronson has joined #ruby
rivalomega has quit [Remote host closed the connection]
rivalomega has joined #ruby
roshanavand has joined #ruby
rivalomega has quit [Client Quit]
enodata has quit [Quit: enodata]
enodata has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcunit3d has joined #ruby
brent__ has joined #ruby
dcunit3d has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
impermanence has joined #ruby
xrlk has quit [Quit: HEIL HITLER]
arescorpio has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 260 seconds]
impermanence has quit [Client Quit]
wilbert has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
roshanavand has quit [Quit: roshanavand]
wilbert has quit [Ping timeout: 248 seconds]
sp4rrow_ has joined #ruby
sp4rrow has quit [Ping timeout: 255 seconds]
mlehrer has quit [Ping timeout: 240 seconds]
dstrunk has joined #ruby
ketan has joined #ruby
ornerymoose has joined #ruby
mlehrer has joined #ruby
duderonomy has joined #ruby
wnd has quit [Excess Flood]
umaaji has joined #ruby
wnd has joined #ruby
ketan has quit [Ping timeout: 255 seconds]
theunraveler has joined #ruby
ephemera__ has joined #ruby
weaksauce has quit [Ping timeout: 255 seconds]
duderonomy has quit [Ping timeout: 255 seconds]
mikeiniowa has joined #ruby
sp4rrow_ has quit [Quit: Textual]
trac3r_ has quit [Ping timeout: 240 seconds]
shaman42 has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
mim1k has joined #ruby
gusrub has quit [Remote host closed the connection]
mooser has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
mooser has quit [Ping timeout: 240 seconds]
moei has quit [Quit: Leaving...]
shaman42 has joined #ruby
gusrub has joined #ruby
arescorpio has joined #ruby
kculpis has joined #ruby
Joufflu has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
dcunit3d has joined #ruby
Guest83 has joined #ruby
dcunit3d has quit [Ping timeout: 240 seconds]
bweston92_ has quit [Quit: Connection closed for inactivity]
gizmore|2 has joined #ruby
Guest83 has quit [Client Quit]
jphase has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 260 seconds]
ornerymoose has quit [Quit: ornerymoose]
bronson has joined #ruby
br0d1n has quit [Quit: Leaving]
uZiel has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
dcunit3d has joined #ruby
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
t-recx has quit [Ping timeout: 248 seconds]
justizin has quit [Quit: Connection closed for inactivity]
d^sh_ has joined #ruby
duderonomy has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
troys is now known as troys_
hutch34 has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 240 seconds]
pecan has quit [Quit: WeeChat 1.6]
peter1 has joined #ruby
peter1 is now known as pecan
duderonomy has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
PorcoRex has joined #ruby
duderonomy has joined #ruby
gusrub has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
TunaBee has joined #ruby
theunraveler has quit []
jameser_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wilbert has joined #ruby
ecuanaso has joined #ruby
einstein9 has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
genpaku has quit [Remote host closed the connection]
genpaku has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
impermanence has joined #ruby
impermanence has quit [Client Quit]
JoshS has joined #ruby
Periapsis has joined #ruby
Periapsis has quit [Remote host closed the connection]
shaman42 has quit [Ping timeout: 255 seconds]
sylario has quit [Quit: Connection closed for inactivity]
duderonomy has joined #ruby
br|ck has joined #ruby
s1kx has joined #ruby
shaman42 has joined #ruby
bronson has quit [Remote host closed the connection]
jenrzzz has joined #ruby
mim1k has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 260 seconds]
comet23 has joined #ruby
mostlybadfly has joined #ruby
<comet23> why do i have to use a hash rocket when i am declaring a string as a key?
<comet23> why can't i use a :
<comet23> colon sorry
mim1k has quit [Ping timeout: 260 seconds]
<PorcoRex> :"something like this" is a Symbol, not a String.
<elomatreb> Because key: value always produces a symbol key, it would be confusing to have it result in something else
hutch34 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<elomatreb> >> { 1: "something" } # <- e.g. doesn't work at all
<ruby[bot]> elomatreb: # => /tmp/execpad-fe65b0e09059/source-fe65b0e09059:2: syntax error, unexpected ':', expecting => ...check link for more (https://eval.in/830549)
<PorcoRex> elomatreb, strange, I'm pretty sure it worked. Let me check.
<PorcoRex> elomatreb, no wait... What I was saying is that my_symbols = :"something like this" assigns a symbol.
quixoticelixer has joined #ruby
duderonomy has joined #ruby
<quixoticelixer> Hi
<PorcoRex> quixoticelixer, hey.
uZiel has quit [Ping timeout: 248 seconds]
<quixoticelixer> What is a good place to get an introduction fro ruby
<quixoticelixer> for someone coming from different languages
<PorcoRex> comet23, the thing is you can define Symbols that have spaces by using ":" followed by a quoted expresion, but that evaluates to a Symbol, not a String.
<comet23> PorcoRex i'm talking about "symbol_name" =>
<PorcoRex> {"this key is a string" => 123}
<comet23> {"symbol" => value} vs {"symbol": value}
<comet23> why can't i do the latter
<PorcoRex> {"this key is a symbol": 123} because it is the same as doing {:"this key is a symbol" => 123}
hutch34 has quit [Ping timeout: 246 seconds]
<PorcoRex> And :"this key is a symbol" is a Symbol, not a String.
<comet23> how is it the same?
<comet23> when one is in front and the other is in the back
<PorcoRex> comet23, it's interpreted the same way by Ruby. It's just a bit of "syntactic sugar".
<comet23> so, in other words, always use hash rockets?
<PorcoRex> comet23, always use them except when your keys are Symbols.
<elomatreb> And generally you want Symbol keys
<elomatreb> Historic background: symbol: keys are relatively new in Ruby, 1.9 IIRC
<comet23> a symbol is a named string without quotes?
Guest83 has joined #ruby
<PorcoRex> comet23, not exactly. They behave more like "named numbers". But that might only make sense to me without getting too deep into it.
<elomatreb> A symbol is a symbol, not the same as a String. The docs on the symbol class glance over their internal use and special properties
<PorcoRex> They are like labels.
<comet23> like a hash variable?
pankaj has joined #ruby
<elomatreb> quixoticelixer: Maybe https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/ has what you want
ketan has joined #ruby
<quixoticelixer> stirngs are mutable
<quixoticelixer> Why
Joufflu has quit [Ping timeout: 268 seconds]
<PorcoRex> quixoticelixer, why are they mutable?
<elomatreb> They will be frozen by default in a future update, and you can make them frozen-by-default now per file with a magic comment now
<quixoticelixer> Yeah
<nofxx> quixoticelixer, because the world is mutable, life is mutable
<quixoticelixer> oh
<comet23> strings mutate because matz is a huge fan of the teenage mutant ninja turtles
<quixoticelixer> I mean, it seems cool
<nofxx> you're a 600 billion cells mutable mammal eheh
<quixoticelixer> i'm a clojure programmer
<quixoticelixer> thats offensive
<nofxx> quixoticelixer, mutable strings or darwin? =D
<elomatreb> comet23: Incidentally, the link I gave above has a paragraph on symbols that has some value
<nofxx> quixoticelixer, "you can do this".freeze
<comet23> matz is a ninja not because he's chinese, but because he's really good at what he does
<quixoticelixer> i'm pretty sure hes japanese
<quixoticelixer> but i mean technically you would still be correct
<nofxx> quixoticelixer, and have clojure/erlang love in ruby
<comet23> no, he's from japan, but his race is chinese
cyfr0n has joined #ruby
<PorcoRex> quixoticelixer, not technically, because ninjas are still japanese.
<comet23> all japanese people are of the chinese race
<comet23> so are koreans
<quixoticelixer> i'm pretty sure chinese isn't a race
<comet23> it isn't?
<quixoticelixer> I think its a country
meshsmith has quit [Remote host closed the connection]
<comet23> whoops, i meant to say mongoloid
ketan has quit [Ping timeout: 268 seconds]
<elomatreb> Take it somewhere else or change the subject please
<comet23> what's wrong with what i said?
<nofxx> every mention of china and mongolia and my brain gets me that south park episode
amclain has quit [Quit: Leaving]
<nofxx> and I laugth again... hahah
<comet23> i don't watch south park because it's really offensive/racist
<nofxx> an offense is the ear of who listens, my granma used to say
<comet23> that triggers me
<PorcoRex> So about mutable strings...
uZiel has joined #ruby
<PorcoRex> I like them, not by default though.
<quixoticelixer> I just say it and it seems interesting
<quixoticelixer> *saw
<elomatreb> I recently put the magic comment in all the source files of a project and the tests were still passing, to my surprise
<PorcoRex> elomatreb, that the mark of a good craftman.
<PorcoRex> that's*
<elomatreb> Or the mark of someone who needlessly constructs new strings and arrays at every turn, wasting memory ;)
<PorcoRex> elomatreb, you'll make me want to reconsider doing that too. :)
cagomez has joined #ruby
<quixoticelixer> is rails still cool
<quixoticelixer> or is there something cooler now
<comet23> rails is gay
<quixoticelixer> ah
<comet23> if you want to be cool learn node
<comet23> or something
<quixoticelixer> I am
<elomatreb> comet23: Stop the trolling please
<comet23> mean stack is what all the hipsters are doing
<quixoticelixer> I am doing a js boot camp
<quixoticelixer> but
<quixoticelixer> javascript
<comet23> but if you want a framework that is mature and stable use rails
<quixoticelixer> how "big" is it
<comet23> idk, it's still used by people so i guess it's still relevant
<quixoticelixer> no doubt
<quixoticelixer> I was sort of joking about the cool hting
<quixoticelixer> but I am learnign full stack js
<elomatreb> Probably still the most used Ruby framework, although the alternatives are getting more and more popular
<quixoticelixer> and I don't really want to use express
Joufflu has joined #ruby
<quixoticelixer> express itself is fine
<comet23> javascsript is horrible
<quixoticelixer> but javascript is
<quixoticelixer> yeah
<quixoticelixer> horrible
<comet23> javascript is a language you have to master
<quixoticelixer> ruby is nice
<comet23> you have to know javascript and the popular frameworks
howdoi has joined #ruby
<comet23> react is what's in right now
gix has quit [Ping timeout: 260 seconds]
<comet23> master react after you master javascsript
<comet23> i'm learning rails because i want to make a web app that's nice to maintain, but the problem with rails i hear is that it can't take a huge number of users
cagomez has quit [Ping timeout: 260 seconds]
<quixoticelixer> but react is overkill a lot of the time
<comet23> a lot of users are fine, but when it's a boatloat you don't want to use rails
<quixoticelixer> and not serverside
<comet23> nothing is overkill if it works and you know how to use it
<comet23> i'm building a rails app with a react frontend
<comet23> it should be nice
<comet23> rails is still nice and worth learning, the more you know the better it is for you
mim1k has joined #ruby
<comet23> after that try your hands on the .net framework as a challenge
<quixoticelixer> I would like to learn f# sometime
<PorcoRex> No offense guys, but you might want to stick with whatever language and get some in depth knowledge about it. It will make transitioning to other languages easier.
gix has joined #ruby
<elomatreb> Learn Haskell, discover the sublime truths of nature through stateless functional programming
TheBloke has quit [Ping timeout: 276 seconds]
<PorcoRex> elomatreb, oh man... I've been trying Haskell (learning, not coding) and my head is about to explode. It's seriously awesome, but I don't think I'm smart enough for it.
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb> I'll have to use it for a university module next semester, I'm kinda looking forward to that
<PorcoRex> Cool.
wildtype has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<PorcoRex> Will keep on busting my head against it for awhile.
mooser has joined #ruby
pankaj has quit [Ping timeout: 276 seconds]
pankaj has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mooser has quit [Ping timeout: 240 seconds]
govg has joined #ruby
rhyselsmore has joined #ruby
reino4477 has joined #ruby
<reino4477> hey, what's the lightest background tasks processing library?
<quixoticelixer> what other cools things I can do i nruby
astrobunny has joined #ruby
wildtype has quit [Quit: (null)]
reino4477 has left #ruby [#ruby]
guardianxx has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petruff has quit [Ping timeout: 255 seconds]
Guest83 has joined #ruby
grymmjack has joined #ruby
br|ck has quit [Ping timeout: 260 seconds]
pankaj has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
enterprisey has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PorcoRex has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
mim1k has joined #ruby
comet23 has quit [Quit: Friends help you move. Real friends help you move bodies.]
Joufflu has quit [Read error: Connection reset by peer]
Joufflu has joined #ruby
quixoticelixer has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 240 seconds]
pankaj has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
tacoboy has quit [Ping timeout: 246 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sniffer has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quixoticelixer has joined #ruby
sleepee has joined #ruby
arescorpio has quit [Quit: Leaving.]
Guest83 has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrontechnosoft has joined #ruby
mim1k has joined #ruby
patrontechnosoft has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 260 seconds]
vuoto has joined #ruby
cyfr0n has quit [Quit: Bye!]
bronson has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
DoubleMalt has joined #ruby
brent__ has joined #ruby
armyriad has quit [Quit: Leaving]
dviola has quit [Quit: WeeChat 1.9]
jenrzzz has quit [Ping timeout: 260 seconds]
nofxxx has joined #ruby
quixoticelixer has quit [Ping timeout: 240 seconds]
TunaBee has quit [Ping timeout: 260 seconds]
patarr has quit [Ping timeout: 248 seconds]
quixoticelixer has joined #ruby
<quixoticelixer> why aren't numbers mutable
<quixoticelixer> 32.tens(4) => 42
brent__ has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 240 seconds]
eightlimbed has quit [Ping timeout: 248 seconds]
ascarter has joined #ruby
troys_ is now known as troys
ascarter has quit [Ping timeout: 240 seconds]
vuoto has quit [Remote host closed the connection]
dcunit3d has joined #ruby
ketan has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has joined #ruby
einstein9 has joined #ruby
dcunit3d has quit [Ping timeout: 276 seconds]
ketan has quit [Ping timeout: 258 seconds]
brent__ has quit [Remote host closed the connection]
oleo has quit [Quit: irc client terminated!]
gigetoo has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
gigetoo has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
SeepingN has joined #ruby
gothicsouth has joined #ruby
uZiel has joined #ruby
kt has quit [Ping timeout: 248 seconds]
<elomatreb> quixoticelixer: Numbers aren't mutable because they're a little special, there is only ever a single "1", a single "2", etc
baweaver has quit [Quit: Off to do something important-sounding]
kt has joined #ruby
kculpis has quit [Ping timeout: 268 seconds]
<havenwood> quixoticelixer: Note the fact that numbers are frozen also doesn't stop you from implementing methods like the Integer#tens you mention.
baweaver has joined #ruby
baweaver is now known as Guest12773
<havenwood> quixoticelixer: On Ruby 2.4 for example you could use it as an excuse to use Integer#digits to get the tens place, like:
<havenwood> class Integer; def tens n; result = digits; result[1] = n; result.join.reverse.to_i end end; 32.tens(4) #=> 42
dionysus69 has joined #ruby
<havenwood> 32.tens(4).frozen? #=> true
Bock has joined #ruby
troys has quit [Quit: Bye]
gothicsouth has quit [Max SendQ exceeded]
pankaj has quit [Ping timeout: 248 seconds]
Guest12773 has quit [Changing host]
Guest12773 has joined #ruby
mooser has joined #ruby
rhyselsmore has joined #ruby
Guest12773 is now known as lemur
gothicsouth has joined #ruby
<lemur> test
dcunit3d has joined #ruby
mooser has quit [Ping timeout: 260 seconds]
lemur is now known as baweaver
quixoticelixer has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
ornerymoose has joined #ruby
solocshaw has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stevenlebeau has joined #ruby
bronson has joined #ruby
<stevenlebeau>
gizmore|2 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
stevenlebeau has quit [Client Quit]
quixoticelixer has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
DoubleMalt has quit [Ping timeout: 248 seconds]
TunaBee has joined #ruby
pankaj has joined #ruby
quixoticelixer has quit [Remote host closed the connection]
quixoticelixer has joined #ruby
anisha has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
TunaBee has left #ruby [#ruby]
wilbert has quit [Quit: wilbert]
TunaBee has joined #ruby
solocshaw has quit [Ping timeout: 276 seconds]
quixoticelixer has quit [Ping timeout: 255 seconds]
TunaBee has quit [Quit: Lost terminal]
enterprisey has joined #ruby
TunaBee has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
mistergibson has joined #ruby
<dminuoso> Sigh..
armyriad has joined #ruby
<dminuoso> I want something with proper static type checking like C++, Rubys reflection and not miss out on templates/generics... Oh and a defined API would be cool.
<dminuoso> Y u no exist.
aupadhye has joined #ruby
ShekharReddy has joined #ruby
kculpis has joined #ruby
mistergibson has quit [Quit: Leaving]
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
conta has joined #ruby
planigan has quit [Ping timeout: 260 seconds]
planigan has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
charliesome has joined #ruby
djbkd has quit [Client Quit]
enterprisey has quit [Remote host closed the connection]
cschneid_ has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
cschneid_ has quit [Ping timeout: 276 seconds]
mooser has joined #ruby
Emmanuel_Chanel has joined #ruby
djbkd has joined #ruby
mooser has quit [Ping timeout: 276 seconds]
S1GM4 has quit [Ping timeout: 240 seconds]
xerx has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
andikr has joined #ruby
Ishido has joined #ruby
solocshaw has joined #ruby
patarr has joined #ruby
bronson has quit [Ping timeout: 247 seconds]
genpaku has quit [Ping timeout: 260 seconds]
pankaj has quit [Quit: Leaving]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
genpaku has joined #ruby
patarr has quit [Ping timeout: 248 seconds]
Mortomes|Work has joined #ruby
mim1k has joined #ruby
aufi has joined #ruby
shiranuidong has quit [Quit: Leaving]
kculpis has quit [Ping timeout: 240 seconds]
ketan has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
dcunit3d has quit [Ping timeout: 255 seconds]
uZiel has quit [Remote host closed the connection]
ketan has quit [Ping timeout: 255 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sami has left #ruby [#ruby]
duderonomy has joined #ruby
shiranuidong has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
arquebus has joined #ruby
shiranuidong has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
shiranuidong has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
haraoka has joined #ruby
<arquebus> is there a ruby on rails irc channel somewhere?
mooser has joined #ruby
guardianxx has quit [Ping timeout: 240 seconds]
<dminuoso> arquebus: ?rails
uZiel has joined #ruby
<dminuoso> ?rails arquebus
<ruby[bot]> arquebus: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
romankapitonov has joined #ruby
mooser has quit [Ping timeout: 248 seconds]
mark_66 has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
einstein9 has quit [Ping timeout: 260 seconds]
djbkd has quit []
ornerymoose has quit [Quit: ornerymoose]
bronson has joined #ruby
elsevero has joined #ruby
foxxx0 is now known as darkfoxxx0
darkfoxxx0 is now known as foxxx0
bronson has quit [Ping timeout: 246 seconds]
antgel has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
croberts-afk is now known as croberts
aagdbl has joined #ruby
ltem has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ur5us has quit [Remote host closed the connection]
sarbs has quit [Ping timeout: 276 seconds]
ascarter has quit [Ping timeout: 260 seconds]
sarbs has joined #ruby
dcunit3d has joined #ruby
dionysus69 has joined #ruby
mikecmpbll has joined #ruby
marr has joined #ruby
ccha has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
arquebus has quit [Quit: Konversation disconnected]
pwnd_nsfw has quit [Read error: Connection reset by peer]
<ccha> hello, I need help to install mysql2 gem. my server is centos7.3, i use mariadb 10.2 I installed the mysql-devel which install mariadb-devel.
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
TunaBee has quit [Ping timeout: 268 seconds]
pwnd_nsfw has joined #ruby
TunaBee has joined #ruby
sysvalve has joined #ruby
<ccha> linking shared-object mysql2/mysql2.so
<ccha> /usr/bin/ld: cannot find -lmariadb
<ccha> collect2: error: ld returned 1 exit status
TheBloke has joined #ruby
mim1k has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
pandaant has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
aagdbl has joined #ruby
quobo has joined #ruby
ferr has joined #ruby
shiranuidong has joined #ruby
uZiel has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
charliesome has joined #ruby
xerx has quit [Ping timeout: 240 seconds]
moei has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
hightower2 has joined #ruby
lxsameer has joined #ruby
bronson has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
s1kx has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
atom3_ has joined #ruby
FastJack_ has quit [Quit: leaving]
milardovich has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
atom3 has quit [Ping timeout: 260 seconds]
Beams has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
FastJack has joined #ruby
workmad3 has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
<dminuoso> ccha: Can you just gist the whole command and the entire output you got?
milardovich has quit [Ping timeout: 260 seconds]
umaaji has quit [Read error: No route to host]
ketan has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
Guest45997 has quit [Ping timeout: 240 seconds]
alamar has joined #ruby
ur5us has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
alamar is now known as Guest35423
dcunit3d has joined #ruby
einstein9 has joined #ruby
<ruby[bot]> ccha: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
romankapitonov has quit [Ping timeout: 248 seconds]
biberu has joined #ruby
<ccha> in /usr/lib64 there is no libmariadb.so
Guest35423 has quit [Ping timeout: 246 seconds]
romankapitonov has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
einstein9 has quit [Ping timeout: 248 seconds]
<dminuoso> ccha: Where/how did you install the plain mariadb package?
dcunit3d has quit [Ping timeout: 246 seconds]
<ccha> yum install mariadb-devel
<ccha> but there is a libmariadbclient.a
ur5us has joined #ruby
<dminuoso> ccha: Try creating a symlink from libmariadb.a to libmariadbclient.a
<dminuoso> ccha: If that fixes it, you might want to consider filing a bug report to the gem vendor.
alamar_ has joined #ruby
<dminuoso> (Im not sure how mariadb is structured, so its possible that this is a different library)
cyphase has quit [Ping timeout: 246 seconds]
<ccha> the gem is intalled
aagdbl has quit [Quit: This computer has gone to sleep]
<ccha> so this one should fix it ? mariadb-devel which missing the symlink ? or mysql2 gem which use -lmariadb instaed of -lmariadbclient ?
<dminuoso> ccha: Well it's not exactly a missing symlink.
shiranuidong has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
<dminuoso> ccha: It appears that your package named it slightly differently. Im not sure whether that's a defect of the package, or whether the gem should probe for the exact library name.
<darix> ccha: the symlink you look for might be called libmysqlclient.so
<darix> ccha: despite the lib being libmariadb*
<dminuoso> ccha: Im beginning to think its an issue with the package. It would appear that the library name comes from the `mysql_config` binary.
mooser has joined #ruby
<dminuoso> ccha: Can you gist the output of `mysql_config` ?
<dminuoso> ccha: in particular `mysql_config --libs_r`
rhyselsmore has joined #ruby
VoIPConference31 has joined #ruby
VoIPConference31 has left #ruby [#ruby]
<ccha> -L/usr/lib64 -lmariadb
mooser has quit [Ping timeout: 258 seconds]
<dminuoso> ccha: Yeah. It's a package issue, not a gem issue.
<ccha> ok ok
<ccha> thank you
<ccha> I have a question about bundle. it doesn't create a .bundle/config ?
mim1k has quit [Ping timeout: 246 seconds]
Serpent7776 has joined #ruby
<ccha> in fact I do bundle install from saltstack, so I need a check to run the command again or not. so if this file exists, no change
bronson has joined #ruby
<dminuoso> ccha: When bundle runs, it for configuration in the following order: application/.bundle/config, env variables, ~/.bundle/config
<dminuoso> ccha: These are files that can be used to override the behavior of bundle in a) a project-specific version, b) an environment specific fashion or c) a user specific fashion. If none are found, bundle just uses its builtin defaults.
renchan has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
<dminuoso> Think of them like a gitconfig file, or maybe kind of like your your $BASH_ENV, /etc/profile, /etc/bash.bashrc, ~/.bash_profile, ~/.bashrc
<dminuoso> They dont have to exist. But if they do, they will be used in a specific order.
<ccha> it was not in application/.bundle/config but in ~/.bundle/config
rhyselsmore has joined #ruby
<darix> ccha: it might be easier to build once on a central host and ship the output via salt.
<darix> ccha: then you also dont need all the devel packages on the remote hosts
<ccha> oh good idea
<darix> ccha: and some distros package gems. so you could use those packages too. :)
<dminuoso> ccha: If it's not there, it means the application does not ship with overrides.
<ccha> need gems for redmine
<darix> ccha: i have an rpm for redmine. :p
bronson has quit [Ping timeout: 260 seconds]
<darix> zypper in redmine :p
sniffer has joined #ruby
<darix> though i think i broke that when I updated something for discourse. lets see
<ccha> custom package?
haraoka has quit [Ping timeout: 276 seconds]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Read error: Connection reset by peer]
<darix> ccha: well i made a package for opensuse. so
<darix> not sure if that counts as custom
astrobunny has joined #ruby
<darix> oh new release too
sepp2k has joined #ruby
TomyWork has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
tvw has joined #ruby
TunaBee has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
konsolebox has joined #ruby
aagdbl has joined #ruby
<darix> *sighs* they just did a new release and still using outdated versions of libraries
romankapitonov has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
<ccha> yes new version
<ccha> centos server
<ccha> new version can use ruby 2.4
dasher00 has joined #ruby
aagdbl has quit [Quit: Leaving]
dcunit3d has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
hk238 has joined #ruby
<darix> ccha: my package is using 2.4 now and is updated to 3.4.1. but i havent tested it yet. and i have to run for lunch now
<hk238> hello, I was wondering if there is a text editor that also works as a ruby interpreter of some sort? :d
skweek has joined #ruby
<darix> hk238: use pry as your repl (look up binding.pry)
<hk238> I'll look into that ^^
romankapitonov has joined #ruby
cseder has joined #ruby
uZiel has joined #ruby
cschneid_ has joined #ruby
aagdbl[m] has joined #ruby
bigkevmcd has joined #ruby
umaaji has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
ShekharReddy has quit [Quit: Connection closed for inactivity]
icarus has joined #ruby
ShekharReddy has joined #ruby
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
sarbs has quit [Ping timeout: 240 seconds]
TunaBee has joined #ruby
sarbs has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
milardovich has joined #ruby
TunaBee has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
TunaBee has joined #ruby
patarr has joined #ruby
rhyselsmore has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 248 seconds]
sylario has joined #ruby
GodFather has joined #ruby
hightower2 has quit [Ping timeout: 255 seconds]
patarr has quit [Ping timeout: 268 seconds]
uZiel has quit [Ping timeout: 248 seconds]
ayonkhan has joined #ruby
jenrzzz has joined #ruby
dcunit3d has joined #ruby
patarr has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
dcunit3d has quit [Ping timeout: 246 seconds]
patarr has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
A-Angel has joined #ruby
<A-Angel> hello
<A-Angel> i have no idea what this means
<A-Angel> =\
<A-Angel> trying to install snorby
iomotoko has joined #ruby
nitza has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TunaBee has quit [Ping timeout: 248 seconds]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
TunaBee has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
danguita has quit [Remote host closed the connection]
bkxd_ has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
<dminuoso> I want hash destructuring!
nitza has joined #ruby
conta1 has joined #ruby
mooser has joined #ruby
Mia has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
MrBusiness has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
gix has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
mooser has quit [Ping timeout: 260 seconds]
MrBusiness has joined #ruby
gix has joined #ruby
mim1k has joined #ruby
bronson has joined #ruby
anisha has quit [Read error: Connection reset by peer]
spectrum has joined #ruby
anisha has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 255 seconds]
petruff has joined #ruby
ldnunes has joined #ruby
dasher00 has quit [Ping timeout: 255 seconds]
sleepee has quit [Quit: Leaving]
milardovich has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
<ljarvis> A-Angel: it means your Gemfile and lock are out of sync
savoir-faire has joined #ruby
Guest96564 has quit [Ping timeout: 268 seconds]
milardovich has quit [Ping timeout: 248 seconds]
* dminuoso puts ljarvis in sync with his beer dispensing head
dcunit3d has joined #ruby
minimalism has quit [Quit: minimalism]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 276 seconds]
synthroid has joined #ruby
shiranuidong has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
nitza has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oded has joined #ruby
oded has quit [Remote host closed the connection]
oded has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
Mia has quit [Ping timeout: 240 seconds]
belmoussaoui__ has joined #ruby
belmoussaoui__ has quit [Read error: Connection reset by peer]
belmoussaoui__ has joined #ruby
ketan has quit [Remote host closed the connection]
ketan has joined #ruby
umaaji has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
shinnya has joined #ruby
petruff has quit [Quit: WeeChat 1.9]
ascarter has joined #ruby
spectrum has quit [Ping timeout: 255 seconds]
ben_ has joined #ruby
ben_ is now known as Guest12865
splitshot has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
tvw has quit [Ping timeout: 268 seconds]
Guest12865 has quit [Ping timeout: 255 seconds]
petruff has joined #ruby
tvw has joined #ruby
icarus has quit [Ping timeout: 248 seconds]
misery_ has joined #ruby
lacuna has joined #ruby
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
forgot has quit [Ping timeout: 258 seconds]
forgot has joined #ruby
belmoussaoui__ has quit [Ping timeout: 255 seconds]
ornerymoose has joined #ruby
mim1k has joined #ruby
ornerymoose_ has joined #ruby
dangerousdave has quit [Ping timeout: 268 seconds]
ornerymoose has quit [Ping timeout: 240 seconds]
ornerymoose_ is now known as ornerymoose
Puffball_ has quit [Quit: No Ping reply in 180 seconds.]
Guest83 has joined #ruby
Puffball has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
Guest83 has quit [Client Quit]
dcunit3d has joined #ruby
jenrzzz has joined #ruby
Winter_Foxo has joined #ruby
<Winter_Foxo> Hi
ketan has quit [Remote host closed the connection]
Paraxial has quit [Ping timeout: 268 seconds]
ketan has joined #ruby
<Winter_Foxo> If I want to add something like "string".rot13 would I do this by creating a file containing String.class_eval?
oded has quit [Quit: Konversation terminated!]
ben_ has joined #ruby
ben_ is now known as Guest20574
enodata has quit [Quit: enodata]
jenrzzz has quit [Ping timeout: 268 seconds]
<dminuoso> Winter_Foxo: No.
dcunit3d has quit [Ping timeout: 260 seconds]
<dminuoso> Winter_Foxo: You can re-open classes by adding another `class String; ...; end` (or any other class for that matter)
<Winter_Foxo> And that doesn't overwrite it and remove everything that was there?
<dminuoso> Winter_Foxo: The best style however is to put it inside a module, and then include it into String or use a refinement.
<dminuoso> Winter_Foxo: Correct.
<Winter_Foxo> What is class_eval for then?
Guest20574 has quit [Remote host closed the connection]
<Winter_Foxo> That is what I have been using to add methods to rails models in gems that I cant edit directly
<dminuoso> Winter_Foxo: instance_eval and class_eval set a) the default receiver (self), b) the default definee and c) the context for instance/class variables.
<dminuoso> Winter_Foxo: It's mostly useful for some forms of metaprogramming.
GodFather has joined #ruby
enodata has joined #ruby
<dminuoso> Winter_Foxo: So technically String.class_eval actually evalualtes within the context of String.class, which is Class.
<dminuoso> `class String; ...; end` is roughly equivalent to: `String ||= Class.new; String.instance_eval { ... }`
<Winter_Foxo> Thats probably enough knowledge to get me going. Thanks for the help
sgen has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Paraxial has joined #ruby
charliesome has joined #ruby
Ishido has quit [Ping timeout: 255 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Ishido has joined #ruby
mooser has joined #ruby
savoir-faire is now known as definitely-not-f
bkxd_ has quit [Ping timeout: 255 seconds]
definitely-not-f is now known as not-french
uZiel has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 255 seconds]
hk238 has quit [Remote host closed the connection]
not-french is now known as not-baguette-peo
jphase has joined #ruby
mooser has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
CVTJNII has joined #ruby
psychicist__ has joined #ruby
lacuna has quit [Read error: Connection reset by peer]
jameser has joined #ruby
milardovich has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
tvon has joined #ruby
Guest83 has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
pandaant has quit [Quit: Lost terminal]
bronson has quit [Ping timeout: 268 seconds]
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
ledestin has joined #ruby
choke has joined #ruby
cdg has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Read error: Connection reset by peer]
ledestin has quit [Ping timeout: 268 seconds]
Winter_Foxo has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Ping timeout: 260 seconds]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
dcunit3d has joined #ruby
<Bish> okay hello rubyist
jenrzzz has joined #ruby
<Bish> i want something like a cronjob in ruby, BUT things can take some time
<Bish> and i want for every user in my database do something every x seconds
<Bish> but if the process takes 5 seconds
<Bish> i want to wait x+5 seconds
<Bish> for the next time to do it
<Bish> what can i do.
mim1k has joined #ruby
A-Angel has left #ruby [#ruby]
<Bish> tl;dr version do something for a set of things every 5 minutes, if the process takes 1 minut each, wait 6 minutes til next execution
ben_ has joined #ruby
milardovich has joined #ruby
gizmore has joined #ruby
griffindy has joined #ruby
ben_ is now known as Guest52298
shiranuidong has joined #ruby
shiranuidong has quit [Max SendQ exceeded]
<Bish> and there might be thousands of those, so each thread doing his thing is not an option, i guess
dcunit3d has quit [Ping timeout: 260 seconds]
carmack has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<carmack> Hello! I'm use Ruby on Rails. How to enable web server and bot? I mean when start cinch, web server doens't render html.
<carmack> What i do wrong?
<carmack> Sorry for bad english.
Winter_Foxo has joined #ruby
<Bish> carmack: #rails
<Bish> or #ror, whatever it is
<Bish> #rubyonrails, some of those
djbkd has joined #ruby
<carmack> thx, cya
carmack has left #ruby [#ruby]
<Bish> l8errrr
<Bish> tf is cinch and bot
<surrounder> cinch is an ircbot framework
Guest83 has joined #ruby
<Bish> why would people connect that with rails?
<Bish> especially if they dont know how to hello world yet
<surrounder> no idea
<Bish> what are you surrounder
<Bish> sourrounding*
* Bish can't type.
enodata has quit [Quit: enodata]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has quit [Ping timeout: 260 seconds]
Tempesta has quit [Ping timeout: 260 seconds]
kassav_ has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
enodata has joined #ruby
djbkd has quit [Remote host closed the connection]
anisha has joined #ruby
AgentVenom has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
cpruitt has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
mooser has joined #ruby
bkxd_ has quit [Ping timeout: 268 seconds]
mikecmpb_ has joined #ruby
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 268 seconds]
mooser has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
ShekharReddy has quit []
elsevero_ has joined #ruby
elsevero has quit [Ping timeout: 240 seconds]
elsevero_ is now known as elsevero
patarr has joined #ruby
chouhoulis has joined #ruby
Guest83 has joined #ruby
rivalomega has joined #ruby
Guest83 has quit [Client Quit]
uZiel has joined #ruby
Guest83 has joined #ruby
Guest83 has quit [Client Quit]
oleo has joined #ruby
kculpis has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
choke has joined #ruby
rippa has joined #ruby
misery_ has quit [Ping timeout: 246 seconds]
<manveru> Bish: there's sidekiq i guess
<manveru> it doesn't do the cron part though, if you want to replace cron you can take a look at recurrent
choke has quit [Ping timeout: 240 seconds]
Serpent7776 has quit [Quit: Leaving]
<dminuoso> Can we stop sending such people to the rails channel?
<dminuoso> We are trying to elevate the general competency of the channel. :D
Winter_Foxo has quit [Ping timeout: 258 seconds]
t-recx has joined #ruby
ferr has quit [Quit: WeeChat 1.9]
mikecmpb_ has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
<Bish> dminuoso: i normally dont do that, but i felt like none wants to answer that question
<Bish> so i rather let it be #rails problem because i odnt like rails :>
millerti has joined #ruby
<dminuoso> Bish: The sad thing is I cant send them back, because Im in both channels..
<Bish> poor you
<dminuoso> Maybe Ill just send them off to ##c to see them hanged.
<Bish> or #haskell, that'll teach them to not program at all
conta has quit [Quit: conta]
conta1 is now known as conta
aufi has quit [Ping timeout: 246 seconds]
conta1 has joined #ruby
dcunit3d has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Guest52298 has quit [Remote host closed the connection]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
not-baguette-peo is now known as savoir-faire
conta1 has quit [Ping timeout: 260 seconds]
perniciouscaffei has joined #ruby
dcunit3d has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
mooser has joined #ruby
cseder has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
<dminuoso> Until I understand what a monad is, I fear them too much.
<dminuoso> So that is not an option either.
belmoussaoui__ has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
ben_ has joined #ruby
ben_ is now known as Guest43240
Guest83 has joined #ruby
cagomez has joined #ruby
tau has joined #ruby
tau has left #ruby [#ruby]
rivalome_ has joined #ruby
<Bish> i feel the same way
<Bish> trying to teach myself cattheory for like 5 weeks
tvw has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 255 seconds]
Guest83 has quit [Client Quit]
Guest43240 has quit [Remote host closed the connection]
rivalomega has quit [Ping timeout: 258 seconds]
Tempesta has joined #ruby
Puffball has quit [Quit: No Ping reply in 180 seconds.]
johnny56 has quit [Ping timeout: 264 seconds]
Puffball has joined #ruby
newalexandria has joined #ruby
Rapture has joined #ruby
newalexandria has left #ruby [#ruby]
mooser has quit [Remote host closed the connection]
johnny56 has joined #ruby
<Rapture> I'm a little confused how to add an OR statement to this -> not_if { ::File.directory?('/foo') } -- I just need to check for two directions /foo and /bar
cschneid_ has joined #ruby
cschneid_ has quit [Client Quit]
mooser has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nadir has joined #ruby
tvon has quit [Remote host closed the connection]
<ljarvis> Rapture: are you refering to chef or something? where does `not_if` come from?
<Rapture> ljarvis: yeah this is in Chef
ascarter has joined #ruby
<ljarvis> not_if { x || y } I think would be fine
tvon has joined #ruby
<Rapture> ahh yeah, I knew it was || but I kept messing up the location of it
<ljarvis> you say "check for two directories, /foo and /bar" do you mean "/foo OR /bar"? :)
<Rapture> after typing it out I changed it to && :)
<ljarvis> right :)
<Rapture> thanks!
ascarter has quit [Ping timeout: 240 seconds]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
enterprisey has joined #ruby
mooser has quit [Remote host closed the connection]
ltem has quit [Quit: Leaving]
rivalome_ has quit [Remote host closed the connection]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
cyfr0n has joined #ruby
Guest83 has joined #ruby
mooser has joined #ruby
<dminuoso> not_if ?
<dminuoso> o_o
rivalomega has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
Guest83 has quit [Client Quit]
bronson has joined #ruby
Emmanuel_Chanel has quit [Read error: No route to host]
vladline has joined #ruby
rivalomega has quit [Remote host closed the connection]
rivalomega has joined #ruby
Emmanuel_Chanel has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
kassav_ has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
tvw has joined #ruby
mim1k has joined #ruby
mooser has quit [Remote host closed the connection]
kassav_ has joined #ruby
tvon has quit [Remote host closed the connection]
rivalomega has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 240 seconds]
rivalomega has joined #ruby
patarr_ has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
audy has left #ruby ["Textual IRC Client: www.textualapp.com"]
mim1k has quit [Ping timeout: 276 seconds]
cseder has joined #ruby
amclain has joined #ruby
pb122 has quit [Ping timeout: 248 seconds]
patarr has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
Guest83 has joined #ruby
sysvalve has quit [Quit: Leaving]
dcunit3d has joined #ruby
BSaboia has joined #ruby
Guest83 has quit [Client Quit]
Guest83 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Guest83 has quit [Client Quit]
marxarelli|afk is now known as marxarelli
dcunit3d has quit [Ping timeout: 240 seconds]
nopolitica has joined #ruby
mim1k has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
tacoboy has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
nopolitica has quit [Client Quit]
tacoboy has quit [Client Quit]
hahuang65 has quit [Ping timeout: 240 seconds]
pb122 has joined #ruby
nopolitica has joined #ruby
tacoboy has joined #ruby
johnny56_ has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
vladline has quit []
bkxd_ has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
kassav__ has joined #ruby
<ljarvis> aye
johnny56 has quit [Ping timeout: 264 seconds]
dviola has joined #ruby
pb122-two has joined #ruby
xco has joined #ruby
<xco> is there another way to assign all these variable on a single line? https://gist.github.com/siaw23/1afefb6894951122643b1ba68b0124c2
optikalmouse has joined #ruby
Ishido has quit [Ping timeout: 248 seconds]
<optikalmouse> how do I check if an object is a Class?
aphprentice has joined #ruby
kassav_ has quit [Ping timeout: 240 seconds]
<optikalmouse> not an instance but an actual Class?
<ljarvis> optikalmouse: object.is_a?(Class)
<al2o3-cr> xco: a = b = c = nil
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
<ljarvis> optikalmouse: classes are instances of Class
<xco> al2o3-cr: ;)
quobo has quit [Quit: Connection closed for inactivity]
<ljarvis> >> Object.is_a?(Class)
<ruby[bot]> ljarvis: # => true (https://eval.in/831003)
<optikalmouse> ah damn, nice thanks ljarvis !
gusrub has joined #ruby
pb122 has quit [Ping timeout: 260 seconds]
<ljarvis> xco: al2o3-cr's suggestion is the nicest way, but why?
kassav_ has joined #ruby
<xco> ljarvis: save lines :P
<ljarvis> lines are cheap
<ljarvis> and good :)
<xco> not to me
djbjd has joined #ruby
Ishido has joined #ruby
shinnya has quit [Quit: ZNC - http://znc.in]
username has joined #ruby
optikalmouse has quit [Quit: optikalmouse]
Pinocho88 has joined #ruby
mim1k has joined #ruby
kassav__ has quit [Ping timeout: 255 seconds]
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
shinnya has joined #ruby
borodin has joined #ruby
kassav_ has quit [Quit: kassav_]
mikecmpbll has quit [Quit: inabit. zz.]
GodFather has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 246 seconds]
mooser has quit [Remote host closed the connection]
mtkd has joined #ruby
djbjd has quit [Quit: djbjd]
bikefighter has joined #ruby
nowhere_man has joined #ruby
vladline has joined #ruby
xzhao has quit [Remote host closed the connection]
<vladline> join #ruby
adavia has joined #ruby
vladline has quit [Client Quit]
typeVoid has quit [Remote host closed the connection]
Guest83 has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
einstein9 has joined #ruby
stryek_ has joined #ruby
mim1k has joined #ruby
bikefighter has quit [Quit: Updating details, brb]
vuoto has joined #ruby
typeVoid has joined #ruby
bikefighter has joined #ruby
kies has joined #ruby
typeVoid has quit [Remote host closed the connection]
typeVoid has joined #ruby
cseder has joined #ruby
stryek has quit [Ping timeout: 260 seconds]
centrx has quit [Remote host closed the connection]
mooser has joined #ruby
typeVoid has quit [Remote host closed the connection]
mooser has quit [Client Quit]
typeVoid has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
vuoto has quit [Remote host closed the connection]
Beams has quit [Quit: .]
centrx has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
andikr has quit [Remote host closed the connection]
al2o3-cr has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
typeVoid has quit [Remote host closed the connection]
Guest83 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
typeVoid has joined #ruby
typeVoid has quit [Remote host closed the connection]
typeVoid has joined #ruby
typeVoid has quit [Remote host closed the connection]
typeVoid has joined #ruby
ben_ has joined #ruby
ben_ is now known as Guest77277
typeVoid has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 268 seconds]
Guest77277 has quit [Remote host closed the connection]
roshanavand has quit [Quit: roshanavand]
cdg has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
VeryBewitching has joined #ruby
kies has quit [Read error: Connection reset by peer]
anisha has quit [Quit: This computer has gone to sleep]
shinnya has quit [Ping timeout: 255 seconds]
dcunit3d has joined #ruby
bkxd has joined #ruby
amclain has quit [Quit: Leaving]
dionysus69 has joined #ruby
sekmo has joined #ruby
dionysus69 has quit [Client Quit]
mostlybadfly has joined #ruby
snapcase has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
xco has quit [Quit: xco]
amclain has joined #ruby
knight33 has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
renchan has quit [Quit: Leaving...]
enterprisey has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
cyphase has joined #ruby
gusrub has quit [Remote host closed the connection]
gix has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 255 seconds]
centrx has quit []
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
TomyWork has quit [Ping timeout: 240 seconds]
bpmedley has quit [Ping timeout: 240 seconds]
alex`` has quit [Quit: WeeChat 1.9]
herbmillerjr has joined #ruby
gix has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #ruby
Joufflu has quit [Ping timeout: 248 seconds]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
herbmillerjr has quit [Ping timeout: 248 seconds]
dcunit3d has joined #ruby
<dminuoso> So.. it just occured to me that Ruby's inheritance mechanism is surprisingly similar to JavaScripts prototypial inheritance...
ketan has quit [Remote host closed the connection]
ketan has joined #ruby
<dminuoso> This is scary somehow.
cyphase has quit [Ping timeout: 260 seconds]
romankapitonov has quit [Ping timeout: 255 seconds]
mark_66 has quit [Remote host closed the connection]
<havenwood> dminuoso: checked out the ES2017 spec?
chouhoulis has quit [Remote host closed the connection]
herbmillerjr has joined #ruby
<havenwood> Object.getOwnPropertyDescriptors()
enterprisey has joined #ruby
ketan has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
DoubleMalt has joined #ruby
<dminuoso> havenwood: fancy
mim1k has joined #ruby
<dminuoso> havenwood: But yeah, basically waiting for async functions.
<dminuoso> The other features are not that interesting to me.
cyphase has joined #ruby
centrx has quit []
cseder has joined #ruby
davidmichaelkarr has joined #ruby
gusrub has joined #ruby
jackjackdripper has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
gusrub has quit [Client Quit]
hahuang65 has joined #ruby
herbmillerjr has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
<havenwood> leftPad, heh
yehowyada has joined #ruby
optikalmouse has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
herbmillerjr has joined #ruby
bronson has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
herbmillerjr has quit [Ping timeout: 248 seconds]
gusrub has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 260 seconds]
sekmo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has joined #ruby
mim1k has joined #ruby
sekmo has joined #ruby
gizmore has quit [Client Quit]
sekmo has quit [Client Quit]
einstein9 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 246 seconds]
br|ck has joined #ruby
gizmore has joined #ruby
ben_ has joined #ruby
gusrub has joined #ruby
ben_ is now known as Guest12087
bkxd has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
perniciouscaffei has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
andrzejku has joined #ruby
abhi56rai has joined #ruby
abhi56rai has quit [Client Quit]
ayonkhan has joined #ruby
Guest12087 has quit [Remote host closed the connection]
snapcase has joined #ruby
dcunit3d has quit [Ping timeout: 276 seconds]
cjk101010 has quit [Quit: ZNC - http://znc.sourceforge.net]
skweek has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
br0d1n has joined #ruby
xco has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
einstein9 has joined #ruby
TomyLobo has joined #ruby
MrBusiness has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
belmoussaoui__ has quit [Ping timeout: 255 seconds]
belmoussaoui has joined #ruby
ltem has joined #ruby
jschoolcraft has joined #ruby
gix has quit [Ping timeout: 248 seconds]
anisha has joined #ruby
Bock has quit [Ping timeout: 255 seconds]
gix has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
mim1k has joined #ruby
bronson has joined #ruby
tvon has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sekmo has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Ping timeout: 240 seconds]
noe_ has joined #ruby
im0nde has joined #ruby
brent__ has quit [Remote host closed the connection]
noe_ has quit [Client Quit]
stryek has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
universal has joined #ruby
rideh has quit [Ping timeout: 255 seconds]
noe_ has joined #ruby
radic_ has joined #ruby
stryek_ has quit [Ping timeout: 260 seconds]
Pinocho88 has quit [Quit: Leaving]
universa1 has quit [Ping timeout: 246 seconds]
radic has quit [Ping timeout: 246 seconds]
Dry_Lips has quit [Ping timeout: 246 seconds]
varesa has quit [Ping timeout: 246 seconds]
sagax has joined #ruby
rideh has joined #ruby
cseder has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
jenrzzz has quit [Ping timeout: 248 seconds]
dennisvennink has joined #ruby
Cohedrin_ has joined #ruby
Cohedrin_ has quit [Client Quit]
cseder has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
gusrub has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
agent_white has joined #ruby
cseder has joined #ruby
tvw has quit [Remote host closed the connection]
bkxd has joined #ruby
pwillard is now known as pwizard
DeeJayh_ has joined #ruby
DeeJayh__ has joined #ruby
varesa has joined #ruby
sekmo has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 240 seconds]
DeeJayh has quit [Ping timeout: 268 seconds]
DeeJayh_ has quit [Ping timeout: 248 seconds]
sekmo has joined #ruby
enterprisey has quit [Ping timeout: 276 seconds]
petruff has quit [Ping timeout: 240 seconds]
einstein9 has quit [Ping timeout: 248 seconds]
JoshS has quit [Ping timeout: 260 seconds]
<jaegerca> What do people use to post code these days?
Axy has joined #ruby
gusrub has joined #ruby
knight33 has joined #ruby
knight33 has quit [Client Quit]
<elomatreb> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
elsevero has quit [Quit: elsevero]
sekmo has quit [Ping timeout: 246 seconds]
stryek has quit [Ping timeout: 260 seconds]
hurricanehrndz has quit [Quit: Goodbye]
knight33 has joined #ruby
stryek has joined #ruby
gr33n7007h is now known as al2o3-cr
<al2o3-cr> omg. i read that as "why do people use postcodes these days" lol
<al2o3-cr> i've cracked up now haha
<jaegerca> al2o3-cr: That's what google thought I was asking too.
<al2o3-cr> :D
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wilbert has joined #ruby
dcunit3d has joined #ruby
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xerx has joined #ruby
hurricanehrndz has joined #ruby
millerti has joined #ruby
Mon_Ouie has quit [Ping timeout: 258 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
tvon has left #ruby [#ruby]
<jackjackdripper> I'm having syntax issues https://gist.github.com/anonymous/56108040f10248a6ce69dba6fe6cb407 I'm trying to pass an iteration of values to a find on an array of hashes can't seem to pass the value
<jackjackdripper> please help
cagomez has quit [Ping timeout: 255 seconds]
ketan has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
<jaegerca> jackjackdripper: One of your pipes looks weird
<jaegerca> |h|
<jaegerca> might be my monitor
<jaegerca> I can't see anything else
<jaegerca> I think the pipe to the right of h isn't a pipe
ketan has quit [Ping timeout: 248 seconds]
TunaBee has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
xco has quit [Quit: xco]
<jackjackdripper> it is a pipe I manually retyped. "#{list}" value seems not passed in to the query
DoubleMalt has joined #ruby
cadillac_ has joined #ruby
<jackjackdripper> from the list I know one of them exists but I just get Not found on all
<splitshot> results is an array of hashes?
<jackjackdripper> yes
<jackjackdripper> essentially a mysql row
<splitshot> Does each hash actually have a key named 'key'?
cjk101010 has joined #ruby
<jackjackdripper> yes
TunaBee has joined #ruby
<splitshot> And are the hash's keys *strings* or *symbols*
<jackjackdripper> strings
username has quit [Ping timeout: 246 seconds]
<splitshot> No idea why it's not working for you, but I'd consider rewriting this code anyway.
GodFather has quit [Ping timeout: 246 seconds]
<jackjackdripper> thanks I'll re do the search
vuoto has joined #ruby
<splitshot> What I would personally do is load the list file, and then use that in the sql query
<splitshot> Sql happens to be good at that shit.
mim1k has joined #ruby
dcunit3d has quit [Ping timeout: 246 seconds]
Rapture has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
kies has joined #ruby
<agent_white> Afternoon folks
vuoto has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
icarus has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
Rapture has joined #ruby
icarus has quit [Ping timeout: 246 seconds]
dcunit3d has joined #ruby
lxsameer has joined #ruby
mim1k has joined #ruby
DoubleMalt has joined #ruby
<Majost> Is there a way to add a method from a different class into my own class, without extending the original?
mim1k has quit [Ping timeout: 248 seconds]
fmauricios has joined #ruby
jenrzzz has joined #ruby
ledestin has joined #ruby
alaing has joined #ruby
<alaing> hi, is there a way to search a ruby hash for a particular set of keys to get there values?
mostlybadfly has quit [Quit: Connection closed for inactivity]
<alaing> for example i'm using google maps api, httparty to query it. It returns a json object and so far I've got this but i still have so many more levels to drill down into
<alaing> @google_data.directions.parsed_response["routes"].first["legs"].first["distance"]
VeryBewitching has quit [Quit: Konversation terminated!]
<Majost> @alaing There is, but depending on what you want back exactly the implementation may vary.
dcunit3d has quit [Ping timeout: 260 seconds]
<Majost> and the structure of the hash itself too
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<alaing> the hash has a load of various bits of data. I found this https://stackoverflow.com/questions/28266514/httparty-google-maps-directions-between-origin-and-destination and based my code off of it
<Majost> @alaing do you have a sample hash which you can gist or something and the ke from which you are looking to extract data if present
BSaboia has quit [Ping timeout: 248 seconds]
minimalism has joined #ruby
<alaing> i'm trying to get the total, distance, duration and the steps but actually having a look through that object it looks like i just need to stop at "..first["legs"]" to get the details i need
<alaing> is there a better way?
jtd has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<alaing> it seems like its quiet dependant on the json structure
vuoto has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
username has joined #ruby
anisha has joined #ruby
anisha has quit [Remote host closed the connection]
gothicsouth has joined #ruby
<Majost> it very much is
millerti has joined #ruby
<Majost> `data['routes'].first['legs'][0]['distance']['text']` will get you the first one
cagomez has joined #ruby
<Majost> if you want all of the routes, something like `data['routes'].each {|route| route['legs'][0]['distance']['text']` will do it
<alaing> i've got a couple of StoreLocations Model and i'm hoping to use the distance to work out the closest branch to a customer
<elomatreb> Check out Hash/Array#dig to avoid having completeley useless "undefined method [] for nil" errors btw
<alaing> should I have a method in the model that returns the data
solocshaw has joined #ruby
mikecmpbll has joined #ruby
<alaing> or is there a better way? each record would need to queried against the google maps data
<Majost> elomatreb: Ah, that's a good tip! =)
<alaing> thanks elomatreb i'll check it out
<alaing> example, branch a, branch b, branch c......work through each branch and check the distance between the customers location and the branch
eckhardt has joined #ruby
<alaing> i I'm using geocode for part of it
<alaing> geocode gem
millerti has quit [Ping timeout: 240 seconds]
eckhardt has quit [Client Quit]
eckhardt has joined #ruby
mim1k has joined #ruby
<jaegerca> So I used to think the best way to validate user input was active record model validations, but that doesn't seem to be that case with integer sizes anymore. What's the best way to make sure your users aren't sending larger values than the db can handle now?
rhyselsmore has joined #ruby
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
fmauricios has quit [Quit: leaving]
weaksauce has joined #ruby
tvw has joined #ruby
dcunit3d has joined #ruby
rhyselsmore has quit [Client Quit]
mim1k has quit [Ping timeout: 268 seconds]
optikalmouse has quit [Quit: optikalmouse]
moei has quit [Quit: Leaving...]
alaing has quit [Remote host closed the connection]
noe_ has quit [Remote host closed the connection]
noe_ has joined #ruby
gusrub has quit [Remote host closed the connection]
adavia has quit [Remote host closed the connection]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has quit []
gusrub has joined #ruby
synthroid has quit []
vuoto has quit [Quit: Lost terminal]
workmad3 has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
gj has joined #ruby
GodFather has joined #ruby
ur5us has joined #ruby
grymmjack has quit [Ping timeout: 248 seconds]
gj is now known as grymmjack
ayonkhan_ has joined #ruby
DeeJayh_ has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weaksauce has quit [Ping timeout: 260 seconds]
ayonkhan has quit [Ping timeout: 260 seconds]
DeeJayh__ has quit [Ping timeout: 248 seconds]
eightlimbed has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
knight33 has joined #ruby
dcunit3d has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
sekmo has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
noe_ has left #ruby [#ruby]
noe_ has joined #ruby
noe_ has quit [Read error: Connection reset by peer]
noe_ has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leah2_ has joined #ruby
ldnunes has quit [Quit: Leaving]
leah2 has quit [Ping timeout: 255 seconds]
leah2_ has quit [Client Quit]
ayonkhan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
enterprisey has joined #ruby
petruff has joined #ruby
dcunit3d has joined #ruby
CoreyW has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
SeepingN has joined #ruby
<CoreyW> where in a linux machine is good place to write a ruby gem to be required by other ruby files?
<CoreyW> my home directory perhaps. but not sure how i can require it since it would not be publicly available
Dimik has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
splitshot is now known as Cl0udN9ne
ketan has joined #ruby
Cl0udN9ne is now known as splitsh0t
romankapitonov has joined #ruby
alex`` has quit [Ping timeout: 258 seconds]
ketan has quit [Ping timeout: 240 seconds]
ornerymoose has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 260 seconds]
justbleed has joined #ruby
<darix> CoreyW: build a gem and install it
<darix> it will be in the right path
Cohedrin_ has quit [Read error: Connection reset by peer]
<darix> (which you can see with "gem env")
<CoreyW> darix: build it where?
<darix> "gem build"
<CoreyW> and then require it how?
<darix> CoreyW: require 'yourgemname'
Cohedrin_ has joined #ruby
<CoreyW> darix: yes, but that includes publishing to rubygems.org
<CoreyW> i dont want to do that
<darix> CoreyW: gem install yourgemname-0.0.1.gem
<darix> also works
JoshS has joined #ruby
mim1k has joined #ruby
<CoreyW> darix: how does gem know what 'yourgemname' is if its not published in the registry?
rhyselsmore has joined #ruby
romankapitonov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<darix> filename
roshanavand has joined #ruby
gix has quit [Ping timeout: 255 seconds]
<CoreyW> darix: exactly. so if i have a ruby file located somewhere else on file system, do i need to give a full path or something when installing or requiring?
<darix> CoreyW: you asked for installing a gem. that would be the way
<CoreyW> and i would like to be able to develop and change the code without having to uninstall/install the gem over and over again for many projects
<elomatreb> Alternatively if you're using bundler in the project where you want to use the local gem you can tell it to use it from a path, without having to package and install it (but you still need a gemspec file)
<darix> CoreyW: hmm
<darix> require_relative
wilbert has quit [Ping timeout: 240 seconds]
<darix> and put it into a sub dir of your project
<CoreyW> darix: it needs to be global, bc many of our projects will use it.
<elomatreb> Then you should definitely package it as a gem. You don't need to push it to a host to install
<darix> and you can run a local gem server too
<darix> later
<CoreyW> elomatreb: what do you mean package it as a gem?
<CoreyW> as opposed to what i mean?
<elomatreb> A gem is just a zip (I think) of a directory containing ruby code and a .gemspec file describing the gem
mim1k has quit [Ping timeout: 268 seconds]
<darix> CoreyW: or you need to fiddle with $LOAD_PATH
<darix> or use the old style ruby paths to install your stuff
gix has joined #ruby
<darix> (site-ruby comes to mind)
TomyLobo has quit [Ping timeout: 240 seconds]
<darix> but ~ugly~
<CoreyW> okay.. situation is we deploy sites with Mina (like Rake and Capistrano mixed). all our sites use a deploy.rb in their project directory to setup vars and methods to deploy the site... i need to add some functionality shared across all the sites. so i assume that would be a gem that each deploy.rb could require
agent_white has quit [Quit: brb]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ecuanaso has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
tvw has quit []
<darix> CoreyW: the Gemfile of your app probably
<darix> but yes
TomyLobo has joined #ruby
<darix> and run your own gem server
<CoreyW> so i def would need to run a gem server just for one stinking gem
<CoreyW> ?
<darix> you can also copy it over manually
<darix> as mentioned before
agent_white has joined #ruby
<CoreyW> what about symlinks?
<CoreyW> could that work somehow?
<CoreyW> right now our only gem we need for the project is Mina, so we're just doing `gem install mina` and requiring it our deploy.rb, no gemspec file needed
gusrub has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
<darix> you can also use git submodules to pull the code
<darix> *shrug*
gusrub has joined #ruby
mim1k has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
splitsh0t has quit [Quit: Leaving]
hahuang65 has joined #ruby
mtkd has joined #ruby
CoreyW has quit [Quit: Page closed]
enterprisey has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 260 seconds]
noe_ has quit [Quit: noe_]
br|ck has quit [Ping timeout: 240 seconds]
jschoolcraft has quit [Quit: peace]
perniciouscaffei has joined #ruby
sekmo has quit [Quit: Textual IRC Client: www.textualapp.com]
JoshS has quit [Ping timeout: 255 seconds]
misery_ has joined #ruby
moei has joined #ruby
petruff has quit [Ping timeout: 255 seconds]
nitza has joined #ruby
lxsameer has quit [Quit: WeeChat 1.9]
gnufied has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
polishdub has quit [Quit: Leaving]
im0nde has quit [Quit: im0nde]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 240 seconds]
gothicsouth has quit [Ping timeout: 255 seconds]
gothicso_ has joined #ruby
gnufied has joined #ruby
im0nde has joined #ruby
ltem has quit [Quit: Leaving]
aphprentice has quit [Quit: Connection closed for inactivity]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
mathys has joined #ruby
jnollette has quit [Ping timeout: 276 seconds]
mathys has quit [Remote host closed the connection]
mim1k has joined #ruby
DoubleMalt has quit [Ping timeout: 255 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
AX3L has joined #ruby
cdg_ has joined #ruby
Cohedrin_ has joined #ruby
gothicsouth has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
gothicso_ has quit [Ping timeout: 240 seconds]
enodata has quit [Quit: enodata]
cdg has quit [Ping timeout: 255 seconds]
bpmedley has joined #ruby
petruff has joined #ruby
enodata has joined #ruby
ecuanaso has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Cohedrin_ has joined #ruby
jnollette has joined #ruby
Ishido has quit [Ping timeout: 255 seconds]
ornerymoose has joined #ruby
patarr_ has quit [Ping timeout: 276 seconds]
Ishido has joined #ruby
roshanavand has joined #ruby
chouhoulis has joined #ruby
icarus has joined #ruby
rivalome_ has joined #ruby
rivalomega has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perniciouscaffei has joined #ruby
brent__ has joined #ruby
ecuanaso has joined #ruby
sgen has quit [Quit: Leaving]
eightlimbed has quit [Quit: Ex-Chat]
eightlimbed has joined #ruby
eckhardt has joined #ruby
cdg_ has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 248 seconds]
nadir has quit [Quit: Connection closed for inactivity]
einstein9 has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
einstein9 has quit [Ping timeout: 260 seconds]
psychicist__ has quit [Ping timeout: 276 seconds]
ecuanaso has joined #ruby
boombox_ has joined #ruby
boombox_ has quit [Client Quit]
boombox_ has joined #ruby
boombox_ has quit [Remote host closed the connection]
biberu has quit []
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
justbleed has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ketan has joined #ruby
DLSteve has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Ping timeout: 260 seconds]
ketan has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
alveric2 has joined #ruby
gothicsouth has joined #ruby
alveric1 has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
jackjackdripper has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
roshanavand has quit [Ping timeout: 255 seconds]
einstein9 has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
herbmillerjr has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jenrzzz_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
im0nde_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
im0nde has quit [Ping timeout: 255 seconds]
im0nde_ is now known as im0nde
nitza has quit [Quit: Textual IRC Client: www.textualapp.com]
sneakerhax has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]