orchestration 0.6.9 → 0.6.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12e2e03dddf05c889b4938735bb407532671c958ad7e1e39ce37ad7ee07a4eec
4
- data.tar.gz: 1a0fc371d1230959b7869094cb4cc13a59f9c8e2129c1f62b295d954218a1d75
3
+ metadata.gz: 60c52d91f6eb17469c4244093217f7c37bdf083bc9b045e175869788178a9196
4
+ data.tar.gz: 2b70b8a444c78beb19ffbf9b2690349e942374c16ca36edecd714f33d798bae0
5
5
  SHA512:
6
- metadata.gz: 73d3df8af18ce92fce2e837bab16ca6f9be03051240a6f89e9e3e549aad659ec5bdb0d03eb11ca3f4ba8ae2ab839ddbf121ab14abf1d63e13267faac4672b325
7
- data.tar.gz: 9779cef3d3d921dfc34ba41bdb29ef94642c08d7c92967c742bd52ca8d6527826bf3e040504228a4dd4dfc53c6a8d1e7334af4ebf6f98c247bbb06a820e6e0f8
6
+ metadata.gz: 03efb92b5de3ef15940464ae6e5ba5739c98c4b18d312490f70a497ed0e2fdc2f8094cc482301fe0f81e6667a254fc481783a9f5e349e98a4f0b598d54827640
7
+ data.tar.gz: bbc0087cd77db01f1a87f69222425a91ff2f5f8d204794795b4872d8f5157df208caa05343c5fed67bd1461633baa3aed344ebe2db52a82998932f32c215843a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orchestration (0.6.9)
4
+ orchestration (0.6.11)
5
5
  database_url (~> 0.1.2)
6
6
  dotenv-rails (~> 2.8)
7
7
  erubis (~> 2.7)
@@ -59,6 +59,9 @@ GEM
59
59
  activerecord (6.1.4.7)
60
60
  activemodel (= 6.1.4.7)
61
61
  activesupport (= 6.1.4.7)
62
+ activerecord-postgis-adapter (7.1.1)
63
+ activerecord (~> 6.1)
64
+ rgeo-activerecord (~> 7.0.0)
62
65
  activestorage (6.1.4.7)
63
66
  actionpack (= 6.1.4.7)
64
67
  activejob (= 6.1.4.7)
@@ -134,7 +137,7 @@ GEM
134
137
  racc (~> 1.4)
135
138
  paint (2.3.0)
136
139
  parallel (1.22.1)
137
- parser (3.1.3.0)
140
+ parser (3.2.0.0)
138
141
  ast (~> 2.4.1)
139
142
  pg (1.4.5)
140
143
  public_suffix (5.0.1)
@@ -173,6 +176,10 @@ GEM
173
176
  rbtree (0.4.6)
174
177
  regexp_parser (2.6.1)
175
178
  rexml (3.2.5)
179
+ rgeo (2.4.0)
180
+ rgeo-activerecord (7.0.1)
181
+ activerecord (>= 5.0)
182
+ rgeo (>= 1.0.0)
176
183
  rspec (3.12.0)
177
184
  rspec-core (~> 3.12.0)
178
185
  rspec-expectations (~> 3.12.0)
@@ -189,14 +196,14 @@ GEM
189
196
  diff-lcs (>= 1.2.0, < 2.0)
190
197
  rspec-support (~> 3.12.0)
191
198
  rspec-support (3.12.0)
192
- rubocop (1.41.1)
199
+ rubocop (1.42.0)
193
200
  json (~> 2.3)
194
201
  parallel (~> 1.10)
195
202
  parser (>= 3.1.2.1)
196
203
  rainbow (>= 2.2.2, < 4.0)
197
204
  regexp_parser (>= 1.8, < 3.0)
198
205
  rexml (>= 3.2.5, < 4.0)
199
- rubocop-ast (>= 1.23.0, < 2.0)
206
+ rubocop-ast (>= 1.24.1, < 2.0)
200
207
  ruby-progressbar (~> 1.7)
201
208
  unicode-display_width (>= 1.4.0, < 3.0)
