Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 2848 Bytes
1 | require 'rubygems' |
2 | require 'rake' |
3 | require 'rake/testtask' |
4 | require 'rake/rdoctask' |
5 | require 'rake/packagetask' |
6 | require 'rake/gempackagetask' |
7 | require 'rake/contrib/rubyforgepublisher' |
8 | |
9 | PKG_NAME = 'uuidtools' |
10 | PKG_VERSION = '0.1.1' |
11 | PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" |
12 | |
13 | RELEASE_NAME = "REL #{PKG_VERSION}" |
14 | |
15 | RUBY_FORGE_PROJECT = "uuidtools" |
16 | RUBY_FORGE_USER = "vacindak" |
17 | |
18 | PKG_FILES = FileList[ |
19 | "lib/**/*", "test/**/*", "examples/**/*", "doc/**/*", "[A-Z]*", "install.rb", "rakefile" |
20 | ].exclude(/\bCVS\b|~$/).exclude(/database\.yml/) |
21 | |
22 | desc "Default Task" |
23 | task :default => [ :test_all ] |
24 | |
25 | # Run the unit tests |
26 | |
27 | Rake::TestTask.new("test_all") { |t| |
28 | t.libs << "test" |
29 | t.pattern = 'test/*_test.rb' |
30 | t.verbose = true |
31 | } |
32 | |
33 | # Generate the RDoc documentation |
34 | |
35 | Rake::RDocTask.new { |rdoc| |
36 | rdoc.rdoc_dir = 'doc' |
37 | rdoc.title = "UUID Tools -- universally unique id generation tools" |
38 | rdoc.options << '--line-numbers --inline-source --accessor cattr_accessor=object' |
39 | rdoc.template = "#{ENV['template']}.rb" if ENV['template'] |
40 | rdoc.rdoc_files.include('README', 'CHANGELOG') |
41 | rdoc.rdoc_files.include('lib/**/*.rb') |
42 | } |
43 | |
44 | # Create compressed packages |
45 | |
46 | dist_dirs = [ "lib", "test" ] |
47 | |
48 | spec = Gem::Specification.new do |s| |
49 | s.name = PKG_NAME |
50 | s.version = PKG_VERSION |
51 | s.summary = "Generation of UUIDs." |
52 | s.description = "Implements a simple system for generating UUIDs." |
53 | |
54 | s.files = [ "rakefile", "install.rb", "README", "CHANGELOG" ] |
55 | dist_dirs.each do |dir| |
56 | s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if do |item| |
57 | item.include?( "\.svn" ) || item.include?( "database\.yml" ) |
58 | end |
59 | end |
60 | |
61 | s.require_path = 'lib' |
62 | s.autorequire = 'uuidtools' |
63 | |
64 | s.has_rdoc = true |
65 | s.extra_rdoc_files = %w( README ) |
66 | s.rdoc_options.concat ['--main', 'README'] |
67 | |
68 | s.author = "Bob Aman" |
69 | s.email = "bob@sporkmonger.com" |
70 | s.homepage = "http://sporkmonger.com/projects/uuidtools" |
71 | s.rubyforge_project = "uuidtools" |
72 | end |
73 | |
74 | Rake::GemPackageTask.new(spec) do |p| |
75 | p.gem_spec = spec |
76 | p.need_tar = true |
77 | p.need_zip = true |
78 | end |
79 | |
80 | task :lines do |
81 | lines, codelines, total_lines, total_codelines = 0, 0, 0, 0 |
82 | |
83 | for file_name in FileList["lib/**/*.rb"] |
84 | f = File.open(file_name) |
85 | |
86 | while line = f.gets |
87 | lines += 1 |
88 | next if line =~ /^\s*$/ |
89 | next if line =~ /^\s*#/ |
90 | codelines += 1 |
91 | end |
92 | puts "L: #{sprintf("%4d", lines)}, LOC #{sprintf("%4d", codelines)} | #{file_name}" |
93 | |
94 | total_lines += lines |
95 | total_codelines += codelines |
96 | |
97 | lines, codelines = 0, 0 |
98 | end |
99 | |
100 | puts "Total: Lines #{total_lines}, LOC #{total_codelines}" |
101 | end |
102 | |
103 | |
104 | # Publishing ------------------------------------------------------ |
105 | |
106 | desc "Publish the API documentation" |
107 | task :pdoc => [:rdoc] do |
108 | Rake::SshDirPublisher.new( |
109 | "vacindak@sporkmonger.com", |
110 | "public_html/projects/uuidtools/api", |
111 | "doc").upload |
112 | end |