Skip to content

Commit 77f67ce

Browse files
committed
Switch to double quotes
1 parent 17c18d8 commit 77f67ce

File tree

729 files changed

+5859
-5859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

729 files changed

+5859
-5859
lines changed

Capfile

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Load environment variables
2-
require 'dotenv'
2+
require "dotenv"
33
Dotenv.load
44

55
# require 'new_relic/recipes'
66

77
# Load DSL and set up stages
8-
require 'capistrano/setup'
8+
require "capistrano/setup"
99

1010
# Include default deployment tasks
11-
require 'capistrano/deploy'
11+
require "capistrano/deploy"
1212

1313
# Load the SCM plugin appropriate to your project:
1414
#
@@ -18,7 +18,7 @@ require 'capistrano/deploy'
1818
# require "capistrano/scm/svn"
1919
# install_plugin Capistrano::SCM::Svn
2020
# or
21-
require 'capistrano/scm/git'
21+
require "capistrano/scm/git"
2222
install_plugin Capistrano::SCM::Git
2323

2424
# Include tasks from other gems included in your Gemfile
@@ -32,19 +32,19 @@ install_plugin Capistrano::SCM::Git
3232
# https://github.com/capistrano/rails
3333
# https://github.com/capistrano/passenger
3434
#
35-
require 'capistrano/rvm'
35+
require "capistrano/rvm"
3636
# require 'capistrano/rbenv'
3737
# require 'capistrano/chruby'
38-
require 'capistrano/bundler'
39-
require 'capistrano/rails/migrations'
40-
require 'capistrano/rails/assets'
41-
require 'capistrano/passenger'
42-
require 'capistrano/nvm'
43-
require 'capistrano/yarn'
44-
require 'capistrano/sitemap_generator'
45-
require 'whenever/capistrano'
38+
require "capistrano/bundler"
39+
require "capistrano/rails/migrations"
40+
require "capistrano/rails/assets"
41+
require "capistrano/passenger"
42+
require "capistrano/nvm"
43+
require "capistrano/yarn"
44+
require "capistrano/sitemap_generator"
45+
require "whenever/capistrano"
4646

4747
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
48-
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
48+
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
4949

50-
require 'appsignal/capistrano'
50+
require "appsignal/capistrano"

Gemfile

+69-69
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '3.1.3'
4+
ruby "3.1.3"
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7-
gem 'rails', '~> 6.1.7'
7+
gem "rails", "~> 6.1.7"
88
# Use pg as the database for Active Record
9-
gem 'pg'
9+
gem "pg"
1010
# Use Puma as the app server
11-
gem 'puma', '~> 6.2'
11+
gem "puma", "~> 6.2"
1212
# Use SCSS for stylesheets
13-
gem 'sass-rails', '>= 6'
13+
gem "sass-rails", ">= 6"
1414
# Use CoffeeScript for .coffee assets and views
15-
gem 'coffee-rails'
15+
gem "coffee-rails"
1616
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
17-
gem 'webpacker', '~> 5.0'
17+
gem "webpacker", "~> 5.0"
1818
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
19-
gem 'turbolinks', '~> 5'
19+
gem "turbolinks", "~> 5"
2020
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
2121
# gem 'jbuilder', '~> 2.7'
2222
# Use Redis adapter to run Action Cable in production
@@ -28,52 +28,52 @@ gem 'turbolinks', '~> 5'
2828
# gem 'image_processing', '~> 1.2'
2929

3030
# Reduces boot times through caching; required in config/boot.rb
31-
gem 'bootsnap', '>= 1.4.4', require: false
31+
gem "bootsnap", ">= 1.4.4", require: false
3232

