bones 2.1.0 → 2.1.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.
@@ -1,3 +1,12 @@
1
+ == 2.1.1 / 2008-12-15
2
+
3
+ * 1 minor enhancement
4
+ - added '.rdoc' to the list of file extensions for rdoc and
5
+ notes takss [Avdi Grimm]
6
+ * 2 bug fixes
7
+ - default "from" field when e-mailing announcements
8
+ - fixed SMTP check_auth_args arity [Avdi Grimm]
9
+
1
10
  == 2.1.0 / 2008-10-15
2
11
 
3
12
  * 1 major enhancement
@@ -1,6 +1,6 @@
1
1
  History.txt
2
2
  Manifest.txt
3
- README.txt
3
+ README.rdoc
4
4
  Rakefile
5
5
  bin/bones
6
6
  data/History.txt.erb
@@ -102,6 +102,9 @@ following gems installed you will not get all that Mr Bones has to offer.
102
102
  * rspec - if that's the way you roll
103
103
  * facets - for pretty colors
104
104
 
105
+ Actually, you will need at least version 1.2.0 of rubygems installed to use
106
+ Mr Bones.
107
+
105
108
  == INSTALL:
106
109
 
107
110
  * sudo gem install bones
data/Rakefile CHANGED
@@ -9,20 +9,21 @@ PROJ.authors = 'Tim Pease'
9
9
  PROJ.email = 'tim.pease@gmail.com'
10
10
  PROJ.url = 'http://codeforpeople.rubyforge.org/bones'
11
11
  PROJ.version = Bones::VERSION
12
- PROJ.release_name = 'Palimpsest'
12
+ PROJ.release_name = 'Proximal Phalanges'
13
13
  PROJ.ruby_opts = %w[-W0]
14
+ PROJ.readme_file = 'README.rdoc'
14
15
 
15
16
  PROJ.rubyforge.name = 'codeforpeople'
16
17
 
17
18
  PROJ.rdoc.remote_dir = 'bones'
18
19
  PROJ.rdoc.exclude << '^data/'
19
20
  PROJ.notes.exclude = %w(^README\.txt$ ^data/ ^tasks/setup.rb$)
20
- PROJ.svn.path = 'bones'
21
21
 
22
22
  PROJ.spec.opts << '--color'
23
23
 
24
24
  PROJ.ann.email[:server] = 'smtp.gmail.com'
25
25
  PROJ.ann.email[:port] = 587
26
+ PROJ.ann.email[:from] = 'Tim Pease'
26
27
 
27
28
  PROJ.gem.extras[:post_install_message] = <<-MSG
28
29
  --------------------------
@@ -34,7 +35,7 @@ PROJ.ann.paragraphs = %w[install synopsis features requirements]
34
35
  PROJ.ann.text = <<-ANN
35
36
  == FUN FACT
36
37
 
37
- A hen will lay one egg every 24 to 48 hours.
38
+ A typical adult human skeleton commonly consists of 206, 208 or more bones depending on the method used in counting.
38
39
 
39
40
  == POST SCRIPT
40
41
 
@@ -2,7 +2,7 @@
2
2
  module Bones
3
3
 
4
4
  # :stopdoc:
5
- VERSION = '2.1.0'
5
+ VERSION = '2.1.1'
6
6
  PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
7
7
  WIN32 = %r/win32/ =~ RUBY_PLATFORM
8
8
  DEV_NULL = WIN32 ? 'NUL:' : '/dev/null'
@@ -13,7 +13,14 @@ Net::SMTP.class_eval do
13
13
  private
14
14
  def do_start(helodomain, user, secret, authtype)
15
15
  raise IOError, 'SMTP session already started' if @started
16
- check_auth_args user, secret, authtype if user or secret
16
+
17
+ if user or secret
18
+ if 3 == self.method(:check_auth_args).arity
19
+ check_auth_args(user, secret, authtype)
20
+ else
21
+ check_auth_args(user, secret)
22
+ end
23
+ end
17
24
 
18
25
  sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) }
19
26
  @socket = Net::InternetMessageIO.new(sock)
@@ -42,7 +42,7 @@ namespace :ann do
42
42
  desc "Send an email announcement"
43
43
  task :email => ['ann:prereqs', PROJ.ann.file] do
44
44
  ann = PROJ.ann
