kuro-rs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,11 @@
1
+ === 0.0.4 2011-10-31
2
+
3
+ * fix broken data when write
4
+
5
+ === 0.0.3 2011-10-31
6
+
7
+ * add http interface
8
+
1
9
  === 0.0.2 2011-10-31
2
10
 
3
11
  * modify timeout
@@ -10,5 +10,5 @@ Dir.glob(File.dirname(__FILE__)+'/kuro-rs/*.rb').each do |f|
10
10
  end
11
11
 
12
12
  module KuroRs
13
- VERSION = '0.0.3'
13
+ VERSION = '0.0.4'
14
14
  end
@@ -83,13 +83,11 @@ module KuroRs
83
83
  ## write hex string
84
84
  cmd_arr = []
85
85
  arr = hex_str.split('')
86
- loop do
87
- s = arr.shift + arr.shift
88
- cmd_arr << s.hex
89
- break if arr.empty?
86
+ 240.times do
87
+ cmd_arr << ((arr.shift || '0') + (arr.shift || '0')).hex
90
88
  end
91
89
 
92
- puts "command size:#{cmd_arr.size}(Bytes)" if @verbose
90
+ puts "command size:#{hex_str.size/2}(Bytes)" if @verbose
93
91
  puts 'writing data...' if @verbose
94
92
  begin
95
93
  cmd_arr.each{|c|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuro-rs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sho Hashimoto