bones 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -1
- data/Rakefile +3 -5
- data/data/tasks/bones.rake +1 -1
- data/data/tasks/gem.rake +5 -2
- data/data/tasks/notes.rake +2 -2
- data/data/tasks/post_load.rake +3 -1
- data/data/tasks/setup.rb +1 -1
- data/lib/bones.rb +2 -2
- data/tasks/ann.rake +1 -1
- data/tasks/bones.rake +1 -1
- data/tasks/gem.rake +6 -3
- data/tasks/notes.rake +2 -2
- data/tasks/post_load.rake +3 -1
- data/tasks/rdoc.rake +1 -1
- data/tasks/rubyforge.rake +1 -1
- data/tasks/setup.rb +2 -2
- data/tasks/svn.rake +1 -1
- metadata +4 -4
data/History.txt
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
== 2.0.
|
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
|
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 = '
|
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
|
|
data/data/tasks/bones.rake
CHANGED
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 --
|
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
|
105
|
+
sh "#{SUDO} #{GEM} uninstall --version '#{PROJ.version}' --ignore-dependencies --executables #{PROJ.name}"
|
103
106
|
end
|
104
107
|
end
|
105
108
|
|
data/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
|
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
|
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/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/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/
|
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
|
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.
|
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
data/tasks/bones.rake
CHANGED
data/tasks/gem.rake
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: gem.rake
|
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 --
|
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
|
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
|
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
|
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
data/tasks/rubyforge.rake
CHANGED
data/tasks/setup.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id
|
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/
|
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
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.
|
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-
|
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:
|
100
|
+
version: "0"
|
101
101
|
version:
|
102
102
|
requirements: []
|
103
103
|
|
104
104
|
rubyforge_project: codeforpeople
|
105
|
-
rubygems_version: 1.1.
|
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
|