bones 2.0.0 → 2.0.1

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/History.txt CHANGED
@@ -1,4 +1,10 @@
1
- == 2.0.0 / 2008-03-
1
+ == 2.0.1 / 2008-04-15
2
+
3
+ * 1 minor enchancement
4
+ - Now compatible with RubyGems versions earlier than 1.1.0
5
+ (should work back to 0.9.4)
6
+
7
+ == 2.0.0 / 2008-04-07
2
8
 
3
9
  * 2 major enhancements
4
10
  - Reworked the PROJ open struct to use nested open struct
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: Rakefile 587 2008-04-07 20:28:43Z tim_pease $
1
+ # $Id: Rakefile 596 2008-04-15 05:51:29Z tim_pease $
2
2
 
3
3
  $:.unshift('lib')
4
4
 
@@ -10,7 +10,7 @@ PROJ.authors = 'Tim Pease'
10
10
  PROJ.email = 'tim.pease@gmail.com'
11
11
  PROJ.url = 'http://codeforpeople.rubyforge.org/bones'
12
12
  PROJ.version = Bones::VERSION
13
- PROJ.release_name = 'Pygmy Orchestra'
13
+ PROJ.release_name = 'Happy Tax Day'
14
14
 
15
15
  PROJ.rubyforge.name = 'codeforpeople'
16
16
 
@@ -24,15 +24,13 @@ PROJ.spec.opts << '--color'
24
24
  PROJ.ann.email[:server] = 'smtp.gmail.com'
25
25
  PROJ.ann.email[:port] = 587
26
26
 
27
- PROJ.gem.extras[:required_rubygems_version] = '>= 1.1.0'
28
27
  PROJ.gem.extras[:post_install_message] = <<-MSG
29
28
  --------------------------
30
29
  Keep rattlin' dem bones!
31
30
  --------------------------
32
31
  MSG
33
32
 
34
- PROJ.ann.paragraphs = %w[install synopsis].unshift('version 2.0.0 changes')
35
- #PROJ.ann.paragraphs = %w[install synopsis features requirements].unshift('version 2.0.0 changes')
33
+ PROJ.ann.paragraphs = %w[install synopsis features requirements].unshift('version 2.0.0 changes')
36
34
  PROJ.ann.text = <<-ANN
37
35
  == FUN FACT
38
36
 
@@ -6,7 +6,7 @@ namespace :bones do
6
6
 
7
7
  desc 'Show the PROJ open struct'
8
8
  task :debug do |t|
9
- atr = if ARGV.length == 2
9
+ atr = if t.application.top_level_tasks.length == 2
10
10
  t.application.top_level_tasks.pop
11
11
  end
12
12
 
data/data/tasks/gem.rake CHANGED
@@ -92,14 +92,17 @@ namespace :gem do
92
92
 
93
93
  desc 'Install the gem'
94
94
  task :install => [:clobber, :package] do
95
- sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
95
+ sh "#{SUDO} #{GEM} install --local pkg/#{PROJ.gem._spec.full_name}"
96
+
97
+ # use this version of the command for rubygems > 1.0.0
98
+ #sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
96
99
  end
97
100
 
98
101
  desc 'Uninstall the gem'
99
102
  task :uninstall do
100
103
  installed_list = Gem.source_index.find_name(PROJ.name)
101
104
  if installed_list and installed_list.collect { |s| s.version.to_s}.include?(PROJ.version) then
102
- sh "#{SUDO} #{GEM} uninstall -v '#{PROJ.version}' -I -x #{PROJ.name}"
105
+ sh "#{SUDO} #{GEM} uninstall --version '#{PROJ.version}' --ignore-dependencies --executables #{PROJ.name}"
103
106
  end
104
107
  end
105
108
 
@@ -4,7 +4,7 @@ if HAVE_BONES
4
4
 
5
5
  desc "Enumerate all annotations"
6
6
  task :notes do |t|
