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 CHANGED
@@ -1,6 +1,10 @@
1
1
  JRubySQL Changelog
2
2
  ==================
3
3
 
4
+ 0.1.6
5
+ -----
6
+ * Bug fix: Fails to render data type with no assigned color
7
+
4
8
  0.1.5
5
9
  -----
6
10
  * Supports Cassandra CQL3
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.0'
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: bold blue
3
- warning: yellow
4
- error: bold red
5
- help: bold blue
2
+ info: bold blue
3
+ warning: yellow
4
+ error: bold red
5
+ help: bold blue
6
6
 
7
- prompt1: bold
8
- prompt2: bold green
9
- prompt3: bold yellow
10
- prompt4: bold red
11
- result: green
7
+ prompt1: bold
8
+ prompt2: bold green
9
+ prompt3: bold yellow
10
+ prompt4: bold red
11
+ result: green
12
12
 
13
- border: blue
14
- label: bold
13
+ border: blue
14
+ label: bold
15
15
 
16
- number: cyan
17
- string: yellow
18
- time: magenta
19
- nil: bold red
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 + (reset unless color.empty?)
101
+ color + text + (color.empty? ? '' : reset)
101
102
  end
102
103
 
103
104
  end#CTerm
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module JRubySQL
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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
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-11 00:00:00.000000000 Z
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.0
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.0
122
+ version: 0.2.4
123
123
  none: false
124
124
  prerelease: false
125
125
  type: :runtime