bones 2.4.2 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.autotest ADDED
@@ -0,0 +1 @@
1
+ require 'autotest/redgreen'
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ == 2.5.0 / 2009-04-05
2
+
3
+ * 1 minor enhancement
4
+ - added support for ZenTest autotest
5
+ * 1 bug fix
6
+ - files without extensions are picked up when generating a new project
7
+
1
8
  == 2.4.2 / 2009-03-02
2
9
 
3
10
  * 2 bug fixes
data/README.rdoc CHANGED
@@ -17,6 +17,7 @@ Mr Bones provides the following rake tasks:
17
17
  ann # Alias to ann:announcement
18
18
  ann:announcement # Create an announcement file
19
19
  ann:email # Send an email announcement
20
+ autotest # Run the autotest loop
20
21
  bones:debug # Show the PROJ open struct
21
22
  clean # Remove any temporary products.
22
23
  clobber # Remove any generated file.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ PROJ.authors = 'Tim Pease'
9
9
  PROJ.email = 'tim.pease@gmail.com'
10
10
  PROJ.url = 'http://codeforpeople.rubyforge.org/bones'
11
11
  PROJ.version = Bones::VERSION
12
- PROJ.release_name = 'Lacrimal'
12
+ PROJ.release_name = 'Maxilla'
13
13
  PROJ.ruby_opts = %w[-W0]
14
14
  PROJ.readme_file = 'README.rdoc'
15
15
  PROJ.ignore_file = '.gitignore'
@@ -140,7 +140,7 @@ class FileManager
140
140
  rgxp = %r/\A#{source}\/?/
141
141
  exclude = %r/tmp$|bak$|~$|CVS|\.svn/
142
142
 
143
- ary = Dir.glob(File.join(source, '**', '*.*'), File::FNM_DOTMATCH).map do |filename|
143
+ ary = Dir.glob(File.join(source, '**', '*'), File::FNM_DOTMATCH).map do |filename|
144
144
  next if exclude =~ filename
145
145
  next if test(?d, filename)
146
146
  filename.sub rgxp, ''
@@ -147,7 +147,7 @@ RCOV = "#{RUBY} -S rcov"
147
147
  RDOC = "#{RUBY} -S rdoc"
148
148
  GEM = "#{RUBY} -S gem"
149
149
 
150
- %w(rcov spec/rake/spectask rubyforge bones facets/ansicode).each do |lib|
150
+ %w(rcov spec/rake/spectask rubyforge bones facets/ansicode zentest).each do |lib|
151
151
  begin
152
152
  require lib
153
153
  Object.instance_eval {const_set "HAVE_#{lib.tr('/','_').upcase}", true}
@@ -0,0 +1,36 @@
1
+ if HAVE_ZENTEST
2
+
3
+ # --------------------------------------------------------------------------
4
+ if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
5
+ require 'autotest'
6
+
7
+ namespace :test do
8
+ task :autotest do
9
+ Autotest.run
10
+ end
11
+ end
12
+
13
+ desc "Run the autotest loop"
14
+ task :autotest => 'test:autotest'
15
+
16
+ end # if test
17
+
18
+ # --------------------------------------------------------------------------
19
+ if HAVE_SPEC_RAKE_SPECTASK and not PROJ.spec.files.to_a.empty?
20
+ require 'autotest/rspec'
21
+
22
+ namespace :spec do
23
+ task :autotest do
24
+ load '.autotest' if test(?f, '.autotest')
25
+ Autotest::Rspec.run
26
+ end
27
+ end
28
+
29
+ desc "Run the autotest loop"
30
+ task :autotest => 'spec:autotest'
31
+
32
+ end # if rspec
33
+
34
+ end # if HAVE_ZENTEST
35
+
36
+ # EOF
data/lib/bones.rb CHANGED
@@ -4,7 +4,7 @@ require 'rbconfig'
4
4
  module Bones
5
5
 
6
6
  # :stopdoc:
7
- VERSION = '2.4.2'
7
+ VERSION = '2.5.0'
8
8
  PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
9
9
  HOME = File.expand_path(ENV['HOME'] || ENV['USERPROFILE'])
10
10
  DEV_NULL = File.exist?('/dev/null') ? '/dev/null' : 'NUL:'
@@ -36,21 +36,18 @@ describe Bones::App::FileManager do
36
36
  end
37
37
 
38
38
  it "should return a list of files to copy" do
39
- @fm.source = Bones.path 'data'
39
+ @fm.source = Bones.path %w[spec data data]
40
40
 
41
41
  ary = @fm._files_to_copy
42
- ary.length.should == 9
42
+ ary.length.should == 6
43
43
 