202
209
  rubocop-ast (1.24.1)
@@ -230,7 +237,7 @@ GEM
230
237
  timeout (0.3.1)
231
238
  tzinfo (2.0.5)
232
239
  concurrent-ruby (~> 1.0)
233
- unicode-display_width (2.3.0)
240
+ unicode-display_width (2.4.0)
234
241
  webmock (3.18.1)
235
242
  addressable (>= 2.8.0)
236
243
  crack (>= 0.3.2)
@@ -245,6 +252,7 @@ PLATFORMS
245
252
 
246
253
  DEPENDENCIES
247
254
  activerecord (~> 6.0)
255
+ activerecord-postgis-adapter (~> 7.1)
248
256
  bunny (~> 2.12)
249
257
  devpack (~> 0.3.2)
250
258
  mongoid (~> 7.0)
@@ -2,7 +2,8 @@
2
2
  ### Environment setup ###
3
3
  SHELL:=/bin/bash
4
4
  MAKE:=mkpath=${mkpath} make --no-print-directory
5
-
5
+ ORCHESTRATION_DISABLE_ENV=1
6
+ export
6
7
  TERM ?= 'dumb'
7
8
  pwd:=$(shell pwd)
8
9
 
@@ -52,14 +53,14 @@ println=$(call print,$1'\n')
52
53
  printraw=printf $1
53
54
  stdout=${pwd}/log/orchestration.stdout.log
54
55
  stderr=${pwd}/log/orchestration.stderr.log
55
- log_path_length=$(shell echo "${stdout}" | wc -c)
56
+ log_path_length:=$(shell echo "${stdout}" | wc -c)
56
57
  ifndef verbose
57
58
  log_tee:= 2>&1 | tee -a ${stdout}
58
59
  log:= >>${stdout} 2>>${stderr}
59
60
  progress_point:=perl -e 'printf("[${magenta}busy${reset}] "); while( my $$line = <STDIN> ) { printf("."); select()->flush(); }'
60
61
  log_progress:= > >(tee -ai ${stdout} >&1 | ${progress_point}) 2> >(tee -ai ${stderr} 2>&1 | ${progress_point})
61
62
  endif
62
- hr=$(call println,"$1$(shell head -c ${log_path_length} < /dev/zero | tr '\0' '=')${reset}")
63
+ hr:=$(call println,"$1$(shell head -c ${log_path_length} < /dev/zero | tr '\0' '=')${reset}")
63
64
  managed_env_tag:=\# -|- ORCHESTRATION
64
65
  standard_env_path:=${pwd}/.env
65
66
  backup_env_path:=${pwd}/.env.orchestration.backup
@@ -142,7 +143,7 @@ DOCKER_TAG ?= latest
142
143
  ifneq (,$(wildcard ./Gemfile))
143
144
  bundle_cmd = bundle exec
144
145
  endif
145
- rake=DEVPACK_DISABLE=1 RACK_ENV=${env} SECRET_KEY_BASE='placeholder-secret' RAILS_ENV=${env} ${bundle_cmd} rake
146
+ rake=ORCHESTRATION_DISABLE_ENV=1 DEVPACK_DISABLE=1 RACK_ENV=${env} SECRET_KEY_BASE='placeholder-secret' RAILS_ENV=${env} ${bundle_cmd} rake
146
147
 
147
148
  ifneq (,$(wildcard ${env_file}))
148
149
  ifeq (,$(findstring deploy,$(MAKECMDGOALS)))
@@ -189,7 +190,7 @@ else
189
190
  compose_project_name = ${project_base}
190
191
  endif
191
192
 
192
- compose_base=env -i \
193
+ compose_base:=env -i \
193
194
  PATH=$(PATH) \
194
195
  HOST_UID=$(shell id -u) \
195
196
  DOCKER_ORGANIZATION="${docker_organization}" \
@@ -199,14 +200,14 @@ compose_base=env -i \
199
200
  docker-compose \
200
201
  -f ${orchestration_dir}/docker-compose.${env}.yml
201
202
 
