bundler.io

...I recommend to execute the previous command in the parent folder of all your git repos. Updating rubygems Determine the installed version: gem --version Update your rubygems version # specific version...

...spec files which have been edited or added in the current branch since master: git diff --name-only master -- ./spec | xargs -I{} rspec {} If you have several spec folders add...

This is how to update a gem that was cut using Bundler: Say git pull or check out a repository from Github like git clone git@github.com:makandra/geordi.git

...commit your changes. You can but don't need to push your changes to Github. If you haven't logged in to Rubygems.org before: Get credentials for Rubygems.org from the...

docs.zizmor.sh

...CI/CD workflows for potential security issues and suboptimal defaults if they are based on GitHub Actions. For example, it warns you about string interpolations that may expand into attacker-controllable...

...the checkout action actions that are not pinned to a tag instead of a git SHA Some of the warnings can be auto-fixed. The tool comes with its own...

When you have a Pull Request on GitHub that includes commits from another Pull Request, you will still see them after the "child" PR has been merged. Unfortunately, GitHub won...

...or commit list). Here is what worked for me: Check out the target branch git checkout my-target-branch Make sure you are up to date against origin (e.g. git...

...our mysql2 fork, 0.2.x-lts and 0.3.x-lts. Use gem 'mysql2', git: 'https://github.com/makandra/mysql2', branch: '0.2.x-lts' # for Rails 2.x gem 'mysql2', git: 'https://github.com...

...in the dump. In this example we use the initial migration without the fix. git log --reverse ./db/migrate/20200729124233_add_users.rb commit d4848ad598b2f02cbca7580a2b928d02996abeb4 Author: Some user <some.user@example.com> Date: Thu Jul...

...Fix error in users migration Checkout this commit SHA git checkout d4848ad598b2f02cbca7580a2b928d02996abeb4 3. Delete the database, import the dump and migrate to the current branch git checkout d4848ad598b2f02cbca7580a2b928d02996abeb4

...main or similar) and proceeds to deploy staging afterwards: alias await-deployment='watch -g git pull && bundle exec cap staging deploy' Note Use at your own risk.

...eventually run into conflicts. Expect them and be fine with it. :) When done, use git rebase -i to squash all reverts into one commit. This will make it a lot...

...be tricky. If the diff is too unreadable, you can cheat by doing a git show master:path/to/file and see what the deployed state looks like -- it's probably correct...

...If it's still missing, open a request on the ruby-build issue tracker: https://github.com/sstephenson/ruby-build/issues (Fun fact: Recent versions of ruby-build will give you a more helpful...

...On Linux, you probably installed ruby-build as an rbenv plugin. Updating is easy: git -C ~/.rbenv/plugins/ruby-build pull Done. Rbenv will know about the new versions immediately...

Clone your project a 2nd time, into a new differently named directory. Example: git clone git@example.com:repo repo-copy (if your git server is slow you can also just...

semaphoreci.com

...for our own projects. Configuration that is not needed any more set :copy_exclude, ['.git'] The .git repository is excluded from the current directory on the server, but its contents...

...fork. In your Gemfile, change mysql2 to either # for Rails 2.3 gem 'mysql2', :git =>'https://github.com/makandra/mysql2', :branch => '0.2.x-lts' # for Rails 3.x gem 'mysql2', git: 'https://github.com...

...are running on CI. For this you might also want to commit tmp/.gitkeep to git so the tmp dir inside your project is present. Example Dir.mktmpdir('exports') => "/tmp/exports20220912-14561-pobh0a" Improving your...

github.com

To use it, add this to your Gemfile: gem 'mongo_mapper', :git => 'git://github.com/makandra/mongomapper.git', :branch => 'rails2' [1] The last version to be compatible with Rails 2 was...

...the assets built by esbuild are missing in public/assets. Solution: Add app/builds to your git repo (by adding a app/builds/.keep file). Something in sprockets is caching paths and refuses to...

...same key you used for connecting to the application server - forwarded automatically to the git repository. If you prefer the second way, add this to deploy.rb: ssh_options[:forward_agent...

...is fixed in a fork, so say this in a Gemfile: gem 'tmail', :git => 'https://github.com/eac/tmail.git'

...fork, change the gem "rails"... line in your Gemfile to this: gem 'rails', :git => 'https://github.com/makandra/rails.git', :branch => '2-3-fixes' The intent is to make as few changes to...

...solarized color scheme in your Rubymine IDE: Clone the IntelliJ IDEA port: git clone https://github.com/jkaving/intellij-colors-solarized.git Import the settings in Rubymine by chosing the above directory File -> Import Settings...

...uninstalled with gem uninstall gemname. List and uninstall a gem installed via Bundler from Github This does not work for gems installed directly from Github. They do not appear in...

Show all gems installed via Github by bundler: ls ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/ Remove a gem installed via Github by Bundler: rm -rf ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gemname-xyz rm -rf ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/cache/bundler/gemname-1.2.3 This might also be...

makandra dev

...warning and create an empty commit. Any arguments to the command are forwarded to Git. Fixed: The "commit" command will not print the extra message any more. Added: The "commit...

makandra dev
github.com

update: update a Rails project that has been lying around for some time (git pull, bundle install, migrate) security-update: prepare and finish a security update by pulling/pushing/merging and...

...does not set up the database correctly, please adjust it by comparing it with https://github.com/makandra/active_type/blob/master/.github/workflows/test.yml. If necessary (i.e. the tests use databases), add a spec/support/database.github.yml file with this...

...Replace the Travis CI badge in the README with one like this: # MyGem [![Tests](https://github.com/makandra/my-gem/workflows/Tests/badge.svg)](https://github.com/makandra/my-gem/actions) Uninstall the Travis webhook in the Github repo (go to Settings => Webhooks...