Skip to content

Commit

Permalink
Add Gemfile, update Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mirasrael committed Feb 24, 2012
1 parent 8a03c11 commit b160c51
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 65 deletions.
9 changes: 6 additions & 3 deletions .gitignore
@@ -1,5 +1,8 @@
*.gem
.bundle
/.idea
Gemfile.lock
pkg/*
.DS_Store
**/*.swp
pkg/*
reference_pdfs
.idea
reference_pdfs
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in prawnto.gemspec
gemspec
49 changes: 1 addition & 48 deletions Rakefile
@@ -1,48 +1 @@
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'

desc 'Default: run unit tests.'
task :default => :test

#desc 'Test the prawnto plugin.'
#Rake::TestTask.new(:test) do |t|
#t.libs << 'lib'
#t.pattern = 'test/**/*_test.rb'
#t.verbose = true
#end

desc 'Generate documentation for the prawnto plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Prawnto'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end

PKG_FILES = FileList[ '[a-zA-Z]*', 'lib/**/*', 'test/*', 'rails/*' ]

require 'lib/prawnto.rb'
spec = Gem::Specification.new do |s|
s.name = "prawnto"
s.version = Prawnto::VERSION
s.author = "smecsia"
s.email = "smecsia@gmail.com"
#s.homepage = ""
s.platform = Gem::Platform::RUBY
s.summary = "Prawnto rails plugin implemented as a gem (see prawnto)"
s.add_dependency('rails', '>=2.1')
s.add_dependency('prawn')
s.files = PKG_FILES.to_a
s.require_path = "lib"
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
end

desc 'Turn this plugin into a gem.'
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end

require "bundler/gem_tasks"
3 changes: 3 additions & 0 deletions lib/prawnto/version.rb
@@ -0,0 +1,3 @@
module Prawnto
VERSION = '0.0.5'
end
34 changes: 20 additions & 14 deletions prawnto.gemspec
@@ -1,19 +1,25 @@
Gem::Specification.new do |s|
s.name = %q{prawnto}
s.version = "2.0.1"
s.required_rubygems_version = ">= 1.3.6"
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "prawnto/version"

s.authors = ['Some Body']
s.email = ['some@body.com']
s.date = '2011-09-13'
Gem::Specification.new do |s|
s.name = "prawnto"
s.version = Prawnto::VERSION
s.authors = ["smecsia", "niquola", "bondarev"]
s.email = ["smecsia@gmail.com", "alexander.i.bondarev@gmail.com"]
s.homepage = "https://github.com/smecsia/prawnto"
s.summary = %q{Support .prawn templates as Prawn::Document content}
s.description = %q{Support .prawn templates as Prawn::Document content}

s.homepage = %q{http://github.com/comverge/prawnto}
s.summary = %q{PDF views}
s.description = %q{PDF views}
s.rubyforge_project = "prawnto"

exclude_folders = 'spec/rails/{doc,lib,log,nbproject,tmp,vendor,test}'
exclude_files = Dir['**/*.log'] + Dir[exclude_folders+'/**/*'] + Dir[exclude_folders]
s.files = Dir['{examples,lib,tasks,spec}/**/*'] -
exclude_files
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

# specify any dependencies here; for example:
# s.add_development_dependency "rspec"
s.add_runtime_dependency "prawn"
s.add_runtime_dependency 'rails', '>=2.1'
end

0 comments on commit b160c51

Please sign in to comment.