bones 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/README.rdoc +7 -5
- data/{spec/data/default/README.txt.bns → default/README.md.bns} +25 -13
- data/lib/bones/helpers.rb +30 -17
- data/lib/bones/plugins/bones_plugin.rb +6 -3
- data/lib/bones/plugins/gem.rb +8 -1
- data/lib/bones/plugins/notes.rb +16 -3
- data/spec/bones/app/file_manager_spec.rb +3 -3
- data/spec/bones/helpers_spec.rb +52 -0
- data/{default/README.txt.bns → spec/data/default/README.md.bns} +25 -13
- data/spec/data/foo/{README.txt → README.md} +0 -0
- data/spec/data/markdown.txt +113 -0
- data/spec/data/rdoc.txt +121 -0
- data/version.txt +1 -1
- metadata +13 -9
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -76,16 +76,18 @@ If you would like some extra functinoality the following plugins can be
|
|
76
76
|
installed:
|
77
77
|
|
78
78
|
* gem install bones-git
|
79
|
-
* gem install bones-
|
79
|
+
* gem install bones-yard
|
80
|
+
* gem install bones-rspec
|
81
|
+
* gem install bones-rcov
|
82
|
+
|
83
|
+
A complete list of available plugins is available via the bones command:
|
84
|
+
|
85
|
+
bones plugins --all
|
80
86
|
|
81
87
|
The 'bones-git' gem provides command line options for generating a git
|
82
88
|
repository and pushing to github upon creation. Rake tasks for working with
|
83
89
|
the git repository are also provided.
|
84
90
|
|
85
|
-
The 'bones-extras' gem provides rake tasks for running Rspec tests, running
|
86
|
-
Rcov on your source code, and pushing releases to RubyForge. You will need to
|
87
|
-
have the corresponding gems installed for these tasks to be loaded.
|
88
|
-
|
89
91
|
== ACKNOWLEDGEMENTS:
|
90
92
|
|
91
93
|
Ryan Davis and Eric Hodel and their Hoe gem (from which much of the Mr Bones
|
@@ -1,32 +1,44 @@
|
|
1
1
|
<%= name %>
|
2
|
-
|
3
|
-
FIXME (url)
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
2
|
+
===========
|
6
3
|
|
7
4
|
FIXME (describe your package)
|
8
5
|
|
9
|
-
|
6
|
+
Features
|
7
|
+
--------
|
10
8
|
|
11
|
-
* FIXME (list of features
|
9
|
+
* FIXME (list of features and unsolved problems)
|
12
10
|
|
13
|
-
|
11
|
+
Examples
|
12
|
+
--------
|
14
13
|
|
15
|
-
|
14
|
+
FIXME (code sample of usage)
|
16
15
|
|
17
|
-
|
16
|
+
Requirements
|
17
|
+
------------
|
18
18
|
|
19
19
|
* FIXME (list of requirements)
|
20
20
|
|
21
|
-
|
21
|
+
Install
|
22
|
+
-------
|
22
23
|
|
23
24
|
* FIXME (sudo gem install, anything else)
|
24
25
|
|
25
|
-
|
26
|
+
Author
|
27
|
+
------
|
28
|
+
|
29
|
+
Original author: FIXME (author's name)
|
30
|
+
|
31
|
+
Contributors:
|
32
|
+
|
33
|
+
* FIXME (contributor 1?)
|
34
|
+
* FIXME (contributor 2?)
|
35
|
+
|
36
|
+
License
|
37
|
+
-------
|
26
38
|
|
27
|
-
(The MIT License)
|
39
|
+
(The MIT License) FIXME (different license?)
|
28
40
|
|
29
|
-
Copyright (c)
|
41
|
+
Copyright (c) <%= Time.now.strftime('%Y') %> FIXME (author's name)
|
30
42
|
|
31
43
|
Permission is hereby granted, free of charge, to any person obtaining
|
32
44
|
a copy of this software and associated documentation files (the
|
data/lib/bones/helpers.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
|
2
2
|
module Bones::Helpers
|
3
|
+
extend self
|
3
4
|
|
4
5
|
DEV_NULL = File.exist?('/dev/null') ? '/dev/null' : 'NUL:'
|
5
6
|
SUDO = if system("which sudo > #{DEV_NULL} 2>&1") then 'sudo'
|
@@ -28,34 +29,46 @@ module Bones::Helpers
|
|
28
29
|
io.each {|x| x.close}
|
29
30
|
end
|
30
31
|
|
31
|
-
# Reads
|
32
|
-
#
|
32
|
+
# Reads the file located at the given +path+ and returns an array of the
|
33
|
+
# desired +paragraphs+. The paragraphs can be given as a single section
|
34
|
+
# +title+ or any number of paragraph numbers or ranges.
|
35
|
+
#
|
36
|
+
# For example:
|
33
37
|
#
|
34
38
|
# changes = paragraphs_of('History.txt', 0..1).join("\n\n")
|
35
|
-
# summary, *description = paragraphs_of('README.
|
39
|
+
# summary, *description = paragraphs_of('README.md', 3, 3..8)
|
40
|
+
# features = paragraphs_of('README.md', 'features').join("\n\n")
|
41
|
+
# examples = paragraphs_of('README.md', 'examples').join("\n\n")
|
36
42
|
#
|
37
|
-
def paragraphs_of( path, *
|
38
|
-
|
39
|
-
|
43
|
+
def paragraphs_of( path, *args )
|
44
|
+
|
45
|
+
title = String === args.first ? args.shift : nil
|
46
|
+
paragraphs = File.read(path).delete("\r").split(%r/\n\n+/)
|
47
|
+
|
48
|
+
if title.nil? then
|
49
|
+
result = paragraphs
|
40
50
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
51
|
+
else
|
52
|
+
title = Regexp.escape title
|
53
|
+
start_rgxp = [%r/\A=+\s*#{title}/i, %r/\A#{title}\n[=-]+\s*\Z/i]
|
54
|
+
end_rgxp = [%r/\A=+/i, %r/\A.+\n[=-]+\s*\Z/i]
|
45
55
|
|
46
|
-
|
47
|
-
|
56
|
+
result = []
|
57
|
+
matching = false
|
58
|
+
rgxp = start_rgxp
|
59
|
+
|
60
|
+
paragraphs.each do |p|
|
61
|
+
if rgxp.any? { |r| p =~ r }
|
48
62
|
break if matching
|
49
63
|
matching = true
|
50
|
-
rgxp =
|
64
|
+
rgxp = end_rgxp
|
51
65
|
elsif matching
|
52
|
-
|
66
|
+
result << p
|
53
67
|
end
|
54
68
|
end
|
55
|
-
|
56
|
-
else ary end
|
69
|
+
end
|
57
70
|
|
58
|
-
result.values_at(*
|
71
|
+
args.empty? ? result : result.values_at(*args)
|
59
72
|
end
|
60
73
|
|
61
74
|
# Find a rake task using the task name and remove any description text. This
|
@@ -106,8 +106,8 @@ module Bones::Plugins::BonesPlugin
|
|
106
106
|
but you are free to change it to whatever you choose.
|
107
107
|
__
|
108
108
|
|
109
|
-
readme_file 'README.
|
110
|
-
The name of your project's README file. The default is 'README.
|
109
|
+
readme_file 'README.md', :desc => <<-__
|
110
|
+
The name of your project's README file. The default is 'README.md'
|
111
111
|
but you are free to change it to whatever you choose. Since GitHub
|
112
112
|
understand various markup languages, you can change the README
|
113
113
|
file to support your markup language of choice.
|
@@ -145,7 +145,10 @@ module Bones::Plugins::BonesPlugin
|
|
145
145
|
config.exclude << "^#{Regexp.escape(config.ignore_file)}$"
|
146
146
|
config.changes ||= paragraphs_of(config.history_file, 0..1).join("\n\n")
|
147
147
|
config.description ||= paragraphs_of(config.readme_file, 'description').join("\n\n")
|
148
|
-
|
148
|
+
if config.description.empty?
|
149
|
+
config.description = paragraphs_of(config.readme_file, 1..1).first
|
150
|
+
end
|
151
|
+
config.summary ||= config.description[%r/^[^.]*\.?/]
|
149
152
|
|
150
153
|
config.version ||= ENV['VERSION']
|
151
154
|
if test(?f, 'version.txt') and !config.version
|
data/lib/bones/plugins/gem.rb
CHANGED
@@ -192,8 +192,15 @@ module Bones::Plugins::Gem
|
|
192
192
|
puts config.gem._spec.to_ruby
|
193
193
|
end
|
194
194
|
|
195
|
-
desc 'Write the gemspec
|
195
|
+
desc 'Write the gemspec'
|
196
196
|
task :spec => 'gem:prereqs' do
|
197
|
+
File.open("#{config.name}.gemspec", 'w') do |f|
|
198
|
+
f.write config.gem._spec.to_ruby
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
desc 'Write the gemspec in Rails YAML format'
|
203
|
+
task :rails_spec => 'gem:prereqs' do
|
197
204
|
File.open('.specification', 'w') do |f|
|
198
205
|
f.write config.gem._spec.to_yaml
|
199
206
|
end
|
data/lib/bones/plugins/notes.rb
CHANGED
@@ -5,10 +5,23 @@ module Bones::Plugins::Notes
|
|
5
5
|
|
6
6
|
def initialize_notes
|
7
7
|
::Bones.config {
|
8
|
+
desc 'Configuration for extracting annotations from project files.'
|
8
9
|
notes {
|
9
|
-
exclude
|
10
|
-
|
11
|
-
|
10
|
+
exclude [], :desc => <<-__
|
11
|
+
A list of regular expression patterns that will be used to exclude
|
12
|
+
certain files from the annotation search. Each pattern is given as a
|
13
|
+
string, and they are all combined using the regular expression or
|
14
|
+
"|" operator.
|
15
|
+
__
|
16
|
+
|
17
|
+
extensions %w[.txt .rb .erb .rdoc .md] << '', :desc => <<-__
|
18
|
+
Only files with these extensions will be searched for annotations.
|
19
|
+
__
|
20
|
+
|
21
|
+
tags %w[FIXME OPTIMIZE TODO], :desc => <<-__
|
22
|
+
The list of annotation tags that will be extracted from the files
|
23
|
+
being searched.
|
24
|
+
__
|
12
25
|
}
|
13
26
|
}
|
14
27
|
|
@@ -45,7 +45,7 @@ describe Bones::App::FileManager do
|
|
45
45
|
.rvmrc.bns
|
46
46
|
History
|
47
47
|
NAME/NAME.rb.bns
|
48
|
-
README.
|
48
|
+
README.md.bns
|
49
49
|
Rakefile.bns
|
50
50
|
bin/NAME.bns
|
51
51
|
lib/NAME.rb.bns
|
@@ -92,12 +92,12 @@ describe Bones::App::FileManager do
|
|
92
92
|
|
93
93
|
dir = @fm.destination
|
94
94
|
test(?e, File.join(dir, 'Rakefile.bns')).should == false
|
95
|
-
test(?e, File.join(dir, 'README.
|
95
|
+
test(?e, File.join(dir, 'README.md.bns')).should == false
|
96
96
|
test(?e, File.join(dir, %w[foo_bar foo_bar.rb.bns])).should == false
|
97
97
|
test(?e, File.join(dir, '.rvmrc.bns')).should == false
|
98
98
|
|
99
99
|
test(?e, File.join(dir, 'Rakefile')).should == true
|
100
|
-
test(?e, File.join(dir, 'README.
|
100
|
+
test(?e, File.join(dir, 'README.md')).should == true
|
101
101
|
test(?e, File.join(dir, %w[foo_bar foo_bar.rb])).should == true
|
102
102
|
test(?e, File.join(dir, '.rvmrc')).should == true
|
103
103
|
|
@@ -0,0 +1,52 @@
|
|
1
|
+
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Bones::Helpers do
|
5
|
+
|
6
|
+
before :each do
|
7
|
+
Bones::Helpers::HAVE.clear
|
8
|
+
end
|
9
|
+
|
10
|
+
describe 'when extracting paragraphs' do
|
11
|
+
it 'recognizes RDoc headers by title' do
|
12
|
+
filename = Bones.path %w[spec data rdoc.txt]
|
13
|
+
|
14
|
+
ary = Bones::Helpers.paragraphs_of(filename, 'install')
|
15
|
+
ary.length.should == 6
|
16
|
+
ary.first.should == '* gem install bones'
|
17
|
+
ary.last.should == %Q{The 'bones-git' gem provides command line options for generating a git\nrepository and pushing to github upon creation. Rake tasks for working with\nthe git repository are also provided.}
|
18
|
+
|
19
|
+
ary = Bones::Helpers.paragraphs_of(filename, 'description')
|
20
|
+
ary.length.should == 1
|
21
|
+
|
22
|
+
ary = Bones::Helpers.paragraphs_of(filename, 'license')
|
23
|
+
ary.length.should == 4
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'recognizes Markdown headers by title' do
|
27
|
+
filename = Bones.path %w[spec data markdown.txt]
|
28
|
+
|
29
|
+
ary = Bones::Helpers.paragraphs_of(filename, 'install')
|
30
|
+
ary.length.should == 5
|
31
|
+
ary.first.should == '* gem install bones'
|
32
|
+
ary.last.should == %Q{The 'bones-extras' gem provides rake tasks for running Rspec tests, running\nRcov on your source code, and pushing releases to RubyForge. You will need to\nhave the corresponding gems installed for these tasks to be loaded.}
|
33
|
+
|
34
|
+
ary = Bones::Helpers.paragraphs_of(filename, 'mr bones')
|
35
|
+
ary.length.should == 1
|
36
|
+
|
37
|
+
ary = Bones::Helpers.paragraphs_of(filename, 'license')
|
38
|
+
ary.length.should == 4
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'uses paragraph numbers' do
|
42
|
+
filename = Bones.path %w[spec data markdown.txt]
|
43
|
+
|
44
|
+
ary = Bones::Helpers.paragraphs_of(filename, 1, 3..5)
|
45
|
+
ary.length.should == 4
|
46
|
+
ary.first.should == %Q{Mr Bones is a handy tool that creates new Ruby projects from a code\nskeleton. The skeleton contains some starter code and a collection of rake\ntasks to ease the management and deployment of your source code. Several Mr\nBones plugins are available for creating git repositories, creating GitHub\nprojects, running various test suites and source code analysis tools.}
|
47
|
+
ary.last.should == %Q{When working with Rake, Mr Bones provides a set of tasks that help simplify\ncommon development tasks. These tasks include ...}
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
|
@@ -1,32 +1,44 @@
|
|
1
1
|
<%= name %>
|
2
|
-
|
3
|
-
FIXME (url)
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
2
|
+
===========
|
6
3
|
|
7
4
|
FIXME (describe your package)
|
8
5
|
|
9
|
-
|
6
|
+
Features
|
7
|
+
--------
|
10
8
|
|
11
|
-
* FIXME (list of features
|
9
|
+
* FIXME (list of features and unsolved problems)
|
12
10
|
|
13
|
-
|
11
|
+
Examples
|
12
|
+
--------
|
14
13
|
|
15
|
-
|
14
|
+
FIXME (code sample of usage)
|
16
15
|
|
17
|
-
|
16
|
+
Requirements
|
17
|
+
------------
|
18
18
|
|
19
19
|
* FIXME (list of requirements)
|
20
20
|
|
21
|
-
|
21
|
+
Install
|
22
|
+
-------
|
22
23
|
|
23
24
|
* FIXME (sudo gem install, anything else)
|
24
25
|
|
25
|
-
|
26
|
+
Author
|
27
|
+
------
|
28
|
+
|
29
|
+
Original author: FIXME (author's name)
|
30
|
+
|
31
|
+
Contributors:
|
32
|
+
|
33
|
+
* FIXME (contributor 1?)
|
34
|
+
* FIXME (contributor 2?)
|
35
|
+
|
36
|
+
License
|
37
|
+
-------
|
26
38
|
|
27
|
-
(The MIT License)
|
39
|
+
(The MIT License) FIXME(different license?)
|
28
40
|
|
29
|
-
Copyright (c)
|
41
|
+
Copyright (c) 2010 FIXME (author's name)
|
30
42
|
|
31
43
|
Permission is hereby granted, free of charge, to any person obtaining
|
32
44
|
a copy of this software and associated documentation files (the
|
File without changes
|
@@ -0,0 +1,113 @@
|
|
1
|
+
Mr Bones
|
2
|
+
========
|
3
|
+
|
4
|
+
Mr Bones is a handy tool that creates new Ruby projects from a code
|
5
|
+
skeleton. The skeleton contains some starter code and a collection of rake
|
6
|
+
tasks to ease the management and deployment of your source code. Several Mr
|
7
|
+
Bones plugins are available for creating git repositories, creating GitHub
|
8
|
+
projects, running various test suites and source code analysis tools.
|
9
|
+
|
10
|
+
Features
|
11
|
+
--------
|
12
|
+
|
13
|
+
Mr Bones is configurable, helpful, and it simplifies project development.
|
14
|
+
|
15
|
+
Mr Bones simplifies project creation by using a code template for generating
|
16
|
+
a new working area for your code. This skeleton is customizable, and you can
|
17
|
+
have multiple skeletons for various types of projects you work on - ruby
|
18
|
+
libraries, web applications, or even writing projects.
|
19
|
+
|
20
|
+
When working with Rake, Mr Bones provides a set of tasks that help simplify
|
21
|
+
common development tasks. These tasks include ...
|
22
|
+
|
23
|
+
* release announcements
|
24
|
+
* gem packaging and management
|
25
|
+
* releasing to gemcutter and rubyforge
|
26
|
+
* documentation
|
27
|
+
* annotation listing (TODO, FIXME, etc)
|
28
|
+
* testing
|
29
|
+
|
30
|
+
The provided rake tasks are configured using a "Bones" configuration block in
|
31
|
+
the Rakefile. You can obtain a list of the available options and descriptive
|
32
|
+
help for each option by running the various "bones" tasks (use "rake -T" to
|
33
|
+
list the available tasks). Although there are many configuration options, the
|
34
|
+
vast majority of them have sensible defaults; tailor to suit your needs in the
|
35
|
+
Bones configuration block.
|
36
|
+
|
37
|
+
Mr Bones can be extended via plugins. The plugins provide new rake tasks and
|
38
|
+
configuration options for those tasks. Other developers can release plugins to
|
39
|
+
automate the use of their libraries in a bones enabled system.
|
40
|
+
|
41
|
+
Currently there are a "bones-git" plugin for interacting with github and git
|
42
|
+
repositories and a "bones-extras" plugin for working with Rcov, RubyForge,
|
43
|
+
and Rspec.
|
44
|
+
|
45
|
+
There is far more information available in the Mr Bones manual.
|
46
|
+
http://wiki.github.com/TwP/bones/manual
|
47
|
+
|
48
|
+
Examples
|
49
|
+
--------
|
50
|
+
|
51
|
+
To create a new "Get Fuzzy" project:
|
52
|
+
|
53
|
+
bones create get_fuzzy
|
54
|
+
|
55
|
+
If you ever get confused about what Mr Bones can do:
|
56
|
+
|
57
|
+
bones --help
|
58
|
+
|
59
|
+
After your project is created, you can view all the available configuration
|
60
|
+
options:
|
61
|
+
|
62
|
+
rake bones:options
|
63
|
+
|
64
|
+
Detailed information about the options (or a subset of options) can also be
|
65
|
+
displayed:
|
66
|
+
|
67
|
+
rake bones:help #=> for all options
|
68
|
+
rake bones:help gem #=> for the "gem" subset
|
69
|
+
|
70
|
+
Install
|
71
|
+
-------
|
72
|
+
|
73
|
+
* gem install bones
|
74
|
+
|
75
|
+
If you would like some extra functinoality the following plugins can be
|
76
|
+
installed:
|
77
|
+
|
78
|
+
* gem install bones-git
|
79
|
+
* gem install bones-extras
|
80
|
+
|
81
|
+
The 'bones-git' gem provides command line options for generating a git
|
82
|
+
repository and pushing to github upon creation. Rake tasks for working with
|
83
|
+
the git repository are also provided.
|
84
|
+
|
85
|
+
The 'bones-extras' gem provides rake tasks for running Rspec tests, running
|
86
|
+
Rcov on your source code, and pushing releases to RubyForge. You will need to
|
87
|
+
have the corresponding gems installed for these tasks to be loaded.
|
88
|
+
|
89
|
+
License
|
90
|
+
-------
|
91
|
+
|
92
|
+
MIT License
|
93
|
+
Copyright (c) 2007 - 2010
|
94
|
+
|
95
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
96
|
+
a copy of this software and associated documentation files (the
|
97
|
+
'Software'), to deal in the Software without restriction, including
|
98
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
99
|
+
distribute, sub-license, and/or sell copies of the Software, and to
|
100
|
+
permit persons to whom the Software is furnished to do so, subject to
|
101
|
+
the following conditions:
|
102
|
+
|
103
|
+
The above copyright notice and this permission notice shall be
|
104
|
+
included in all copies or substantial portions of the Software.
|
105
|
+
|
106
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
107
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
108
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
109
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
110
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
111
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
112
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
113
|
+
|
data/spec/data/rdoc.txt
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
Mr Bones
|
2
|
+
by Tim Pease
|
3
|
+
http://gemcutter.org/gems/bones
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
Mr Bones is a handy tool that creates new Ruby projects from a code
|
8
|
+
skeleton. The skeleton contains some starter code and a collection of rake
|
9
|
+
tasks to ease the management and deployment of your source code. Several Mr
|
10
|
+
Bones plugins are available for creating git repositories, creating GitHub
|
11
|
+
projects, running various test suites and source code analysis tools.
|
12
|
+
|
13
|
+
== SYNOPSIS:
|
14
|
+
|
15
|
+
To create a new "Get Fuzzy" project:
|
16
|
+
|
17
|
+
bones create get_fuzzy
|
18
|
+
|
19
|
+
If you ever get confused about what Mr Bones can do:
|
20
|
+
|
21
|
+
bones --help
|
22
|
+
|
23
|
+
After your project is created, you can view all the available configuration
|
24
|
+
options:
|
25
|
+
|
26
|
+
rake bones:options
|
27
|
+
|
28
|
+
Detailed information about the options (or a subset of options) can also be
|
29
|
+
displayed:
|
30
|
+
|
31
|
+
rake bones:help #=> for all options
|
32
|
+
rake bones:help gem #=> for the "gem" subset
|
33
|
+
|
34
|
+
== FEATURES:
|
35
|
+
|
36
|
+
Mr Bones is configurable, helpful, and it simplifies project development.
|
37
|
+
|
38
|
+
Mr Bones simplifies project creation by using a code template for generating
|
39
|
+
a new working area for your code. This skeleton is customizable, and you can
|
40
|
+
have multiple skeletons for various types of projects you work on - ruby
|
41
|
+
libraries, web applications, or even writing projects.
|
42
|
+
|
43
|
+
When working with Rake, Mr Bones provides a set of tasks that help simplify
|
44
|
+
common development tasks. These tasks include ...
|
45
|
+
|
46
|
+
* release announcements
|
47
|
+
* gem packaging and management
|
48
|
+
* releasing to gemcutter and rubyforge
|
49
|
+
* documentation
|
50
|
+
* annotation listing (TODO, FIXME, etc)
|
51
|
+
* testing
|
52
|
+
|
53
|
+
The provided rake tasks are configured using a "Bones" configuration block in
|
54
|
+
the Rakefile. You can obtain a list of the available options and descriptive
|
55
|
+
help for each option by running the various "bones" tasks (use "rake -T" to
|
56
|
+
list the available tasks). Although there are many configuration options, the
|
57
|
+
vast majority of them have sensible defaults; tailor to suit your needs in the
|
58
|
+
Bones configuration block.
|
59
|
+
|
60
|
+
Mr Bones can be extended via plugins. The plugins provide new rake tasks and
|
61
|
+
configuration options for those tasks. Other developers can release plugins to
|
62
|
+
automate the use of their libraries in a bones enabled system.
|
63
|
+
|
64
|
+
Currently there are a "bones-git" plugin for interacting with github and git
|
65
|
+
repositories and a "bones-extras" plugin for working with Rcov, RubyForge,
|
66
|
+
and Rspec.
|
67
|
+
|
68
|
+
There is far more information available in the Mr Bones manual.
|
69
|
+
http://wiki.github.com/TwP/bones/manual
|
70
|
+
|
71
|
+
== INSTALL:
|
72
|
+
|
73
|
+
* gem install bones
|
74
|
+
|
75
|
+
If you would like some extra functinoality the following plugins can be
|
76
|
+
installed:
|
77
|
+
|
78
|
+
* gem install bones-git
|
79
|
+
* gem install bones-yard
|
80
|
+
* gem install bones-rspec
|
81
|
+
* gem install bones-rcov
|
82
|
+
|
83
|
+
A complete list of available plugins is available via the bones command:
|
84
|
+
|
85
|
+
bones plugins --all
|
86
|
+
|
87
|
+
The 'bones-git' gem provides command line options for generating a git
|
88
|
+
repository and pushing to github upon creation. Rake tasks for working with
|
89
|
+
the git repository are also provided.
|
90
|
+
|
91
|
+
== ACKNOWLEDGEMENTS:
|
92
|
+
|
93
|
+
Ryan Davis and Eric Hodel and their Hoe gem (from which much of the Mr Bones
|
94
|
+
rake tasks have been stolen). The rails team and their source annotation
|
95
|
+
extractor. Bruce Williams for help in coming up with the project name. Ara T.
|
96
|
+
Howard for letting me squat in the codeforpeople rubyforge project.
|
97
|
+
|
98
|
+
== LICENSE:
|
99
|
+
|
100
|
+
MIT License
|
101
|
+
Copyright (c) 2007 - 2010
|
102
|
+
|
103
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
104
|
+
a copy of this software and associated documentation files (the
|
105
|
+
'Software'), to deal in the Software without restriction, including
|
106
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
107
|
+
distribute, sub-license, and/or sell copies of the Software, and to
|
108
|
+
permit persons to whom the Software is furnished to do so, subject to
|
109
|
+
the following conditions:
|
110
|
+
|
111
|
+
The above copyright notice and this permission notice shall be
|
112
|
+
included in all copies or substantial portions of the Software.
|
113
|
+
|
114
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
115
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
116
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
117
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
118
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
119
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
120
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
121
|
+
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.5.
|
1
|
+
3.5.2
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 3.5.
|
9
|
+
- 2
|
10
|
+
version: 3.5.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Pease
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-23 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -130,7 +130,8 @@ extra_rdoc_files:
|
|
130
130
|
- README.rdoc
|
131
131
|
- bin/bones
|
132
132
|
- default/version.txt
|
133
|
-
- spec/data/
|
133
|
+
- spec/data/markdown.txt
|
134
|
+
- spec/data/rdoc.txt
|
134
135
|
- version.txt
|
135
136
|
files:
|
136
137
|
- .autotest
|
@@ -140,7 +141,7 @@ files:
|
|
140
141
|
- bin/bones
|
141
142
|
- default/.bnsignore
|
142
143
|
- default/History.txt.bns
|
143
|
-
- default/README.
|
144
|
+
- default/README.md.bns
|
144
145
|
- default/Rakefile.bns
|
145
146
|
- default/bin/NAME.bns
|
146
147
|
- default/lib/NAME.rb.bns
|
@@ -170,17 +171,20 @@ files:
|
|
170
171
|
- lib/bones/smtp_tls.rb
|
171
172
|
- spec/bones/app/file_manager_spec.rb
|
172
173
|
- spec/bones/app_spec.rb
|
174
|
+
- spec/bones/helpers_spec.rb
|
173
175
|
- spec/bones_spec.rb
|
174
176
|
- spec/data/default/.bnsignore
|
175
177
|
- spec/data/default/.rvmrc.bns
|
176
178
|
- spec/data/default/History
|
177
179
|
- spec/data/default/NAME/NAME.rb.bns
|
178
|
-
- spec/data/default/README.
|
180
|
+
- spec/data/default/README.md.bns
|
179
181
|
- spec/data/default/Rakefile.bns
|
180
182
|
- spec/data/default/bin/NAME.bns
|
181
183
|
- spec/data/default/lib/NAME.rb.bns
|
182
|
-
- spec/data/foo/README.
|
184
|
+
- spec/data/foo/README.md
|
183
185
|
- spec/data/foo/Rakefile
|
186
|
+
- spec/data/markdown.txt
|
187
|
+
- spec/data/rdoc.txt
|
184
188
|
- spec/spec_helper.rb
|
185
189
|
- version.txt
|
186
190
|
has_rdoc: true
|
@@ -221,6 +225,6 @@ rubyforge_project: bones
|
|
221
225
|
rubygems_version: 1.3.7
|
222
226
|
signing_key:
|
223
227
|
specification_version: 3
|
224
|
-
summary: Mr Bones is a handy tool that creates new Ruby projects from a code skeleton
|
228
|
+
summary: Mr Bones is a handy tool that creates new Ruby projects from a code skeleton.
|
225
229
|
test_files: []
|
226
230
|
|