Skip to content

Commit

Permalink
adding in support for ruby 1.9.3
Browse files Browse the repository at this point in the history
release version 1.0.9
  • Loading branch information
Randy Morgan committed Nov 26, 2011
1 parent 044afe5 commit 11303a4
Show file tree
Hide file tree
Showing 127 changed files with 8,398 additions and 12,925 deletions.
110 changes: 55 additions & 55 deletions .yardoc/checksums
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
lib/axlsx/stylesheet/table_styles.rb 04b778652c29d612f63e93080d06c3936e48d765
lib/axlsx/stylesheet/table_style.rb b592135b8b02969a29bd24c28a13282f6af76f30
lib/axlsx/drawing/pie_3D_chart.rb f9c70bd12b697dcd51780f29c037d4659b48e479
lib/axlsx/stylesheet/border_pr.rb 09dcb61ec7b0cf49f2da4c4f8ccba8f7e0df7b07
lib/axlsx/stylesheet/color.rb 4927aaebe27dda42d78bb7baf9a44edc1753c77f
lib/axlsx.rb 3d1e5303c404a2c20dc007eae7f14fb59a0d3aae
lib/axlsx/version.rb 921bd286d3b4f56047b9f51f11d1aa16c0bf930a
lib/axlsx/package.rb d55d5445428d99d77b62d7c742f1c284a0ec4efd
lib/axlsx/drawing/pic.rb d91e014f8e2604480437a434f714ad25d31acbff
lib/axlsx/drawing/axis.rb 8eaf645e24c1fef43a475ceb28caf5116af25736
lib/axlsx/doc_props/app.rb c64077808d7cb6aa30472e15c600009a01f3f338
lib/axlsx/drawing/title.rb 497e6ddeb153bb230f5bf9dc76e799b91ae2a8ed
lib/axlsx/drawing/chart.rb bd437e8cb970bbd6df7488b2187199a1f0f3e376
lib/axlsx/stylesheet/xf.rb 97e3c67007a182fc7df22e5c06f1510cfe5c11ac
lib/axlsx/doc_props/core.rb 90ebc8086f6606af02275c27068c359a5647faf0
lib/axlsx/drawing/series.rb 168dbadedd446ff0f28bc9a5187b571d07a8936e
lib/axlsx/drawing/marker.rb 8b8c5ef799c7f56288e2951058a93db020846ea9
lib/axlsx/util/constants.rb 4dc8b1d765aa0593615a14c3761b0183be308908
lib/axlsx/drawing/marker.rb 3507738522c02a3733a01f115d9ef22fae4ea542
lib/axlsx/stylesheet/cell_protection.rb ce494f9add6de0a51407ddd9122fffe95759a48a
lib/axlsx/stylesheet/cell_style.rb 46c6ff183bce5c6b1ab6228823257d638007b03c
lib/axlsx/drawing/series_title.rb 8f088942649b5b5cc351b621bf8fb252f33cb510
lib/axlsx/drawing/line_series.rb ffcd6d010ea0606f54a543eb1fc61022aac129d7
lib/axlsx/drawing/series.rb 1cf010706e32e7e51affbc9edb9d4862a26b33ef
lib/axlsx/package.rb 339a8e5650f45623b126efddd22d3a5f0655aad9
lib/axlsx/stylesheet/cell_alignment.rb f67f6a0bc16bf13669ed7b18714e4de23825ed94
lib/axlsx/content_type/default.rb 8ec0d9d1e6bf261735739823acd460c271e3f5ed
lib/axlsx/drawing/title.rb b46fb082e3bea936d129c8aa0998f3b71c9838cc
lib/axlsx/drawing/axis.rb 5e37bac9f4dd258265213d5621522eed3c614954
lib/axlsx/stylesheet/table_style_element.rb bee66d743e3113fb14adc7ebdecbeb606bfb49fc
lib/axlsx/content_type/content_type.rb 6c576e1618f99f7163fffa6b6e89e964653dcb5f
lib/axlsx/stylesheet/font.rb 1ee29414f720d26b7d484a90d8ebdaa7ecda4fa6
lib/axlsx/drawing/view_3D.rb 8a83aed740c05d28aaa0e3430c7c4d2bbc44cc61
lib/axlsx/drawing/drawing.rb 69b5fe2e76d64958e6c6529cabf6d2f717b0df81
lib/axlsx/stylesheet/fill.rb 44c473c7eafc37690cae9de2cc11543c992752ff
lib/axlsx/util/validators.rb c70f27b943d3711fbe1244a8311789a6fad7e31e
lib/axlsx/drawing/scaling.rb 75a7a015a715bdd25f615ecdbe084d841fdc6ad0
lib/axlsx/drawing/cat_axis.rb fde414377386d8ee7d1574e96d77a28a991ea21c
lib/axlsx/stylesheet/color.rb 442c205c92723c7b06f10e434ac03e2d09ab559f
lib/axlsx/drawing/ser_axis.rb 1f4952403738e3089e30deb266b1385679d46096
lib/axlsx/drawing/val_axis.rb 8c1f847cff0b0c788c11b31ac55995566bef16b1
lib/axlsx/stylesheet/border.rb cee9b6982c4a946f7caa850090f72d0d7ce0a0d2
lib/axlsx/workbook/workbook.rb 96b55e7154132baf7dac707af3eea09583ef4d95
lib/axlsx/stylesheet/styles.rb c5685e442e2a61f665e4aab479705bbc1889caed
lib/axlsx/rels/relationship.rb 8d279056b53ba22ff288187ff0f3d18273dcdcb7
lib/axlsx/stylesheet/num_fmt.rb 796ee45611b89e8a670dcff3dd97ad9306f18048
lib/axlsx/drawing/bar_series.rb ffe5dae5292d0324442b870fb1958847da6dde5e
lib/axlsx/rels/relationships.rb 9c741e180796259bb378a789fd484fa1d8f04425
lib/axlsx/stylesheet/num_fmt.rb dc830c6540465afa824881efa2f1ce4070957c47
lib/axlsx.rb 7d8c589a0bdc16acf8774ae1b77d5177b030a80c
lib/axlsx/content_type/override.rb 72245683bca868f181d709a515f9152485653229
lib/axlsx/drawing/graphic_frame.rb 9fb4e59405ea7974e9759906efd5c8c90dfa9b89
lib/axlsx/drawing/pie_series.rb df339ed3eeb5692077e3a134339d04e77c9bc89b
lib/axlsx/drawing/bar_series.rb 76d41efe347318587a932f9313f03e0a76abb4ee
lib/axlsx/stylesheet/gradient_fill.rb 5fd260ec2b94ab75a970159035528548a9d21cd6
lib/axlsx/workbook/worksheet/row.rb f866a98341ce4e604908e42d00f2af09e58c75d2
lib/axlsx/util/simple_typed_list.rb b95f7e8d8958361cb1946b8545126b9384ff9fd2
lib/axlsx/workbook/workbook.rb 12c82a584a9bfc4dfbb92c04426413d7eb44a504
lib/axlsx/stylesheet/fill.rb 35966285f5d759d63451005ceae3a5ae5ba2ceca
lib/axlsx/drawing/view_3D.rb c8e25d57901dd7d679fe7d1ed674d5549ab6f1b3
lib/axlsx/stylesheet/xf.rb e3d6e2e4c3b0b33c91de4c3db16c73aca3db4473
lib/axlsx/drawing/two_cell_anchor.rb b89873e55820f9be35f8e5ebe22bd8a0d319622a
lib/axlsx/stylesheet/styles.rb 3679a8fe86270bdef96f02bcf76f2eac27b1c2ef
lib/axlsx/drawing/val_axis.rb da067622f8b09e6caf5067955b277d75ab3c8943
lib/axlsx/drawing/cat_axis.rb f046262d1e8d04ff697fe29b88725225cd406cb2
lib/axlsx/util/validators.rb 11eb309df0232fc1ad36c8c5ab0804d656b2294a
lib/axlsx/stylesheet/font.rb 8b002d5fcba2fb0979858517f5254aadf96c7e58
lib/axlsx/doc_props/app.rb 52f01e985a33253987177798d4e79ed208649b30
lib/axlsx/workbook/worksheet/worksheet.rb c7159356776e5ca1cfb6d0bc288c3acf278226c8
lib/axlsx/workbook/worksheet/cell.rb b64976226d09066328cd1ae09763e324c4efada5
lib/axlsx/rels/relationship.rb 067b924c964a870124d51ea6e39dc1cd8983db21
lib/axlsx/stylesheet/border.rb 517bfcb43380919ce7abef494d5d3e50911b7c19
lib/axlsx/drawing/ser_axis.rb 6d15f6cc2092ef5c3baa314ed1af793247418d9b
lib/axlsx/drawing/drawing.rb 243992f4dd131092c6981b3b8cb68905c55d7e1e
lib/axlsx/drawing/chart.rb b0bfdd0cc2f0f48ed3ddcf2a1b1c46c5d9cabc2e
lib/axlsx/version.rb ff68edc0a9bdaaaa00a81a27a3de4fa8fe4e70ce
lib/axlsx/stylesheet/gradient_stop.rb de34e289aeccb4abd9a3b7e60e816a0b12ffacff
lib/axlsx/drawing/cat_axis_data.rb f440010084afad99d97d31354f5b5a8ee8766e9b
lib/axlsx/drawing/pie_series.rb 66dfb2152f3b0e80b358c7af9061beb3c4ab984d
lib/axlsx/drawing/line_series.rb c7475484fd05284520a35806ff4562d125b2b3b8
lib/axlsx/drawing/bar_3D_chart.rb 83de47e0e9a0c7b46bdc0ea255b50f9ee8a1d1a8
lib/axlsx/stylesheet/border_pr.rb e8094ee1f75f5028d2ec68dce1590ee68dbede21
lib/axlsx/content_type/default.rb 1c1a700e266964877599e8fdd28adb6771576030
lib/axlsx/drawing/series_title.rb 2638d611b790db9281108110623fd71e8e79fae0
lib/axlsx/drawing/pie_3D_chart.rb f9c70bd12b697dcd51780f29c037d4659b48e479
lib/axlsx/drawing/val_axis_data.rb c57c0abf5abb4aca9fba774f20e2f2c04d3020e8
lib/axlsx/doc_props/core.rb 90ebc8086f6606af02275c27068c359a5647faf0
lib/axlsx/drawing/pic.rb b728be1f2f927e02c08b55c7a03b8bc6059f8672
lib/axlsx/drawing/bar_3D_chart.rb e5199cf0a33e416ea5ddf66677031ee08e5c116f
lib/axlsx/drawing/scaling.rb d3b59eed1897dc2b07bb41b2245c6e4b3e274d7e
lib/axlsx/stylesheet/pattern_fill.rb 817cf55beb3db160b2b56edb6c94de1ecf1ecee7
lib/axlsx/drawing/one_cell_anchor.rb 512f300984cc9b2c4db73afb967b445d2e240ab7
lib/axlsx/drawing/line_3D_chart.rb de0a2c8a49259e0348fd2c642c08eb4c567bcf1b
lib/axlsx/drawing/graphic_frame.rb 271e897616d85ebc069820c0d6a7dd3a716deff2
lib/axlsx/drawing/line_3D_chart.rb 77bc8e6efbe42f8928fb6ffd3c2538ff99ec2444
lib/axlsx/content_type/override.rb 43ff5dbbb01fbe0237a11c3da7fa5d8e1d5b67ef
lib/axlsx/drawing/cat_axis_data.rb f440010084afad99d97d31354f5b5a8ee8766e9b
lib/axlsx/stylesheet/cell_style.rb ceb0552421cb947584c1800c9aad43536fc7715d
lib/axlsx/util/simple_typed_list.rb b95f7e8d8958361cb1946b8545126b9384ff9fd2
lib/axlsx/workbook/worksheet/row.rb 17cf7a468717fd6e01fddce1f00199307736adb5
lib/axlsx/stylesheet/table_style.rb 3c3712b3958b6ae8f645971b0eb1fb92dd1dddbf
lib/axlsx/drawing/one_cell_anchor.rb 523ce88a5fd0245d119a6221ef88d629ed20c51e
lib/axlsx/stylesheet/table_styles.rb 805b00e2abd9b5e248590135067b6e43785e7240
lib/axlsx/workbook/worksheet/cell.rb 33974b3d9807738d33943321d7864d36e1d5bcf8
lib/axlsx/drawing/two_cell_anchor.rb 18b904330ac186f497a2c8d13e0b0de881340e09
lib/axlsx/stylesheet/pattern_fill.rb 9ba1cf8983ab9fba89ca9489fd04714eb6a94a2b
lib/axlsx/stylesheet/gradient_stop.rb 56c3c6b030bad35ee6cff7ad3cd9207048dd4e68
lib/axlsx/stylesheet/gradient_fill.rb 298777d050500c2f1f53294d8c71fce867997b3d
lib/axlsx/stylesheet/cell_alignment.rb 71118e51e1d11ab570fc89b8fbbd639b8023a39c
lib/axlsx/content_type/content_type.rb 6c576e1618f99f7163fffa6b6e89e964653dcb5f
lib/axlsx/stylesheet/cell_protection.rb 483e77c51f96cb52a805668b0ed40f14bf163634
lib/axlsx/workbook/worksheet/worksheet.rb 0220616ef72c5bd3f7f4b94127c75a117b35b4d1
lib/axlsx/stylesheet/table_style_element.rb 117b80432ed6191c81a9e07bd467281319d2b830
Binary file modified .yardoc/objects/root.dat
Binary file not shown.
Binary file modified .yardoc/proxy_types
Binary file not shown.
2 changes: 1 addition & 1 deletion .yardops → .yardopts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--protected
--no-private
--title "AXLSX"
LICENSE CHANGELOG.md
--files LICENSE
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
CHANGELOG
---------

