diff options
| author | Randy Morgan <[email protected]> | 2012-08-02 23:09:52 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-08-02 23:09:52 +0900 |
| commit | 56a7a7456ec948f29e439edf42fe378cf812425a (patch) | |
| tree | 744a484c4285c56468995c91ac2dfd6ac4d96af1 | |
| parent | 6f5761deaf776eaeac9a556990e3ec8c7c9dc504 (diff) | |
| download | caxlsx-56a7a7456ec948f29e439edf42fe378cf812425a.tar.gz caxlsx-56a7a7456ec948f29e439edf42fe378cf812425a.zip | |
fun with travis
| -rw-r--r-- | Gemfile | 4 | ||||
| -rw-r--r-- | axlsx.gemspec | 4 | ||||
| -rwxr-xr-x | examples/example.rb | 2 |
3 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ source :rubygems gemspec +group :test do + gem 'rake', '0.8.7' if RUBY_VERSION == "1.9.2" + gem 'rake', '>= 0.8.7' unless RUBY_VERSION == "1.9.2" +end diff --git a/axlsx.gemspec b/axlsx.gemspec index 912f8c6d..a88d5317 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -22,8 +22,8 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'rubyzip', '>= 0.9.5' s.add_runtime_dependency "htmlentities", "~> 4.3.1" # REQUIRED by Travis-ci please do not alter these lines - s.add_runtime_dependency 'rake', '0.8.7' if RUBY_VERSION == "1.9.2" - s.add_runtime_dependency 'rake', '>= 0.8.7' unless RUBY_VERSION == "1.9.2" +# s.add_runtime_dependency 'rake', '0.8.7' if RUBY_VERSION == "1.9.2" +# s.add_runtime_dependency 'rake', '>= 0.8.7' unless RUBY_VERSION == "1.9.2" # This has been removed until JRuby can support the native extensions for redcarpet or yard removes the dependency # s.add_development_dependency 'yard' diff --git a/examples/example.rb b/examples/example.rb index 2da0f5f2..413fce55 100755 --- a/examples/example.rb +++ b/examples/example.rb @@ -238,7 +238,7 @@ wb.add_worksheet(:name => "Pie Chart") do |sheet| sheet.add_row ["Simple Pie Chart"] %w(first second third).each { |label| sheet.add_row [label, rand(24)+1] } sheet.add_chart(Axlsx::Pie3DChart, :start_at => [0,5], :end_at => [10, 20], :title => "example 3: Pie Chart") do |chart| - chart.add_series :data => sheet["B2:B4"], :labels => sheet["A2:A4"] + chart.add_series :data => sheet["B2:B4"], :labels => sheet["A2:A4"], :colors => ['FF0000', '00FF00', '0000FF'] end end #``` |