7
- id = if ARGV.length > 1
7
+ id = if t.application.top_level_tasks.length > 1
8
8
  t.application.top_level_tasks.slice!(1..-1).join(' ')
9
9
  end
10
10
  Bones::AnnotationExtractor.enumerate(
@@ -15,7 +15,7 @@ namespace :notes do
15
15
  PROJ.notes.tags.each do |tag|
16
16
  desc "Enumerate all #{tag} annotations"
17
17
  task tag.downcase.to_sym do |t|
18
- id = if ARGV.length > 1
18
+ id = if t.application.top_level_tasks.length > 1
19
19
  t.application.top_level_tasks.slice!(1..-1).join(' ')
20
20
  end
21
21
  Bones::AnnotationExtractor.enumerate(PROJ, tag, id)
@@ -4,7 +4,9 @@
4
4
  # settings if they are not defined by the user.
5
5
 
6
6
  PROJ.rdoc.exclude << "^#{Regexp.escape(PROJ.manifest_file)}$"
7
- PROJ.exclude << "^#{Regexp.escape(PROJ.ann.file)}$"
7
+ PROJ.exclude << ["^#{Regexp.escape(PROJ.ann.file)}$",
8
+ "^#{Regexp.escape(PROJ.rdoc.dir)}/",
9
+ "^#{Regexp.escape(PROJ.rcov.dir)}/"]
8
10
 
9
11
  flatten_arrays = lambda do |this,os|
10
12
  os.instance_variable_get(:@table).each do |key,val|
data/data/tasks/setup.rb CHANGED
@@ -18,7 +18,7 @@ PROJ = OpenStruct.new(
18
18
  :email => nil,
19
19
  :url => "\000",
20
20
  :version => ENV['VERSION'] || '0.0.0',
21
- :exclude => %w(tmp$ bak$ ~$ CVS .svn/ ^pkg/ ^doc/),
21
+ :exclude => %w(tmp$ bak$ ~$ CVS .svn/ ^pkg/),
22
22
  :release_name => ENV['RELEASE'],
23
23
 
24
24
  # System Defaults
data/lib/bones.rb CHANGED
@@ -1,9 +1,9 @@
1
- # $Id: bones.rb 571 2008-03-12 04:30:45Z tim_pease $
1
+ # $Id: bones.rb 593 2008-04-07 21:10:34Z tim_pease $
2
2
 
3
3
  module Bones
4
4
 
5
5
  # :stopdoc:
6
- VERSION = '2.0.0'
6
+ VERSION = '2.0.1'
7
7
  PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
8
8
  WIN32 = %r/win32/ =~ RUBY_PLATFORM
9
9
  DEV_NULL = WIN32 ? 'NUL:' : '/dev/null'
data/tasks/ann.rake CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: ann.rake 585 2008-04-07 20:15:39Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  begin
4
4
  require 'bones/smtp_tls'
data/tasks/bones.rake CHANGED
@@ -6,7 +6,7 @@ namespace :bones do
6
6
 
7
7
  desc 'Show the PROJ open struct'
8
8
  task :debug do |t|
9
- atr = if ARGV.length == 2
9
+ atr = if t.application.top_level_tasks.length == 2
10
10
  t.application.top_level_tasks.pop
11
11
  end
12
12
 
data/tasks/gem.rake CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: gem.rake 585 2008-04-07 20:15:39Z tim_pease $
1
+ # $Id: gem.rake 596 2008-04-15 05:51:29Z tim_pease $
2
2
 
3
3
  require 'rake/gempackagetask'
4
4
 
@@ -92,14 +92,17 @@ namespace :gem do
92
92
 
93
93
  desc 'Install the gem'
94
94
  task :install => [:clobber, :package] do
95
- sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
95
+ sh "#{SUDO} #{GEM} install --local pkg/#{PROJ.gem._spec.full_name}"
96
+
97
+ # use this version of the command for rubygems > 1.0.0
98
+ #sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
96
99
  end
97
100
 
98
101
  desc 'Uninstall the gem'
99
102
  task :uninstall do
100
103
  installed_list = Gem.source_index.find_name(PROJ.name)
101
104
  if installed_list and installed_list.collect { |s| s.version.to_s}.include?(PROJ.version) then
102
- sh "#{SUDO} #{GEM} uninstall -v '#{PROJ.version}' -I -x #{PROJ.name}"
105
+ sh "#{SUDO} #{GEM} uninstall --version '#{PROJ.version}' --ignore-dependencies --executables #{PROJ.name}"
103
106
  end
104
107
  end
105
108
 
data/tasks/notes.rake CHANGED
@@ -4,7 +4,7 @@ if HAVE_BONES
4
4
 
5
5
  desc "Enumerate all annotations"
6
6
  task :notes do |t|
7
- id = if ARGV.length > 1
7
+ id = if t.application.top_level_tasks.length > 1
8
8
  t.application.top_level_tasks.slice!(1..-1).join(' ')
9
9
  end
10
10
  Bones::AnnotationExtractor.enumerate(
@@ -15,7 +15,7 @@ namespace :notes do
15
15
  PROJ.notes.tags.each do |tag|
16
16
  desc "Enumerate all #{tag} annotations"
17
17
  task tag.downcase.to_sym do |t|
18
- id = if ARGV.length > 1
18
+ id = if t.application.top_level_tasks.length > 1
19
19
  t.application.top_level_tasks.slice!(1..-1).join(' ')
20
20
  end
21
21
  Bones::AnnotationExtractor.enumerate(PROJ, tag, id)
data/tasks/post_load.rake CHANGED
@@ -4,7 +4,9 @@
4
4
  # settings if they are not defined by the user.
5
5
 
6
6
  PROJ.rdoc.exclude << "^#{Regexp.escape(PROJ.manifest_file)}$"
7
- PROJ.exclude << "^#{Regexp.escape(PROJ.ann.file)}$"
7
+ PROJ.exclude << ["^#{Regexp.escape(PROJ.ann.file)}$",
8
+ "^#{Regexp.escape(PROJ.rdoc.dir)}/",
9
+ "^#{Regexp.escape(PROJ.rcov.dir)}/"]
8
10
 
9
11
  flatten_arrays = lambda do |this,os|
10
12
  os.instance_variable_get(:@table).each do |key,val|
data/tasks/rdoc.rake CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: rdoc.rake 584 2008-04-07 19:46:38Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  require 'rake/rdoctask'
4
4
 
data/tasks/rubyforge.rake CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: rubyforge.rake 590 2008-04-07 20:52:22Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  if PROJ.rubyforge.name.valid? && HAVE_RUBYFORGE
4
4
 
data/tasks/setup.rb CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: setup.rb 584 2008-04-07 19:46:38Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  require 'rubygems'
4
4
  require 'rake'
@@ -18,7 +18,7 @@ PROJ = OpenStruct.new(
18
18
  :email => nil,
19
19
  :url => "\000",
20
20
  :version => ENV['VERSION'] || '0.0.0',
21
- :exclude => %w(tmp$ bak$ ~$ CVS .svn/ ^pkg/ ^doc/),
21
+ :exclude => %w(tmp$ bak$ ~$ CVS .svn/ ^pkg/),
22
22
  :release_name => ENV['RELEASE'],
23
23
 
24
24
  # System Defaults
data/tasks/svn.rake CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: svn.rake 585 2008-04-07 20:15:39Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  if HAVE_SVN
4
4
 
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.0.0
4
+ version: 2.0.1
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: 2008-04-07 00:00:00 -06:00
12
+ date: 2008-04-14 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -97,12 +97,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
- version: 1.1.0
100
+ version: "0"
101
101
  version:
102
102
  requirements: []
103
103
 
104
104
  rubyforge_project: codeforpeople
105
- rubygems_version: 1.1.0
105
+ rubygems_version: 1.1.1
106
106
  signing_key:
107
107
  specification_version: 2
108
108
  summary: Mr Bones is a handy tool that builds a skeleton for your new Ruby projects