bones 1.3.1 → 1.3.2

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.
@@ -1,3 +1,8 @@
1
+ == 1.3.2 / 2008-02-05
2
+
3
+ * 1 minor enchancement
4
+ - Added colorization to the manifest:check task
5
+
1
6
  == 1.3.1 / 2008-02-01
2
7
 
3
8
  * 4 minor enhancements
data/README.txt CHANGED
@@ -92,12 +92,9 @@ the Rakefile for the Mr Bones gem itself:
92
92
  task :default => 'spec:run'
93
93
 
94
94
  PROJ.name = 'bones'
95
- PROJ.summary = 'Mr Bones is a handy tool that builds a skeleton for your new Ruby projects'
96
95
  PROJ.authors = 'Tim Pease'
97
96
  PROJ.email = 'not.real@fake.com'
98
97
  PROJ.url = 'http://codeforpeople.rubyforge.org/bones'
99
- PROJ.description = paragraphs_of('README.txt', 1).join("\n\n")
100
- PROJ.changes = paragraphs_of('History.txt', 0..1).join("\n\n")
101
98
  PROJ.rubyforge_name = 'codeforpeople'
102
99
  PROJ.rdoc_remote_dir = 'bones'
103
100
  PROJ.version = Bones::VERSION
@@ -17,7 +17,18 @@ namespace :manifest do
17
17
  end
18
18
 
19
19
  File.open(fn, 'w') {|fp| fp.puts files.sort}
20
- system "#{DIFF} -du Manifest.txt #{fn}"
20
+ lines = %x(#{DIFF} -du Manifest.txt #{fn}).split("\n")
21
+ if HAVE_FACETS_ANSICODE and ENV.has_key?('TERM')
22
+ lines.map! do |line|
23
+ case line
24
+ when %r/^(-{3}|\+{3})/; nil
25
+ when %r/^@/; Console::ANSICode.blue line
26
+ when %r/^\+/; Console::ANSICode.green line
27
+ when %r/^\-/; Console::ANSICode.red line
28
+ else line end
29
+ end
30
+ end
31
+ puts lines.compact
21
32
  rm fn rescue nil
22
33
  end
23
34
 
@@ -73,7 +73,7 @@ rakefiles.unshift(rakefiles.delete('tasks/post_load.rake')).compact!
73
73
  import(*rakefiles)
74
74
 
75
75
  # Setup some constants
76
- WIN32 = %r/win32/ =~ RUBY_PLATFORM unless defined? WIN32
76
+ WIN32 = %r/djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM unless defined? WIN32
77
77
 
78
78
  DEV_NULL = WIN32 ? 'NUL:' : '/dev/null'
79
79
 
@@ -102,7 +102,7 @@ SUDO = if WIN32 then ''
102
102
  RCOV = WIN32 ? 'rcov.cmd' : 'rcov'
103
103
  GEM = WIN32 ? 'gem.cmd' : 'gem'
104
104
 
105
- %w(rcov spec/rake/spectask rubyforge bones).each do |lib|
105
+ %w(rcov spec/rake/spectask rubyforge bones facets/ansicode).each do |lib|
106
106
  begin
107
107
  require lib
108
108
  Object.instance_eval {const_set "HAVE_#{lib.tr('/','_').upcase}", true}
@@ -1,9 +1,9 @@
1
- # $Id: bones.rb 483 2008-01-24 18:46:49Z tim_pease $
1
+ # $Id: bones.rb 500 2008-02-04 01:27:40Z tim_pease $
2
2
 
3
3
  module Bones
4
4
 
5
5
  # :stopdoc:
6
- VERSION = '1.3.1'
6
+ VERSION = '1.3.2'
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'
@@ -1,4 +1,4 @@
1
- # $Id: doc.rake 486 2008-01-27 04:14:41Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  require 'rake/rdoctask'
4
4
 
@@ -1,4 +1,4 @@
1
- # $Id: manifest.rake 489 2008-02-01 17:32:57Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  require 'find'
4
4
 
@@ -17,7 +17,18 @@ namespace :manifest do
17
17
  end
18
18
 
19
19
  File.open(fn, 'w') {|fp| fp.puts files.sort}
20
- system "#{DIFF} -du Manifest.txt #{fn}"
20
+ lines = %x(#{DIFF} -du Manifest.txt #{fn}).split("\n")
21
+ if HAVE_FACETS_ANSICODE and ENV.has_key?('TERM')
22
+ lines.map! do |line|
23
+ case line
24
+ when %r/^(-{3}|\+{3})/; nil
25
+ when %r/^@/; Console::ANSICode.blue line
26
+ when %r/^\+/; Console::ANSICode.green line
27
+ when %r/^\-/; Console::ANSICode.red line
28
+ else line end
29
+ end
30
+ end
31
+ puts lines.compact
21
32
  rm fn rescue nil
22
33
  end
23
34
 
@@ -1,4 +1,4 @@
1
- # $Id: post_load.rake 497 2008-02-01 18:19:50Z tim_pease $
1
+ # $Id$
2
2
 
3
3
  # This file does not define any rake tasks. It is used to load some project
4
4
  # settings if they are not defined by the user.
@@ -1,4 +1,4 @@
1
- # $Id: setup.rb 497 2008-02-01 18:19:50Z tim_pease $
1
+ # $Id: setup.rb 504 2008-02-05 04:50:00Z tim_pease $
2
2
 
3
3
  require 'rubygems'
4
4
  require 'rake'
@@ -73,7 +73,7 @@ rakefiles.unshift(rakefiles.delete('tasks/post_load.rake')).compact!
73
73
  import(*rakefiles)
74
74
 
75
75
  # Setup some constants
76
- WIN32 = %r/win32/ =~ RUBY_PLATFORM unless defined? WIN32
76
+ WIN32 = %r/djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM unless defined? WIN32
77
77
 
78
78
  DEV_NULL = WIN32 ? 'NUL:' : '/dev/null'
79
79
 
@@ -102,7 +102,7 @@ SUDO = if WIN32 then ''
102
102
  RCOV = WIN32 ? 'rcov.cmd' : 'rcov'
103
103
  GEM = WIN32 ? 'gem.cmd' : 'gem'
104
104
 
105
- %w(rcov spec/rake/spectask rubyforge bones).each do |lib|
105
+ %w(rcov spec/rake/spectask rubyforge bones facets/ansicode).each do |lib|
106
106
  begin
107
107
  require lib
108
108
  Object.instance_eval {const_set "HAVE_#{lib.tr('/','_').upcase}", true}
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: 1.3.1
4
+ version: 1.3.2
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-02-01 00:00:00 -07:00
12
+ date: 2008-02-05 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15