<mydog2>
unfortunately.. the app hasn't been updated in a bit
<Radar>
Seems like an older Rails applicatoon.
marr has quit [Remote host closed the connection]
<mydog2>
not even sure the app would meet what I'm looking for..
<Radar>
Uses Rails 4. Shouldn't be too hard to upgrade it to Rails 5.
<Radar>
You've not gone into any detail about what you actually are looking for.
<mydog2>
but.. if it was restored/running.. others could use it
<Radar>
You've mentioned this app twice, but nothing else.
<mydog2>
Radar - exactly
ledestin has joined #ruby
<mydog2>
I'm looking to have a running app that has instructions on how to run it on a linux platform.. hooked into a mysql db.. with the email instructions.. I don't need the payment stuff
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
<greypilot>
is it the ruby convention to define classes within the same file which instantiates objects from said class?
<arahael>
greypilot: That's confusing... Which class is the "said class"?
eljimmy has joined #ruby
<mydog2>
adam12, -- from the looks of things. it appears the project just kind of fell flat
<adam12>
mydog2: Yeah - my comment was mostly sarcasm, but the project is indeed lifeless.
<greypilot>
arahael: im sorry. i'll rephrase my question. should i define my classes in a separate file? or should i define a class and then instantiate from it, within the same ruby file?
<arahael>
adam12: Plot twist: It was lifeless, *because* they didn't merge that request.
<adam12>
mydog2: There's not much to the project. A couple models and very few controllers. I say dive in. If you're in a rush, start with Heroku. Might get you to the finish line quicker.
<adam12>
arahael: I blame Ryan. All Ryans.
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arahael>
greypilot: I'm a python dev, who dabbles in Ruby. What I personally do, is define tightly related classes within the same file. If they aren't strongly related to each other (conceptually or otherwise), then they should progably go in separate files.
<greypilot>
arahael: thank you.
mim1k has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
Wsewolod has quit [Ping timeout: 260 seconds]
<arahael>
greypilot: Incidentially, whenever I see a project that has a strict one-class, one-file policy, I groan a little inside, and I mark those devs as Java devs.
<greypilot>
arahael: haha no kidding.
<elomatreb>
Though most Ruby projects and style guides do recommend a strict one class per file policy (aside from inline classes like errors)
<ineb>
i stick with that 95% of the time
<greypilot>
so the ruby convention is one class per file
<greypilot>
and then how do you include those classes within a file that needs to instantiate from those classes? do you use require and treat each file as a module?
<elomatreb>
You use require. There is little special about require, it just loads and executes the file you give it (relative paths, and .rb endings are optional)
<greypilot>
perfectly clear. thansk elomatreb
<elomatreb>
That's where the more important convention comes from: Either define classes *OR* have behavior (code that will be executed on load) in a single file
<greypilot>
elomatreb: okay. i'll need to sit with that idea for a moment
<arahael>
ineb: That's fine ,imho, provied that 95% of the time, your classes are fairly standalone, as they generally should be, anyway.
brent__ has quit [Remote host closed the connection]
centrx has quit []
<arahael>
What I hate, is that to instantiate a class, I need to do another require, and instantiate another class, which reuqires... Oh, the insanity.
<elomatreb>
A class should require everything that it needs to be instantiated in its own file
<arahael>
Yep.
<elomatreb>
Or, rather not just to be instantiated, but to operate in general
raucao has joined #ruby
<arahael>
Well, yeah. It's a somewhat unfair comparison, as the Java projects often have some complex IoC system going on.
Dimik has joined #ruby
r3vDev has joined #ruby
<elomatreb>
Lanugages like Java make this a bit easier anyway since chances are your class won't compile if you're missing imports
<elomatreb>
In Ruby you will only get an error when code referencing an undefined module is actually executed
GinoMan2440 has joined #ruby
<arahael>
elomatreb: They'll compile if they have their interfaces
<arahael>
elomatreb: But if the IoC container can't find the instance, well, you've managed to move a compile time feature to a runtime behaviour.
nobitanobi has joined #ruby
<elomatreb>
I'm not a Java dev, it's just that the mentioned behavior wrt undefined modules sometimes seems strange to people from other languages
<arahael>
Fair enough.
<arahael>
I'm not a java dev either. )
nobitanobi has quit [Ping timeout: 255 seconds]
skweek has quit [Ping timeout: 246 seconds]
raucao has left #ruby ["Leaving"]
raspado has quit [Quit: Leaving...]
elsevero has joined #ruby
majuscul1 is now known as majuscule
QpQ4 has joined #ruby
amclain has quit [Quit: Leaving]
nacsurte has quit [Ping timeout: 260 seconds]
QpQ4 has quit [Ping timeout: 255 seconds]
|prawnzy has quit [Quit: Leaving...]
<greypilot>
is 'initialize' the constructor method
<comet23>
the lib folder is used only for functions right?
<comet23>
and the bin folder is used for short commands right?
uZiel has joined #ruby
<baweaver>
library
<baweaver>
binary
<baweaver>
binary are executable programs. Think interface to run like CLI tools
tuelz has joined #ruby
<baweaver>
libraries are collections of functions used to build other things.
gizmore|2 has joined #ruby
mostlybadfly has joined #ruby
<comet23>
thank you
<tuelz>
so rails is a library? /troll
<baweaver>
generic answers for generic questions
<baweaver>
I figure someone else will be pedantic about it later and fill out the details while I sit back.
<comet23>
no i get it
<comet23>
that was all i needed thanks again
chimkan has joined #ruby
<baweaver>
rails itself is a library (framework) that happens to have a binary by the same name used as a CLI tool.
<bougyman>
rails is a kitchen sink.
<bougyman>
that happens to include some binaries.
<baweaver>
more accurately a vastly spanning collection of libraries
<comet23>
tuelz: rails is a framework because it has a predefined structure of where everything goes... if it was a library you would have been creating all the folders and implementing your own design pattern
* baweaver
grabs popcorn
<tuelz>
comet23: sure, the distinction between framework and library can be somewhat arbitrary tho
gizmore has quit [Ping timeout: 260 seconds]
<baweaver>
Squares and rectangles.
<comet23>
i don't think so
<tuelz>
I was only poking fun, I think rails is pretty well considered a framework
<tuelz>
I know frameworks that don't make you put anything anywhere
<comet23>
like what?
<baweaver>
Sinatra.
<tuelz>
phoenix in elixir is moving towards everything just being under app/ for instance
<tuelz>
also that clojure "framework" that is just a collection of libraries that are super unopinionated
<tuelz>
forget what it's called tho
<comet23>
sinatra is a library though
<tuelz>
comet23: your definition generally holds true, but it's not a universally accepted line between the two concepts
<comet23>
why do people make this so confusing
<comet23>
it's already hard, making it harder solves nothing
<tuelz>
the world is dynamic
<tuelz>
don't be super rigid and it isn't hard
<comet23>
i have a conspiracy theory about this... i believe that this is because older developers want to control the market and their job security so it's their mission to make sure to improve things very slowly and confuse people
<tuelz>
alternatively old people don't exist...only lizards in human skin
<comet23>
why else would the new generation of "engineers" not be exposed to low level things such as programming in assembly, binary, and understanding memory and how hardware works
<tuelz>
you're not wrong, but it's not a conscious choice....selection bias means people who learned those things will consider them more important and become gatekeepers at some places
<tuelz>
just like you'll learn things and subcontiously place more importance on those things because the things you learn will serve you well in life
<comet23>
we can only hope
<tuelz>
also lizard people
<comet23>
baweaver: how's the popcorn?
marxarelli is now known as marxarelli|afk
* comet23
passes baweaver
<comet23>
sigh
<comet23>
i meant to say passes baweaver buttetr
<tuelz>
I'm at a coffee shop with the intent to rework my resume and start applying for jobs, but I haven't run out of money yet so it's really hard to give a shit...
<tuelz>
and that probably sounds douchey, but before software I always lived paycheck to paycheck so this is kinda a new thing for me...turns out without the motivation of starving to death I'm good at being lazy
<tuelz>
also getting fired seems to be a pretty strong driving factor
<tuelz>
since I tend to keep them jobs when I get 'em
<comet23>
where did you work before?
<tuelz>
startup whose funding was starting to dry up
<tuelz>
I won't say who in the off chance anybody here matters somehow since they are still trying to make it
<comet23>
if you're in san francisco you're set lol
<tuelz>
hah, no but I work remotely so getting work isn't hard...which isn't me bragging, just the fact of the matter that in ruby and elixir I'm not competeing against the hordes of developers graduating with c++ and java and .net backgrounds
<comet23>
is it a bad idea to learn .net, c and c++, as well as java after ruby?
<tuelz>
it's never a bad idea to branch out
<elomatreb>
It's rarely a bad idea to learn anything
<tuelz>
if money is the motivation then T shaped learned people earn the highest
<baweaver>
It's a very bad idea though to spread thin
<tuelz>
learn a little about a lot of things and a lot about one or two things
<elomatreb>
Esp. C requires you to understand the machine, valuable
<baweaver>
Pick a language, get strong in it first.
<comet23>
i'm going to learn python after i finish this online bootcamp in ruby
<comet23>
because it's a prerequisite for the other online bootcamp
<tuelz>
if you're getting started....stick heavily and almost exclusively to ruby and a popular frontend framework....then you'll never have trouble finding a job
<tuelz>
then learn the shit you want to learn and do w.e. you want because you'll have a plan B that is always hiring
<comet23>
so if i learn ruby and ruby on rails/sinatra i will be able to find jobs easily?
<tuelz>
yup
<tuelz>
at least that's been my experience
<comet23>
the reason i am learning ruby on rails is because i want to make a web app for my company, and now that my brain is working i can finally do that
<tuelz>
n = 1
guacamole has joined #ruby
<comet23>
but my problem is that i failed college because i had a severe learning disability
<tuelz>
I didn't get none of them fancy edumications either
<comet23>
i'm not sure how i can get myself out of that hole
<tuelz>
and I make more than both of my friends that graduated with engineering degrees writing software
<comet23>
combined?!
<tuelz>
lol no
blackwind_123 has quit [Ping timeout: 240 seconds]
<comet23>
i want to have a master's degree in filmmaking
<tuelz>
getting that first job is the hardest part in software (again n=1)
<comet23>
i will get that first job but i am inching closer to desperation and soon i'll take the lowest paid offer
<comet23>
if i can finish everything in time i won't do that
<tuelz>
do it
<tuelz>
take anything and then you can apply/negotiate from a position of power
<tuelz>
anything that says you write software on a piece of paper
<comet23>
so if i take a first job that pays 30k... a full stack ruby on rails position will my rate be set at 30k?
<bougyman>
comet23: unlikely
<tuelz>
not if you don't let it be
<bougyman>
they have rails monkeys in bangalore now.
<comet23>
what does that mean?
<tuelz>
just refuse to tell the next employer your salary...you have a job you pick the terms
<baweaver>
bougyman: oi
<baweaver>
not cool
<bougyman>
that means they have people with Phds which will code rails for $18/day
<comet23>
0_0
jameser has joined #ruby
<bougyman>
baweaver: not cool how?
<baweaver>
Rails monkeys.
<bougyman>
I didn't mean 'monkey' in any degrading way. I started out as a rack monkey.
<tuelz>
and yet I had people paying USD120/hr when I only had 2 years of experience.....sorry I just don't buy into the junk about offshore work bringing wages down
<baweaver>
fine fine, but it does come across bad.
<bougyman>
Understood.
<tuelz>
not that I made that kinda money...I just had a company selling my time for 120/hr
<comet23>
i think it only comes across as bad because he's not making fun of white people... you can make fun of white people and nobody will bat an eye
<baweaver>
Try it then
<bougyman>
So: there are PHd'd rails devs in India who will work for a fraction of what you would expect in U.S. salaries.
<tuelz>
uh what? I'd bat an eye...
<comet23>
well now that i mentioned it people will
<baweaver>
I don't care what race / religion / etc it is.
<bougyman>
baweaver: nor do I.
<baweaver>
If you insult someone or say something bad I will call it out
<tuelz>
I hate everyone with a strong equality
<baweaver>
and I do understand slang and misunderstandings
<baweaver>
which is why I mention it first
<bougyman>
I use 'code monkey', 'rack monkey', 'rails monkey', all without color nor creed.
<bougyman>
it just means beginner.
<Radar>
good afternoon how are we this fine day
<comet23>
i'm learning ruby
<tuelz>
the thing about software is it's less about your code skill for most webdev crap and more about your communication ability to translate business requirements into features while navigating thru middle management and other crap
<comet23>
but that's the easy part tuelz
<tuelz>
99% of us are just CRUD app'ing somebodys clone of another website
<tuelz>
easy or not it pays good money /shrug
<baweaver>
Just wait until you get in a company. The software is the easy part
<tuelz>
and you say it's easy, but those non-native english speakers in other timezones are less likely to be interfacing with the right people to get the right requirements and even worse aren't legally bound by US contracts so things blow up real hard and make people more likely to spend huge money on US citizens
<comet23>
sweet, i speak four languages and i'm a us citizen
<comet23>
does that help me in any way?
<tuelz>
english is the only one that's gonna help you much, honestly
<tuelz>
other countries don't pay crap compared to US for software
joast has quit [Quit: Leaving.]
<tuelz>
generally speaking...exceptions exist all over
<tuelz>
my advice to any beginner is to worry less about being good at coding and worry more about your portfolio and sending out more quality applications and practice interviewing with real interviews
<bougyman>
My advice to a beginner is to program something for yourself that you want to use.
<elomatreb>
Any comparison of salaries without factoring cost of living is completely useless
<bougyman>
and then, use it daily.
<bougyman>
improve it.
<bougyman>
and for christ's sake, publish it.
cdg has joined #ruby
<comet23>
cost of living is cheaper in denmark, that's for sure
<tuelz>
denmark taxes at like 50-60% of income for high earners
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tuelz>
that's probably gross and not net with CoL adjustments
<tuelz>
altho I'd love to see case studies about australia I honestly have never seen a job posting from australia
<comet23>
the best thing for everyone to do is try to make a few million and move to monaco
<tuelz>
I odn't even know where that is
<comet23>
monaco is like tax free lol
<comet23>
south of france
<tuelz>
but I promise if you give me a few million I'll do it
<comet23>
give me a few million ;)
<tuelz>
that's not how any of thise works
<bougyman>
can you even move to monaco on 2 mil?
<comet23>
yes
<bougyman>
I thought it took 10
<tuelz>
I can.
<comet23>
no, you just have to live there for 180 days
<comet23>
but the thing is that for 2 million you're getting a studio there
Mia has quit [Ping timeout: 255 seconds]
<tuelz>
I'll live in the street for a few minutes to keep my promise and move to medellin, colombia or someplace else with women who love gringos
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Encapsulation has joined #ruby
sarbs has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 268 seconds]
jackjackdripper has joined #ruby
sarbs has joined #ruby
gix has joined #ruby
Encapsulation has left #ruby ["Leaving"]
Rodya_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
bambanx has quit [Quit: Leaving]
astrobunny has joined #ruby
Phanes is now known as bagira
bagira is now known as Phanes
arescorpio has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
uZiel has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
sarbs has quit [Ping timeout: 255 seconds]
dviola has quit [Quit: WeeChat 1.8]
jackjackdripper has quit [Quit: Leaving.]
uZiel has joined #ruby
ruby[bot] has quit [Ping timeout: 255 seconds]
ruby[bot] has joined #ruby
Kilo`byte has quit [Ping timeout: 255 seconds]
Kilo`byte has joined #ruby
meshsmith has quit [Remote host closed the connection]
sarbs has joined #ruby
hahuang65 has joined #ruby
nacsurte has joined #ruby
nacsurte has quit [Ping timeout: 260 seconds]
latemus has joined #ruby
sarbs has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
troys_ is now known as troys
ascarter has joined #ruby
boombox_ has joined #ruby
patarr has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cdg has quit [Remote host closed the connection]
sarbs has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
patarr has quit [Ping timeout: 260 seconds]
t-recx has quit [Ping timeout: 260 seconds]
masterasia has joined #ruby
<masterasia>
why does rails hang when I don't use bundle exec?
<masterasia>
the specific reason
<masterasia>
rails g task search index vs bundle exec rails g task search index
<masterasia>
I guess the first one just searches for the first rails bin in path?
<masterasia>
idk. would be great to know though
beilabs__ has quit [Quit: Ex-Chat]
hahuang65 has quit [Ping timeout: 258 seconds]
beilabs_ has joined #ruby
hahuang65 has joined #ruby
dasher00 has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
Rodya_ has joined #ruby
dasher00 has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
cyphase has joined #ruby
Rodya_ has joined #ruby
nobitanobi has joined #ruby
beilabs_ has quit [Read error: Connection timed out]
Jayson_Virissimo has quit []
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
nobitanobi has quit [Ping timeout: 246 seconds]
cyphase has quit [Quit: cyphase.com]
ur5us has quit [Ping timeout: 276 seconds]
boombox_ has quit [Remote host closed the connection]
cam27 has quit [Quit: cam27]
plujon has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
helpa-bot has joined #ruby
astrobunny has joined #ruby
nacsurte has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
troys is now known as troys_
helpa has quit [Remote host closed the connection]
helpa-bot has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
troys_ is now known as troys
nofxxx has joined #ruby
cyphase has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
cyphase has quit [Max SendQ exceeded]
synack has joined #ruby
uranellus_ has joined #ruby
helpa-bot has quit [Remote host closed the connection]
synack is now known as Guest85780
Phage- has joined #ruby
Silthias2 has joined #ruby
Soulcutter has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
ddddddd has joined #ruby
cyphase has joined #ruby
m4rCsi_ has joined #ruby
helpa has joined #ruby
bw\_ has joined #ruby
Rutix`away has joined #ruby
Rutix`away has joined #ruby
Rutix`away has quit [Changing host]
cyphase has quit [Max SendQ exceeded]
artmann__ has joined #ruby
uranellus has quit [Ping timeout: 260 seconds]
gsingh93 has quit [Ping timeout: 260 seconds]
Phage has quit [Ping timeout: 260 seconds]
Silthias1 has quit [Ping timeout: 260 seconds]
heinrich5991 has quit [Ping timeout: 260 seconds]
Sou|cutter has quit [Ping timeout: 260 seconds]
coffeejunk has quit [Ping timeout: 260 seconds]
ddffg has quit [Ping timeout: 260 seconds]
seggy has quit [Ping timeout: 260 seconds]
vqrs has quit [Ping timeout: 260 seconds]
gf3 has quit [Ping timeout: 260 seconds]
phreakocious has quit [Ping timeout: 260 seconds]
CustosLimen has quit [Ping timeout: 260 seconds]
scottschecter has quit [Ping timeout: 260 seconds]
noodle has quit [Ping timeout: 260 seconds]
nunchuck has quit [Ping timeout: 260 seconds]
ejnahc has quit [Ping timeout: 260 seconds]
bw\ has quit [Ping timeout: 260 seconds]
iNs has quit [Ping timeout: 260 seconds]
ged has quit [Ping timeout: 260 seconds]
artmann_ has quit [Ping timeout: 260 seconds]
hurricanehrndz has quit [Ping timeout: 260 seconds]
giraffe has quit [Ping timeout: 260 seconds]
m4rCsi has quit [Ping timeout: 260 seconds]
d^sh has quit [Ping timeout: 260 seconds]
puppet_ has quit [Ping timeout: 260 seconds]
ledestin has quit [Ping timeout: 260 seconds]
yorickpeterse has quit [Ping timeout: 260 seconds]
kke has quit [Ping timeout: 260 seconds]
scott4000 has quit [Ping timeout: 260 seconds]
akhkharu has quit [Ping timeout: 260 seconds]
Gnubie_ has quit [Ping timeout: 260 seconds]
jaredrhine has quit [Ping timeout: 260 seconds]
gf3 has joined #ruby
kke has joined #ruby
ejnahc has joined #ruby
drcode has quit [Ping timeout: 260 seconds]
Morrolan has quit [Ping timeout: 260 seconds]
tatey has quit [Ping timeout: 260 seconds]
FifthWall has quit [Ping timeout: 260 seconds]
arescorpio has quit [Read error: Connection reset by peer]
Gnubie_ has joined #ruby
phreakocious has joined #ruby
vqrs has joined #ruby
cyphase has joined #ruby
cyphase has quit [Max SendQ exceeded]
Rutix has quit [Ping timeout: 260 seconds]
rileyy has quit [Ping timeout: 260 seconds]
helpa has quit [Remote host closed the connection]
d^sh has joined #ruby
cyphase has joined #ruby
helpa has joined #ruby
Morrolan has joined #ruby
<Radar>
masterasia: hard to know without seeing it for myself.
<Radar>
masterasia: what does "which rails" show?
rileyy has joined #ruby
cyphase has quit [Max SendQ exceeded]
ascarter has joined #ruby
nahra has quit [Remote host closed the connection]
jaredrhine has joined #ruby
giraffe has joined #ruby
nahra has joined #ruby
FifthWall has joined #ruby
bokayio has quit [Ping timeout: 240 seconds]
elcontrastador has quit [Ping timeout: 260 seconds]
shortdudey123 has quit [Ping timeout: 260 seconds]
cyphase has joined #ruby
Psy-Q has quit [Ping timeout: 240 seconds]
hurricanehrndz has joined #ruby
CustosLimen has joined #ruby
cyphase has quit [Max SendQ exceeded]
tatey has joined #ruby
brainslug has joined #ruby
bokayio has joined #ruby
cyphase has joined #ruby
scottschecter has joined #ruby
Psy-Q has joined #ruby
shortdudey123 has joined #ruby
scott4000 has joined #ruby
iNs has joined #ruby
ged has joined #ruby
noodle has joined #ruby
cyphase has quit [Max SendQ exceeded]
planigan has quit [Ping timeout: 240 seconds]
heinrich5991 has joined #ruby
ascarter has quit [Ping timeout: 276 seconds]
mim1k has joined #ruby
coffeejunk has joined #ruby
planigan has joined #ruby
yorickpeterse has joined #ruby
mim1k has quit [Ping timeout: 276 seconds]
uZiel has joined #ruby
astrobunny has quit [Remote host closed the connection]
bodgix_ has joined #ruby
aupadhye has joined #ruby
ferdroid__ has joined #ruby
anisha has joined #ruby
ltd_ has joined #ruby
astrobunny has joined #ruby
Radar_ has joined #ruby
pale3x has joined #ruby
brent__ has joined #ruby
bodgix has quit [Ping timeout: 260 seconds]
Ferdroid has quit [Ping timeout: 260 seconds]
ferdroid__ is now known as Ferdroid
shaman42_ has quit [Ping timeout: 260 seconds]
ltd has quit [Ping timeout: 260 seconds]
Bish has quit [Ping timeout: 260 seconds]
Radar has quit [Ping timeout: 260 seconds]
pale3 has quit [Ping timeout: 260 seconds]
mydog2 has quit [Ping timeout: 260 seconds]
kt has quit [Ping timeout: 260 seconds]
nishiki has quit [Ping timeout: 260 seconds]
Paradox has quit [Ping timeout: 260 seconds]
bazzy has quit [Ping timeout: 260 seconds]
Tralin has quit [Ping timeout: 260 seconds]
hkdsun has quit [Ping timeout: 260 seconds]
biox has quit [Ping timeout: 260 seconds]
rcs has quit [Ping timeout: 260 seconds]
Tralin has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
Paradox has joined #ruby
bazzy has joined #ruby
knight- has quit [Ping timeout: 260 seconds]
rcs has joined #ruby
linduxed has quit [Ping timeout: 260 seconds]
biox has joined #ruby
mydog2 has joined #ruby
knight- has joined #ruby
hkdsun has joined #ruby
shaman42 has joined #ruby
xMopxShell has quit [Ping timeout: 240 seconds]
kt has joined #ruby
gf3 has quit [Ping timeout: 240 seconds]
Radar_ is now known as Radar
RazorX has quit [Ping timeout: 240 seconds]
Radar has quit [Changing host]
Radar has joined #ruby
linduxed has joined #ruby
brent__ has quit [Ping timeout: 246 seconds]
biberu has joined #ruby
Bish has joined #ruby
nishiki has joined #ruby
RazorX has joined #ruby
gf3 has joined #ruby
xMopxShell has joined #ruby
runescape07rsps has joined #ruby
dionysus69 has joined #ruby
troys has quit [Quit: Bye]
<dminuoso>
Radar: As I have learned the hard way, `which` is not as helpful in some circumstances. :S
DoubleMalt has joined #ruby
rippa has joined #ruby
ta_ has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
aupadhye has joined #ruby
muelleme_ has joined #ruby
nacsurte has joined #ruby
<baweaver>
dminuoso: `which circumstance`?
* baweaver
ducks
oleo has quit [Quit: irc client terminated!]
<dminuoso>
baweaver: You know, I was starting to type without giving much though. While I was finished with the first word it occured to me.. "wait a moment, this is baweaver asking..."
<dminuoso>
:|
<dminuoso>
You made me waste precious 0.27 seconds of my life.
<baweaver>
Yeah. I've wasted much more of Radar's and cjohnson's XD
shadeslayer has quit [Read error: Connection reset by peer]
tvw has joined #ruby
<kke_>
anyone got any recommendations for a project with a great implementation of a complex dsl? (currently browsing through chef and rspec)
ski7777 has joined #ruby
roshanavand has quit [Remote host closed the connection]
<dminuoso>
kke_: You could look at any of the parser generator libraries (e.g. parslet)
shadeslayer has joined #ruby
Ishido has joined #ruby
shadeslayer has quit [Remote host closed the connection]
shadeslayer has joined #ruby
psychicist__ has joined #ruby
<kke_>
that one is perhaps a bit too complex :) i guess it would be something like a chef/puppet/homebrew recipe/formula, mostly i'm trying to figure out a nice way to make the thing modular and well composed so it's easy to maintain, expand and test.
mim1k has quit [Ping timeout: 240 seconds]
<kke_>
hmm perhaps rspec would be the prime example then
Rodya_ has joined #ruby
TheBloke has joined #ruby
mim1k has joined #ruby
chmuri has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
charliesome has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
zapata has joined #ruby
nacsurte has quit [Ping timeout: 260 seconds]
dickings is now known as Didac
Didac has quit [Changing host]
Didac has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
patarr has joined #ruby
rohitpaulk has quit [Ping timeout: 260 seconds]
tau has joined #ruby
Kristjan55555 has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
Kristjan55555 has quit [Remote host closed the connection]
chmuri has joined #ruby
zapata has quit [Quit: WeeChat 1.8]
futilegames has quit [Quit: futilegames]
zapata has joined #ruby
unreal has joined #ruby
vondruch_ is now known as vondruch
r3vDev has quit [Quit: Leaving.]
r3vDev has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
rohitpaulk has joined #ruby
sepp2k has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
anisha has quit [Ping timeout: 255 seconds]
rippa has joined #ruby
shadeslayer has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
ascarter has joined #ruby
TheBloke- has joined #ruby
TheBloke has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
ldnunes has joined #ruby
r3vDev has quit [Quit: Leaving.]
TheBloke- is now known as TheBloke
futilegames has quit [Quit: futilegames]
ascarter has quit [Ping timeout: 268 seconds]
GinoMan2440 has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
BSaboia has joined #ruby
judofyr has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
alex`` has joined #ruby
hs366 has joined #ruby
shadeslayer_ has joined #ruby
shadeslayer_ has quit [Read error: Connection reset by peer]
shadeslayer_ has joined #ruby
zapata has quit [Quit: WeeChat 1.8]
solocshaw has joined #ruby
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby
Rr4sT has quit [Quit: Connection closed for inactivity]
Ishido has quit [Ping timeout: 260 seconds]
judofyr has quit [Ping timeout: 260 seconds]
kruppm has quit [Ping timeout: 260 seconds]
judofyr has joined #ruby
bpmedley has joined #ruby
GinoMan has joined #ruby
Rodya_ has joined #ruby
Ishido has joined #ruby
catphish has joined #ruby
<dminuoso>
kke_: rspec is definitely good.
<dminuoso>
I just didn't name it because you already discovered it. :)
bkxd has quit [Ping timeout: 258 seconds]
bkxd_ has quit [Ping timeout: 258 seconds]
GinoMan2440 has joined #ruby
nacsurte has joined #ruby
joast has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
kruppm has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
bkxd_ has joined #ruby
GinoMan has quit [Ping timeout: 240 seconds]
nacsurte has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
__Yiota has joined #ruby
ericx2x has joined #ruby
synthroid has joined #ruby
workmad3 has joined #ruby
shtirlic has quit [Ping timeout: 240 seconds]
dropsh0t has joined #ruby
shtirlic has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
im0nde has joined #ruby
alex`` has quit [Quit: WeeChat 1.8]
chimkan has joined #ruby
eljimmy has joined #ruby
konsolebox has joined #ruby
ascarter has joined #ruby
gts7 has joined #ruby
<gts7>
Hello, World!
jaruga________ has joined #ruby
<gts7>
Is this a good place for a n00b question about ruby?
<dminuoso>
gts7: No.
<dminuoso>
This is a good place to ask good questions about ruby.
<gts7>
o
solocshaw has quit [Ping timeout: 276 seconds]
bkxd__ has joined #ruby
ascarter has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 276 seconds]
dviola has joined #ruby
bkxd_ has quit [Ping timeout: 276 seconds]
gts7 has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
mim1k has joined #ruby
rohitpaulk has quit [Ping timeout: 246 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kahootbird has joined #ruby
tgragnato has quit [Ping timeout: 240 seconds]
Mortomes|Work has quit [Ping timeout: 260 seconds]
<matthewd>
"Use ruby-install instead" as a solution to "ruby-build is encountering a network error" seems unproductively divisive to me
alex`` has quit [Quit: WeeChat 1.8]
<dminuoso>
graingert: If you set up the destdir yo udont need sudo then.
<graingert>
matthewd: I've worked around the network error
<dminuoso>
matthewd: if rbenv wont even tell you why it broke?
<fuzzyhorns1>
a 3rd party returns a byte[] of a zip file from a soap call, which in ruby appears to me as a long string. i can't seem to figure out how to actually use that string as a zip file again. anyone done something like this?
<havenwood>
matthewd: Well, ruby-install supports curl or wget and will give error messages when things fail.
<graingert>
really I just want gem to install into a local directory
<havenwood>
I'm sure there's a verbose flag for ruby-build.
<graingert>
eg under $HOME
<graingert>
and the same for bundler
<graingert>
and I want to be able to switch between different collections of installed gems
<dminuoso>
graingert: PREFIX=/where/ever/you/want/it/installed make install
milardovich has quit [Remote host closed the connection]
<dminuoso>
graingert: no sudo needed then.
<fuzzyhorns1>
zip is the string, and i've been trying: File.open('test.zip', 'wb') {|fp| fp.write(zip.b) }
<dminuoso>
:)
<graingert>
I just want something exactly the same as python3 -m venv
<graingert>
but ruby
<matthewd>
graingert: You have python3 installed in ~/ ?
<dminuoso>
fuzzyhorns1: use binwrite
cyphase has joined #ruby
<fuzzyhorns1>
dminuoso: oh! lemme look that up
<graingert>
matthewd: no it's installed with ubuntu
<graingert>
I'm happy to use the system Ruby 2.3
futilegames has joined #ruby
<graingert>
I've given up on 2.4
GodFather has joined #ruby
<dminuoso>
fuzzyhorns1: (You could also do the things it does manually, but the point is to ensure that the file is opened with ASCII-8BIT)
<havenwood>
graingert: You're using a python package. You can use a Ruby package. I linked you to a well-maintained Ruby 2.4 package.
ferr has quit [Quit: WeeChat 1.8]
<graingert>
havenwood: sure, but I've got ruby installed by my OS already
<graingert>
I'm happy with that
<graingert>
I now want to install bundler without it touching anything outside of $HOME
<havenwood>
graingert: Then use your package Ruby. What's the problem?
cyphase has quit [Max SendQ exceeded]
<fuzzyhorns1>
dminuoso: mmm. no dice if i try to open the resulting zip, just end up with a zip.cpgz
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<havenwood>
graingert: Ubuntu has chosen a system location for gems by default with their Ruby package. You can change that with a flag.
Silthias2 has quit [Ping timeout: 255 seconds]
<graingert>
havenwood: ok but I want to run a command to switch between different sets of installed gems
<dminuoso>
fuzzyhorns1: Look at the string encoding. If it is anything other than ASCII-8BIT, use force_encoding to reinterpret it.
<graingert>
such that gem install installs to that directory and ruby programs use those gems
<fuzzyhorns1>
dminuoso: i tried using `.b` to do that
<graingert>
then I run another command and it all goes away
<dminuoso>
fuzzyhorns1: .b what?
<matthewd>
graingert: bundler takes care of that
<graingert>
matthewd: yeah but it installs somewhere outside of $HOME
<havenwood>
graingert: Ruby typically installs gems to one location, but with Bundler (or even with just RubyGems) you can run your app with just the gems and gem versions in your Gemfile.lock.
<graingert>
havenwood: ok, how do I configure that location
<dminuoso>
fuzzyhorns1: Things I learn.. I did not even know that existed. o.o
<havenwood>
graingert: There is a --user-install flag that will override Ubuntu's choice of --no-user-install.
<fuzzyhorns1>
dminuoso: it is… not very readable lol
<havenwood>
graingert: Alternatively you can use --install-dir.
<graingert>
havenwood: is there an evnironment variable
<havenwood>
graingert: You can set it permanently in your ~/.gemrc
Fysicus has joined #ruby
cyphase has joined #ruby
<havenwood>
graingert: gem: --user-install
<havenwood>
graingert: Or you can set GEM_HOME
<graingert>
what do I put in it?
<fuzzyhorns1>
dminuoso: im unsure if this zip is corrupted or if im just still not writing out the file right :/
<graingert>
GEM_HOME sounds good
<dminuoso>
fuzzyhorns1: Share your code please.
<havenwood>
graingert: That's what chruby sets.
thoraxe has quit [Ping timeout: 240 seconds]
<graingert>
havenwood: sure but I'm happy to set it to ~/.gems
<graingert>
and leave it at that
patarr has joined #ruby
<havenwood>
graingert: Yup, if you don't need to switch Rubies that's sane.
<graingert>
havenwood: what do I need to put in ~/.gemrc
<graingert>
is there a bin path to add too?
nicoulaj46 has joined #ruby
<havenwood>
graingert: chruby sets GEM_HOME, GEM_PATH, RUBY_ROOT, GEM_ROOT, adds gem binaries and ruby binaries to PATH
<havenwood>
etc
jphase has quit [Ping timeout: 258 seconds]
<havenwood>
graingert: You can do those things for your one Ruby if you'd like.
<graingert>
I just want to do that once with ~/.gems/ as the root
<havenwood>
No, these are env vars we're talking about.
<graingert>
sure
<graingert>
I want to set them once in ~/.zshrc
<havenwood>
Yeah, if you export them there that should cover it.
<havenwood>
graingert: Or if you look at the Brightbox Ruby package you'll see they use ruby-switch, which is a package for switching. There is more than one way to do it!
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
r3vDev has quit [Quit: Leaving.]
jphase has joined #ruby
Silthias has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
<Bish>
why isn't there something like an ordered hash that when enumareted gives a defined order?
chouhoul_ has quit [Ping timeout: 260 seconds]
<fuzzyhorns1>
dminuoso: literally it's just IO.binwrite('test.zip', zip.b)
<fuzzyhorns1>
where zip is a String that i get in return from a Savon soap call :/
<fuzzyhorns1>
which supposedly from the soap api documentation is a byte[]
sepp2k has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
futilegames has quit [Quit: futilegames]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r3vDev has joined #ruby
<graingert>
I come from python-land where there's one way
<graingert>
:/
<havenwood>
Bish: Hash is an ordered Hash.
<graingert>
well two but virtualenv is wrong now
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
Bish: Hashes were unordered in 1.8.
gizmore has joined #ruby
ResidentBiscuit has joined #ruby
<havenwood>
Then they switched it to be a doubly-circularly linked list.
<havenwood>
Ordered!
<graingert>
ok ruby-install is working
<graingert>
lots of fun compiling rn
<havenwood>
Bish: They're ordered by key insertion.
Fysicus has quit [Quit: The Truth Is Just An Excuse For A Lack Of Imagination]
<isBEKaml>
havenwood: Can you tell if this ordered-by-key-insertion followed from Python?
__Yiota has joined #ruby
<Bish>
havenwood: isnt it just not guarenteed as said by documentation?
<havenwood>
isBEKaml: I'm not sure on the history. I came to Ruby right as 1.9 became a thing.
<havenwood>
Bish: Nope, If I recall it starts out saying it's ordered.
<isBEKaml>
havenwood: I'm here in Ruby around 2.4 :-)
<havenwood>
isBEKaml: Welcome!
<havenwood>
Bish: "Hashes enumerate their values in the order that the corresponding keys were inserted."
chouhou__ has quit [Remote host closed the connection]
tuelz has joined #ruby
alex`` is now known as alexherbo2
chouhoulis has joined #ruby
alexherbo2 is now known as alex``
enterprisey has joined #ruby
ascarter has joined #ruby
<isBEKaml>
havenwood: Thanks! I have a bit of Perl, smattering of Python and lots of Java. Currently, I'm getting sick and tired of hunting through documentation. I'd probably take out the "The Ruby way" book from library this week.
Burgestrand has quit [Quit: Closing time!]
smithascari has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mimico has joined #ruby
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
ascarter has quit [Ping timeout: 276 seconds]
mimico has quit [Client Quit]
amclain has joined #ruby
Miron has quit [Excess Flood]
Miron has joined #ruby
rikkipitt has joined #ruby
mokiwis has joined #ruby
bkxd_ has joined #ruby
bkxd___ has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
fnux has quit [Quit: Grumpf.]
bkxd__ has quit [Ping timeout: 240 seconds]
fnux has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
theunraveler has joined #ruby
pwnd_nsfw has joined #ruby
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
Rodya_ has joined #ruby
Fysicus has joined #ruby
Fysicus has quit [Client Quit]
conta has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
synthroid has quit [Ping timeout: 260 seconds]
nacsurte has joined #ruby
cyphase has quit [Max SendQ exceeded]
Fysicus has joined #ruby
rikkipitt has quit [Quit: Leaving...]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
cyphase has quit [Max SendQ exceeded]
cyphase has joined #ruby
futilegames has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
mim1k has quit [Ping timeout: 246 seconds]
Ainieco has joined #ruby
<Ainieco>
hello
<havenwood>
Ainieco: hi
GinoMan1423 has joined #ruby
nacsurte has quit [Ping timeout: 260 seconds]
cyphase has quit [Max SendQ exceeded]
cyphase has joined #ruby
<Ainieco>
i have a class method "taste" defined in class Fruit which utilizes Fruit.name method within itself, also i have class "Apple < Fruit" which utilize method "taste" as well
cyphase has quit [Max SendQ exceeded]
<Ainieco>
but "name" within "taste" returns Fruit even when alled against Apple, is there a way to fix it?
tuelz has quit [Ping timeout: 240 seconds]
judofyr has quit [Remote host closed the connection]
<havenwood>
Ainieco: self.class.name
judofyr has joined #ruby
cyphase has joined #ruby
<havenwood>
Ainieco: If you show your code in a gist (https://gist.github.com/) folk might have better suggestions.
judofyr has quit [Remote host closed the connection]
cyphase has quit [Max SendQ exceeded]
judofyr has joined #ruby
GinoMan2440 has quit [Ping timeout: 260 seconds]
cyphase has joined #ruby
cyphase has quit [Max SendQ exceeded]
milardovich has quit []
mim1k has joined #ruby
nacsurte has joined #ruby
tuelz has joined #ruby
Wsewolod has quit [Ping timeout: 276 seconds]
judofyr has quit [Ping timeout: 258 seconds]
MarkBilk_ has joined #ruby
nacsurte has quit [Ping timeout: 255 seconds]
MarkBilk__ has quit [Ping timeout: 255 seconds]
MarkBilk__ has joined #ruby
judofyr has joined #ruby
MarkBilk_ has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
fuzzyhorns1 has quit [Quit: Leaving.]
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
isBEKaml has quit [Ping timeout: 260 seconds]
judofyr has quit [Ping timeout: 240 seconds]
DroidBurgundy has joined #ruby
yehowyada has joined #ruby
Rodya_ has joined #ruby
mikecmpbll has joined #ruby
skweek has joined #ruby
brent__ has joined #ruby
bkxd has joined #ruby
futilegames has quit [Quit: futilegames]
bkxd__ has joined #ruby
bkxd___ has quit [Ping timeout: 255 seconds]
bkxd_ has quit [Ping timeout: 276 seconds]
meshsmith has joined #ruby
meshsmith has joined #ruby
meshsmith has quit [Changing host]
<baweaver>
graingert: oh hey, more ##javascript folks
nemesit|znc has joined #ruby
<adam12>
O_o
<baweaver>
We already managed to snare cjohnson. My evil plan is coming to fruition.
dviola has quit [Quit: WeeChat 1.8]
<adam12>
Go get em
cdg has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
synthroi_ has joined #ruby
cdg_ has joined #ruby
tuelz has quit [Ping timeout: 260 seconds]
mim1k has quit [Read error: Connection reset by peer]
TomyWork has quit [Ping timeout: 240 seconds]
nobitanobi has quit [Remote host closed the connection]
ascarter has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
<catphish>
i've finally found a syscall i need that doesn't seem to have a ruby binding, kinda scared to write my own but might have to give it a go
cdg has quit [Ping timeout: 276 seconds]
nacsurte has joined #ruby
<catphish>
i need linux's fallocate
dviola has joined #ruby
im0nde has quit [Ping timeout: 240 seconds]
ascarter has quit [Ping timeout: 255 seconds]
shinnya has joined #ruby
aufi has quit [Quit: Leaving]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
[Butch] has joined #ruby
__Yiota has joined #ruby
tuelz has joined #ruby
r3vDev has quit [Quit: Leaving.]
Wsewolod has joined #ruby
__Yiota has quit [Read error: Connection reset by peer]
marxarelli has joined #ruby
mokiwis has quit [Quit: See ya!]
mendel has quit [Quit: Connection closed for inactivity]
Tharbakim has joined #ruby
Tharbakim has joined #ruby
Tharbakim has quit [Changing host]
zzxc has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 255 seconds]
zzxc has joined #ruby
chalkmonster has quit [Read error: Connection reset by peer]
<havenwood>
catphish: whatcha using it for?
R\w\C has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyLobo has joined #ruby
<catphish>
punching holes in files when the data is no longer needed
<catphish>
you can use it for various things, my use is to free space in the middle of a file
futilegames has joined #ruby
<catphish>
gotta run now :)
catphish has quit [Quit: Leaving]
perniciouscaffei has joined #ruby
r3vDev has joined #ruby
fuzzyhorns1 has joined #ruby
r3vDev has quit [Client Quit]
<cjohnson>
What do I need to do to get vim-dispatch to play nicely with bundle exec rspec?
nobitanobi has joined #ruby
uZiel has joined #ruby
joast has quit [Quit: Leaving.]
bkxd has quit [Ping timeout: 268 seconds]
bkxd__ has quit [Ping timeout: 255 seconds]
mydog2 has quit [Ping timeout: 240 seconds]
mydog2 has joined #ruby
gusrub has joined #ruby
uZiel has quit [Remote host closed the connection]
Wsewolod has quit [Ping timeout: 240 seconds]
muelleme_ has joined #ruby
uZiel has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
cadillac__ has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
hahuang65 has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
<havenwood>
dhaller: I just showed a snippet of your JSON so it fits in the console.
hahuang65 has quit [Ping timeout: 276 seconds]
<havenwood>
dhaller: Just for demonstration purposes. Parse whatever JSON you'd like.
<dhaller>
I am thinking I am screwing up because there are many key values and I am not sure how to separate them correctly
<havenwood>
dhaller: I don't think I understand the problem.
Wsewolod has joined #ruby
tvon has joined #ruby
<havenwood>
dhaller: Once you parse the JSON, what's the problem?
<dhaller>
well your example has one key value pair, I am trying to achieve many
<dhaller>
in one json
<havenwood>
dhaller: require 'json'; JSON.parse '{"action": "get_token", "more": "it does not matter"}' #=> {"action"=>"get_token", "more"=>"it does not matter"}
<dhaller>
the "#=>" is just showing what it produces?
<havenwood>
dhaller: How is that a problem? I don't understand.
<havenwood>
dhaller: Show what you're trying and where it goes wrong?
<havenwood>
dhaller: Yeah, that's just saying this is the return value to the right #=>
<havenwood>
41 + 1 #=> 42
xzhao_ has joined #ruby
xzhao__ has joined #ruby
<havenwood>
cjohnson: is it not identifying the correct compiler or something else?
Fysicus has quit [Quit: The Truth Is Just An Excuse For A Lack Of Imagination]
Pumukel has joined #ruby
Ainieco has quit [Ping timeout: 260 seconds]
Cohedrin_ has joined #ruby
dionysus69 has joined #ruby
tgragnato has joined #ruby
moneylotion has left #ruby ["Leaving..."]
mikecmpbll has joined #ruby
graft_ has joined #ruby
graft is now known as Guest93253
GinoMan1423 has joined #ruby
graft_ is now known as graft
polysics has quit []
<graft>
ok, bundler trouble - i'm installing something from github, e.g. "gem 'mygem', github: 'mygem/mygem'", but it doesn't show up in gem list, only with bundle list
<graft>
even if i do bundle --system install
<graft>
on the other hand if i clone/build/install the gem by hand, it installs to gem list just fine
<graft>
any way to get bundler to do the same?
kies has joined #ruby
inkky has joined #ruby
nobitanobi has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 258 seconds]
urux has left #ruby [#ruby]
elsevero has joined #ruby
smithascari has quit [Remote host closed the connection]
roshanavand has quit [Quit: roshanavand]
kruppm has quit [Ping timeout: 268 seconds]
kruppm has joined #ruby
dasher00 has quit [Quit: Leaving]
dasher00 has joined #ruby
conta has joined #ruby
conta has quit [Client Quit]
hahuang65 has joined #ruby
conta has joined #ruby
davidmichaelkarr has quit [Quit: Connection closed for inactivity]
<dropsh0t>
graft, show the Gemfile
minimalism has joined #ruby
xzhao has quit [Remote host closed the connection]
bkxd has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
bkxd___ has quit [Ping timeout: 260 seconds]
bkxd__ has quit [Ping timeout: 268 seconds]
<matthewd>
graft: No; bundler doesn't install it locally, so it's not going to be there. Why do you care?
bkxd_ has joined #ruby
ascarter has joined #ruby
apofis has joined #ruby
elsevero has quit [Quit: elsevero]
synthroi_ has quit [Remote host closed the connection]
synthroid has joined #ruby
romank has joined #ruby
James123 has joined #ruby
romank has quit [Client Quit]
synthroid has quit [Ping timeout: 268 seconds]
ascarter has quit [Ping timeout: 268 seconds]
<James123>
I have create a hash like this: h = Hash.new( [] ), and I am trying to add values with h[ foo ] << bar, but it doesn't work... any ideas to fix it?
enterprisey has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
kruppm has quit [Ping timeout: 240 seconds]
xzhao_ has quit [Remote host closed the connection]
loechel has joined #ruby
<graft>
matthewd: i'm not sure why i care yet, i'm just trying to determine why there is a difference
xzhao has joined #ruby
<graft>
matthewd: i guess my reasoning is if i can install it locally, i don't have to require bundler to run my app
antgel has quit [Ping timeout: 260 seconds]
<baweaver>
James123: Define doesn't work
ruby-lang369 has joined #ruby
<ruby-lang369>
How can I update the version of ruby in a rails project that uses rvm?
<James123>
baweaver: Yes. h remains empty after h[ foo ] << bar
GinoMan1423 has quit [Ping timeout: 276 seconds]
<baweaver>
Make a .ruby-version file to make RVM detect it.
dviola has quit [Quit: WeeChat 1.8]
tuelz has quit [Ping timeout: 240 seconds]
GinoMan1423 has joined #ruby
<baweaver>
Are you literally passing foo to it or is that a string? Fake code isn't very easy to tell what's going on.
<baweaver>
Though you'll find that Hash.new(value) won't work with arrays. You'd need a block for that one: Hash.new { |h,k| h[k] = [] }
elsevero has joined #ruby
graft has quit [Ping timeout: 260 seconds]
<James123>
baweaver: foo is a variable that contains a string. Using the block as you suggested solved the problem. Thank you
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
gusrub has joined #ruby
gusrub has quit [Client Quit]
raspado has joined #ruby
enterprisey has joined #ruby
alex`` has quit [Quit: WeeChat 1.8]
DoubleMalt has quit [Ping timeout: 240 seconds]
ringrong has joined #ruby
jaruga________ has quit [Quit: jaruga________]
gusrub has joined #ruby
conta has quit [Quit: conta]
dionysus69 has quit [Ping timeout: 276 seconds]
snowcrshd has joined #ruby
greypilot has quit [Ping timeout: 260 seconds]
dhaller has joined #ruby
GodFather has joined #ruby
nadir has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.8]
futilegames has joined #ruby
hutch34 has joined #ruby
bkxd__ has joined #ruby
bkxd___ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
Bock has quit [Ping timeout: 255 seconds]
dionysus69 has joined #ruby
SeepingN has joined #ruby
Cohedrin_ has joined #ruby
graft has quit [Ping timeout: 258 seconds]
dionysus69 has quit [Client Quit]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
Zinefer has joined #ruby
<Zinefer>
hello everyone ... i am in rails and i have a class that i created in lib/ ... i am trying to get access to the current controllers name but it keeps giving me undefined errors
<mikecmpbll>
👍🏼 i remember all about it now. i was getting mad confused with the the .to_proc kinda &
cyphase has joined #ruby
sspreitz has joined #ruby
jane_booty_doe has quit [Quit: Leaving]
gusrub_ has joined #ruby
hahuang65 has joined #ruby
<Papierkorb>
mikecmpbll: just make sure to actually chain &., and not use just dot afterwards. `foo&.bar.baz` is equal to `(foo && foo.bar).baz`, which will most likely raise a NoMethodError.
runescape07rsps has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 276 seconds]
<mikecmpbll>
👍🏼
duderonomy has joined #ruby
gusrub has quit [Ping timeout: 268 seconds]
ur5us has quit [Remote host closed the connection]
ged_ has joined #ruby
ur5us has joined #ruby
ged has quit [Ping timeout: 240 seconds]
ged_ is now known as ged
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkazak_ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
catphish has joined #ruby
dasher00 has quit [Ping timeout: 276 seconds]
SuperLag has joined #ruby
jenrzzz_ has joined #ruby
<catphish>
so, i want to call linux's fallocate() (a kernel call) from ruby, there seems to be no built in way to do this, nor any gem i can find, am i right in thinking the only way to do this is to create a gem containing (probably minimal) c code?
rkazak_ has quit [Quit: Sleep.....ing....]
Coldblackice has joined #ruby
<catphish>
actually, perhaps FFI can do kernel calls without having to write any C
<catphish>
havenwood: i'm actually reading that code, sadly it doesn't actually call fallocate, despite its name
<havenwood>
catphish: yeah, was just reading myself
<catphish>
but it looks like a good example of how to do a system call in pure(ish) ruby
cyphase has joined #ruby
Coldblackice_ has quit [Ping timeout: 260 seconds]
<havenwood>
catphish: FFI seems like the right track to me.
<Ka>
Would be good to use for database for a bot i would like to use something that I could evenually interface with a rails application
<catphish>
havenwood: thanks, i will follow the example in that gem and see if it works
sspreitz has quit [Ping timeout: 240 seconds]
<havenwood>
Ka: DBM in various variants is in the stdlib. You could use YAML::DBM for String keys and YAML values.
Coldblackice_ has joined #ruby
<havenwood>
Ka: Do you want to use the same DB as your eventual Rails app? Or do you mean alongside? Or?
<Ka>
along side, mostly it will a user database and then a channel database
<havenwood>
Ka: I tend to use PostgreSQL with Rails.
<havenwood>
Ka: Whacha using this bot db for?
<havenwood>
Ka: What characteristics does it need?
khaki has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]
<havenwood>
Can it just be in memory or do you need disk persistence? Does it frequently read or write? Is it relational?
<Ka>
creating an irc bot, would like to evenually have a web panel (app) using rails
<Ka>
it would have the users and channels
moei has quit [Quit: Leaving...]
<havenwood>
Ka: You can always start with something simple and then swap in something more robust later.
sspreitz has joined #ruby
<havenwood>
Ka: Ruby has transactional file stores like PStore (using Marshal) and YAML::Store (using YAML) in the stdlib or the aforementioned YAML::DBM.
<Ka>
ok ill take a look at those thanks :)
<havenwood>
no prob, happy coding!
Coldblackice has quit [Ping timeout: 240 seconds]
bkxd__ has joined #ruby
bkxd___ has joined #ruby
Coldblackice_ has quit [Max SendQ exceeded]
SuperL4g has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
<havenwood>
A light wrapper around Rinda::TupleSpace makes a fine in-memory cache store for project spikes. I used one recently and was really happy with it.