From 2b5838a47dcc1d710542319224b9a939a7fa3e14 Mon Sep 17 00:00:00 2001 From: Jason Stewart Date: Sat, 27 Oct 2012 17:12:55 -0400 Subject: [PATCH] Version bump to 1.0.0, deprecate Rails 2.x support. --- .gitignore | 1 + Gemfile | 1 + README | 10 +++------- README.rdoc | 9 ++------- Rakefile | 42 ------------------------------------------ ezprint.gemspec | 8 ++------ 6 files changed, 9 insertions(+), 62 deletions(-) create mode 100644 Gemfile delete mode 100644 Rakefile diff --git a/.gitignore b/.gitignore index b786319..aa22902 100644 --- a/.gitignore +++ b/.gitignore @@ -18,5 +18,6 @@ tmtags coverage rdoc pkg +*.gem ## PROJECT::SPECIFIC diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..e0a7662 --- /dev/null +++ b/Gemfile @@ -0,0 +1 @@ +gemspec diff --git a/README b/README index b7e0e24..358a795 100644 --- a/README +++ b/README @@ -10,12 +10,8 @@ prince->PDFKit for those using princely. Installation ============ -Rails 2.x - -gem install ezprint -in environment.rb config.gem "ezprint" - -Rails 3 +Version 1.0.0 deprecates support for Rails 2. For Rails 2.x support, +install an earlier version. gem 'ezprint' then run "bundle install" @@ -91,4 +87,4 @@ Michael Bleigh for writing the awesome princely plugin, which most of the code i Resources ========= -Copyright (c) 2010 Jason Stewart, released under the MIT license. +Copyright (c) 2012 Jason Stewart, released under the MIT license. diff --git a/README.rdoc b/README.rdoc index bb6ca34..b4397cf 100644 --- a/README.rdoc +++ b/README.rdoc @@ -8,13 +8,8 @@ prince->PDFKit for those using princely. == Installation -== Rails 2.x - -gem install ezprint - -in environment.rb config.gem "ezprint" - -== Rails 3 +Version 1.0.0 deprecates support for Rails 2. For Rails 2.x support, +install an earlier version. gem 'ezprint' diff --git a/Rakefile b/Rakefile deleted file mode 100644 index c71ceeb..0000000 --- a/Rakefile +++ /dev/null @@ -1,42 +0,0 @@ -require 'rubygems' -require 'rake' - -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "ezprint" - gem.summary = %Q{A Rails wrapper for the PDFkit library. Meant to be a drop in replacement for princely.} - gem.description = %Q{A Rails wrapper for the PDFkit library. Meant to be a drop in replacement for princely.} - gem.email = "jstewart@fusionary.com" - gem.homepage = "http://github.com/jstewart/ezprint" - gem.authors = ["Jason Stewart"] - gem.add_dependency 'pdfkit', '~> 0.5.0' - end - -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 - -task :default => :test - -require 'rake/rdoctask' -Rake::RDocTask.new do |rdoc| - if File.exist?('VERSION') - version = File.read('VERSION') - else - version = "" - end - - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "ezprint #{version}" - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') -end diff --git a/ezprint.gemspec b/ezprint.gemspec index 5a0a8a0..a1c608b 100644 --- a/ezprint.gemspec +++ b/ezprint.gemspec @@ -1,15 +1,12 @@ -# Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = %q{ezprint} - s.version = "0.3.1" + s.version = "1.0.0" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Jason Stewart"] - s.date = %q{2011-05-16} + s.date = %q{2012-10-27} s.description = %q{A Rails wrapper for the PDFkit library. Meant to be a drop in replacement for princely.} s.email = %q{jstewart@fusionary.com} s.extra_rdoc_files = [ @@ -21,7 +18,6 @@ Gem::Specification.new do |s| "MIT-LICENSE", "README", "README.rdoc", - "Rakefile", "VERSION", "ezprint.gemspec", "init.rb",