- **October.23.11**: 1.0.8 release
- Added support for images (jpg, gif, png) in worksheets.

- **October.23.11**: 1.0.7 released
- Added support for 3D options when creating a new chart. This lets you set the persective, rotation and other 3D attributes when using worksheet.add_chart
- Updated serialization write test to verify write permissions and warn if it cannot run the test due to permission restrcitions.
- updated rake to include build, genoc and deploy tasks.
- rebuilt documentation.
- moved version constant to its own file
- fixed bug in SerAxis that was requiring tickLblSkip and tickMarkSkip to be boolean. Should be unsigned int.
- Review and improve docs
- rebuild of anchor positioning to remove some spagetti code. Chart now supports a start_at and end_at method that accept an arrar for col/row positioning. See example6 for an example. You can still pass :start_at and :end_at options to worksheet.add_chart.
- Refactored cat and val axis data to keep series serialization a bit more DRY

##October.22.11: 1.0.6 release
- Bumping version to include docs. Bug in gemspec pointing to incorrect directory.

Expand Down
43 changes: 22 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@ Axlsx: Office Open XML Spreadsheet Generation
**Author**: Randy Morgan
**Copyright**: 2011
**License**: MIT License
**Latest Version**: 1.0.8
**Ruby Version**: 1.8.7
**Release Date**: November 23nd 2011
**Latest Version**: 1.0.9
**Ruby Version**: 1.8.7 - 1.9.3
**Release Date**: November 26th 2011

