Permalink
Browse files

change environment from jeweler to bundler.

  jeweler doesn't work well in 1.9.3.
  • Loading branch information...
1 parent eba862a commit e206c32643772fb0c19c9300b0e2625b735d61c9 Hideo NAKAMURA committed Feb 8, 2013
Showing with 94 additions and 341 deletions.
  1. +18 −5 .gitignore
  2. +4 −0 Gemfile
  3. +22 −0 LICENSE.txt
  4. +22 −10 README.rdoc
  5. +11 −52 Rakefile
  6. +0 −1 VERSION
  7. +17 −273 writeexcel.gemspec
View
@@ -16,12 +16,25 @@ tmtags
## REDCAR
.redcar
-## PROJECT::GENERAL
-coverage
-rdoc
-pkg
-
## PROJECT::SPECIFIC
## NETBEANS
nbproject
+
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in writeexcel.gemspec
+gemspec
View
@@ -0,0 +1,22 @@
+Copyright (c) 2009-2013 Hideo NAKAMURA
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -26,6 +26,20 @@ Original description is below:
This module cannot be used to read an Excel file.
+== Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'writeexcel'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install writeexcel
+
== Usage
See rdoc's WriteExcel class document or Reference http://writeexcel.web.fc2.com/ .
@@ -131,18 +145,16 @@ v0.6.0
Original was written in Perl by John McNamara (jmcnamara@cpan.org).
Convert to ruby by Hideo Nakamura (cxn03651@msj.biglobe.ne.jp)
-Copyright (c) 2009-2010 Hideo NAKAMURA. See LICENSE for details.
+Copyright (c) 2009-2013 Hideo NAKAMURA. See LICENSE for details.
== License
-same as Ruby.
+See LICENSE.txt
-== Note on Patches/Pull Requests
+== Contributing
-* Fork the project.
-* Make your feature addition or bug fix.
-* Add tests for it. This is important so I don't break it in a
- future version unintentionally.
-* Commit, do not mess with rakefile, version, or history.
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
-* Send me a pull request. Bonus points for topic branches.
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Add some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
View
@@ -1,52 +1,11 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "writeexcel"
- gem.summary = %Q{Write to a cross-platform Excel binary file.}
- gem.description = %Q{Multiple worksheets can be added to a workbook and formatting can be applied to cells. Text, numbers, formulas, hyperlinks and images can be written to the cells.}
- gem.email = "cxn03651@msj.biglobe.ne.jp"
- gem.homepage = "http://wiki.github.com/cxn03651/writeexcel/"
- gem.authors = ["Hideo NAKAMURA"]
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
-
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
-end
-
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
-end
-
-task :test => :check_dependencies
-
-task :default => :test
-
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "writeexcel #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
+require "bundler/gem_tasks"
+require 'rubygems'
+
+task :default => :test
+
+require 'rake/testtask'
+Rake::TestTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
View
@@ -1 +0,0 @@
-0.6.16
Oops, something went wrong.

0 comments on commit e206c32

Please sign in to comment.