diff options
| author | Randy Morgan <[email protected]> | 2012-11-23 15:08:42 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-11-23 15:08:42 +0900 |
| commit | 55f4e147bf2bf687ba97aee2cb8a3c717f878fe2 (patch) | |
| tree | edc60e077975b199e2b1c5dfab4fb346e934b37f | |
| parent | 1b89bb7c0835683bbc42017b6815d6471de73ad9 (diff) | |
| download | caxlsx-55f4e147bf2bf687ba97aee2cb8a3c717f878fe2.tar.gz caxlsx-55f4e147bf2bf687ba97aee2cb8a3c717f878fe2.zip | |
Updated thin_chars and replaced cover_me with simplecov
| -rw-r--r-- | axlsx.gemspec | 2 | ||||
| -rw-r--r-- | lib/axlsx/drawing/chart.rb | 2 | ||||
| -rw-r--r-- | lib/axlsx/workbook/worksheet/worksheet.rb | 3 | ||||
| -rw-r--r-- | test/tc_helper.rb | 6 |
4 files changed, 9 insertions, 4 deletions
diff --git a/axlsx.gemspec b/axlsx.gemspec index 81a3ce0a..9d2d7f0d 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |s| # This has been removed until JRuby can support the native extensions for redcarpet or yard removes the dependency s.add_development_dependency 'yard' s.add_development_dependency 'kramdown' - s.add_development_dependency 'cover_me' unless RUBY_VERSION == '1.8.7' + s.add_development_dependency 'simplecov' s.required_ruby_version = '>= 1.8.7' s.require_path = 'lib' end diff --git a/lib/axlsx/drawing/chart.rb b/lib/axlsx/drawing/chart.rb index 35e2089a..1006f25e 100644 --- a/lib/axlsx/drawing/chart.rb +++ b/lib/axlsx/drawing/chart.rb @@ -14,7 +14,7 @@ module Axlsx # @option options [Array|String|Cell] start_at The X, Y coordinates defining the top left corner of the chart. # @option options [Array|String|Cell] end_at The X, Y coordinates defining the bottom right corner of the chart. def initialize(frame, options={}) - @style = 18 + @style = 18 @view_3D = nil @graphic_frame=frame @graphic_frame.anchor.drawing.worksheet.workbook.charts << self diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb index 2080a7f0..681987d7 100644 --- a/lib/axlsx/workbook/worksheet/worksheet.rb +++ b/lib/axlsx/workbook/worksheet/worksheet.rb @@ -9,7 +9,8 @@ module Axlsx # This is used for autowidth calculations # @return [String] def self.thin_chars - @thin_chars ||= "^.acefijklrstxyzFIJL()-" + # removed 'e' and 'y' from this list - as a GUESS + @thin_chars ||= "^.acfijklrstxzFIJL()-" end # Creates a new worksheet. diff --git a/test/tc_helper.rb b/test/tc_helper.rb index 84e834c4..34f7f22d 100644 --- a/test/tc_helper.rb +++ b/test/tc_helper.rb @@ -1,4 +1,8 @@ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" -require 'cover_me' unless RUBY_VERSION == '1.8.7' +require 'simplecov' +SimpleCov.start do + add_filter "/test/" +end + require 'test/unit' require "axlsx.rb" |
