multi_ar 5.1.0 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bin/multi_ar +15 -0
- data/lib/multi_ar/interface.rb +2 -0
- data/lib/multi_ar/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -2
- metadata.gz.sig +1 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd1221198dc88a6ae7fa1c0d7b605966f89afed9c56d076409b4c3ff875ac980
|
4
|
+
data.tar.gz: 73bc152679e61f602342e4da78108d0899560d5bc72ebefcf2065c6f47d21f33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c5019d515b546991bb9c8fde16bcfa80fb9c812a476c5ce8b5bfb0d881611916b7364bc4e1cd09b8849f150a92b1a0bad501656554f90e32fe92697eafc8ad7
|
7
|
+
data.tar.gz: 7b4d2ce3f7b58abb62f72fbc5228669b1143cd9e3bd56c33aaf8ace62fb2c4bb37213a62104a27c72a4948c2ed001ba1b3feecbecb8e697c607c8406ab0f8b94
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bin/multi_ar
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative "../lib/multi_ar/interface"
|
4
|
+
|
5
|
+
require_relative "../lib/multi_ar/version"
|
6
|
+
|
7
|
+
interface = MultiAR::Interface.new
|
8
|
+
interface.version = "multi_ar-#{MultiAR::VERSION}"
|
9
|
+
interface.description = "Multi database migration tools utilizing ActiveRecord"
|
10
|
+
interface.options["db_config"] = true
|
11
|
+
interface.options["config"] = true
|
12
|
+
interface.migration_framework = true
|
13
|
+
opts = interface.cli do |parser|
|
14
|
+
# Nya.
|
15
|
+
end
|
data/lib/multi_ar/interface.rb
CHANGED
@@ -152,6 +152,8 @@ module MultiAR
|
|
152
152
|
if database.include? ":"
|
153
153
|
splitted = database.split(":")
|
154
154
|
out[splitted[0]] = splitted[1]
|
155
|
+
elsif !@options["migration_dir"].nil?
|
156
|
+
out[database] = "#{@options["migration_dir"]}/#{database}"
|
155
157
|
else
|
156
158
|
out[database] = "db/migrate/#{database}"
|
157
159
|
end
|
data/lib/multi_ar/version.rb
CHANGED
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: 5.1.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samu Voutilainen
|
@@ -161,10 +161,12 @@ description: |-
|
|
161
161
|
Core library for multi database support in any Ruby project for ActiveRecord.
|
162
162
|
Migrations are supported by optional gem multi_ar_migrations.
|
163
163
|
email: smar@smar.fi
|
164
|
-
executables:
|
164
|
+
executables:
|
165
|
+
- multi_ar
|
165
166
|
extensions: []
|
166
167
|
extra_rdoc_files: []
|
167
168
|
files:
|
169
|
+
- bin/multi_ar
|
168
170
|
- lib/multi_ar.rb
|
169
171
|
- lib/multi_ar/database.rb
|
170
172
|
- lib/multi_ar/interface.rb
|
metadata.gz.sig
CHANGED
@@ -1,4 +1 @@
|
|
1
|
-
J(�
|
2
|
-
v'&'��B�M ��ԕk;�\�Q��t�;l^Y�T���L�ڎ4�Pg��ޓ\�������p�Q"?�M����6�Ƶ�B�9�E4~i�L�C�.��a��/s�^����$��CcTH��X:�ZΘ
|
3
|
-
iL& lEOm�M��܁�U���3�;��U[���'V�J�5
|
4
|
-
w&w�DůU�8�D��Iw;�!�f֛P{ �B�p۰]�l��×�0��-),U:��V N�@Z�Jܙ�&x
|
1
|
+
�����)oZ�� �@����PA�4nK`��@]�Q�G��]��l�7_,m� �x�W{/��"*Qc��,.�u���d>-@7���X&���n�N��i'M�J:�̑.C�e_={��6o�2G�_��9@e����B���s���d���/�e�q�~�p)@)r��.���:�R�$�v�()Ȑ�'�U<� BW#��O9�V,H�s��ʧ����C���Ԝв����I=�r�6��=W�P���B�=d�
|