Skip to content

Commit

Permalink
Added jeweler for gem management, removed cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bartholomew committed Apr 28, 2009
1 parent 833af66 commit 56fb0ea
Show file tree
Hide file tree
Showing 11 changed files with 152 additions and 94 deletions.
6 changes: 0 additions & 6 deletions History.txt

This file was deleted.

20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (C) 2009 Stephen Bartholomew

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 changes: 0 additions & 24 deletions Manifest.txt

This file was deleted.

File renamed without changes.
43 changes: 20 additions & 23 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
%w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
require "rubygems"
require "rake"
require "rake/testtask"
require File.dirname(__FILE__) + '/lib/staticmatic'

# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
$hoe = Hoe.new('staticmatic', StaticMatic::VERSION) do |p|
p.developer('Stephen Bartholomew', 'steve@curve21.com')
p.summary = "Lightweight Static Site Framework"
p.rubyforge_name = p.name
p.extra_deps = [
['haml','>= 2.0'],
['mongrel','>= 1.0']
]
p.extra_dev_deps = [
['newgem', ">= #{::Newgem::VERSION}"]
]

p.clean_globs |= %w[**/.DS_Store tmp *.log]
path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'markdown')
p.rsync_args = '-av --delete --ignore-errors'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "staticmatic"
gem.executables = "staticmatic"
gem.summary = "Lightweight Static Site Framework"
gem.email = "steve@curve21.com"
gem.homepage = "http://staticmatic.net"
gem.description = "Lightweight Static Site Framework"
gem.authors = ["Stephen Bartholomew"]
gem.files = FileList["[A-Z]*", "{bin,lib,test}/**/*"]

gem.add_dependency("haml", ">=2.0.0")
gem.add_dependency("mongrel", ">=1.1.5")
end
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gemgem.github.com"
end

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


desc "Run all unit tests"
Rake::TestTask.new(:test) do |t|
t.test_files = Dir.glob("test/*_test.rb")
Expand Down
4 changes: 2 additions & 2 deletions VERSION.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
:major: 0
:minor: 0
:patch: 0
:minor: 10
:patch: 1
2 changes: 1 addition & 1 deletion lib/staticmatic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require 'fileutils'

module StaticMatic
VERSION = '0.10.1'
VERSION = '0.10.2'
end

["render", "build", "setup", "server", "helpers", "rescue"].each do |mixin|
Expand Down
10 changes: 0 additions & 10 deletions script/console

This file was deleted.

14 changes: 0 additions & 14 deletions script/destroy

This file was deleted.

14 changes: 0 additions & 14 deletions script/generate

This file was deleted.

109 changes: 109 additions & 0 deletions staticmatic.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{staticmatic}
s.version = "0.10.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Stephen Bartholomew"]
s.date = %q{2009-04-28}
s.default_executable = %q{staticmatic}
s.description = %q{Lightweight Static Site Framework}
s.email = %q{steve@curve21.com}
s.executables = ["staticmatic"]
s.extra_rdoc_files = [
"LICENSE",
"README.markdown"
]
s.files = [
"LICENSE",
"README.markdown",
"Rakefile",
"VERSION.yml",
"bin/staticmatic",
"lib/staticmatic.rb",
"lib/staticmatic/base.rb",
"lib/staticmatic/configuration.rb",
"lib/staticmatic/error.rb",
"lib/staticmatic/helpers.rb",
"lib/staticmatic/mixins/build.rb",
"lib/staticmatic/mixins/helpers.rb",
"lib/staticmatic/mixins/render.rb",
"lib/staticmatic/mixins/rescue.rb",
"lib/staticmatic/mixins/server.rb",
"lib/staticmatic/mixins/setup.rb",
"lib/staticmatic/server.rb",
"lib/staticmatic/template_error.rb",
"lib/staticmatic/templates/default/application.haml",
"lib/staticmatic/templates/default/application.sass",
"lib/staticmatic/templates/default/index.haml",
"lib/staticmatic/templates/rescues/default.haml",
"lib/staticmatic/templates/rescues/template.haml",
"test/base_test.rb",
"test/helpers_test.rb",
"test/render_test.rb",
"test/rescue_test.rb",
"test/sandbox/test_site/configuration.rb",
"test/sandbox/test_site/site/index",
"test/sandbox/test_site/site/index.html",
"test/sandbox/test_site/site/layout_test",
"test/sandbox/test_site/site/page_with_error",
"test/sandbox/test_site/site/page_with_partial_error",
"test/sandbox/test_site/site/stylesheets/application.css",
"test/sandbox/test_site/site/sub_folder/another_sub_folder.",
"test/sandbox/test_site/site/sub_folder/another_sub_folder/index.html",
"test/sandbox/test_site/site/sub_folder/another_sub_folder/index.html.html",
"test/sandbox/test_site/site/sub_folder/index.html",
"test/sandbox/test_site/src/helpers/application_helper.rb",
"test/sandbox/test_site/src/layouts/alternate_layout.haml",
"test/sandbox/test_site/src/layouts/application.haml",
"test/sandbox/test_site/src/layouts/projects.haml",
"test/sandbox/test_site/src/pages/hello_world.erb",
"test/sandbox/test_site/src/pages/index.haml",
"test/sandbox/test_site/src/pages/layout_test.haml",
"test/sandbox/test_site/src/pages/page_with_error.haml",
"test/sandbox/test_site/src/pages/page_with_partial_error.haml",
"test/sandbox/test_site/src/partials/menu.haml",
"test/sandbox/test_site/src/partials/partial_with_error.haml",
"test/sandbox/test_site/src/stylesheets/application.sass",
"test/sandbox/test_site/src/stylesheets/css_with_error.sass",
"test/server_test.rb",
"test/setup_test.rb",
"test/template_error_test.rb",
"test/test_helper.rb"
]
s.has_rdoc = true
s.homepage = %q{http://staticmatic.net}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.1}
s.summary = %q{Lightweight Static Site Framework}
s.test_files = [
"test/base_test.rb",
"test/helpers_test.rb",
"test/render_test.rb",
"test/rescue_test.rb",
"test/sandbox/test_site/configuration.rb",
"test/sandbox/test_site/src/helpers/application_helper.rb",
"test/server_test.rb",
"test/setup_test.rb",
"test/template_error_test.rb",
"test/test_helper.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<haml>, [">= 2.0.0"])
s.add_runtime_dependency(%q<mongrel>, [">= 1.1.5"])
else
s.add_dependency(%q<haml>, [">= 2.0.0"])
s.add_dependency(%q<mongrel>, [">= 1.1.5"])
end
else
s.add_dependency(%q<haml>, [">= 2.0.0"])
s.add_dependency(%q<mongrel>, [">= 1.1.5"])
end
end

0 comments on commit 56fb0ea

Please sign in to comment.