Browse Source

Prepare for making a gem

master
Peter J. Jones 8 years ago
parent
commit
dbf2364318
4 changed files with 33 additions and 2 deletions
  1. 3
    0
      Rakefile
  2. 23
    0
      config/gemspec
  3. 2
    2
      lib/tisk/eva.rb
  4. 5
    0
      lib/tisk/eva/version.rb

+ 3
- 0
Rakefile View File

@@ -0,0 +1,3 @@
################################################################################
desc("Build a gem")
task(:gem) {system('gem', 'build', 'config/gemspec')}

+ 23
- 0
config/gemspec View File

@@ -0,0 +1,23 @@
################################################################################
$:.unshift(File.expand_path('../lib', File.dirname(__FILE__)))
require('tisk/eva/version')

################################################################################
Gem::Specification.new do |gem|
gem.name = 'tisk-eva'
gem.version = Tisk::Eva::VERSION
gem.platform = Gem::Platform::RUBY
gem.authors = ['Peter Jones']
gem.email = ['pjones@pmade.com']
gem.homepage = 'http://github.com/pjones/tisk-eva'
gem.summary = 'Submit invoices to Eva from Tisk'
gem.description = 'Tisk plug-in for interacting with Eva'
gem.files = Dir.glob('{commands,lib}/**/*')
gem.require_path = 'lib'

gem.add_dependency('tisk', '>= 0.1.0')
gem.add_dependency('tisk-clock', '>= 0.1.0')
gem.add_dependency('nokogiri', '>= 1.5.0')
gem.add_dependency('patron', '>= 0.4.16')
gem.add_dependency('money', '>= 4.0.1')
end

+ 2
- 2
lib/tisk/eva.rb View File

@@ -1,7 +1,6 @@
################################################################################
module Tisk::Eva
VERSION = '0.1.0'
NAME = 'eva'
NAME = 'eva'

SPOOL_ATTRIBUTES = [
:eva_config,
@@ -20,6 +19,7 @@ require('money')
require('tisk/clock')

################################################################################
require('tisk/eva/version')
require('tisk/eva/invoice')

################################################################################

+ 5
- 0
lib/tisk/eva/version.rb View File

@@ -0,0 +1,5 @@
module Tisk
module Eva
VERSION = '0.1.0'
end
end

Loading…
Cancel
Save