jrubysql 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/jrubysql.gemspec +1 -1
- data/lib/jrubysql/output/color_scheme/default.yml +16 -15
- data/lib/jrubysql/output/cterm.rb +2 -1
- data/lib/jrubysql/output/term.rb +1 -0
- data/lib/jrubysql/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/jrubysql.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
|
27
27
|
s.add_runtime_dependency "jdbc-helper", '~> 0.7.4'
|
28
28
|
s.add_runtime_dependency "insensitive_hash", '~> 0.2.4'
|
29
|
-
s.add_runtime_dependency "tabularize", '~> 0.2.
|
29
|
+
s.add_runtime_dependency "tabularize", '~> 0.2.4'
|
30
30
|
s.add_runtime_dependency "each_sql", '~> 0.3.1'
|
31
31
|
s.add_runtime_dependency "highline", '~> 1.6.11'
|
32
32
|
s.add_runtime_dependency "ansi", '~> 1.4.2'
|
@@ -1,20 +1,21 @@
|
|
1
1
|
---
|
2
|
-
info:
|
3
|
-
warning:
|
4
|
-
error:
|
5
|
-
help:
|
2
|
+
info: bold blue
|
3
|
+
warning: yellow
|
4
|
+
error: bold red
|
5
|
+
help: bold blue
|
6
6
|
|
7
|
-
prompt1:
|
8
|
-
prompt2:
|
9
|
-
prompt3:
|
10
|
-
prompt4:
|
11
|
-
result:
|
7
|
+
prompt1: bold
|
8
|
+
prompt2: bold green
|
9
|
+
prompt3: bold yellow
|
10
|
+
prompt4: bold red
|
11
|
+
result: green
|
12
12
|
|
13
|
-
border:
|
14
|
-
label:
|
13
|
+
border: blue
|
14
|
+
label: bold
|
15
15
|
|
16
|
-
number:
|
17
|
-
string:
|
18
|
-
time:
|
19
|
-
nil:
|
16
|
+
number: cyan
|
17
|
+
string: yellow
|
18
|
+
time: magenta
|
19
|
+
nil: bold red
|
20
|
+
ellipsis: bold green
|
20
21
|
|
@@ -71,6 +71,7 @@ private
|
|
71
71
|
:hborder => @ccode[:border] + '-',
|
72
72
|
:vborder => wrap('|', @ccode[:border]),
|
73
73
|
:iborder => wrap('+', @ccode[:border]),
|
74
|
+
:ellipsis => wrap('>', @ccode[:ellipsis])
|
74
75
|
}
|
75
76
|
end
|
76
77
|
|
@@ -97,7 +98,7 @@ private
|
|
97
98
|
end
|
98
99
|
|
99
100
|
def wrap text, color
|
100
|
-
color + text + (
|
101
|
+
color + text + (color.empty? ? '' : reset)
|
101
102
|
end
|
102
103
|
|
103
104
|
end#CTerm
|
data/lib/jrubysql/output/term.rb
CHANGED
@@ -81,6 +81,7 @@ private
|
|
81
81
|
cnt = 0
|
82
82
|
lines = [(@terminal.getTerminalHeight rescue JRubySQL::Constants::MAX_SCREEN_ROWS) - 5,
|
83
83
|
JRubySQL::Constants::MIN_SCREEN_ROWS].max
|
84
|
+
cols = (@terminal.getTerminalWidth rescue nil)
|
84
85
|
ret.each_slice(lines) do |slice|
|
85
86
|
cnt += slice.length
|
86
87
|
|
data/lib/jrubysql/version.rb
CHANGED
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: jrubysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Junegunn Choi
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: test-unit
|
@@ -113,13 +113,13 @@ dependencies:
|
|
113
113
|
requirements:
|
114
114
|
- - ~>
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: 0.2.
|
116
|
+
version: 0.2.4
|
117
117
|
none: false
|
118
118
|
requirement: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - ~>
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 0.2.
|
122
|
+
version: 0.2.4
|
123
123
|
none: false
|
124
124
|
prerelease: false
|
125
125
|
type: :runtime
|