arql 0.1.3 → 0.1.4

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: 61c15f55639c3eb58102f4f03c4c5549edf06433da1037efb62372aad6ce5742
4
- data.tar.gz: 41d5e0bac8a8d5fdeedaf2d8e23db093be42fb6f8476de674dc1aece8da6c2dd
3
+ metadata.gz: 5ab8f5f261c0a207fa3d1d44798ec7f86864a0ff28fbb162bae3aa6abdae2311
4
+ data.tar.gz: 8c8a4238ad33800d565ff9546539213233a0c71f7759d77ad3f273825352f94c
5
5
  SHA512:
6
- metadata.gz: 13a8e6dc10a7953c02e826e7f4bdd4674e41d7a9e436001b92985fcbf280816ebd916d5cd8e4e59368243c9b94e260bf8bddd4f49139d0f1f46b641dac2125d3
7
- data.tar.gz: 0f128278d9de51ff5f95a1c1f598159b2aaf383da947a312579b093a9fccd898fa3e4b9275531d9739455faea51329283c82ca2d266e81c78901316dabc97c40
6
+ metadata.gz: 3d4e836e5b0622c66ec1295bac29faa5ec6aa671fe6f88be30be69bb13366b150cf81193085d1618b6f9f63222996b750166e72fa2b944da6a9010f72314315e
7
+ data.tar.gz: 7f6ba7270d4b9125906dff1d4c7a0d4a22b806a97b2ffbbecec7036524a9d53b0e1b2f7bd3f09d4d966dfc2cb625602631291b6074d0c5c8e22eed6266e7beb2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.1.3)
4
+ arql (0.1.4)
5
5
  activerecord (~> 6.0.3)
6
6
  activesupport (~> 6.0.3)
7
7
  mysql2 (~> 0.5.3)
@@ -10,6 +10,7 @@ PATH
10
10
  pry-byebug (~> 3.9.0)
11
11
  pry-doc (~> 1.1.0)
12
12
  rainbow (~> 3.0.0)
13
+ table_print (~> 1.5.6)
13
14
  terminal-table (~> 1.8.0)
14
15
 
15
16
  GEM
@@ -48,6 +49,7 @@ GEM
48
49
  yard (~> 0.9.11)
49
50
  rainbow (3.0.0)
50
51
  rake (12.3.3)
52
+ table_print (1.5.6)
51
53
  terminal-table (1.8.0)
52
54
  unicode-display_width (~> 1.1, >= 1.1.1)
53
55
  thread_safe (0.3.6)
data/arql.gemspec CHANGED
@@ -32,4 +32,5 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'pry-doc', '~> 1.1.0'
33
33
  spec.add_dependency 'rainbow', '~> 3.0.0'
34
34
  spec.add_dependency 'terminal-table', '~> 1.8.0'
35
+ spec.add_dependency 'table_print', '~> 1.5.6'
35
36
  end
data/lib/arql/cli.rb CHANGED
@@ -39,10 +39,6 @@ module Arql
39
39
  @options.env = env
40
40
  end
41
41
 
42
- opts.on('-jJAVA_CONFIG', '--java-conf=JAVA_CONFIG', 'Use JDBC config in JAVA_CONFIG file, if directory sepcified, first *.properties/*.yml file found in the directory will be used') do |config_file|
43
- @options.config_file = config_file
44
- end
45
-
46
42
  opts.on('-aDB_ADAPTER', '--db-adapter=DB_ADAPTER', 'Specify database Adapter, default is mysql2') do |db_adapter|
47
43
  @options.dapter = db_adapter
48
44
  end
@@ -8,7 +8,7 @@ module Arql::Commands
8
8
  Host: #{Arql::App.config[:host]}
9
9
  Port: #{Arql::App.config[:port]}
10
10
  Username: #{Arql::App.config[:username]}
11
- Password: #{Arql::App.config[:password].gsub(/./, '*')}
11
+ Password: #{(Arql::App.config[:password] || '').gsub(/./, '*')}
12
12
  Database: #{Arql::App.config[:database]}
13
13
  Adapter: #{Arql::App.config[:adapter]}
14
14
  Encoding: #{Arql::App.config[:encoding]}
@@ -23,7 +23,7 @@ module Arql::Commands
23
23
  Host: #{Arql::App.config[:ssh][:host]}
24
24
  Port: #{Arql::App.config[:ssh][:port]}
25
25
  Username: #{Arql::App.config[:ssh][:user]}
26
- Password: #{Arql::App.config[:ssh][:password].gsub(/./, '*')}
26
+ Password: #{(Arql::App.config[:ssh][:password] || '').gsub(/./, '*')}
27
27
  Local Port: #{Arql::App.local_ssh_proxy_port}
28
28
  EOF
29
29
  end
@@ -18,6 +18,7 @@ module Arql
18
18
  self.primary_key = pkey
19
19
  self.table_name = table_name
20
20
  self.inheritance_column = nil
21
+ self.default_timezone = :local
21
22
  end.tap do |clazz|
22
23
  Object.const_set(const_name, clazz).tap do |const|
23
24
  const_name.gsub(/[a-z]*/, '').tap do |abbr|
data/lib/arql/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/arql.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'active_support/all'
2
2
  require 'active_record'
3
+ require 'table_print'
3
4
  require "arql/version"
4
5
  require 'arql/id'
5
6
  require 'arql/multi_io'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 1.8.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: table_print
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.5.6
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.5.6
139
153
  description: Use ActiveRecord and Pry as your favorite SQL query editor.
140
154
  email:
141
155
  - liuxiang921@gmail.com