bones 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +9 -0
- data/README.txt +3 -3
- data/Rakefile +0 -1
- data/data/tasks/doc.rake +2 -0
- data/data/tasks/gem.rake +2 -0
- data/data/tasks/manifest.rake +1 -1
- data/data/tasks/setup.rb +12 -1
- data/data/tasks/spec.rake +6 -1
- data/data/tasks/test.rake +5 -0
- data/lib/bones.rb +2 -2
- data/lib/bones/main.rb +2 -2
- data/tasks/doc.rake +3 -1
- data/tasks/gem.rake +3 -1
- data/tasks/setup.rb +13 -2
- data/tasks/spec.rake +6 -1
- data/tasks/test.rake +6 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 1.1.2 / 2007-12-31
|
2
|
+
|
3
|
+
* 2 minor enhancements
|
4
|
+
* The pkg and doc directories are now excluded from the manifest
|
5
|
+
* Added method to hide tasks from the rake task listing
|
6
|
+
|
7
|
+
* 1 bugfixes
|
8
|
+
* Fixed typo in an abort message (thanks Bill Kleb)
|
9
|
+
|
1
10
|
== 1.1.1 / 2007-12-29
|
2
11
|
|
3
12
|
* 1 bugfix
|
data/README.txt
CHANGED
@@ -91,7 +91,7 @@ the Rakefile for the Mr Bones gem itself:
|
|
91
91
|
PROJ.authors = 'Tim Pease'
|
92
92
|
PROJ.email = 'not.real@fake.com'
|
93
93
|
PROJ.url = 'http://codeforpeople.rubyforge.org/bones'
|
94
|
-
PROJ.description = paragraphs_of('README.txt',
|
94
|
+
PROJ.description = paragraphs_of('README.txt', 1).join("\n\n")
|
95
95
|
PROJ.changes = paragraphs_of('History.txt', 0..1).join("\n\n")
|
96
96
|
PROJ.rubyforge_name = 'codeforpeople'
|
97
97
|
PROJ.rdoc_remote_dir = 'bones'
|
@@ -119,9 +119,9 @@ You can exclude files from being seen by the manifest -- the files are
|
|
119
119
|
invisible to the Mr Bones rake tasks. You would do this for any subversion
|
120
120
|
directories, backup files, or anything else you don't want gumming up the
|
121
121
|
works. The files to exclude are given as an array of regular expression
|
122
|
-
patterns.
|
122
|
+
patterns; a file is excluded if it matches any of the patterns.
|
123
123
|
|
124
|
-
PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn)
|
124
|
+
PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn ^pkg)
|
125
125
|
PROJ.exclude << '^doc'
|
126
126
|
|
127
127
|
If your project depends on other gems, use the +depend_on+ command in your
|
data/Rakefile
CHANGED
data/data/tasks/doc.rake
CHANGED
data/data/tasks/gem.rake
CHANGED
data/data/tasks/manifest.rake
CHANGED
data/data/tasks/setup.rb
CHANGED
@@ -16,7 +16,7 @@ PROJ.email = nil
|
|
16
16
|
PROJ.url = nil
|
17
17
|
PROJ.version = ENV['VERSION'] || '0.0.0'
|
18
18
|
PROJ.rubyforge_name = nil
|
19
|
-
PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn)
|
19
|
+
PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn ^pkg ^doc)
|
20
20
|
|
21
21
|
# Rspec
|
22
22
|
PROJ.specs = FileList['spec/**/*_spec.rb']
|
@@ -126,4 +126,15 @@ def ensure_in_path( path )
|
|
126
126
|
$:.unshift(path) if test(?d, path) and not $:.include?(path)
|
127
127
|
end
|
128
128
|
|
129
|
+
# Find a rake task using the task name and remove any description text. This
|
130
|
+
# will prevent the task from being displayed in the list of available tasks.
|
131
|
+
#
|
132
|
+
def remove_desc_for_task( names )
|
133
|
+
Array(names).each do |task_name|
|
134
|
+
task = Rake.application.tasks.find {|t| t.name == task_name}
|
135
|
+
next if task.nil?
|
136
|
+
task.instance_variable_set :@comment, nil
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
129
140
|
# EOF
|
data/data/tasks/spec.rake
CHANGED
@@ -28,8 +28,13 @@ namespace :spec do
|
|
28
28
|
|
29
29
|
end # namespace :spec
|
30
30
|
|
31
|
+
desc 'Alias to spec:run'
|
32
|
+
task :spec => 'spec:run'
|
33
|
+
|
31
34
|
task :clobber => 'spec:clobber_rcov' if HAVE_RCOV
|
32
35
|
|
33
|
-
|
36
|
+
remove_desc_for_task %w(spec:clobber_rcov)
|
37
|
+
|
38
|
+
end # if HAVE_SPEC_RAKE_SPECTASK
|
34
39
|
|
35
40
|
# EOF
|
data/data/tasks/test.rake
CHANGED
data/lib/bones.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# $Id: bones.rb
|
1
|
+
# $Id: bones.rb 428 2007-12-31 17:55:51Z tim_pease $
|
2
2
|
|
3
3
|
module Bones
|
4
4
|
|
5
5
|
# :stopdoc:
|
6
|
-
VERSION = '1.1.
|
6
|
+
VERSION = '1.1.2'
|
7
7
|
PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
8
8
|
WIN32 = %r/win32/ =~ RUBY_PLATFORM unless defined? WIN32
|
9
9
|
DEV_NULL = WIN32 ? 'NUL:' : '/dev/null'
|
data/lib/bones/main.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: main.rb
|
1
|
+
# $Id: main.rb 428 2007-12-31 17:55:51Z tim_pease $
|
2
2
|
|
3
3
|
require 'fileutils'
|
4
4
|
require 'optparse'
|
@@ -108,7 +108,7 @@ class Main
|
|
108
108
|
# copy in new tasks from the bones/data directory.
|
109
109
|
#
|
110
110
|
def update
|
111
|
-
abort "'#{name}' does
|
111
|
+
abort "'#{name}' does not exist" unless test ?e, name
|
112
112
|
|
113
113
|
task_dir = File.join(name, 'tasks')
|
114
114
|
abort "no tasks directory found in '#{name}'" unless test ?d, task_dir
|
data/tasks/doc.rake
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: doc.rake
|
1
|
+
# $Id: doc.rake 428 2007-12-31 17:55:51Z tim_pease $
|
2
2
|
|
3
3
|
require 'rake/rdoctask'
|
4
4
|
|
@@ -44,4 +44,6 @@ task :doc => 'doc:rdoc'
|
|
44
44
|
desc 'Remove all build products'
|
45
45
|
task :clobber => %w(doc:clobber_rdoc doc:clobber_ri)
|
46
46
|
|
47
|
+
remove_desc_for_task %w(doc:clobber_rdoc doc:clobber_ri)
|
48
|
+
|
47
49
|
# EOF
|
data/tasks/gem.rake
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: gem.rake
|
1
|
+
# $Id: gem.rake 428 2007-12-31 17:55:51Z tim_pease $
|
2
2
|
|
3
3
|
require 'rake/gempackagetask'
|
4
4
|
|
@@ -84,4 +84,6 @@ task :gem => 'gem:package'
|
|
84
84
|
|
85
85
|
task :clobber => 'gem:clobber_package'
|
86
86
|
|
87
|
+
remove_desc_for_task %w(gem:clobber_package)
|
88
|
+
|
87
89
|
# EOF
|
data/tasks/setup.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: setup.rb
|
1
|
+
# $Id: setup.rb 428 2007-12-31 17:55:51Z tim_pease $
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'rake'
|
@@ -16,7 +16,7 @@ PROJ.email = nil
|
|
16
16
|
PROJ.url = nil
|
17
17
|
PROJ.version = ENV['VERSION'] || '0.0.0'
|
18
18
|
PROJ.rubyforge_name = nil
|
19
|
-
PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn)
|
19
|
+
PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn ^pkg ^doc)
|
20
20
|
|
21
21
|
# Rspec
|
22
22
|
PROJ.specs = FileList['spec/**/*_spec.rb']
|
@@ -126,4 +126,15 @@ def ensure_in_path( path )
|
|
126
126
|
$:.unshift(path) if test(?d, path) and not $:.include?(path)
|
127
127
|
end
|
128
128
|
|
129
|
+
# Find a rake task using the task name and remove any description text. This
|
130
|
+
# will prevent the task from being displayed in the list of available tasks.
|
131
|
+
#
|
132
|
+
def remove_desc_for_task( names )
|
133
|
+
Array(names).each do |task_name|
|
134
|
+
task = Rake.application.tasks.find {|t| t.name == task_name}
|
135
|
+
next if task.nil?
|
136
|
+
task.instance_variable_set :@comment, nil
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
129
140
|
# EOF
|
data/tasks/spec.rake
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: spec.rake
|
1
|
+
# $Id: spec.rake 428 2007-12-31 17:55:51Z tim_pease $
|
2
2
|
|
3
3
|
if HAVE_SPEC_RAKE_SPECTASK
|
4
4
|
|
@@ -28,8 +28,13 @@ namespace :spec do
|
|
28
28
|
|
29
29
|
end # namespace :spec
|
30
30
|
|
31
|
+
desc 'Alias to spec:run'
|
32
|
+
task :spec => 'spec:run'
|
33
|
+
|
31
34
|
task :clobber => 'spec:clobber_rcov' if HAVE_RCOV
|
32
35
|
|
36
|
+
remove_desc_for_task %w(spec:clobber_rcov)
|
37
|
+
|
33
38
|
end # if HAVE_SPEC
|
34
39
|
|
35
40
|
# EOF
|
data/tasks/test.rake
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: test.rake
|
1
|
+
# $Id: test.rake 428 2007-12-31 17:55:51Z tim_pease $
|
2
2
|
|
3
3
|
require 'rake/testtask'
|
4
4
|
|
@@ -30,6 +30,11 @@ namespace :test do
|
|
30
30
|
|
31
31
|
end # namespace :test
|
32
32
|
|
33
|
+
desc 'Alias to test:run'
|
34
|
+
task :test => 'test:run'
|
35
|
+
|
33
36
|
task :clobber => 'test:clobber_rcov' if HAVE_RCOV
|
34
37
|
|
38
|
+
remove_desc_for_task %w(test:clobber_rcov)
|
39
|
+
|
35
40
|
# EOF
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pease
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2007-12-
|
12
|
+
date: 2007-12-31 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|