Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 2643 Bytes
1 | require "rake/rdoctask" |
2 | require "rake/testtask" |
3 | require "rake/gempackagetask" |
4 | |
5 | require "rubygems" |
6 | |
7 | dir = File.dirname(__FILE__) |
8 | lib = File.join(dir, "lib", "highline.rb") |
9 | version = File.read(lib)[/^\s*VERSION\s*=\s*(['"])(\d\.\d\.\d)\1/, 2] |
10 | |
11 | task :default => [:test] |
12 | |
13 | Rake::TestTask.new do |test| |
14 | test.libs << "test" |
15 | test.test_files = [ "test/ts_all.rb" ] |
16 | test.verbose = true |
17 | end |
18 | |
19 | Rake::RDocTask.new do |rdoc| |
20 | rdoc.rdoc_files.include( "README", "INSTALL", |
21 | "TODO", "CHANGELOG", |
22 | "AUTHORS", "COPYING", |
23 | "LICENSE", "lib/" ) |
24 | rdoc.main = "README" |
25 | rdoc.rdoc_dir = "doc/html" |
26 | rdoc.title = "HighLine Documentation" |
27 | end |
28 | |
29 | desc "Upload current documentation to Rubyforge" |
30 | task :upload_docs => [:rdoc] do |
31 | sh "scp -r doc/html/* " + |
32 | "bbazzarrakk@rubyforge.org:/var/www/gforge-projects/highline/doc/" |
33 | sh "scp -r site/* " + |
34 | "bbazzarrakk@rubyforge.org:/var/www/gforge-projects/highline/" |
35 | end |
36 | |
37 | spec = Gem::Specification.new do |spec| |
38 | spec.name = "highline" |
39 | spec.version = version |
40 | spec.platform = Gem::Platform::RUBY |
41 | spec.summary = "HighLine is a high-level command-line IO library." |
42 | spec.files = Dir.glob("{examples,lib,test}/**/*.rb"). |
43 | delete_if { |item| item.include?("CVS") } + |
44 | ["Rakefile", "setup.rb"] |
45 | |
46 | spec.test_files = "test/ts_all.rb" |
47 | spec.has_rdoc = true |
48 | spec.extra_rdoc_files = %w{README INSTALL TODO CHANGELOG LICENSE} |
49 | spec.rdoc_options << '--title' << 'HighLine Documentation' << |
50 | '--main' << 'README' |
51 | |
52 | spec.require_path = 'lib' |
53 | |
54 | spec.author = "James Edward Gray II" |
55 | spec.email = "james@grayproductions.net" |
56 | spec.rubyforge_project = "highline" |
57 | spec.homepage = "http://highline.rubyforge.org" |
58 | spec.description = <<END_DESC |
59 | A high-level IO library that provides validation, type conversion, and more for |
60 | command-line interfaces. HighLine also includes a complete menu system that can |
61 | crank out anything from simple list selection to complete shells with just |
62 | minutes of work. |
63 | END_DESC |
64 | end |
65 | |
66 | Rake::GemPackageTask.new(spec) do |pkg| |
67 | pkg.need_zip = true |
68 | pkg.need_tar = true |
69 | end |
70 | |
71 | desc "Show library's code statistics" |
72 | task :stats do |
73 | require 'code_statistics' |
74 | CodeStatistics.new( ["HighLine", "lib"], |
75 | ["Functionals", "examples"], |
76 | ["Units", "test"] ).to_s |
77 | end |
78 | |
79 | desc "Add new files to Subversion" |
80 | task :add_to_svn do |
81 | sh %Q{svn status | ruby -nae 'system "svn add \#{$F[1]}" if $F[0] == "?"' } |
82 | end |