My opinionated ruby on rails template
1# frozen_string_literal: true
2
3say 'Installing base gems...', :green
4
5gem 'jb' # Fast JSON templates
6gem 'awesome_print' # Pretty print objects
7gem 'faraday' # HTTP client
8
9gem 'dotenv-rails', groups: %i[development test]
10
11file '.env.development', ''
12
13# Remove default allow_browser restriction
14gsub_file 'app/controllers/application_controller.rb',
15 /^\s*# Only allow modern browsers.*\n\s*allow_browser versions: :modern\n?/m,
16 ''
17
18say 'Base gems installed!', :green