bard-rake 0.17.2 → 0.17.3
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/bard/rake/db_multiple_environment_sanity.rb +2 -10
- data/lib/bard/rake/version.rb +1 -1
- 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: d1978125e4131ac3084b5cd880b944a8231b25a95b6bd3cedc900c0b76a2a195
|
|
4
|
+
data.tar.gz: fe9a5f760df2d17c2c642b9f10a318088a268ecdf965f2e9f1ac535a38b346d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b89bb98206cc06580ec75022ce618b81ec63845628a0664b1a9e6a39af2f060b010c11fe76dc941e91d54c3728af18d2754e6562eaea939f7b8e875616becff
|
|
7
|
+
data.tar.gz: ababeb5e7af1425ba785cf0723ea1a0c29d1209e7b7469888bfb7536de89e37005f85380a241070fa404aac9f2de4f890351a697a66d3c1959597bb71e3fab64
|
|
@@ -63,12 +63,8 @@ if defined?(ActiveRecord)
|
|
|
63
63
|
next unless whitelist.include?(env)
|
|
64
64
|
next if modified_databases.include?(database)
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
block.call configuration, env
|
|
69
|
-
else
|
|
70
|
-
$stderr.puts "This task only modifies local databases. #{database} is on a remote host."
|
|
71
|
-
end
|
|
66
|
+
ActiveRecord::Base.establish_connection configuration
|
|
67
|
+
block.call configuration, env
|
|
72
68
|
|
|
73
69
|
modified_databases << database
|
|
74
70
|
end
|
|
@@ -76,10 +72,6 @@ if defined?(ActiveRecord)
|
|
|
76
72
|
Rake::Task["db:_dump"].invoke
|
|
77
73
|
end
|
|
78
74
|
|
|
79
|
-
def local_database?(configuration)
|
|
80
|
-
configuration["host"].blank? || ActiveRecord::Tasks::DatabaseTasks::LOCAL_HOSTS.include?(configuration["host"])
|
|
81
|
-
end
|
|
82
|
-
|
|
83
75
|
def test_environment?
|
|
84
76
|
rails_env == "test"
|
|
85
77
|
end
|
data/lib/bard/rake/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bard-rake
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.17.
|
|
4
|
+
version: 0.17.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Micah Geisel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-01-
|
|
11
|
+
date: 2020-01-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|