33-
gem 'active_model_serializers'
34-
gem 'activeadmin'
35-
gem 'activeadmin_addons'
36-
gem 'activeadmin_simplemde'
37-
gem 'activeadmin_sortable_table'
38-
gem 'acts_as_list'
39-
gem 'appsignal'
40-
gem 'aws-sdk-s3'
41-
gem 'best_in_place', git: 'https://github.com/mmotherwell/best_in_place' # for Rails 6.1
42-
gem 'ckeditor', '< 5'
43-
gem 'devise'
44-
gem 'devise_token_auth'
45-
gem 'dotenv-rails'
46-
gem 'enumerate_it'
47-
gem 'faraday', '< 2'
48-
gem 'i18n_data'
49-
gem 'kaminari'
50-
gem 'mailchimp-api', require: 'mailchimp'
33+
gem "active_model_serializers"
34+
gem "activeadmin"
35+
gem "activeadmin_addons"
36+
gem "activeadmin_simplemde"
37+
gem "activeadmin_sortable_table"
38+
gem "acts_as_list"
39+
gem "appsignal"
40+
gem "aws-sdk-s3"
41+
gem "best_in_place", git: "https://github.com/mmotherwell/best_in_place" # for Rails 6.1
42+
gem "ckeditor", "< 5"
43+
gem "devise"
44+
gem "devise_token_auth"
45+
gem "dotenv-rails"
46+
gem "enumerate_it"
47+
gem "faraday", "< 2"
48+
gem "i18n_data"
49+
gem "kaminari"
50+
gem "mailchimp-api", require: "mailchimp"
5151
# gem 'net-http' # https://github.com/ruby/net-imap/issues/16#issuecomment-803086765
52-
gem 'oj'
53-
gem 'kt-paperclip', '~> 6.4'
54-
gem 'pg_csv'
55-
gem 'pg_search'
56-
gem 'rack'
57-
gem 'rack-cors'
58-
gem 'scenic'
59-
gem 'sidekiq', '< 7'
60-
gem 'sidekiq-unique-jobs'
61-
gem 'sitemap_generator'
62-
gem 'staccato'
63-
gem 'twitter'
64-
gem 'zip_tricks'
65-
gem 'wet-health_endpoint'
66-
gem 'whenever', require: false
52+
gem "oj"
53+
gem "kt-paperclip", "~> 6.4"
54+
gem "pg_csv"
55+
gem "pg_search"
56+
gem "rack"
57+
gem "rack-cors"
58+
gem "scenic"
59+
gem "sidekiq", "< 7"
60+
gem "sidekiq-unique-jobs"
61+
gem "sitemap_generator"
62+
gem "staccato"
63+
gem "twitter"
64+
gem "zip_tricks"
65+
gem "wet-health_endpoint"
66+
gem "whenever", require: false
6767

6868
group :development, :test do
6969
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
70-
gem 'byebug', platform: :mri
71-
gem 'factory_bot_rails'
72-
gem 'json-schema'
73-
gem 'rails-controller-testing'
74-
gem 'rspec-collection_matchers'
75-
gem 'rspec-rails'
76-
gem 'standard'
70+
gem "byebug", platform: :mri
71+
gem "factory_bot_rails"
72+
gem "json-schema"
73+
gem "rails-controller-testing"
74+
gem "rspec-collection_matchers"
75+
gem "rspec-rails"
76+
gem "standard"
7777
end
7878

7979
group :development do
@@ -82,34 +82,34 @@ group :development do
8282
# Display performance information such as SQL time and flame graphs for each request in your browser.
8383
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
8484
# gem 'rack-mini-profiler', '~> 2.0'
85-
gem 'listen', '~> 3.3'
85+
gem "listen", "~> 3.3"
8686
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
87-
gem 'spring'
88-
gem 'spring-watcher-listen', '~> 2.1.0'
89-
gem 'annotate'
90-
gem 'bcrypt_pbkdf'
91-
gem 'capistrano', require: false
92-
gem 'capistrano-bundler'
93-
gem 'capistrano-yarn'
94-
gem 'capistrano-nvm'
95-
gem 'capistrano-passenger'
96-
gem 'capistrano-rails', require: false
97-
gem 'capistrano-rvm'
87+
gem "spring"
88+
gem "spring-watcher-listen", "~> 2.1.0"
89+
gem "annotate"
90+
gem "bcrypt_pbkdf"
91+
gem "capistrano", require: false
92+
gem "capistrano-bundler"
93+
gem "capistrano-yarn"
94+
gem "capistrano-nvm"
95+
gem "capistrano-passenger"
96+
gem "capistrano-rails", require: false
97+
gem "capistrano-rvm"
9898
# a note about ed25519 support
9999
# from net-ssh readme https://github.com/net-ssh/net-ssh:
100100
# { }"For ed25519 public key auth support your bundle file should contain ed25519, bcrypt_pbkdf dependencies."
101101
# those are development dependencies of net-ssh
102102
# versions required by net-ssh can be looked up here: https://github.com/net-ssh/net-ssh/blob/master/net-ssh.gemspec
103-
gem 'ed25519'
104-
gem 'rubocop', require: false
105-
gem 'rubocop-performance', require: false
103+
gem "ed25519"
104+
gem "rubocop", require: false
105+
gem "rubocop-performance", require: false
106106
end
107107

