stryek has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 256 seconds]
sphex has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
spacesuitdiver has quit [Ping timeout: 260 seconds]
sphex has joined #ruby
bvdw has joined #ruby
fphilipe has quit [Ping timeout: 256 seconds]
tpanarch1st has quit [Quit: Thanks for your help, nice to see you, take care.]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 272 seconds]
lxsameer has joined #ruby
zlogan has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
cjohnson has joined #ruby
<cjohnson>
Is there a good reason to pin to a specific bundler version?
<cjohnson>
We've been pinned to a version becasue of our ancient deployment process for a long time and I have the opportunity ot update, I could pin to a newer version or just stop pinning entirely
<cjohnson>
Any reason not to do the latter
lxsameer has joined #ruby
jenrzzz has joined #ruby
ttoocs has joined #ruby
fphilipe has joined #ruby
orbyt_ has joined #ruby
fphilipe has quit [Client Quit]
dviola has joined #ruby
sphex has quit [Read error: Connection reset by peer]
teclator has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
teclator has joined #ruby
ttoocs has quit [Ping timeout: 240 seconds]
sphex has joined #ruby
orbyt_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
r3m has quit [Quit: WeeChat 2.8-dev]
r3m has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
Intelo: What version of bundler and rubygems?
<havenwood>
Intelo: bundle -v
<havenwood>
Intelo: gem -v
<Intelo>
$ bundle -v
<Intelo>
Traceback (most recent call last): 2: from /usr/local/bin/bundle:23:in `<main>' 1: from /usr/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path' /usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
<Intelo>
gem -v
<Intelo>
2.7.6
<havenwood>
Intelo: Try a?: gem pristine bundler
<Intelo>
$ gem pristine bundler
<Intelo>
ERROR: While executing gem ... (Gem::Exception)
<Intelo>
Failed to find gems ["bundler"] >= 0
<havenwood>
Intelo: gem install bundler
<Intelo>
$ gem install bundler
<Intelo>
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.5.0 direct
<Intelo>
but sudo gem install bunder works
<Intelo>
$ sudo gem install bundler
<Intelo>
Successfully installed bundler-2.1.4
<havenwood>
Intelo: Ah, actually looking at paste.
<havenwood>
Intelo: Looks like you have Ruby installing gems to a system location, and Bundler dislikes that.
<Intelo>
ok. what should I do?
<havenwood>
Intelo: I'm curious, what version of bundler in the Gemfile.lock?
<havenwood>
Intelo: You can reconfigure this Ruby to install gems somewhere local or install Ruby differently so it's preconfigured like that.
<havenwood>
Intelo: tail Gemfile.lock
<havenwood>
Intelo: What's the BUNDLED WITH?
<Intelo>
rvm install 2.5.3
<Intelo>
bundler (>= 1.3.0)
timhugh has joined #ruby
<Intelo>
BUNDLED WITH
<Intelo>
1.16.6
<Intelo>
what should I do now?
timhugh has quit [Remote host closed the connection]
<havenwood>
Intelo: So this is an RVM Ruby? RVM recommends not doing a system install and it doesn't work nicely as the root user.
<havenwood>
Intelo: If this is a new RVM setup, I'd recommend `rvm implode --force`, restart the terminal, and reinstall RVM as a non-root user without sudo.
timhugh has joined #ruby
<havenwood>
Intelo: You might try with that version of Bundler, if you have further headache. I suspect a local install of RVM will clean up most problems.
timhugh has quit [Remote host closed the connection]
<Intelo>
Upgrading the RVM installation in /home/user1/.rvm/
<Intelo>
RVM sourcing line found in /home/user1/.profile /home/user1/.bash_profile /home/user1/.zlogin.
<Intelo>
RVM PATH line found in /home/user1/.mkshrc /home/user1/.profile /home/user1/.bashrc /home/user1/.zshrc.
conta has joined #ruby
<Intelo>
havenwood, restart system?
<havenwood>
shell session
<havenwood>
then check: rvm -v
<havenwood>
rvm list
<Intelo>
$ rvm -v
<Intelo>
rvm 1.29.9-next
<havenwood>
rvm list
<havenwood>
Intelo: The latest version of Ruby 2.5 is 2.5.7.
<Intelo>
looks like working
<Intelo>
havenwood, freaking legacy code might need 2.5.3 only
<havenwood>
Intelo: you can set a default Ruby like: rvm --default use 2.5.7
<havenwood>
Intelo: just bump the Gemfile to 2.5.7
<Intelo>
ruby is so complex, old, slow. Would you agree?
<havenwood>
Intelo: And: bundle
<havenwood>
Intelo: ope.
<havenwood>
Intelo: It's complex, yes. Programming languages are.
<Intelo>
havenwood, no the language itself is good
<Intelo>
I mean, I like it
timhugh has quit [Quit: timhugh]
<havenwood>
Intelo: Old, no. It's fairly new.
<havenwood>
Intelo: Slow, at what? Show me a thing you're doing that's too slow?
<Intelo>
generally the app
<havenwood>
is that generally because of the db?
<havenwood>
(i imagine it is)
<havenwood>
or waiting on API calls?
<Intelo>
hm.
<havenwood>
Intelo: I don't imagine you're really computing anything with Ruby?
<havenwood>
Intelo: If you were, write a C extension?
<Intelo>
hm. C ext. What do you mean
<havenwood>
Intelo: Ruby is generally plenty fast enough, but traditionally Rubyist write extentions in C for bits they'd like to be faster. Ruby has a C extension interface as well as FFI and Fiddle to do that sort of thing.
<havenwood>
Intelo: CRuby is also just one Ruby interpreter.
<Intelo>
so that will be pure C language in ruby?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
Intelo: The reference implementation, and most widely used version of Ruby is written in C and uses mostly C extensions. Other popular Rubies are JRuby, which is written in Java and has mostly Java extensions. Or TruffleRuby has incredible interop.
<havenwood>
Intelo: It's fairly common to see gems that have a C-ext and Java-ext variant as well as a pure Ruby one.
cliluw has quit [Ping timeout: 256 seconds]
<Intelo>
So the syntax would be java/c?
<havenwood>
Intelo: If Ruby is complex, what language isn't?
<havenwood>
Intelo: I'm super curious what you're thinking of?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
I guess the grammar is complex.
<Intelo>
havenwood, maybe I meant of so much encapsulation. e.g java ruby has. vs nodejs/javascript done
<Intelo>
dont
<havenwood>
What do you mean by encapsulation?
<havenwood>
Like public/private?
neo_geo_best_con has joined #ruby
<havenwood>
You can do similar in Node.js or not use it in Ruby to little effect.
<neo_geo_best_con>
hi
<havenwood>
neo_geo_best_con: hi
<Intelo>
let me get back to it in few minuts
<neo_geo_best_con>
What do you think about Crystal ?
normanrockwell has joined #ruby
<havenwood>
neo_geo_best_con: I love the idea. I've not done a real app in Crystal but enjoy making little command line tools in it. What are you thinking of using it for?
<neo_geo_best_con>
Is true it is a Joke ?
<neo_geo_best_con>
Someone on Reddit say Crystal is a joke
<neo_geo_best_con>
compare to Elixir
<leftylink>
seems pretty serious. there is a company
<havenwood>
neo_geo_best_con: It's a very different thing than Elixir, but not a joke.
<neo_geo_best_con>
He said, he will never use Crystal Amber
<havenwood>
neo_geo_best_con: Crystal is a typed, compiled language using LLVM. Elixir is a dynamic language on the BEAM, the Erlang VM.
<neo_geo_best_con>
since Crystal is a joke
<havenwood>
neo_geo_best_con: I'd ignore folk who talk about languages being old or a joke.
normanrockwell has quit [Ping timeout: 256 seconds]
<neo_geo_best_con>
He even said Perl Mojolicious is by far better
<leftylink>
I think probably the best example of a language that is a joke is INTERCAL?
<havenwood>
neo_geo_best_con: haha
<neo_geo_best_con>
and Ruby Rails incredible better
<havenwood>
neo_geo_best_con: Phoenix is really quite nice. Rails too. What are you making?
<Intelo>
havenwood, I meant the library/ framework encapsulation. So many boilerplate/ conventions etc
<havenwood>
neo_geo_best_con: For a minimalist framework in Ruby, I think Roda is a study in excellence. It's just a routing tree as a base, and then you cherry pick plugins to compose a framework.
<Intelo>
You get a server running in3 lines in node.js, then its up to you to follow conventions or do it raw or use a lib
<havenwood>
Intelo: Heh, boilerplate isn't something I associate with Ruby, but I guess I see what you mean if by Ruby you mean Rails.
<Intelo>
yes
<Intelo>
ruby is of less use without rails I guess?
jenrzzz has joined #ruby
<havenwood>
Intelo: Don't judge a language by a single framework.
<havenwood>
Intelo: It's in broad use outside of Rails, but still owes Rails for helping bring it to popularity.
<Intelo>
havenwood, if you compare ruby vs python. What are your vies?
<Intelo>
view*
<havenwood>
Intelo: If you see it as just Rails, take off the blinders.
chalkmonster has joined #ruby
<Intelo>
blinders? my English is not native
<havenwood>
Intelo: They're both lovely, popular languages.
<Intelo>
havenwood, what are you most loveliest language choices?
<havenwood>
Intelo: There's lot of work being done to improve both languages, they remain strong, in broad use, with bright futures.
<neo_geo_best_con>
Serious do you think Crystal Amber is soo bad ?
<havenwood>
neo_geo_best_con: No, I'd definitely not say that. I haven't used it anywhere near enough to have an opinion. It seems nice.
<havenwood>
It seems nice is the limit of my opinion.
<havenwood>
I'm sure someone else here knows more about it.
<neo_geo_best_con>
Ok thanks
<havenwood>
neo_geo_best_con: What are you making?
<neo_geo_best_con>
I'm not making anything at all
<havenwood>
neo_geo_best_con: It's really nice to deploy with an app like amber, since you get a single binary that *just works*.
<havenwood>
neo_geo_best_con: Elixir is on a battle tested VM, I like the functional style, and Elixir and Phoenix have excellent tooling.
<havenwood>
neo_geo_best_con: Rails is great. Or Hanami is a recent Rails-like framework that has a lot of attention to clean code. Roda is my favorite lightweight Ruby option, as I've mentioned.
<neo_geo_best_con>
Some say Elixir will kill Ruby, do you think it's possible ?
<havenwood>
neo_geo_best_con: I don't see the two languages fate as intertwined, other than Ruby inspiring Elixir choices and then cross-inspiring Matz to make some functional additions.
<neo_geo_best_con>
Is Matz sleeping ?
<havenwood>
neo_geo_best_con: At 5:44 PM? Unlikely.
<neo_geo_best_con>
Some say Ruby take a lot of time to get faster
<neo_geo_best_con>
and it's still slow
<neo_geo_best_con>
I don't know by my self, since I have never use Ruby for web
<havenwood>
neo_geo_best_con: These days, single languages run on many VMs, some fast some slow. Interpreted C runs as fast as compiled C. Distrust those who say any of the most popular dozen languages are slow. They're plenty fast.
Helenah has quit [Ping timeout: 272 seconds]
<havenwood>
neo_geo_best_con: Web speed is mostly I/O fwiw. Not many write web apps in C, just not the slow part.
<neo_geo_best_con>
To be getting start on Ruby, which framework do you recommend ?
<havenwood>
neo_geo_best_con: I'd suggest starting with a very tiny Rack app. Try a few routes, note how it's a pain. Then convert your app to Roda.
<havenwood>
(take it for what it's worth, since the heavy ones look silly)
<havenwood>
I guess Rails looks nicer now in the Rails API days.
<havenwood>
And Hanami is composed, so not bad there, just minimalist.
<neo_geo_best_con>
The Sinatra one look clean also
<neo_geo_best_con>
Thanks !
<havenwood>
neo_geo_best_con: Sinatra has been popular a long time. I moved to Roda since it's super well maintained, and composing just what you need means its faster and less memory.
<havenwood>
"you’d be mad to make your choice of programming language and web framework on anything but a determination of what’ll make your programmers the most motivated, happy, and productive"
conta has joined #ruby
schne1der has joined #ruby
conta has quit [Client Quit]
conta has joined #ruby
alfiemax has quit [Remote host closed the connection]
neo_geo_best_con has quit [Remote host closed the connection]
renich has quit [Ping timeout: 240 seconds]
tsujp has quit [Ping timeout: 272 seconds]
tsujp has joined #ruby
alfiemax has joined #ruby
romanblanco has joined #ruby
conta has quit [Quit: conta]
lxsameer has joined #ruby
ttoocs has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
rippa has joined #ruby
jenrzzz has joined #ruby
<Intelo>
havenwood, whats the minimum ram memory and cpu is needed for a rails app for just one user?
sagax has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
claudiuinberlin has joined #ruby
chalkmonster has joined #ruby
lineus has quit [Remote host closed the connection]
lineus has joined #ruby
howdoi has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
Ven`` has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zlogan has joined #ruby
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
turbo_choo has quit [Ping timeout: 260 seconds]
turbo_choo has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
clemens3 has quit [Quit: WeeChat 2.1]
fphilipe has quit [Ping timeout: 256 seconds]
AndreYuhai has joined #ruby
<AndreYuhai>
Hey there, can I create rake tasks for automating stuff and then execute tasks daily with a cronjob? I mean is this how it's properly done? I do not have any experience with rake.
<AndreYuhai>
I mean create a cronjob with `rake task` instead of using the `ruby script.rb`
normanrockwell has joined #ruby
normanrockwell has quit [Ping timeout: 240 seconds]
turbo_choo has quit [Ping timeout: 240 seconds]
normanrockwell has joined #ruby
turbo_choo has joined #ruby
Helenah has joined #ruby
lucasb has joined #ruby
schne1der has quit [Ping timeout: 272 seconds]
clemens3 has joined #ruby
claudiuinberlin has joined #ruby
ratah has joined #ruby
dionysus69 has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
alex` has joined #ruby
alex` is now known as Guest26629
normanro_ has joined #ruby
normanrockwell has quit [Ping timeout: 256 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 272 seconds]
zlogan has quit [Ping timeout: 272 seconds]
Guest26629 is now known as alex``
normanrockwell has joined #ruby
johnny56_ has quit [Ping timeout: 240 seconds]
normanro_ has quit [Ping timeout: 240 seconds]
tryhard21 has joined #ruby
normanrockwell has quit [Remote host closed the connection]
normanrockwell has joined #ruby
normanrockwell has quit [Ping timeout: 240 seconds]
normanrockwell has joined #ruby
<Intelo>
whats the minimum ram memory and cpu is needed for a rails app for just one user?
<ewanchic>
intelo: What's the application, dev or server?
<Intelo>
dev
<ewanchic>
what do you have so far?
<Intelo>
none
<ewanchic>
oh, are you trying to build one from scratch, or making use of junk?
<Intelo>
just a login page
<Intelo>
yes
<ewanchic>
yes too...?
<Intelo>
sorry?
<ewanchic>
building a new computer from scratch, or make use of junk?
<Intelo>
not building computer.
<Intelo>
its rails app
<ewanchic>
no, I understand...but it just ALL DEPENDS on ...a lot of factors. If you use linux, you can do a lot with older machines. If you use windows, we'll you're going need more. But you're saying you don't have a computer.
<ewanchic>
If you doing a school project, or a demo, maybe its temp. If you're going in for deeper dev, you need more. You don't need much to code and run. You can use a simple text editor. the more tools you need to develop eaiser and quicker, you might need more.
sergioro has quit [Quit: leaving]
<ewanchic>
is a rails app your 1st coding project?
jenrzzz has joined #ruby
impermanence has joined #ruby
<ewanchic>
Intelo: Are you still there?
jenrzzz has quit [Ping timeout: 260 seconds]
<Intelo>
ewanchic, yes
<Intelo>
ewanchic, linux buntu 18 lts,
<Intelo>
dual core
<Intelo>
ewanchic, rails app is my first
<ewanchic>
how much memory?
<ewanchic>
$ free -G
<ewanchic>
sorry, $ free -g
<_phaul>
gigibyte? are you sure?
<_phaul>
gibi*
<ewanchic>
LOL, yes, I'm sure
<Intelo>
I was asking how much I need
<ewanchic>
how much do you have?
<ewanchic>
or, you don't have any?
Ven`` has joined #ruby
<ewanchic>
to get a ubuntu 18.04 desktop, I'd probably have at least 2G, really 4G. If you can get 8GB, that would be great. you going to need at least 2GB to run the desktop environment. You're going to need a browser. You'll also need a database server. You can get by with sqlite3, if you're just experiementing. But real rails apps use a db server, typically mysql, or postgresql (my fav), but there is also others, mariadb, mongo, etc.