github.com

...by using Ruby's interal coverage module. The coverage results of every spec is merged together into one matrix.After a spec finishes the results of the coverage module have to...

...rebase drastically. A more complex logic would be required to read out the difference. Merge of files is only allowed to happen when a complete test file has been run...

...an error ActionController::UnpermittedParameters if there is an unpermitted parameter: You need to manually merge it to the rescue_responses in case users should see a bad request error page...

Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...

postgresql.org

...Record.last, it will default to ordering by id. See also Before you make a merge request: Checklist for common mistakes

...Gitlab agent for Kubernetes Terraform Kubernetes Provider Using Helm Terraform Helm Provider Aufgaben Erstelle Merge Requests für die Code Änderungen und weise sie deinem Mentor zu. Siehe Multiple Environments with...

...on every screen. No one-off wrappers that exist only for styling. In your merge request description, name the spacing variant you chose, and list each block with its responsibility...

...filter'].version > Gem::Version.new('0.7') raise 'Check if PR https://github.com/svenfuchs/routing-filter/pull/87 has been merged and released. If yes, delete this monkey patch.' end # We cannot prepend a custom extension...

DevOps Curriculum

...for Ruby 2.7: Official docs for the Ruby standard library Exercises Create a separate Merge Request in Gitlab for every exercise. Counting words Write a small ruby programm count_words.rb that...

github.com

...referenced data when it writes locales. If you are using YAML anchors, aliases and merge keys as suggested in this card, you should disable auto-insertion of missing keys (by...

getbootstrap.com

...suggest to regenerate the configuration file with rails generate simple_form:install --bootstrap and merge it with your own customizations instead of only renaming the used classes. You could do...

...CI pipeline but no CD, you might find yourself frequently waiting for CI (with "merge after pipeline succeeds") just to perform the deployment. The following command waits for the next...

To change the commit message of the latest (unpushed, unmerged) commit, you can use git commit --amend

You should avoid using application models in your migrations. But how else could you create records in a migration?

There are several ways to merge two (or more) PDF files to a single file using the Linux command line. If you're looking for graphical tools to edit or...

...manipulating PDF documents. You may need to install it first (sudo apt install pdftk). Merging multiple files works like this: pdftk one.pdf two.pdf cat output out.pdf Unlike pdfjam, PDFtk should...

By default most exceptions in Rails will render a 500 error page and will create a new issue in your...

end context 'when trying to set a disallowed title' do let(:attributes) { super().merge(title: 'Hello') } # <== it 'will not save' do expect(subject.save).to eq(false) end end

...as an environment variable named STAGE: set :whenever_command_environment_variables, ->{ fetch(:default_env).merge(rails_env: fetch(:whenever_environment), stage: fetch(:stage)) } You may now access ENV['STAGE'] in...

You know that you can force absolute URLs throughout a response. Now you want to modify URLs similarly, but only...

medium.com

...team can still keep up the development pace because developers concentrate on specific components. Merge requests target a specific component. Advantages over a distributed application setup (multiple repositories, multiple applications...

...Everything is still deployed at once. No need to orchestrate branch merges and deploys across N repos. Other resources https://www.airpair.com/ruby-on-rails/posts/ruby-on-rails-the-modular-way https://engineering.gusto.com/building-toward-a-modular-monolith https://railsconf.com/2020/video/vladimir-dementyev-between-monoliths-and-microservices

...into .browserslistrc in your project's root directory Look at the default webpacker.yml and merge any changes to your project's webpacker.yml. Add extract_css: true to the default section...

...marked": "0.3.2", "select2": "./vendor/asset-libs/select2", }, "devDependencies": { "webpack-dev-server": "3.x" }, "resolutions": { "jquery": "2.2.4" } } 6. Merge the content of the application.js and application.css to the app/webpack/packs/application.js. You can also import the...

...changes. Any time spent on that is well invested as it saves you rejected merge requests or any mess you need to clean up later. While you can just use...

...link) } # use for bulk indexing # index these fields def search_data attributes.slice( 'title', 'url', ).merge( body: html_to_text(body_html), user: { name: user&.name, }, acl_group_ids: channel&.group...

...by argument-less git-pull(1) and other commands. For more information, see branch..merge in git-config...