arql 0.1.18 → 0.1.19

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: cc32d5a5bb5ea53adc52952b2f8c36e07835a37b36b95561b92e109aead9a586
4
- data.tar.gz: 8603d556ce8e587bcdcfcabe3ac36e43697f74b2a7e0695722848c6bba7a0efa
3
+ metadata.gz: 61d5c9f895b30b36b2633193f71cfd9371ea1f3ab5e247f82865c38d795185c0
4
+ data.tar.gz: 7cbe68d3a2823f3220dee1aec8fcc7a7ac5ebea51ce83cefb067592834c6293c
5
5
  SHA512:
6
- metadata.gz: 72434511025ec632cd35fc26d6d4d92225e70b133882561bae3a113aa0cb6c2c7b73947b31c2c8a7cac880f9ac61a043e569dcb0e67dea6fa66a100429cbfc85
7
- data.tar.gz: 8ef7c8223381c4cc647c23ece0dabb2550a4b9e7270fb684fcaaddd24cd20fefb7f521629695cd955fa2169e2344497bbea5df7716dcd4cef1c5fdb4accfc5c0
6
+ metadata.gz: 7dcd950fdc554a646ecfbec9bf2d3014cf317fff7c15033d093846d8e6df3a8d2656f5d0cf6c69c15d6ec565c9f0e186501ab7e703994388bc7a1e955f717fb0
7
+ data.tar.gz: 3577d505f619fdeb997c7535f2a86d552622dd8f885cdbd982ca688e7b44c0fddbe8f4b49a0fd5b27744f65a281835eca826c87fd50ccd021c494f2b6cf83742
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.1.18)
4
+ arql (0.1.19)
5
5
  activerecord (~> 6.0.3)
6
6
  activerecord-oracle_enhanced-adapter
7
7
  activerecord-sqlserver-adapter
@@ -23,9 +23,15 @@ class Array
23
23
  end
24
24
  }
25
25
  else
26
- puts Terminal::Table.new { |t|
26
+ table = Terminal::Table.new { |t|
27
27
  v.each { |row| t << (row || :separator)}
28
- }
28
+ }.to_s.lines.map(&:chomp)
29
+
30
+ terminal_width = `tput cols`.to_i
31
+ if table.first.size > terminal_width
32
+ puts table[0..2].join("\n")
33
+ puts table[3..-1].join("\n#{'-' * terminal_width}\n")
34
+ end
29
35
  end
30
36
  end
31
37
 
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
3
3
  end
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang