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.
- data/History.txt +8 -0
- data/lib/kuro-rs.rb +1 -1
- data/lib/kuro-rs/main.rb +3 -5
- metadata +3 -3
data/History.txt
CHANGED
data/lib/kuro-rs.rb
CHANGED
data/lib/kuro-rs/main.rb
CHANGED
@@ -83,13 +83,11 @@ module KuroRs
|
|
83
83
|
## write hex string
|
84
84
|
cmd_arr = []
|
85
85
|
arr = hex_str.split('')
|
86
|
-
|
87
|
-
|
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:#{
|
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sho Hashimoto
|