Installing mysql2 gem errors on MacOS Mojave.
Make sure openssl is installed on Mac via Homebrew.
brew install openssl
| require 'benchmark' | |
| def print_memory_usage | |
| memory_before = `ps -o rss= -p #{Process.pid}`.to_i | |
| yield | |
| memory_after = `ps -o rss= -p #{Process.pid}`.to_i | |
| puts "Memory: #{((memory_after - memory_before) / 1024.0).round(2)} MB" | |
| end |
I hereby claim:
To claim this, I am signing this object:
http://guides.railsgirls.com/app/ - Sukurtos interneto svetainės žingsniai per Railsgirls
https://www.codeschool.com/courses/try-ruby - Ruby pamokos
https://www.codeschool.com/courses/rails-for-zombies-redux - Ruby on Rails pamokos
http://vilniusrb.lt - Ateinantys renginiai
Yukihiro Matsumoto (mruby: AltRuby)
Piotr Szotkowski (Standard Library, Uncommon Uses) http://talks.chastell.net/baruco-2014
Pat Shaughnessy (Twenty Thousand Leagues Under ActiveRecord)
| lt: | |
| devise: | |
| confirmations: | |
| confirmed: "Jūsų el. pašto adresas sėkmingai patvirtintas." | |
| send_instructions: "Už kelių minučių el. paštu gausite instrukcijas, kaip patvirtinti savo vartotoją." | |
| send_paranoid_instructions: "Jei jūsų el. pašto adresas yra mūsų duomenų bazėje, kelių minučių bėgyje gausite laišką su patvirtinimo instrukcijomis." | |
| failure: | |
| already_authenticated: "Jūs jau esate prisijungęs." | |
| inactive: "Jūsų vartotojas dar nepatvirtintas." | |
| invalid: "Neteisingas el. paštas arba slaptažodis." |
| # -*- encoding : utf-8 -*- | |
| set :assets_dependencies, %w(app/assets lib/assets vendor/assets Gemfile.lock config/routes.rb) | |
| namespace :deploy do | |
| namespace :assets do | |
| desc <<-DESC | |
| Run the asset precompilation rake task. You can specify the full path \ | |
| to the rake executable by setting the rake variable. You can also \ |
| lt: | |
| admin: | |
| js: | |
| true: Taip | |
| false: Ne | |
| is_present: Is present | |
| is_blank: Is blank | |
| date: Data ... | |
| between_and_: Tarp ... ir ... | |
| today: Today |
| load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
| load 'deploy/assets' | |
| Dir['config/recipes/*.rb'].each { |plugin| load(plugin) } | |
| load 'config/deploy' |
| require 'resque/errors' | |
| class DatabaseBackupJob | |
| def self.perform(id, foo, bar) | |
| # do backup work | |
| rescue Resque::TermException | |
| # write failure to database | |
| # re-enqueue the job so the job won't be lost when scaling down. | |
| Resque.enqueue(DatabaseBackupJob, id, foo, bar) |