...to the :assets group in your Gemfile: gem 'compass-rails' gem 'oily_png' Run bundle install. Add a config/compass.rb with the following content: project_type = :rails generated_images_dir = 'app/assets/images/sprites...
Try fully removing and re-installing the gem: gem uninstall mysql mysql2 bundle install
after 'deploy:finished', 'deploy:after_deploy_tasks' # Keep this last Deploy with bundle exec. Now, when deploying, Capistrano will first check if there are any pending before deploy...
...For Capistrano 2 set :application, 'PROJECT_NAME' # might be already set set :whenever_command, "bundle exec whenever" require 'whenever/capistrano' Note that "whenever" will not use a :cron role, but instead...
...transactions and other shared states), you should not enable it just for fun. Use bundle exec puma -t 0:1 -w 1 -p 3000 to debug concurrency issues. Legacy
uses: nick-invision/retry@v2 with: timeout_seconds: 30 max_attempts: 3 command: bundle exec rake spec
When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they are plain Ruby files. But there is help! Solution
...to encounter several issues. Here are a few solutions (obviously not exhaustive): When running bundle install, a gem called linecache complains about not being compatible This is a dependency of...
Installation In your Gemfile: gem 'rmagick', :require => false gem 'gruff' Then run bundle install (and don't forget to restart your development server.) Usage This is a common...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
...to remove it with gem uninstall mysql2 and then reinstall it (or just run bundle). gem pristine mysql2 will not be enough...
...in README rewritten: Now describes two usage scenarios. Improvements Generating a fixed Gemfile.lock. Run bundle update after code generation to update all gems to recent versions. Better deployment with Webpack...
...a tradition of breaking details of its scope API every other release. The gem bundles multiple patches and initializers we've been using for hardcore work with scopes (or relations...
If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...
...echo 'not running'").start_with?('not running') end def god_command "cd #{current_path}; bundle exec god" end desc "Stop god" task :terminate_if_running do if god_is_running...
...net-ssh' gem by adding to your Gemfile: gem 'net-ssh', '=2.9.1' Now run bundle update net-ssh. It has no dependencies so it shouldn't update other gems.
...job_type :exclusive_rake, "cd :path && flock -n 'tmp/pids/cron_:task.lock' -c ':environment_variable=:environment bundle exec rake :task --silent --backtrace :output'" every 1.minute do exclusive_rake 'my:job:name'
Tool to show you which gems are slow to load: ➜ git:(master) ✗ bundle exec bumbler [################################################# ] (49/65) travis-lint... Slow requires: 110.21 render_anywhere 147.33 nokogiri 173.83 haml 179.62 sass-rails...
...reduce the webdriver update interval and see if VCR complains: WD_CACHE_TIME=1 bundle exec cucumber Note: Newer Rails versions come with the webdrivers gem automatically...
...method to wrap any system calls to the test application def prepare_environment(&block) Bundler.with_clean_env do # Spring leads to all kinds of unexpected behavior in tests. ENV['DISABLE...
...for rake tasks in schedule.rb job_type :backtraced_rake, "cd :path && :environment_variable=:environment bundle exec rake :task --silent --backtrace :output" every 15.minutes do backtraced_rake 'users:send_notifications'
SVG files often contain redundant information, like editor metadata or hidden elements. When esbuild handles your static assets, you can...
...Raven.configure block: config.environments = ['development', 'staging', 'production']. Remove better_errors from Gemfile if existing and bundle. With Raven.capture_message('Test from development') you can test your setting on console. Raising an...
...features/support. --dry-run makes Cucumber skip loading env.rb. Open a really wide terminal window. bundle exec cucumber --dry-run --format stepdefs | grep -B1 'NOT MATCHED' --no-group-separator | grep features/step_definitions...