rubyXL 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/lib/cell.rb +4 -0
  3. data/lib/parser.rb +9 -0
  4. data/rubyXL.gemspec +2 -2
  5. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.8
1
+ 1.0.9
data/lib/cell.rb CHANGED
@@ -303,6 +303,10 @@ module RubyXL
303
303
  col_string+row_string
304
304
  end
305
305
 
306
+ def inspect
307
+ "#{@row},#{@column}: #{@value} = #{@formula}, datatype = #{@datatype}, style_index = #{@style_index}"
308
+ end
309
+
306
310
  private
307
311
 
308
312
  def change_border(direction, weight)
data/lib/parser.rb CHANGED
@@ -42,6 +42,15 @@ module RubyXL
42
42
  wb.num_strings = Integer(files['sharedString'].css('sst').attribute('count').value())
43
43
  wb.size = Integer(files['sharedString'].css('sst').attribute('uniqueCount').value())
44
44
 
45
+ files['sharedString'].css('si').each do |node|
46
+ unless node.css('r').empty?
47
+ text = node.css('r t').children.to_a.join
48
+ node.children.remove
49
+ node << "<t xml:space=\"preserve\">#{text}</t>"
50
+ end
51
+ end
52
+
53
+
45
54
  shared_strings = files['sharedString'].css('si t').children
46
55
  wb.shared_strings = {}
47
56
  shared_strings.each_with_index do |string,i|
data/rubyXL.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rubyXL}
8
- s.version = "1.0.8"
8
+ s.version = "1.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Vivek Bhagwat"]
12
- s.date = %q{2011-08-03}
12
+ s.date = %q{2011-08-08}
13
13
  s.description = %q{rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents}
14
14
  s.email = %q{bhagwat.vivek@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyXL
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 8
10
- version: 1.0.8
9
+ - 9
10
+ version: 1.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vivek Bhagwat
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-03 00:00:00 -04:00
18
+ date: 2011-08-08 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency