This is how you do it (key shortcuts apply for TextMate2) Open the bundle editor (ctrl + alt + + B) Create a new Item ( + N), select "Command" Paste this: ^ #!/usr/bin/env ruby...
...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'
...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'
It is possible to access Rails config (for example secrets) from within your webpack bundles, thanks to rails-erb-loader. When using webpacker, the setup is like this:
...plugin would require the sqlite3 gem, but that gem wasn't in the Gem bundle. Rack only parses 65536 form params by default Problem can occur when using the integrated...
...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...
...If you do this, your gemspec will not validate and modern versions of Bundler will silently ignore it. This leads to errors like: Could not find your-gem-0.1.2 in...
After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri. This is not a problem of the gem but is due...
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...
If you make a gem with Bundler, you will get a rake release task that will instantly publish your gem to rubygems.org for all the world to admire. For private...
...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...
Try fully removing and re-installing the gem: gem uninstall mysql mysql2 bundle install
The bug is fixed in a new version of RSolr. Simply run bundle update rsolr. Version 1.0.6 works for us...
Improve geordi deploy: Find stages by their prefix (e.g. s -> staging, m -> makandra), bundle if needed, check the selected stage exists Improve geordi server: Takes port as argument (e.g. geordi...
Fix Rubygems binary error: undefined method `activate_bin_path' for Gem:Module (NoMethodError) Bundler: Gemfile.lock is corrupt & gems are missing from the DEPENDENCIES section
After installing Bundler 1.1 you will get the following warning when running tests: WARNING: Cucumber-rails required outside of env.rb. The rest of loading is being defered until env.rb is...
...up tests (now running in about 9 min) Improve development workflow (see README) No bundler issues in tests any more
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
...r --clear-sources -s 'https://user:password@gemserver.tld/' This is useful to debug cases where Bundler complains of a gem existing in more than one gem source...