win32console 1.3.0.beta2-x86-mswin32-60 → 1.3.0.beta3-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.3.0.beta3 / 2010-03-12
2
+
3
+ * Bugfixes
4
+ * Properly catch coloring when using autospec in Ruby 1.9 [vertiginous]
5
+ Closes GH-3
6
+
1
7
  === 1.3.0.beta2 / 2010-03-07
2
8
 
3
9
  * Enhancements
Binary file
Binary file
@@ -101,8 +101,10 @@ module Win32
101
101
  # this redefined #putc buffers escape sequences but passes
102
102
  # other values to #write as normal.
103
103
  def putc(int)
104
+ int = int.ord if RUBY_VERSION >= "1.9"
104
105
  if @buffer.empty?
105
- unless int == ?\e
106
+ # match \e
107
+ unless int == 27
106
108
  write(int.chr)
107
109
  else
108
110
  @buffer << int
@@ -110,8 +112,9 @@ module Win32
110
112
  else
111
113
  @buffer << int
112
114
  case int
113
- when ?m, ?J, ?L, ?M, ?@, ?P, ?A, ?B, ?C, ?D,
114
- ?E, ?F, ?G, ?H, ?f, ?s, ?u, ?U, ?K, ?X
115
+ # match m, J, L, M, @, P, A, B, C, D, E, F, G, H, f, s, u, U, K, X
116
+ when 109, 74, 76, 77, 64, 80, 65, 66, 67, 68,
117
+ 69, 70, 71, 72, 102, 115, 117, 85, 75, 88
115
118
  write(@buffer.pack("c*"))
116
119
  @buffer.clear
117
120
  end
data/tasks/gem.rake CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'hoe'
2
2
 
3
3
  HOE = Hoe.spec 'win32console' do
4
- self.version = '1.3.0.beta2'
4
+ self.version = '1.3.0.beta3'
5
5
 
6
6
  developer 'Gonzalo Garramuno', 'ggarra@advancedsl.com.ar'
7
7
  developer 'Justin Bailey', 'jgbailey@gmail.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32console
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.beta2
4
+ version: 1.3.0.beta3
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
7
  - Gonzalo Garramuno
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-03-07 00:00:00 -03:00
14
+ date: 2010-03-12 00:00:00 -03:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency