bard-rake 0.17.2 → 0.17.3

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: 00d307fb7abbd2503336eb68114f3a915d2092ce2d5a191ce5dd81e151b6cd9e
4
- data.tar.gz: a86dcd92c00397d3a2459b66493c1941dfcfb58354034d8524a20ec8ae7a96d7
3
+ metadata.gz: d1978125e4131ac3084b5cd880b944a8231b25a95b6bd3cedc900c0b76a2a195
4
+ data.tar.gz: fe9a5f760df2d17c2c642b9f10a318088a268ecdf965f2e9f1ac535a38b346d3
5
5
  SHA512:
6
- metadata.gz: b1dfb4341498fa62f39ed3a2f6742b7eb4dd9c18aab57e661620ffae6815651575f3d67adc6c1cdf2855b24b6e0b4f7a68ecfbf7c56f70a1f40982e356c6423f
7
- data.tar.gz: 9eacdd5523670468e5515884f52a199f6a9a8ec5c967b9e2b3aca6a1ff632e1585601508dfee71400c1bcf9fc601e94801ea36778e00bf5d27191ec729416daf
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
- if local_database?(configuration)
67
- ActiveRecord::Base.establish_connection configuration
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
@@ -1,6 +1,6 @@
1
1
  module Bard
2
2
  module Rake
3
- VERSION = "0.17.2"
3
+ VERSION = "0.17.3"
4
4
  end
5
5
  end
6
6
 
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.2
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-15 00:00:00.000000000 Z
11
+ date: 2020-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake