Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7a27a36
Not needed for this branch.
mtodd Mar 17, 2008
1f6d6ab
Initial port work from the HTML files to HAML.
mtodd Mar 17, 2008
9da13e4
Fixed error with the Twitter javascript references. Recent Entries no…
mtodd Mar 17, 2008
ae902bc
Converted stylesheet to Sass.
mtodd Mar 20, 2008
654e5a0
Updated the example of Queue to QueueController since Queue would tec…
mtodd Mar 25, 2008
2b31470
Moved to Webby site structure, keeping current site style.
mtodd Apr 4, 2008
ba434ee
Updated website extensively with new documentation section including …
mtodd Apr 4, 2008
d3b19b7
Extended, clarified, cleaned up, and started.
mtodd Apr 7, 2008
093302a
Moved around content from the intro to the tutorial and added more ap…
mtodd Apr 9, 2008
d64c132
Added link and badge to RubyFringe.
mtodd Apr 16, 2008
12e1a4d
Updated list of sample applications to be delved into and added docum…
mtodd May 13, 2008
9661dbd
Fixed some of the content on the home page and fixed a version number…
mtodd May 27, 2008
1bb55b5
Updated documentation, added initial sample WeeDB documentation, etc.
mtodd May 27, 2008
22172e0
Updated the Tutorial.
mtodd May 28, 2008
87aa585
Added brief text about what Halcyon is for on the home template.
mtodd May 29, 2008
682f066
Clarified what Halcyon is for on the main page.
mtodd Jun 3, 2008
d918845
Added blurb about the usefulness of Halcyon.
mtodd Jun 11, 2008
a898965
Reorganized the documentation links.
mtodd Jun 11, 2008
d1bf18d
Added initial documentation for writing controllers.
mtodd Jun 11, 2008
121e6f9
Merge branch 'site' of git@github.com:mtodd/halcyon into site
mtodd Jun 12, 2008
2032203
Updated documentation for writing controllers and added list of Excep…
mtodd Jun 12, 2008
039c078
Merge branch 'site' of git@github.com:mtodd/halcyon into site
mtodd Jun 12, 2008
287941d
Updated the routes documentation and remove the strikeout for the con…
mtodd Jun 12, 2008
3638fed
Added Configuration and Logging documentation and updated Clients and…
mtodd Jun 12, 2008
3b65767
Documented clients.
mtodd Jun 12, 2008
7b79656
Removed strikethrough for the clients documentation which is now avai…
mtodd Jun 12, 2008
84d7025
Fixed inaccuracy in the client documentation.
mtodd Jun 12, 2008
31af8ad
Added documentation on troubleshooting.
mtodd Jun 12, 2008
465e20f
Fixed index listing.
mtodd Jun 12, 2008
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*~
compiled/*
output/*
1 change: 0 additions & 1 deletion AUTHORS

This file was deleted.

122 changes: 0 additions & 122 deletions README

This file was deleted.

156 changes: 13 additions & 143 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,153 +1,23 @@
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "lib")))
# $Id$

%w(rubygems rake rake/clean rake/packagetask rake/gempackagetask rake/rdoctask rake/contrib/rubyforgepublisher fileutils pp).each{|dep|require dep}
gem 'haml', '=1.8.2'
require 'haml'

include FileUtils
load 'tasks/setup.rb'

require 'lib/halcyon'
task :default => :build

project = {
:name => "halcyon",
:version => Halcyon.version,
:author => "Matt Todd",
:email => "chiology@gmail.com",
:description => "A JSON App Server Framework",
:homepath => 'http://halcyon.rubyforge.org',
:bin_files => %w(halcyon),
:rdoc_files => %w(lib),
:rdoc_opts => %w[
--all
--quiet
--op rdoc
--line-numbers
--inline-source
--title "Halcyon\ Documentation"
--exclude "^(_darcs|spec|pkg|.svn)/"
],
:dependencies => {
'json_pure' => '>=1.1.1',
'rack' => '>=0.2.0',
'merb' => '>=0.4.1'
},
:requirements => 'install the json gem to get faster JSON parsing',
:ruby_version_required => '>=1.8.6'
}
desc 'deploy the site to the webserver'
task :deploy => [:build, 'deploy:rsync']

BASEDIR = File.expand_path(File.dirname(__FILE__))
# EOF

spec = Gem::Specification.new do |s|
s.name = project[:name]
s.rubyforge_project = project[:name]
s.version = project[:version]
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = project[:rdoc_files]
s.rdoc_options += project[:rdoc_opts]
s.summary = project[:description]
s.description = project[:description]
s.author = project[:author]
s.email = project[:email]
s.homepage = project[:homepath]
s.executables = project[:bin_files]
s.bindir = "bin"
s.require_path = "lib"
project[:dependencies].each{|dep|
s.add_dependency(dep[0], dep[1])
}
s.requirements << project[:requirements]
s.required_ruby_version = project[:ruby_version_required]
s.files = (project[:rdoc_files] + %w[Rakefile] + Dir["{spec,lib}/**/*"]).uniq
end

