From 1232ac7076cf69676b8b0ddfceb851cdc30bcf34 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sat, 3 Dec 2011 13:38:37 +0900 Subject: Testing if travis can pull the requirements from gemspec. --- Gemfile | 21 ++++++++++++++------- Rakefile | 13 ++++++++++--- axlsx.gemspec | 9 +++++++-- lib/axlsx.rb | 1 - 4 files changed, 31 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index 704948b7..cdf0e423 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,14 @@ -source "http://rubygems.org" -gem 'nokogiri', '>= 1.4.1' -gem 'activesupport', '>= 2.3.9' -gem 'i18n' -gem 'rmagick', '>= 2.12.2', :require => "RMagick" -gem 'zip', '>= 2.0.2' -gem 'rake' +source :rubygems +gemspec +# gem 'nokogiri', '>= 1.4.1' +# gem 'activesupport', '>= 2.3.9' +# gem 'i18n' +# gem 'rmagick', '>= 2.12.2', :require => "RMagick" +# gem 'zip', '>= 2.0.2' + +# group :development do +# gem 'yard' +# gem 'rdiscount' +# gem 'rake' +#end + diff --git a/Rakefile b/Rakefile index 12ec6a52..0a1631b2 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,12 @@ require File.expand_path(File.dirname(__FILE__) + '/lib/axlsx/version.rb') +begin + require 'bundler' + Bundler::GemHelper.install_tasks +rescue LoadError + $stderr.puts "You should install Bundler with: gem install bundler" +end + task :build => :gendoc do system "gem build axlsx.gemspec" end @@ -17,8 +24,8 @@ task :test do end end -task :release => :build do - system "gem push axlsx-#{Axlsx::VERSION}.gem" -end +#task :release => :build do +# system "gem push axlsx-#{Axlsx::VERSION}.gem" +#end task :default => :test \ No newline at end of file diff --git a/axlsx.gemspec b/axlsx.gemspec index 793e7e0c..6b39cff3 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -8,14 +8,14 @@ Gem::Specification.new do |s| 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.summary = "excel OOXML (xlsx) with charts, styles, images and autowidth columns." s.has_rdoc = 'axlsx' 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| + s.files = FileList.new('*', 'lib/**/*', 'doc/**/*', 'schema/**/*', 'examples/**/*') do |fl| fl.exclude("*.*~") fl.exclude(".*") fl.exclude("todo") @@ -23,11 +23,16 @@ Gem::Specification.new do |s| fl.exclude("*.xlsx") end + s.test_files = FileList.new('test/**/*') do |fl| + fl.exclude("*.*~") + end + s.add_runtime_dependency 'nokogiri', '>= 1.4.1' s.add_runtime_dependency 'activesupport', '>= 2.3.9' s.add_runtime_dependency 'i18n', '>= 0.6.0' s.add_runtime_dependency 'rmagick', '>= 2.12.2' s.add_runtime_dependency 'zip', '>= 2.0.2' + s.add_development_dependency 'rake' s.add_development_dependency 'bundler' diff --git a/lib/axlsx.rb b/lib/axlsx.rb index 71755f5b..18d4a127 100644 --- a/lib/axlsx.rb +++ b/lib/axlsx.rb @@ -1,4 +1,3 @@ - Encoding::default_internal = 'UTF-8' unless RUBY_VERSION < '1.9' Encoding::default_external = 'UTF-8' unless RUBY_VERSION < '1.9' -- cgit v1.2.3