Skip to content

Commit

Permalink
Split invoicing_generator gem into separate repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ept committed Nov 1, 2012
1 parent de05e67 commit aa2f024
Show file tree
Hide file tree
Showing 98 changed files with 40 additions and 1,043 deletions.
1 change: 0 additions & 1 deletion invoicing/Manifest.txt → Manifest.txt
@@ -1,7 +1,6 @@
History.txt
LICENSE
Manifest.txt
PostInstall.txt
README.rdoc
Rakefile
lib/invoicing.rb
Expand Down
10 changes: 0 additions & 10 deletions PostInstall.txt

This file was deleted.

52 changes: 38 additions & 14 deletions Rakefile
@@ -1,19 +1,43 @@
desc "Run rake test for invoicing gem"
task :test do
exec "cd invoicing; rake test"
end
%w[rubygems rake rake/clean fileutils newgem rubigen hoe].each { |f| require f }
require File.dirname(__FILE__) + '/lib/invoicing'

task :create_db do
cmd_string = %[mysqladmin create ept_invoicing_test -u build]
system cmd_string
# Hoe calls Ruby with the "-w" set by default; unfortunately, ActiveRecord (at version 2.2.2
# at least) causes a lot of warnings internally, by no fault of our own, which clutters
# the output. Comment out the following four lines to see those warnings.
class Hoe
RUBY_FLAGS = ENV['RUBY_FLAGS'] || "-I#{%w(lib test).join(File::PATH_SEPARATOR)}" +
((defined?(RUBY_DEBUG) && RUBY_DEBUG) ? " #{RUBY_DEBUG}" : '')
end

def runcoderun?
ENV["RUN_CODE_RUN"]
end
# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
$hoe = Hoe.spec 'invoicing' do |p|
p.version = Invoicing::VERSION
p.developer 'Martin Kleppmann', 'rubyforge@eptcomputing.com'

p.summary = p.paragraphs_of('README.rdoc', 3).join
p.description = p.paragraphs_of('README.rdoc', 3..5).join("\n\n")
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
p.post_install_message = 'PostInstall.txt'
p.rubyforge_name = p.name

if runcoderun?
task :default => [:create_db, :test]
else
task :default => :test
p.extra_deps = [
['activerecord', '>= 2.1.0'],
['builder', '>= 2.0']
]
p.extra_dev_deps = [
['newgem', ">= #{::Newgem::VERSION}"]
#['invoicing_generator', "= #{Invoicing::VERSION}"] - causes a circular dependency in rubygems < 1.2
]

p.test_globs = %w[test/*_test.rb] # do not include test/models/*.rb
p.clean_globs |= %w[**/.DS_Store tmp *.log coverage]
p.rsync_args = '-av --delete --ignore-errors'
p.remote_rdoc_dir = 'doc'
end

require 'newgem/tasks' # load /tasks/*.rake
Dir['tasks/**/*.rake'].each { |t| load t }

# Tasks to run by default
# task :default => [:spec, :features]
1 change: 0 additions & 1 deletion invoicing/History.txt

This file was deleted.

1 change: 0 additions & 1 deletion invoicing/LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion invoicing/PostInstall.txt

This file was deleted.

1 change: 0 additions & 1 deletion invoicing/README.rdoc

This file was deleted.

43 changes: 0 additions & 43 deletions invoicing/Rakefile

This file was deleted.

1 change: 0 additions & 1 deletion invoicing_generator/History.txt

This file was deleted.

1 change: 0 additions & 1 deletion invoicing_generator/LICENSE

This file was deleted.

34 changes: 0 additions & 34 deletions invoicing_generator/Manifest.txt

This file was deleted.

1 change: 0 additions & 1 deletion invoicing_generator/PostInstall.txt

This file was deleted.

1 change: 0 additions & 1 deletion invoicing_generator/README.rdoc

This file was deleted.

25 changes: 0 additions & 25 deletions invoicing_generator/Rakefile

This file was deleted.

18 changes: 0 additions & 18 deletions invoicing_generator/lib/invoicing_generator.rb

This file was deleted.

This file was deleted.

83 changes: 0 additions & 83 deletions invoicing_generator/lib/invoicing_generator/name_tools.rb

This file was deleted.

34 changes: 0 additions & 34 deletions invoicing_generator/lib/invoicing_generator/option_tools.rb

This file was deleted.

0 comments on commit aa2f024

Please sign in to comment.