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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2d35c65ac586a681d1ae51f3a61a6f98e79f47a467dbdd097d20f427a9b51f8
4
- data.tar.gz: a169328e8a669ba95a69fd36fe0fc52c33a5f10f99fdb5186572bc8019fee43f
3
+ metadata.gz: cd1221198dc88a6ae7fa1c0d7b605966f89afed9c56d076409b4c3ff875ac980
4
+ data.tar.gz: 73bc152679e61f602342e4da78108d0899560d5bc72ebefcf2065c6f47d21f33
5
5
  SHA512:
6
- metadata.gz: 19a8273f4ba5bdb663f8b961eabc38bb19e90d2701b2573348350497c5d10637e58c226654279d8565dd36448ca6d97140b8526ae68e2c0e313cfaef7e3586a2
7
- data.tar.gz: 3a93f3563be70937ba18b40056bc89e1969945b87915fcd4bf2dfe5e771dfd280bc99beb1c244271198613682db218cc5b74e893704334347aa06a6c4c695a34
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
@@ -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
@@ -1,4 +1,4 @@
1
1
 
2
2
  module MultiAR
3
- VERSION = "5.1.0"
3
+ VERSION = "5.1.1"
4
4
  end
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.0
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(�f
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<� B W#��O9V,H�s��ʧ����C���Ԝв����I=�r�6��=W�P���B�=d