108108
group :test do
109-
gem 'database_cleaner'
110-
gem 'simplecov', require: false
111-
gem 'webmock'
109+
gem "database_cleaner"
110+
gem "simplecov", require: false
111+
gem "webmock"
112112
end
113113

114114
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
115-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
115+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Rakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Add your own tasks in files placed in lib/tasks ending in .rake,
22
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3-
require_relative 'config/application'
3+
require_relative "config/application"
44

55
Rails.application.load_tasks
6-
require 'sitemap_generator/tasks'
6+
require "sitemap_generator/tasks"

app/admin/api/v3/carto_layer.rb

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
ActiveAdmin.register Api::V3::CartoLayer, as: 'CartoLayer' do
2-
menu parent: 'Sankey & Map'
1+
ActiveAdmin.register Api::V3::CartoLayer, as: "CartoLayer" do
2+
menu parent: "Sankey & Map"
33

44
permit_params :contextual_layer_id, :identifier, :years_str, :raster_url
55

66
after_action :clear_cache, only: [:create, :update, :destroy]
77

88
controller do
99
def clear_cache
10-
clear_cache_for_regexp('/api/v3/contexts/.+/map_layers')
10+
clear_cache_for_regexp("/api/v3/contexts/.+/map_layers")
1111
end
1212
end
1313

@@ -17,19 +17,19 @@ def clear_cache
1717
input :contextual_layer, as: :select, required: true,
1818
collection: Api::V3::ContextualLayer.select_options
1919
input :identifier, required: true, as: :string,
20-
hint: object.class.column_comment('identifier')
21-
input :years_str, label: 'Years',
22-
hint: (object.class.column_comment('years') || '') + ' (comma-separated list)'
20+
hint: object.class.column_comment("identifier")
21+
input :years_str, label: "Years",
22+
hint: (object.class.column_comment("years") || "") + " (comma-separated list)"
2323
input :raster_url,
24-
hint: object.class.column_comment('raster_url')
24+
hint: object.class.column_comment("raster_url")
2525
end
2626
f.actions
2727
end
2828

2929
index do
30-
column('Country') { |layer| layer.contextual_layer&.context&.country&.name }
31-
column('Commodity') { |layer| layer.contextual_layer&.context&.commodity&.name }
32-
column('Contextual Layer') { |layer| layer.contextual_layer&.title }
30+
column("Country") { |layer| layer.contextual_layer&.context&.country&.name }
31+
column("Commodity") { |layer| layer.contextual_layer&.context&.commodity&.name }
32+
column("Contextual Layer") { |layer| layer.contextual_layer&.title }
3333
column :identifier
3434
column :years
3535
column :raster_url
@@ -39,11 +39,11 @@ def clear_cache
3939
show do
4040
attributes_table do
4141
row :contextual_layer
42-
row('Country') { |layer| layer.contextual_layer&.context&.country&.name }
43-
row('Commodity') { |layer| layer.contextual_layer&.context&.commodity&.name }
42+
row("Country") { |layer| layer.contextual_layer&.context&.country&.name }
43+
row("Commodity") { |layer| layer.contextual_layer&.context&.commodity&.name }
4444

4545
row :identifier
46-
row 'Years', &:years_str
46+
row "Years", &:years_str
4747
row :raster_url
4848
row :created_at
4949
row :updated_at
@@ -52,5 +52,5 @@ def clear_cache
5252

5353
filter :contextual_layer, collection: -> { Api::V3::ContextualLayer.select_options }
5454

55-
filter :contextual_layer_context_id, label: 'Context', as: :select, collection: -> { Api::V3::Context.select_options }
55+
filter :contextual_layer_context_id, label: "Context", as: :select, collection: -> { Api::V3::Context.select_options }
5656
end

0 commit comments

Comments
 (0)