writeexcel 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -0
- data/VERSION +1 -1
- data/lib/writeexcel/workbook.rb +9 -4
- data/writeexcel.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.4
|
data/lib/writeexcel/workbook.rb
CHANGED
@@ -2972,8 +2972,7 @@ def add_mso_drawing_group_continue(data) #:nodoc:
|
|
2972
2972
|
end
|
2973
2973
|
|
2974
2974
|
# Change length field of the first MSODRAWINGGROUP block. Case 2 and 3.
|
2975
|
-
tmp = data
|
2976
|
-
data[0, limit + 4] = ""
|
2975
|
+
tmp, data = devide_string(data, limit + 4)
|
2977
2976
|
tmp[2, 2] = [limit].pack('v')
|
2978
2977
|
append(tmp)
|
2979
2978
|
|
@@ -2988,8 +2987,7 @@ def add_mso_drawing_group_continue(data) #:nodoc:
|
|
2988
2987
|
header = [continue, limit].pack("vv")
|
2989
2988
|
end
|
2990
2989
|
|
2991
|
-
tmp = data
|
2992
|
-
tmp[0, limit] = ''
|
2990
|
+
tmp, data = devide_string(data, limit)
|
2993
2991
|
append(header, tmp)
|
2994
2992
|
end
|
2995
2993
|
|
@@ -3002,6 +3000,13 @@ def add_mso_drawing_group_continue(data) #:nodoc:
|
|
3002
3000
|
end
|
3003
3001
|
private :add_mso_drawing_group_continue
|
3004
3002
|
|
3003
|
+
def devide_string(string, nth)
|
3004
|
+
first_string = string[0, nth]
|
3005
|
+
latter_string = string[nth, string.size - nth]
|
3006
|
+
[first_string, latter_string]
|
3007
|
+
end
|
3008
|
+
private :devide_string
|
3009
|
+
|
3005
3010
|
###############################################################################
|
3006
3011
|
#
|
3007
3012
|
# _store_mso_dgg_container()
|
data/writeexcel.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: writeexcel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 4
|
10
|
+
version: 0.6.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Hideo NAKAMURA
|