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
<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]
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]
<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]
<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
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…]
<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>
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?
<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]