45
- from = ann.email[:from] || PROJ.email
45
+ from = ann.email[:from] || Array(PROJ.authors).first || PROJ.email
46
46
  to = Array(ann.email[:to])
47
47
 
48
48
  ### build a mail header for RFC 822
@@ -62,7 +62,7 @@ PROJ = OpenStruct.new(
62
62
  # File Annotations
63
63
  :notes => OpenStruct.new(
64
64
  :exclude => %w(^tasks/setup\.rb$),
65
- :extensions => %w(.txt .rb .erb) << '',
65
+ :extensions => %w(.txt .rb .erb .rdoc) << '',
66
66
  :tags => %w(FIXME OPTIMIZE TODO)
67
67
  ),
68
68
 
@@ -77,7 +77,7 @@ PROJ = OpenStruct.new(
77
77
  # Rdoc
78
78
  :rdoc => OpenStruct.new(
79
79
  :opts => [],
80
- :include => %w(^lib/ ^bin/ ^ext/ \.txt$),
80
+ :include => %w(^lib/ ^bin/ ^ext/ \.txt$ \.rdoc$),
81
81
  :exclude => %w(extconf\.rb$),
82
82
  :main => nil,
83
83
  :dir => 'doc',
@@ -42,7 +42,7 @@ namespace :ann do
42
42
  desc "Send an email announcement"
43
43
  task :email => ['ann:prereqs', PROJ.ann.file] do
44
44
  ann = PROJ.ann
45
- from = ann.email[:from] || PROJ.email
45
+ from = ann.email[:from] || Array(PROJ.authors).first || PROJ.email
46
46
  to = Array(ann.email[:to])
47
47
 
48
48
  ### build a mail header for RFC 822
@@ -62,7 +62,7 @@ PROJ = OpenStruct.new(
62
62
  # File Annotations
63
63
  :notes => OpenStruct.new(
64
64
  :exclude => %w(^tasks/setup\.rb$),
65
- :extensions => %w(.txt .rb .erb) << '',
65
+ :extensions => %w(.txt .rb .erb .rdoc) << '',
66
66
  :tags => %w(FIXME OPTIMIZE TODO)
67
67
  ),
68
68
 
@@ -77,7 +77,7 @@ PROJ = OpenStruct.new(
77
77
  # Rdoc
78
78
  :rdoc => OpenStruct.new(
79
79
  :opts => [],
80
- :include => %w(^lib/ ^bin/ ^ext/ \.txt$),
80
+ :include => %w(^lib/ ^bin/ ^ext/ \.txt$ \.rdoc$),
81
81
  :exclude => %w(extconf\.rb$),
82
82
  :main => nil,
83
83
  :dir => 'doc',
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.1.0
4
+ version: 2.1.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-10-15 00:00:00 -06:00
12
+ date: 2008-12-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.8.2
23
+ version: 0.8.3
24
24
  version:
25
25
  description: Mr Bones is a handy tool that builds a skeleton for your new Ruby projects. The skeleton contains some starter code and a collection of rake tasks to ease the management and deployment of your source code. Mr Bones is not viral -- all the code your project needs is included in the skeleton (no gem dependency required).
26
26
  email: tim.pease@gmail.com
@@ -30,7 +30,7 @@ extensions: []
30
30
 
31
31
  extra_rdoc_files:
32
32
  - History.txt
33
- - README.txt
33
+ - README.rdoc
34
34
  - bin/bones
35
35
  - lib/bones/tasks/ann.rake
36
36
  - lib/bones/tasks/bones.rake
@@ -49,7 +49,7 @@ extra_rdoc_files:
49
49
  files:
50
50
  - History.txt
51
51
  - Manifest.txt
52
- - README.txt
52
+ - README.rdoc
53
53
  - Rakefile
54
54
  - bin/bones
55
55
  - data/History.txt.erb
@@ -108,7 +108,7 @@ post_install_message: |
108
108
 
109
109
  rdoc_options:
110
110
  - --main
111
- - README.txt
111
+ - README.rdoc
112
112
  require_paths:
113
113
  - lib
114
114
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  requirements: []
127
127
 
128
128
  rubyforge_project: codeforpeople
129
- rubygems_version: 1.2.0
129
+ rubygems_version: 1.3.1
130
130
  signing_key:
131
131
  specification_version: 2
132
132
  summary: Mr Bones is a handy tool that builds a skeleton for your new Ruby projects