rubyXL 1.2.9 → 1.2.10

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 (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/rubyXL/parser.rb +3 -9
  3. data/rubyXL.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.9
1
+ 1.2.10
data/lib/rubyXL/parser.rb CHANGED
@@ -67,8 +67,7 @@ module RubyXL
67
67
  wb.shared_strings[string] = i
68
68
  end
69
69
  end
70
-
71
- unless @data_only
70
+ #styles are needed for formatting reasons as that is how dates are determined
72
71
  styles = files['styles'].css('cellXfs xf')
73
72
  style_hash = Hash.xml_node_to_hash(files['styles'].root)
74
73
  fill_styles(wb,style_hash)
@@ -79,7 +78,6 @@ module RubyXL
79
78
  wb.printer_settings = files['printerSettings']
80
79
  wb.worksheet_rels = files['worksheetRels']
81
80
  wb.macros = files['vbaProject']
82
- end
83
81
 
84
82
  #for each worksheet:
85
83
  #1. find the dimensions of the data matrix
@@ -297,9 +295,7 @@ module RubyXL
297
295
  end
298
296
  end
299
297
 
300
- unless @data_only
301
- style_index = value['s'].to_i #nil goes to 0 (default)
302
- end
298
+ style_index = value['s'].to_i #nil goes to 0 (default)
303
299
 
304
300
  wb.worksheets[i].sheet_data[cell_index[0]][cell_index[1]] =
305
301
  Cell.new(wb.worksheets[i],cell_index[0],cell_index[1],cell_data,cell_formula,
@@ -396,10 +392,8 @@ module RubyXL
396
392
  if File.exist?(File.join(dir_path,'xl','vbaProject.bin'))
397
393
  files['vbaProject'] = File.open(File.join(dir_path,"xl","vbaProject.bin"),'rb').read
398
394
  end
399
-
400
- files['styles'] = Nokogiri::XML.parse(File.open(File.join(dir_path,'xl','styles.xml'),'r'))
401
395
  end
402
-
396
+ files['styles'] = Nokogiri::XML.parse(File.open(File.join(dir_path,'xl','styles.xml'),'r'))
403
397
  @num_sheets = files['workbook'].css('sheets').children.size
404
398
  @num_sheets = Integer(@num_sheets)
405
399
 
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.2.9"
8
+ s.version = "1.2.10"
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{2012-07-26}
12
+ s.date = %q{2012-08-07}
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyXL
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 9
9
+ - 10
10
10
  segments_generated: true
11
- version: 1.2.9
11
+ version: 1.2.10
12
12
  platform: ruby
13
13
  authors:
14
14
  - Vivek Bhagwat
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-07-26 00:00:00 -04:00
19
+ date: 2012-08-07 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency