gem configuration

Johnathon Wright committed Apr 19, 2011
commit 62dcbcbfc499f6032ef9e4c1a39ae86a5ad81ff7
Showing 6 changed files with 34 additions and 14 deletions
.gitignore +6 -0
@@ @@ -0,0 +1,6 @@
+ *.gem
+ .bundle
+ Gemfile.lock
+ pkg/*
+ .irbrc
+
Gemfile +10 -0
@@ @@ -0,0 +1,10 @@
+ source 'http://rubygems.org'
+
+ # Specify your gem's dependencies in sketch.gemspec
+ gemspec
+
+ group :test do
+ gem 'test-unit'
+ gem 'mocha'
+ end
+
Rakefile +5 -5
@@ @@ -1,15 +1,15 @@
#!/usr/bin/env rake
+ require 'bundler'
+ Bundler::GemHelper.install_tasks
+
require 'rake'
require 'rake/testtask'
- PACKAGE = 'sketch'
-
- PKG_FILE_NAME = "#{PACKAGE}-#{VERSION}"
-
desc "Run unit tests"
Rake::TestTask.new("test") { |t|
- t.pattern = 'test/*_test.rb'
+ t.libs << 'test'
+ t.pattern = 'test/*.rb'
t.verbose = true
t.warning = true
}
SKETCH_VERSION +0 -1
@@ @@ -1 +0,0 @@
- 0.1.0
sketch.gemspec +12 -8
@@ @@ -1,7 +1,5 @@
- version = File.read(File.expand_path("../SKETCH_VERSION",__FILE__)).strip
- require 'rubygems'
-
- require 'rake'
+ $:.push File.expand_path("../lib", __FILE__)
+ version = File.read(File.expand_path("../sketch.version",__FILE__)).strip
spec = Gem::Specification.new do |s|
s.name = 'sketch'
@@ @@ -9,13 +7,19 @@ spec = Gem::Specification.new do |s|
s.platform = 'Gem::Platform::Ruby'
s.summary = "build SVG images"
s.description = "build SVG images"
+ s.license = 'MIT'
+
s.require_path = 'lib'
- s.files = FileList['lib/**/*.rb', '[A-Z]*', 'examples/**/*', 'test/**/*'].to_a
- s.add_dependency('valuable')
- s.license = 'MIT'
+ s.add_dependency('valuable', '> 0.8')
+ s.add_dependency('nokogiri', '>= 1.4')
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.require_paths = ["lib"]
+
- s.author = "Johnathon Wright0"
+ s.authors = ["Johnathon Wright"]
s.email = "jw@mustmodify.com"
s.homepage = "http://sketch.mustmodify.com/"
end
sketch.version +1 -0
@@ @@ -0,0 +1 @@
+ 0.0.1