multi_ar 3.0.0 → 3.0.1
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
- checksums.yaml.gz.sig +0 -0
- data/lib/multi_ar/interface.rb +1 -0
- data/lib/multi_ar/version.rb +1 -1
- data/lib/multi_ar.rb +9 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 683850097d7d56382d703875856dedae616bb388
|
|
4
|
+
data.tar.gz: 4479f3ff5d6b978bd1be01eca6c9a8830b2dce03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97a91ee67a7097eee785e1ef84e5b207dc4795de458b41de1a553231921dbe51281acc375630a6e5d6c4e7d945028886e15071928b0ec11273ca389123182a66
|
|
7
|
+
data.tar.gz: 382874e37419b7608295e196760b5507ddbc452b8de5100ef4f61c9dce2806fe1e3dfc7016ac0c17a457b8fe64c81f3049cd78f80d5ab801479262e99c4e7c31
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/multi_ar/interface.rb
CHANGED
data/lib/multi_ar/version.rb
CHANGED
data/lib/multi_ar.rb
CHANGED
|
@@ -29,7 +29,7 @@ module MultiAR
|
|
|
29
29
|
|
|
30
30
|
# @param databases array of available databases
|
|
31
31
|
# @todo config file is overriding parameters passed here... I think it should be other way around, but need more custom logic for that :/
|
|
32
|
-
def initialize databases:, environment: "development", config: "config/settings.yaml", db_config: "config/database.yaml", migration_dirs: []
|
|
32
|
+
def initialize databases:, environment: "development", config: "config/settings.yaml", db_config: "config/database.yaml", migration_dirs: [], verbose: false
|
|
33
33
|
|
|
34
34
|
# first load config
|
|
35
35
|
if not config.nil? and File.exist? config
|
|
@@ -65,6 +65,8 @@ module MultiAR
|
|
|
65
65
|
Rake::Tasks.environment = environment
|
|
66
66
|
Rake::Tasks.define
|
|
67
67
|
|
|
68
|
+
@@verbose = verbose
|
|
69
|
+
|
|
68
70
|
MultiAR.app = self
|
|
69
71
|
end
|
|
70
72
|
|
|
@@ -74,6 +76,12 @@ module MultiAR
|
|
|
74
76
|
return @@migration_dirs
|
|
75
77
|
end
|
|
76
78
|
|
|
79
|
+
# Outputs contents if verbose flag has been passed.
|
|
80
|
+
def self.verb str
|
|
81
|
+
return unless @@verbose
|
|
82
|
+
puts str
|
|
83
|
+
end
|
|
84
|
+
|
|
77
85
|
# Add a path to a directory where migrations resides. For standard Rails setup, this would be “db/migrate”.
|
|
78
86
|
#
|
|
79
87
|
# The directory structure of how MultiAR uses the path is a bit different from traditional way: for each
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: multi_ar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samu Voutilainen
|
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
|
29
29
|
Ws73WZ+F+DOnfopIMUaeYUzKyUG+59p17ls//xzTouiLjcC9ee5ZaC9e+TzYsp4t
|
|
30
30
|
ofnwRrqEHVW+zRWs/VIwm70F2Jnl5eSc3MjyhpWIC0eGFXtBY1XYCrHeCdQ=
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
|
-
date: 2016-
|
|
32
|
+
date: 2016-08-29 00:00:00.000000000 Z
|
|
33
33
|
dependencies:
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: trollop
|
metadata.gz.sig
CHANGED
|
Binary file
|