-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update weather API to Tomorrowio (#689)
* Update weather API * Use postal code Postal code is non nullable in the DB * Update weather retriever to use dig * Standardrb tool fixes * Ignore .DS_Store files * Partial change to VCR * Pin tomorrowio dependency * Fix Gemfile.lock * Fix bugs and tests * Add local test instructions
- Loading branch information
Showing
26 changed files
with
312 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,6 @@ dump.rdb | |
|
||
.idea/* | ||
.bundle | ||
frontend/.env | ||
frontend/.env | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'rake' | ||
require "rake" | ||
|
||
desc "run application" | ||
task :run do | ||
|
@@ -17,7 +17,7 @@ task :run do | |
end | ||
end | ||
|
||
{ production: 'flaredown', staging: 'flaredown-staging'}.each do |env, application| | ||
{production: "flaredown", staging: "flaredown-staging"}.each do |env, application| | ||
namespace env.to_sym do | ||
desc "restart application" | ||
task :restart do | ||
|
@@ -27,21 +27,21 @@ end | |
|
||
desc "deploy application" | ||
task :deploy do | ||
Rake::Task["#{env.to_s}:deploy:backend"].invoke | ||
Rake::Task["#{env.to_s}:deploy:frontend"].invoke | ||
Rake::Task["#{env}:deploy:backend"].invoke | ||
Rake::Task["#{env}:deploy:frontend"].invoke | ||
end | ||
|
||
namespace :deploy do | ||
desc "deploy frontend application" | ||
task :frontend do | ||
log "Deploy frontend #{application} with revision: #{revision}" | ||
deploy_to "[email protected]:#{application}-webapp.git", 'frontend' | ||
deploy_to "[email protected]:#{application}-webapp.git", "frontend" | ||
end | ||
|
||
desc "deploy backend application" | ||
task :backend do | ||
log "Deploy backend #{application} with revision: #{revision}" | ||
deploy_to "[email protected]:#{application}-api.git", 'backend' | ||
deploy_to "[email protected]:#{application}-api.git", "backend" | ||
migrate "#{application}-api" | ||
end | ||
end | ||
|
@@ -57,7 +57,6 @@ end | |
system("heroku run rake app:invite --app #{application}-api") | ||
end | ||
end | ||
|
||
end | ||
|
||
def deploy_to(remote, subtree) | ||
|
@@ -73,7 +72,7 @@ def restart(application) | |
end | ||
|
||
def revision | ||
ENV.fetch('REVISION') {'master'} | ||
ENV.fetch("REVISION") { "master" } | ||
end | ||
|
||
def log(message) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,6 @@ def where_conditions | |
end | ||
conditions << ["lower(#{key}) LIKE ?", pattern] | ||
end | ||
conditions | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
load Gem.bin_path('bundler', 'bundle') | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__) | ||
load Gem.bin_path("bundler", "bundle") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/usr/bin/env ruby | ||
if ENV['RAILS_ENV'] == 'test' | ||
require 'simplecov' | ||
SimpleCov.start 'rails' | ||
if ENV["RAILS_ENV"] == "test" | ||
require "simplecov" | ||
SimpleCov.start "rails" | ||
puts "required simplecov" | ||
end | ||
APP_PATH = File.expand_path('../../config/application', __FILE__) | ||
require_relative '../config/boot' | ||
require 'rails/commands' | ||
APP_PATH = File.expand_path("../../config/application", __FILE__) | ||
require_relative "../config/boot" | ||
require "rails/commands" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
require_relative '../config/boot' | ||
require 'rake' | ||
require_relative "../config/boot" | ||
require "rake" | ||
Rake.application.run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.