bones 3.5.4 → 3.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 3.5.5 / 2011-01-10
2
+
3
+ 1 bug fix
4
+ - History and Readme files are now optional
5
+
1
6
  == 3.5.4 / 2010-11-26
2
7
 
3
8
  1 bug fix
@@ -82,16 +82,13 @@ module Bones
82
82
  end
83
83
  end # module Bones
84
84
 
85
- begin
86
- $LOAD_PATH.unshift Bones.libpath
85
+ Bones.libpath {
87
86
  %w[colors helpers gem_package_task annotation_extractor smtp_tls app app/command app/file_manager].
88
87
  each { |fn| require File.join('bones', fn) }
89
88
 
90
89
  Bones.config {}
91
90
  Loquacious.remove :gem, :file, :test
92
- ensure
93
- $LOAD_PATH.shift
94
- end
91
+ }
95
92
 
96
93
  module Kernel
97
94
  # call-seq:
@@ -41,6 +41,7 @@ module Bones::Helpers
41
41
  # examples = paragraphs_of('README.md', 'examples').join("\n\n")
42
42
  #
43
43
  def paragraphs_of( path, *args )
44
+ return [] unless test(?f, path)
44
45
 
45
46
  title = String === args.first ? args.shift : nil
46
47
  paragraphs = File.read(path).delete("\r").split(%r/\n\n+/)
@@ -153,7 +153,7 @@ module Bones::Plugins::BonesPlugin
153
153
  config.changes ||= paragraphs_of(config.history_file, 0..1).join("\n\n")
154
154
  config.description ||= paragraphs_of(config.readme_file, 'description').join("\n\n")
155
155
  if config.description.empty?
156
- config.description = paragraphs_of(config.readme_file, 1..1).first
156
+ config.description = paragraphs_of(config.readme_file, 1..1).first.to_s
157
157
  end
158
158
  config.summary ||= config.description[%r/^[^.]*\.?/]
159
159
 
@@ -1 +1 @@
1
- 3.5.4
1
+ 3.5.5
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 5
9
- - 4
10
- version: 3.5.4
9
+ - 5
10
+ version: 3.5.5
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-11-26 00:00:00 -07:00
18
+ date: 2011-01-10 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -74,12 +74,12 @@ dependencies:
74
74
  requirements:
75
75
  - - ">="
76
76
  - !ruby/object:Gem::Version
77
- hash: 31
77
+ hash: 27
78
78
  segments:
79
79
  - 1
80
80
  - 2
81
- - 0
82
- version: 1.2.0
81
+ - 2
82
+ version: 1.2.2
83
83
  type: :development
84
84
  version_requirements: *id004
85
85
  - !ruby/object:Gem::Dependency