multi_tenancy_database 0.1.1 → 0.1.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c4bc331fd84b74612e1afce39188717125c46387268d3cad76fbdc3099b085df
|
4
|
+
data.tar.gz: 2ebce440df08eea997e57b7136eb7ad782fd242745c065713675c90207b262b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c26e16fdefcc847f35706ed1771793b89944d1c6aa1c8af4be373b37999226e043a991395095ca62d923bf9ed7d5b47a59181eec28e60704bedb669ed7a1cf00
|
7
|
+
data.tar.gz: 626b982717e3b04b84ca9c785930e1d1965d2bade39ea1ae0937662d63a99930718f7992051b755dc65b58c07abf42a36111b6733995403f87ec8472e52fddcf
|
@@ -2,6 +2,7 @@ require "multi_tenancy_database/version"
|
|
2
2
|
require 'thor'
|
3
3
|
|
4
4
|
require_relative 'multi_tenancy_database/version'
|
5
|
+
require_relative 'multi_tenancy_database/default'
|
5
6
|
require_relative 'multi_tenancy_database/command'
|
6
7
|
require_relative 'multi_tenancy_database/generator'
|
7
8
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'optparse'
|
2
2
|
require 'multi_tenancy_database'
|
3
3
|
require 'multi_tenancy_database/version'
|
4
|
+
require 'multi_tenancy_database/default'
|
4
5
|
|
5
6
|
module MultiTenancyDatabase
|
6
7
|
class Command
|
@@ -27,6 +28,7 @@ module MultiTenancyDatabase
|
|
27
28
|
protected
|
28
29
|
def check_missing_requirement_options
|
29
30
|
mandatory = [:name, :adapter]
|
31
|
+
@options[:adapter] = MultiTenancyDatabase::ADAPTER
|
30
32
|
missing = mandatory.select{ |param| @options[param].nil? }
|
31
33
|
if !missing.empty?
|
32
34
|
puts "Missing options: #{missing.join(', ')}"
|
@@ -50,7 +52,7 @@ module MultiTenancyDatabase
|
|
50
52
|
@options[:name] = name.gsub(/^\=+/, '')
|
51
53
|
end
|
52
54
|
|
53
|
-
opts.on('-a', '--adapter=
|
55
|
+
opts.on('-a', '--adapter=postgresql|mysql', 'Adapter type, default will postgresql') do |adapter|
|
54
56
|
@options[:adapter] = adapter.gsub(/^\=+/, '')
|
55
57
|
end
|
56
58
|
|
@@ -6,11 +6,11 @@ require "multi_tenancy_database/version"
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "multi_tenancy_database"
|
8
8
|
spec.version = MultiTenancyDatabase::VERSION
|
9
|
-
spec.authors = ["thuocsi.vn"]
|
10
|
-
spec.email = ["phuong@thuocsi.vn"]
|
9
|
+
spec.authors = ["Phuong Ngo", "thuocsi.vn"]
|
10
|
+
spec.email = ["ngohoai.phuong@gmail.com", "phuong@thuocsi.vn"]
|
11
11
|
|
12
12
|
spec.summary = %q{Generate and connect database}
|
13
|
-
spec.description = %q{Generate new config datanbase and add this
|
13
|
+
spec.description = %q{Generate new config datanbase and add this connect to current project}
|
14
14
|
spec.homepage = "https://github.com/thuocsi/multi_tenancy_database"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_tenancy_database
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Phuong Ngo
|
7
8
|
- thuocsi.vn
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
12
|
+
date: 2019-02-27 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
@@ -52,8 +53,9 @@ dependencies:
|
|
52
53
|
- - "~>"
|
53
54
|
- !ruby/object:Gem::Version
|
54
55
|
version: '3.0'
|
55
|
-
description: Generate new config datanbase and add this
|
56
|
+
description: Generate new config datanbase and add this connect to current project
|
56
57
|
email:
|
58
|
+
- ngohoai.phuong@gmail.com
|
57
59
|
- phuong@thuocsi.vn
|
58
60
|
executables:
|
59
61
|
- multi_tenancy_database
|
@@ -71,6 +73,7 @@ files:
|
|
71
73
|
- exe/multi_tenancy_database
|
72
74
|
- lib/multi_tenancy_database.rb
|
73
75
|
- lib/multi_tenancy_database/command.rb
|
76
|
+
- lib/multi_tenancy_database/default.rb
|
74
77
|
- lib/multi_tenancy_database/generator.rb
|
75
78
|
- lib/multi_tenancy_database/version.rb
|
76
79
|
- multi_tenancy_database.gemspec
|
@@ -96,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
99
|
- !ruby/object:Gem::Version
|
97
100
|
version: '0'
|
98
101
|
requirements: []
|
99
|
-
|
100
|
-
rubygems_version: 2.5.2.3
|
102
|
+
rubygems_version: 3.0.2
|
101
103
|
signing_key:
|
102
104
|
specification_version: 4
|
103
105
|
summary: Generate and connect database
|