Skip to content
Browse files

use bundle instead of jeweler

  • Loading branch information...
1 parent a5e99ba commit c32696c7308073b017bdb8eff66daff534270d6e @takahashim committed Aug 17, 2013
Showing with 46 additions and 128 deletions.
  1. +18 −18 .gitignore
  2. +4 −0 Gemfile
  3. +1 −56 Rakefile
  4. +0 −1 VERSION
  5. +19 −53 aozora4reader.gemspec
  6. +1 −0 lib/aozora4reader.rb
  7. +3 −0 lib/aozora4reader/version.rb
View
36 .gitignore
@@ -1,25 +1,25 @@
-## MAC OS
-.DS_Store
-
-## TEXTMATE
-*.tmproj
-tmtags
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
-## EMACS
+.DS_Store
*~
\#*
.\#*
-## VIM
-*.swp
-
-## PROJECT::GENERAL
-coverage
-rdoc
-pkg
-
-## PROJECT::SPECIFIC
-tmp
pdf
genpaku
-
View
4 Gemfile
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in aozora4reader.gemspec
+gemspec
View
57 Rakefile
@@ -1,56 +1 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "aozora4reader"
- gem.summary = %Q{Aozora Bunko converter for Sony Reader}
- gem.description = %Q{Aozora Bunko converter for Sony Reader}
- gem.email = "maki@rubycolor.org"
- gem.homepage = "http://github.com/takahashim/aozora4reader"
- gem.authors = ["takahashim"]
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- gem.files.include << "data/gaiji.txt"
- gem.files.include << "data/gaiji2.txt"
- gem.files.include << "sty/aozora4reader.sty"
- 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 = "aozora4reader #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
+require "bundler/gem_tasks"
View
1 VERSION
@@ -1 +0,0 @@
-1.1.0
View
72 aozora4reader.gemspec
@@ -1,57 +1,23 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
+# coding: utf-8
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'aozora4reader/version'
-Gem::Specification.new do |s|
- s.name = %q{aozora4reader}
- s.version = "1.1.0"
+Gem::Specification.new do |spec|
+ spec.name = "aozora4reader"
+ spec.version = Aozora4reader::VERSION
+ spec.authors = ["takahashim"]
+ spec.email = ["maki@rubycolor.org"]
+ spec.description = %q{Aozora Bunko converter for Sony Reader}
+ spec.summary = %q{Aozora Bunko converter for Sony Reader}
+ spec.homepage = "http://github.com/takahashim/aozora4reader"
+ spec.license = "MIT"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = [%q{takahashim}]
- s.date = %q{2011-09-07}
- s.description = %q{Aozora Bunko converter for Sony Reader}
- s.email = %q{maki@rubycolor.org}
- s.executables = [%q{a4r}]
- s.extra_rdoc_files = [
- "ChangeLog",
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- "ChangeLog",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "aozora4reader.gemspec",
- "bin/a4r",
- "data/gaiji.txt",
- "data/gaiji2.txt",
- "lib/aozora4reader.rb",
- "memo.txt",
- "sty/aozora.sty",
- "sty/aozora4reader.sty",
- "sty/aozorakindle.sty",
- "test/helper.rb",
- "test/test_aozora4reader.rb"
- ]
- s.homepage = %q{http://github.com/takahashim/aozora4reader}
- s.require_paths = [%q{lib}]
- s.rubygems_version = %q{1.8.6}
- s.summary = %q{Aozora Bunko converter for Sony Reader}
+ spec.files = `git ls-files`.split($/)
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
+ spec.require_paths = ["lib"]
- if s.respond_to? :specification_version then
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
- else
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
- end
- else
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
- end
+ spec.add_development_dependency "bundler", "~> 1.3"
+ spec.add_development_dependency "rake"
end
-
View
1 lib/aozora4reader.rb
@@ -7,6 +7,7 @@
# see: http://a2k.aill.org/
require 'nkf'
+require "aozora4reader/version"
class Aozora4Reader
View
3 lib/aozora4reader/version.rb
@@ -0,0 +1,3 @@
+module Aozora4reader
+ VERSION = "1.2.0"
+end

0 comments on commit c32696c

Please sign in to comment.
Something went wrong with that request. Please try again.