github.com

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...

makandra dev
github.com

...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'

ombulabs.com

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'

...certificate-name www.example.com-2013010-2014010 --certificate-body www.example.com.crt --private-key www.example.com.key --certificate-chain www.example.com.ca-bundle A client error (MalformedCertificate) occurred: Invalid Public Key Certificate. That's because of the format...

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...

...one by one, fixing errors as they occur: Update gems as listed below, and bundle Boot a Rails console - see below for a list of changes you will probably need...

If yes, merge the master into the production branch, push and deploy with bundle exec cap production deploy:migrations The script will ask you for the names of your...

Run bundle update cucumber capybara cucumber-rails to update to the newest versions. Backup your features/support/path.rb to be able to add your own paths again after the cucumber installation script...

progfu.com

...you don’t have to put it in your Gemfile or run it with Bundler, all you need to do is create a JSON config file via zeus init and...

makandra dev
stackoverflow.com

...by either checkout, reset [--hard], stash, probably Rails' Spring is the culprit and not Bundler itself. Fix spring stop The author of the linked Stackoverflow post supposes Spring re-writes...

...in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you have bundled your project with the local copy of the gem, all code changes in the copy...

makandra dev
github.com

...up tests (now running in about 9 min) Improve development workflow (see README) No bundler issues in tests any more