diff options
| -rw-r--r-- | Gemfile | 21 | ||||
| -rw-r--r-- | Rakefile | 13 | ||||
| -rw-r--r-- | axlsx.gemspec | 9 | ||||
| -rw-r--r-- | lib/axlsx.rb | 1 |
4 files changed, 31 insertions, 13 deletions
@@ -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 + @@ -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' |
