bones 3.6.0 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +5 -0
  2. data/Rakefile +4 -2
  3. data/lib/bones/plugins/rdoc.rb +5 -7
  4. metadata +4 -36
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 3.6.1 / 2011-01-25
2
+
3
+ Bug Fixes
4
+ - Properly handle cases where the RDoc gem is not installed.
5
+
1
6
  == 3.6.0 / 2011-01-21
2
7
 
3
8
  Enhancements
data/Rakefile CHANGED
@@ -29,8 +29,10 @@ Bones {
29
29
  depend_on 'little-plugger'
30
30
  depend_on 'loquacious'
31
31
 
32
- depend_on 'bones-git', :development => true
33
- depend_on 'bones-rspec', :development => true
32
+ # These are commented out to avoid circular dependencies when install
33
+ # bones-git or bones-rspec in development mode
34
+ # depend_on 'bones-git', :development => true
35
+ # depend_on 'bones-rspec', :development => true
34
36
  }
35
37
 
36
38
  # don't want to depend on ourself
@@ -1,5 +1,5 @@
1
1
 
2
- # since RDoc v 2.4.2 has RDoc::Task to replace Rake::RDoctask
2
+ # since RDoc v 2.4.2 has RDoc::Task to replace Rake::RDocTask
3
3
  begin
4
4
  gem 'rdoc'
5
5
  require 'rdoc/task'
@@ -40,6 +40,7 @@ module Bones::Plugins::Rdoc
40
40
  }
41
41
 
42
42
  have?(:rdoc) { true }
43
+ have?(:rdoc_gem) { true } if defined? RDoc
43
44
  end
44
45
 
45
46
  def post_load
@@ -65,7 +66,8 @@ module Bones::Plugins::Rdoc
65
66
 
66
67
  rd.rdoc_files.push(*files)
67
68
 
68
- if rd.class == RDoc::Task
69
+
70
+ if have? :rdoc_gem
69
71
  rd.title = title
70
72
  else
71
73
  rd.options << "-t #{title}"
@@ -81,11 +83,7 @@ module Bones::Plugins::Rdoc
81
83
  desc 'Generate RDoc documentation'
82
84
 
83
85
  # rdoc-2.4.2
84
- begin
85
- rd = RDoc::Task.new
86
- rescue NameError
87
- rd = Rake::RDoctask.new
88
- end
86
+ rd = have?(:rdoc_gem) ? RDoc::Task.new : Rake::RDocTask.new
89
87
  rdoc_config(rd,config)
90
88
 
91
89
  desc 'Generate ri locally for testing'
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 6
9
- - 0
10
- version: 3.6.0
9
+ - 1
10
+ version: 3.6.1
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: 2011-01-22 00:00:00 -07:00
18
+ date: 2011-01-25 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -66,38 +66,6 @@ dependencies:
66
66
  version: 1.7.0
67
67
  type: :runtime
68
68
  version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: bones-git
71
- prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 27
78
- segments:
79
- - 1
80
- - 2
81
- - 2
82
- version: 1.2.2
83
- type: :development
84
- version_requirements: *id004
85
- - !ruby/object:Gem::Dependency
86
- name: bones-rspec
87
- prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 19
94
- segments:
95
- - 1
96
- - 1
97
- - 0
98
- version: 1.1.0
99
- type: :development
100
- version_requirements: *id005
101
69
  description: |-
102
70
  Mr Bones is a handy tool that creates new Ruby projects from a code
103
71
  skeleton. The skeleton contains some starter code and a collection of rake