rails bundle clean

If you are using Bundler 1.1 or later you can use bundle clean, just as you imagined you could. This is redundant if you’re using bundle install –path (Bundler manages the location you specified with –path, so takes responsibility for removing outdated gems), but if you’ve used Bundler to install the gems as system gems … Read more

Ruby Gemspec Dependency: Is possible have a git branch dependency?

This is not possible, and likely never will be because it would be rather heavy-handed for RubyGems to allow gem developers to require that users have a specific version control system installed to access a gem. Gems should be self-contained with a minimal number of dependencies so that people can use them in as wide … Read more

Should I specify exact versions in my Gemfile?

This is the purpose of the Gemfile.lock file – running bundle install with a Gemfile.lock present only installs using the dependencies listed in there; it doesn’t re-resolve the Gemfile. To update dependencies / update gem versions, you then have to explicitly do a bundle update, which will update your Gemfile.lock file. If there wasn’t a … Read more

Bundler: You are trying to install in deployment mode after changing your Gemfile

The error message you’re getting regarding Gemfile.lock may be because your Gemfile and Gemfile.lock don’t agree with each other. It sounds like you’ve changed something in your Gemfile since you last ran bundle install (or update). When you bundle install, it updates your Gemfile.lock with any changes you’ve made to Gemfile. Make sure you run … Read more

Bundler: can’t find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) during bundle install with gem

Bundler version 2 introduced a new feature to automatically use the version of Bundler specified in the Gemfile.lock of your project. Thus, if you have an existing Gemfile.lock with a line like this at the bottom BUNDLED WITH 1.17.3 Bundler will try to run with a Bundler version < 2.0. Since you just have Bundler … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)