<dionysus69>
szqdsegrhrdgdrg: in well I assume you mean performance, yes in my experience digitalocean dropplets have best performance, both in terms of disk IO (SSD) and cpu
<dionysus69>
but in order to deploy to basic VPS, you need to research lots of things, including tools like capistrano. how much experience do you have in rails?
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<szqdsegrhrdgdrg>
dionysus69 Basic experience. I create a small blog on my local computer, and an URL shortener
<szqdsegrhrdgdrg>
but never deployed on the web
<dionysus69>
ok then, go get a dropplet, setup stuff like RVM or simply install ruby, then look into tool like capistrano, it deploys app using ssh. then setup nginx and that's pretty much it. there are many tutorials online for this kind of basic setup
BSaboia has quit [Quit: This computer has gone to sleep]
mikecmpbll has quit [Ping timeout: 256 seconds]
ruby-lang297 has quit [Client Quit]
ruby-lang297 has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
ruby-lang297 has quit [Client Quit]
ruby-lang297 has joined #ruby
mikecmpbll has joined #ruby
<isene>
Anyone here with good knowledge of Ruby Curses? Need some help with key catches and windows not updating
mistergibson has joined #ruby
lxsameer has quit [Quit: WeeChat 2.9]
ur5us has joined #ruby
al2o3-cr has joined #ruby
BSaboia has joined #ruby
adu has quit [Quit: adu]
BSaboia has quit [Client Quit]
BSaboia has joined #ruby
xco has joined #ruby
Ediz has joined #ruby
<Ediz>
Hello everyone
<Ediz>
Hope you're having a good day
<Ediz>
Question: Is it possible to utilise 3rd party gems in a gem and then use that gem in an application? I'm trying to write a gem that uses the rb-redis gem, but when I require 'redis' within my gem, it gives me a load error. What am I doing wrong?
<Ediz>
How to make sure 3rd party gems within my gem are loaded in the loadpath?
dfucci has quit [Ping timeout: 258 seconds]
<Ediz>
or am I doing something completely wrong? ty in advance for the help :)
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<burgestrand>
Ediz yes, it's possible — how are you testing it?
<burgestrand>
Ediz I'd even go as far as to say most common gems have their own dependencies, which in turn has _their_ own dependencies, and so on
<Ediz>
I'm not yet, I'm just trying to hook things up, and then manual testing
<Ediz>
but my next steps are doing automated testing
<Ediz>
once I have some basic logic going
<burgestrand>
Ediz manual testing is also testing :) what are you doing to get a load error?
<Ediz>
I'm loading the class from my gem in my application, my gem is trying to require 'redis' which I included in a gemfile there, I think this is the wrong approach now - looking into it throught the above link I sent
<Ediz>
something something with bundler :)
<burgestrand>
Ediz I might recommend you try to generate the initial gem files using `bundle gem <your gem name>` — it will create the files you need, a basic setup for testing, and hopefully it'll just work
<Ediz>
I will read on, and try in a little while. I hope so too. :) tyvm
<EdwardIII>
you know, i'd kind of been scared of threads forever, but, in a read-only part of my code, they were a great solution, and were probably easier to use and more readable/understandable/better-error-handlingthan promises
vondruch has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
drincruz has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
mensvaga has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
kwilczynski has quit [Ping timeout: 260 seconds]
djellemah has joined #ruby
grvgr_ has joined #ruby
en10n_ has joined #ruby
kwilczynski has joined #ruby
timwis_ has joined #ruby
en10n has quit [Ping timeout: 258 seconds]
en10n_ is now known as en10n
<isene>
How can I use bat (with massive highlightings) to transfer the highlighting into a ruby curses window for viewing files with syntax highlighting?
grvgr has quit [Ping timeout: 240 seconds]
grvgr_ is now known as grvgr
timwis has quit [Ping timeout: 256 seconds]
timwis_ is now known as timwis
drincruz has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
leftylink has quit [Quit: Lost terminal]
leftylink has joined #ruby
TCZ has quit [Quit: Leaving]
joshuacronemeyer has joined #ruby
joshuacronemeyer has quit [Ping timeout: 260 seconds]
TCZ has joined #ruby
vondruch has joined #ruby
bmurt has joined #ruby
Rudd0 has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12>
janemba: I'd probably try installing ruby through installpkg, then build your source Ruby. I'm inclined to believe miniruby is having some sort of weird issue there. Maybe a system ruby will function correctly.
TCZ has quit [Quit: Leaving]
Rudd0 has joined #ruby
burgestrand has quit [Quit: burgestrand]
impermanence has joined #ruby
rafadc_ has joined #ruby
rafadc has quit [Ping timeout: 260 seconds]
<janemba>
havenwood: I have only one version
skryking has quit [Remote host closed the connection]
<havenwood>
janemba: Which OS/distro?
skryking has joined #ruby
ntt has quit [Ping timeout: 260 seconds]
Emad has quit [Remote host closed the connection]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
iNs has quit [Ping timeout: 240 seconds]
iNs_ has joined #ruby
weaksauce has joined #ruby
coniptor has joined #ruby
howdoi has joined #ruby
pgib has quit [Ping timeout: 240 seconds]
imode has joined #ruby
jobewan has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
kerframil has joined #ruby
<nakilon>
meh, knowing there are method that are not in `.methods`, how am I supposed to find if there are other methods I might want to use?... like dumping the response to a file for later use -- Marshalling is clumsy, to_hash destroys of all iterating methods but maybe there is some special dumping method in protobuf standard but I don't know it
skryking has quit [Quit: Konversation terminated!]
skryking has joined #ruby
<nakilon>
I just suppose that if I use Marshall I may be unable to unmarshal it later with newer versions of gems
alfiemax has quit [Ping timeout: 256 seconds]
ntt has joined #ruby
<havenwood>
nakilon: The Ruby protobuf gem just happens to be implemented with #method_missing where you can't introspect. They didn't have to implement it that way, and it has annoyed me enough to briefly consider proposing a patch, but they did do it that way.
ramfjord has joined #ruby
prestorium has quit [Ping timeout: 256 seconds]
<janemba>
havenwood: slackware
titanbiscuit has joined #ruby
Ediz has quit [Read error: Connection reset by peer]
rafadc_ has quit [Ping timeout: 260 seconds]
ntt has quit [Ping timeout: 256 seconds]
cthulchu_ has quit [Read error: Connection reset by peer]
cthulchu_ has joined #ruby
ntt has joined #ruby
ellcs1 has quit [Remote host closed the connection]
ellcs1 has joined #ruby
ruurd has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rafadc has joined #ruby
ntt has quit [Ping timeout: 240 seconds]
gix has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
bocaneri has quit [Remote host closed the connection]
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #ruby
solars has joined #ruby
<Tuor>
Hi, how can I iterate over the 10 first items of an array?
rippa has joined #ruby
<Tuor>
ah now got it: .take(10).each
akem has joined #ruby
supercoven has quit [Ping timeout: 258 seconds]
braincrash has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
braincrash has joined #ruby
burgestrand has joined #ruby
a-l-e has quit [Ping timeout: 240 seconds]
cnsvc has joined #ruby
<dionysus69>
Tuor: or .first(10)
<dionysus69>
there's also .last(10)
prestorium has joined #ruby
BSaboia has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
<jhass>
take and first are aliases fwiw
<nakilon>
and I hate it
<nakilon>
I would deprecate take(n)
<dionysus69>
I have never used take :P first makes more sense, is following the path of the force more
<nakilon>
having lots of aliases makes people assume everything that seem to work the same to be the same, like .count and .size
<dionysus69>
.size and .length are aliases, but at first I didn't know that and I had to google it couple times before I could remember lol, especially the difference between count and size
BSaboia has quit [Quit: This computer has gone to sleep]
ur5us has joined #ruby
<havenwood>
jhass: They're not aliases!
<havenwood>
They do function the same in this case, so as good as for these purposes.
<manuelpinot>
gpg: key 3804BB82D39DC0E3: new key but contains no user ID - skipped
<manuelpinot>
gpg: Cantidad total procesada: 2
<manuelpinot>
gpg: sin identificador: 1
<manuelpinot>
gpg: importadas: 1
x0n- has quit [Ping timeout: 244 seconds]
donofrio_ has joined #ruby
donofrio has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 260 seconds]
cgfbee has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
ap4y has joined #ruby
justache has quit [Quit: Ping timeout (120 seconds)]
Azure has quit [Read error: Connection reset by peer]
brendan- has quit [Ping timeout: 260 seconds]
woodruffw has quit [Ping timeout: 260 seconds]
justache has joined #ruby
Azure has joined #ruby
cinci_kal has joined #ruby
ap4y has quit [Ping timeout: 260 seconds]
rcvu has quit [Ping timeout: 258 seconds]
ap4y has joined #ruby
cgfbee has joined #ruby
brendan- has joined #ruby
rcvu has joined #ruby
woodruffw has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Changing host]
<cinci_kal>
when including or prepending a module that has a self.test_this method, if calling MyModule.test_this before the method definition, I am unable to access the method with MyClass.instance_method(:test_this) which i would expect.
<cinci_kal>
sorry, I worded that wrong. I'm gonna create a gist real quick
<cinci_kal>
ok so basically what I would like to do is somehow load the class's methods so that the methods could be found via the module's method. Is this possible somehow? I know Ruby is a top down language but I wasn't sure if there was some ruby-foo to accomplish this
<cinci_kal>
if I call the module method below all the method definitions in the class, it works, but it would be ideal to be able to call the method at the top of the file