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 CHANGED
@@ -81,6 +81,9 @@ when use urf8 string data.
81
81
 
82
82
  == Recent Changes
83
83
 
84
+ v0.6.4
85
+ * Bug fix. endless loop when inserted image size > 8224bytes.
86
+
84
87
  v0.6.3
85
88
  * Bug fix. endless loop when inserted image size > 8224.
86
89
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.3
1
+ 0.6.4
@@ -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[0, limit + 4]
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.dup
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{writeexcel}
8
- s.version = "0.6.3"
8
+ s.version = "0.6.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Hideo NAKAMURA"]
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: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 3
10
- version: 0.6.3
9
+ - 4
10
+ version: 0.6.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hideo NAKAMURA