Synopsis
--------

Axlsx is an Office Open XML Spreadsheet generator for the Ruby programming language.
It enables the you to generate 100% valid xlsx files that include customised styling, images, 3D pie, bar and line charts and auto-width columns. Below is a summary of salient features.
With Axlsx you can create worksheets with charts, images, automated column width, customizable styles and full schema validation. Axlsx excels at helping you generate beautiful Office Open XML Spreadsheet documents without having to understand the entire ECMA specification. Check out the README for some examples of how easy it is. Best of all, you can validate your xlsx file before serialization so you know for sure that anything generated is going to load on your client's machine.

Help Wanted
-----------

I'd really like to get rid of the depenency on RMagick in this gem. RMagic is being used to calculate the column widths in a worksheet based on the content the user specified. If there happens to be anyone out there with the background and c skills to write an extenstion that can determine the width of a single character rendered with a specific font at a specific font size please give me a shout.

Feature List
------------
Expand Down Expand Up @@ -147,6 +152,16 @@ Adding an Image
end
p.serialize("example7.xlsx")

Asian Language Support

p = Axlsx::Package.new
p.workbook.add_worksheet do |sheet|
sheet.add_row ["日本語"]
sheet.add_row ["华语/華語"]
sheet.add_row ["한국어/조선말"]
end
p.serialize("example8.xlsx")