Rake::GemPackageTask.new(spec) do |p|
p.need_zip = true
p.need_tar = true
end

desc "Package and Install halcyon"
task :install do
name = "#{project[:name]}-#{project[:version]}.gem"
sh %{rake package}
sh %{sudo gem install pkg/#{name}}
end

desc "Uninstall the halcyon gem"
task :uninstall => [:clean] do
sh %{sudo gem uninstall #{project[:name]}}
end

namespace 'spec' do
desc "generate spec"
task :gen do
sh "bacon -r~/lib/bacon/output -rlib/halcyon -rtest/spec_helper spec/**/* -s > spec/SPEC"
end
namespace(:site) do

desc "run rspec"
task :run do
sh "bacon -r~/lib/bacon/output -rlib/halcyon -rspec/spec_helper spec/**/* -o CTestUnit"
desc 'Update the website'
task :update => [:build] do
`rsync -avz ./output/ mtodd@halcyon.rubyforge.org:/var/www/gforge-projects/halcyon/ > /dev/null`
puts "* uploaded ./output/ to http://halcyon.rubyforge.org/"
end

desc "run rspec verbosely"
task :verb do
sh "bacon -r~/lib/bacon/output -rlib/halcyon -rspec/spec_helper spec/**/* -o CSpecDox"
end
end

desc "Do predistribution stuff"
task :predist => [:chmod, :changelog, :manifest, :rdoc]

def manifest
require 'find'
paths = []
manifest = File.new('MANIFEST', 'w+')
Find.find('.') do |path|
path.gsub!(/\A\.\//, '')
next if path =~ /(\.svn|doc|pkg|^\.|MANIFEST)/
paths << path
end
paths.sort.each do |path|
manifest.puts path
end
manifest.close
end

desc "Make binaries executable"
task :chmod do
Dir["bin/*"].each { |binary| File.chmod(0775, binary) }
Dir["test/cgi/test*"].each { |binary| File.chmod(0775, binary) }
end

desc "Generate a MANIFEST"
task :manifest do
manifest
end

desc "Generate a CHANGELOG"
task :changelog do
sh "svn log > CHANGELOG"
end

desc "Generate RDoc documentation"
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.options << '--line-numbers' << '--inline-source' <<
'--main' << 'README' <<
'--title' << 'Halcyon Documentation' <<
'--charset' << 'utf-8'
rdoc.rdoc_dir = "doc"
rdoc.rdoc_files.include 'README'
rdoc.rdoc_files.include('lib/halcyon.rb')
rdoc.rdoc_files.include('lib/halcyon/*.rb')
rdoc.rdoc_files.include('lib/halcyon/*/*.rb')
end

task :pushsite => [:rdoc] do
sh "rsync -avz doc/ mtodd@halcyon.rubyforge.org:/var/www/gforge-projects/halcyon/doc/"
sh "rsync -avz site/ mtodd@halcyon.rubyforge.org:/var/www/gforge-projects/halcyon/"
end

desc "find . -name \"*.rb\" | xargs wc -l | grep total"
task :loc do
sh "find . -name \"*.rb\" | xargs wc -l | grep total"
end

task :default => Rake::Task['spec:run']
Loading