Add following to Gemfile
group :development, :test do
gem 'rubocop'
gem 'rubocop-performance'
gem 'rubocop-rails'
gem 'rubocop-minitest' # or gem 'rubocop-rspec' depending on your test suite
end
Add following to Gemfile
group :development, :test do
gem 'rubocop'
gem 'rubocop-performance'
gem 'rubocop-rails'
gem 'rubocop-minitest' # or gem 'rubocop-rspec' depending on your test suite
end
Excellent GoRails Article(which is main source for this guide too). I did benefited from lot of other resources online as well.
(Skip this if you are not using DO, and create your own VPS instance on the service of your choice. Steps below may still be helpful.)
There are few options for this step, DO provide us some pre built images for lot of platforms in which they have pre-installed nginx, node and other related dependencies for each image. Rails one is little outdated, I tried that but didn't go very well for me, you can give it a shot if you have enough time.
For this guide we will go with bear bone ubuntu 18.04 server.
While creating the droplet, you will be asked to set an ssh key, just generate an ssh key with ssh-keygen on your local system and copy contents of .pub file into the textbox provided.
We generally don't use cloud9/rubymine or any other special IDE for development(you can opt for any IDE, but that will mean no support from seniors for any issues relating it and that might lead to un-neccessary time waste thats why it is highly preferred to not use such IDEs). You are encouraged to use sublime of VSCode(see below for both).
Use sublime 4, install it(google or use this link for ubuntu) Here I will outline some basic configuration for sublime3 we usually use.
i- settings tweaks In sublime go to preferences->setting and place these in user settings tab along with other settings.
| # Transforms | |
| # From: enum name: values | |
| # To: enum :name, values, validate: { allow_nil: true } | |
| # Also removes _ from prefix and suffix for the new syntax to avoid un-intended bugs | |
| # You can modify this tranformer in transform_enum method as per your needs | |
| # USAGE: | |
| # 1. gem install parser | |
| # 2. run this file providing a single file or parent folder like: ruby tranform_enums.rb myApp/app/models OR ruby tranform_enums.rb myApp/app/models/user.rb |
| class DateRangeSplitter | |
| include Enumerable | |
| def initialize(date_from, date_to, max_days, end_inclusive: true) | |
| @date_from = date_from | |
| @date_to = date_to | |
| @max_days = max_days | |
| @end_inclusive = end_inclusive | |
| generate_split_dates | |
| end |
| import React from 'react' | |
| import { Checkbox } from '@shopify/polaris' | |
| export default function CheckboxAdapter({ input, meta, ...rest }) { | |
| return ( | |
| <Checkbox | |
| {...input} | |
| {...rest} | |
| error={meta.touched && meta.error} | |
| onChange={(value) => { |
First make sure no postgres instance is configured to run on startup. And you get nothing when you run this command: which -a psql
This is to make sure you don't have anything related to postgres in your PATH, which can conflict.
If you do get some hits with above command, you have to manually either remove the installed versions of postgres or just fix PATH and remove ref to that path which has these binaries(psql, pg_dump etc)
For me, i was using brew installed postgres, i had to just comment out a PATH editing line which was inserted by brew in my .bash_profile
Ok, after this we are ready. Now things are simple:
A File Icon
All Autocomplete
Better CoffeeScript
Bootstrap 3 Autocomplete
BracketHighlighter
Cucumber Step Finder
Cucumber
Dockerfile Syntax Highlighting
Emmet
We have Rails application which is running tests on circleCI 2.0, we have simplecov configured to track the coverage of our test suite. Now the problem is with parallelism enabled, we have partial coverage reports in all different containers according to the tests those containers ran.
We obviously want to have consolidated simplecov coverage report which actually shows us overall coverage report.