###Documentation

This gem is 100% documented with YARD, an exceptional documentation library. To see documentation for this, and all the gems installed on your system use:
Expand All @@ -161,26 +176,12 @@ This gem has 100% test coverage using test/unit. To execute tests for this gem,

Changelog
---------
- **October.23.11**: 1.0.8 release
- Added support for images (jpg, gif, png) in worksheets.

- **October.23.11**: 1.0.7 released
- Added support for 3D options when creating a new chart. This lets you set the persective, rotation and other 3D attributes when using worksheet.add_chart
- Updated serialization write test to verify write permissions and warn if it cannot run the test due to permission restrcitions.
- updated rake to include build, genoc and deploy tasks.
- rebuilt documentation.
- moved version constant to its own file
- fixed bug in SerAxis that was requiring tickLblSkip and tickMarkSkip to be boolean. Should be unsigned int.
- Review and improve docs
- rebuild of anchor positioning to remove some spagetti code. Chart now supports a start_at and end_at method that accept an arrar for col/row positioning. See example6 for an example. You can still pass :start_at and :end_at options to worksheet.add_chart.
- Refactored cat and val axis data to keep series serialization a bit more DRY
- **October.26.11**: 1.0.9 release
- Updated to support ruby 1.9.3
- Updated to eliminate all warnings originating in this gem

