effective_developer 0.6.9 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/effective_developer/version.rb +1 -1
- data/lib/tasks/pg_pull.rake +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce8857439e77912b69f4d782989c25125a30adfa38bdfa098a0ee099d45b5158
|
|
4
|
+
data.tar.gz: 8c81459bbbc23a9e582cb3e18789bf8923e35744e1d851b6cc282d01d32019c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4fb7415f3045e979db76b27025696b4c891624813accec70e9832c65dce0d0a639f2b82ff7f39ce1b18ebb4ad233d7ae09df12a2de37adbecdcc5319aa284aab
|
|
7
|
+
data.tar.gz: 68b07f9aeb57b8c0c0a3b4ec1211bdb645920c3f78ac733fdaedfb16e008dba4efe3642a3697c2ae6d34c26f3f2920b50540441b0ff332f96721c7d359e1df61
|
data/lib/tasks/pg_pull.rake
CHANGED
|
@@ -189,11 +189,10 @@ namespace :pg do
|
|
|
189
189
|
desc 'Clones the production (--remote heroku by default) database to staging (--remote staging by default)'
|
|
190
190
|
task :clone, [:source_remote, :target_remote] => :environment do |t, args|
|
|
191
191
|
args.with_defaults(:source_remote => 'heroku', :target_remote => 'staging')
|
|
192
|
-
db = ActiveRecord::Base.configurations[Rails.env]
|
|
193
192
|
|
|
194
193
|
puts "=== Cloning remote '#{args.source_remote}' to '#{args.target_remote}'"
|
|
195
194
|
|
|
196
|
-
Bundler.
|
|
195
|
+
Bundler.with_unbundled_env do
|
|
197
196
|
unless system("heroku pg:backups:capture --remote #{args.source_remote}")
|
|
198
197
|
abort "Error capturing heroku backup"
|
|
199
198
|
end
|
|
@@ -240,7 +239,7 @@ namespace :pg do
|
|
|
240
239
|
puts "=== Cloning local table '#{args.table}' to remote #{args.remote} database"
|
|
241
240
|
|
|
242
241
|
# Dump my local database table
|
|
243
|
-
db = ActiveRecord::Base.configurations
|
|
242
|
+
db = ActiveRecord::Base.configurations.configs_for(env_name: Rails.env).first
|
|
244
243
|
tmpfile = "tmp/#{args.table}.sql"
|
|
245
244
|
|
|
246
245
|
unless system("pg_dump --data-only --table=#{args.table} -h localhost -U '#{db['username']}' '#{db['database']}' > #{tmpfile}")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_developer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-04-
|
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|