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
- SHA1:
3
- metadata.gz: 2813e27322bc7bca485ca23f1279798edbc98cab
4
- data.tar.gz: 01d2f8c3d6ad76ce167642a10f83222fce071d15
2
+ SHA256:
3
+ metadata.gz: c4bc331fd84b74612e1afce39188717125c46387268d3cad76fbdc3099b085df
4
+ data.tar.gz: 2ebce440df08eea997e57b7136eb7ad782fd242745c065713675c90207b262b8
5
5
  SHA512:
6
- metadata.gz: 4bd26e6dc0f1d291e526e2444db19e3e9f0ed3c3e87e84cd3b2bffefa86448603ad02f5f7bff195c6e26b7b302e0623e10c4ea51401624ccfe2e6ec42f18e511
7
- data.tar.gz: 6e82a972d72d3a16e57c2f7886fc28b5d49ccb6f7306eb2938bd45f95894316baa25a635590ff19ebefcff6bae81f97b08f468650bc38e3773492f645ed4d30d
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=posttgresql|mysql', 'Adapter type') do |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
 
@@ -0,0 +1,3 @@
1
+ module MultiTenancyDatabase
2
+ ADAPTER = 'postgresql'
3
+ end
@@ -1,3 +1,3 @@
1
1
  module MultiTenancyDatabase
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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 conneect to currentt project}
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.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-26 00:00:00.000000000 Z
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 conneect to currentt project
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
- rubyforge_project:
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