Please see the {file:CHANGELOG.md} document for past release information.

Help Wanted
-----------

I'd really like to get rid of the depenency on RMagick in this gem. RMagic is being used to calculate the column widths in a worksheet based on the content the user specified. If there happens to be anyone out there with the background and skill set to write an extenstion that can determine the width of a single character rendered with a specific font at a specific size please give me a shout.

Copyright
---------
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ task :build => :gendoc do
system "gem build axlsx.gemspec"
end

task :gendoc do
task :gendoc do
system "yardoc"
end

Expand Down
40 changes: 27 additions & 13 deletions axlsx.gemspec
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
require 'rake'
require File.expand_path(File.dirname(__FILE__) + '/lib/axlsx/version.rb')
Gem::Specification.new do |s|
s.name = 'axlsx'
s.rubyforge_project = 'axlsx'
s.version = Axlsx::VERSION
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "Author fully validated xlsx files with custom charts and styles"
s.platform = Gem::Platform::RUBY
s.description = <<-eof
axslx allows you to create Office Open XML Spreadsheet documents.
It supports automated column widths, multiple worksheets, custom styles, cusomizable charts and allows you to validate your xlsx package before serialization.
eof
s.author = "Randy Morgan"
s.email = 'digital.ipeseity@gmail.com'
s.email = 'digital.ipseity@gmail.com'
s.homepage = 'https://github.com/randym/axlsx'
s.platform = Gem::Platform::RUBY
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "OOXML (xlsx) with charts, styles, images and autowidth columns."
s.has_rdoc = 'axlsx'
s.files = Dir.glob("{doc,lib,test,schema,examples}/**/*") + ['LICENSE','README.md','Rakefile','CHANGELOG.md']
s.add_runtime_dependency 'nokogiri', '~> 1'
s.description = <<-eof
xlsx generation with charts, images, automated column width, customizable styles and full schema validation. Axlsx excels at helping you generate beautiful Office Open XML Spreadsheet documents without having to understand the entire ECMA specification. Check out the README for some examples of how easy it is. Best of all, you can validate your xlsx file before serialization so you know for sure that anything generated is going to load on your client's machine.
eof
# s.files = Dir.glob("{doc,lib,test,schema,examples}/**/*") + %w{ LICENSE README.md Rakefile CHANGELOG.md }

s.files = FileList.new('*', 'lib/**/*', 'doc/**/*', 'test/**/*', 'schema/**/*', 'examples/**/*') do |fl|
fl.exclude("*.*~")
fl.exclude(".DS_Store")
fl.exclude(".gitignore")
fl.exclude(".yardops")
fl.exclude(".yardops_guide")
fl.exclude(".git")
fl.exclude(".*")
fl.exclude("todo")
fl.exclude("*.gem")
fl.exclude("*.xlsx")
end
s.add_runtime_dependency 'nokogiri', '~> 1.4'
s.add_runtime_dependency 'active_support', '~> 3'
s.add_runtime_dependency 'rmagick', '~> 2.12'
s.add_runtime_dependency 'rubyzip', '~> 0.9.4'
s.add_runtime_dependency 'rmagick', '~> 2'
s.add_runtime_dependency 'zip', '~> 2'
s.require_path = 'lib'
s.required_ruby_version = '>= 1.8.7'
end
Loading

0 comments on commit 11303a4

Please sign in to comment.