202
- git_branch ?= $(if $(branch),$(branch),$(shell git rev-parse --abbrev-ref HEAD 2>/dev/null || echo no-branch))
203
+ git_branch := $(if $(branch),$(branch),$(shell git rev-parse --abbrev-ref HEAD 2>/dev/null || echo no-branch))
203
204
  ifndef dev
204
- git_version ?= $(shell git rev-parse --short --verify ${git_branch} 2>/dev/null || echo no-version)
205
+ git_version := $(shell git rev-parse --short --verify ${git_branch} 2>/dev/null || echo no-version)
205
206
  else
206
- git_version = dev
207
+ git_version := dev
207
208
  endif
208
209
 
209
- docker_image=${docker_organization}/${docker_repository}:${git_version}
210
+ docker_image:=${docker_organization}/${docker_repository}:${git_version}
210
211
 
211
212
  compose=${compose_base}
212
213
  compose_human=docker-compose -f ${orchestration_dir_name}/docker-compose.${env}.yml
@@ -314,7 +315,7 @@ db-console:
314
315
 
315
316
  .PHONY: setup
316
317
  ifneq (,$(wildcard config/database.yml))
317
- setup: url = $(shell ${rake} orchestration:db:url RAILS_ENV=${env} 2>/dev/null)
318
+ setup: url := $(shell ${rake} orchestration:db:url RAILS_ENV=${env} 2>/dev/null)
318
319
  endif
319
320
  setup: _log-notify
320
321
  @$(call echo,Setting up ${env_human} environment)
@@ -1,4 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ ENV['ORCHESTRATION_DISABLE_ENV'] = '1'
4
+
3
5
  require 'orchestration'
4
6
  puts Orchestration.makefile
@@ -48,7 +48,7 @@ module Orchestration
48
48
  end
49
49
 
50
50
  def print_variable(variable, value)
51
- $stdout.print "#{Paint[variable, :blue]}#{Paint['=', :white]}#{Paint[value, :cyan]}"
51
+ $stderr.print "#{Paint[variable, :blue]}#{Paint['=', :white]}#{Paint[value, :cyan]}"
52
52
  end
53
53
 
54
54
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orchestration
4
- VERSION = '0.6.9'
4
+ VERSION = '0.6.11'
5
5
  end
data/lib/orchestration.rb CHANGED
@@ -62,13 +62,13 @@ module Orchestration
62
62
  def print_environment
63
63
  return unless File.exist?('.env')
64
64
 
65
- $stdout.puts
66
- $stdout.puts("#{prefix} #{Paint['Loading environment from', :cyan]} #{Paint['.env', :green]}")
67
- $stdout.puts
65
+ $stderr.puts
66
+ warn("#{prefix} #{Paint['Loading environment from', :cyan]} #{Paint['.env', :green]}")
67
+ $stderr.puts
68
68
  environment_variables.each do |variable, value|
69
69
  terminal.print_variable(variable, value)
70
70
  end
71
- $stdout.puts
71
+ $stderr.puts
72
72
  end
73
73
 
74
74
  private
@@ -92,7 +92,7 @@ module Orchestration
92
92
  end
93
93
  end
94
94
 
95
- if ENV['RAILS_ENV'] == 'development'
95
+ if ENV['RAILS_ENV'] == 'development' && !ENV.key?('ORCHESTRATION_DISABLE_ENV')
96
96
  require 'dotenv-rails'
97
97
  Dotenv::Railtie.load
98
98
  Orchestration.print_environment
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_runtime_dependency 'thor', '~> 1.0'
37
37
 
38
38
  spec.add_development_dependency 'activerecord', '~> 6.0'
39
+ spec.add_development_dependency 'activerecord-postgis-adapter', '~> 7.1'
39
40
  spec.add_development_dependency 'bunny', '~> 2.12'
40
41
  spec.add_development_dependency 'devpack', '~> 0.3.2'
41
42
  spec.add_development_dependency 'mongoid', '~> 7.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orchestration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-01 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: database_url
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '6.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: activerecord-postgis-adapter
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '7.1'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '7.1'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: bunny
127
141
  requirement: !ruby/object:Gem::Requirement