44
44
  ary.should == %w[
45
45
  .bnsignore
46
- History.txt.bns
46
+ History
47
+ NAME/NAME.rb.bns
47
48
  README.txt.bns
48
49
  Rakefile.bns
49
- bin/NAME.bns
50
50
  lib/NAME.rb.bns
51
- spec/NAME_spec.rb.bns
52
- spec/spec_helper.rb.bns
53
- test/test_NAME.rb
54
51
  ]
55
52
  end
56
53
 
@@ -0,0 +1,16 @@
1
+ # The list of files that should be ignored by Mr Bones.
2
+ # Lines that start with '#' are comments.
3
+ #
4
+ # A .gitignore file can be used instead by setting it as the ignore
5
+ # file in your Rakefile:
6
+ #
7
+ # PROJ.ignore_file = '.gitignore'
8
+ #
9
+ # For a project with a C extension, the following would be a good set of
10
+ # exclude patterns (uncomment them if you want to use them):
11
+ # *.[oa]
12
+ # *~
13
+ announcement.txt
14
+ coverage
15
+ doc
16
+ pkg
@@ -0,0 +1 @@
1
+ This file has no extension
data/tasks/setup.rb CHANGED
@@ -147,7 +147,7 @@ RCOV = "#{RUBY} -S rcov"
147
147
  RDOC = "#{RUBY} -S rdoc"
148
148
  GEM = "#{RUBY} -S gem"
149
149
 
150
- %w(rcov spec/rake/spectask rubyforge bones facets/ansicode).each do |lib|
150
+ %w(rcov spec/rake/spectask rubyforge bones facets/ansicode zentest).each do |lib|
151
151
  begin
152
152
  require lib
153
153
  Object.instance_eval {const_set "HAVE_#{lib.tr('/','_').upcase}", true}
@@ -0,0 +1,36 @@
1
+ if HAVE_ZENTEST
2
+
3
+ # --------------------------------------------------------------------------
4
+ if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
5
+ require 'autotest'
6
+
7
+ namespace :test do
8
+ task :autotest do
9
+ Autotest.run
10
+ end
11
+ end
12
+
13
+ desc "Run the autotest loop"
14
+ task :autotest => 'test:autotest'
15
+
16
+ end # if test
17
+
18
+ # --------------------------------------------------------------------------
19
+ if HAVE_SPEC_RAKE_SPECTASK and not PROJ.spec.files.to_a.empty?
20
+ require 'autotest/rspec'
21
+
22
+ namespace :spec do
23
+ task :autotest do
24
+ load '.autotest' if test(?f, '.autotest')
25
+ Autotest::Rspec.run
26
+ end
27
+ end
28
+
29
+ desc "Run the autotest loop"
30
+ task :autotest => 'spec:autotest'
31
+
32
+ end # if rspec
33
+
34
+ end # if HAVE_ZENTEST
35
+
36
+ # 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: 2.4.2
4
+ version: 2.5.0
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: 2009-03-02 00:00:00 -07:00
12
+ date: 2009-04-05 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.8.3
23
+ version: 0.8.4
24
24
  version:
25
25
  description: Mr Bones is a handy tool that builds a skeleton for your new Ruby projects. The skeleton contains some starter code and a collection of rake tasks to ease the management and deployment of your source code. Mr Bones is not viral -- all the code your project needs is included in the skeleton (no gem dependency required).
26
26
  email: tim.pease@gmail.com
@@ -43,8 +43,10 @@ extra_rdoc_files:
43
43
  - lib/bones/tasks/spec.rake
44
44
  - lib/bones/tasks/svn.rake
45
45
  - lib/bones/tasks/test.rake
46
+ - lib/bones/tasks/zentest.rake
46
47
  - spec/data/foo/README.txt
47
48
  files:
49
+ - .autotest
48
50
  - History.txt
49
51
  - README.rdoc
50
52
  - Rakefile
@@ -82,9 +84,12 @@ files:
82
84
  - lib/bones/tasks/spec.rake
83
85
  - lib/bones/tasks/svn.rake
84
86
  - lib/bones/tasks/test.rake
87
+ - lib/bones/tasks/zentest.rake
85
88
  - spec/bones/app/file_manager_spec.rb
86
89
  - spec/bones/app_spec.rb
87
90
  - spec/bones_spec.rb
91
+ - spec/data/data/.bnsignore
92
+ - spec/data/data/History
88
93
  - spec/data/data/NAME/NAME.rb.bns
89
94
  - spec/data/data/README.txt.bns
90
95
  - spec/data/data/Rakefile.bns
@@ -104,6 +109,7 @@ files:
104
109
  - tasks/spec.rake
105
110
  - tasks/svn.rake
106
111
  - tasks/test.rake
112
+ - tasks/zentest.rake
107
113
  has_rdoc: true
108
114
  homepage: http://codeforpeople.rubyforge.org/bones
109
115
  post_install_message: |