bones 3.7.3 → 3.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ # git-ls-files --others --exclude-from=.git/info/exclude
2
+ # Lines that start with '#' are comments.
3
+ # For a project mostly in C, the following would be a good set of
4
+ # exclude patterns (uncomment them if you want to use them):
5
+ # *.[oa]
6
+ # *~
7
+ announcement.txt
8
+ coverage
9
+ doc
10
+ pkg
11
+ manual.txt
12
+ .yardoc
13
+ .rvmrc
@@ -1,3 +1,13 @@
1
+ == 3.8.0 / 2012-03-05
2
+
3
+ Enhancements
4
+ - updating everything to use RSpec 2
5
+ - add a "remove_task" method
6
+
7
+ Bug Fixes
8
+ - optparse handling error in ruby 1.9
9
+ - remove deprecation warnings
10
+
1
11
  == 3.7.3 / 2011-12-15
2
12
 
3
13
  Bug Fixes
@@ -1,5 +1,5 @@
1
1
 
2
- require File.join(File.dirname(__FILE__), %w[spec_helper])
2
+ require File.expand_path('../spec_helper', __FILE__)
3
3
 
4
4
  describe <%= classname %> do
5
5
  end
@@ -1,15 +1,17 @@
1
1
 
2
- require File.expand_path(
3
- File.join(File.dirname(__FILE__), %w[.. lib <%= name %>]))
2
+ require 'rubygems'
3
+ require 'rspec'
4
4
 
5
- Spec::Runner.configure do |config|
5
+ require File.expand_path('../../lib/<%= name %>', __FILE__)
6
+
7
+ RSpec.configure do |config|
6
8
  # == Mock Framework
7
9
  #
8
10
  # RSpec uses it's own mocking framework by default. If you prefer to
9
11
  # use mocha, flexmock or RR, uncomment the appropriate line:
10
12
  #
11
- # config.mock_with :mocha
12
- # config.mock_with :flexmock
13
- # config.mock_with :rr
13
+ # config.mock_framework = :mocha
14
+ # config.mock_framework = :flexmock
15
+ # config.mock_framework = :rr
14
16
  end
15
17
 
@@ -19,8 +19,8 @@ module Bones
19
19
  HOME = File.expand_path(ENV['HOME'] || ENV['USERPROFILE'])
20
20
 
21
21
  # Ruby Interpreter location - taken from Rake source code
22
- RUBY = File.join(Config::CONFIG['bindir'],
23
- Config::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"')
22
+ RUBY = File.join(RbConfig::CONFIG['bindir'],
23
+ RbConfig::CONFIG['ruby_install_name']).sub(/.*\s.*/m, '"\&"')
24
24
 
25
25
  module Plugins; end
26
26
  # :startdoc:
@@ -137,7 +137,7 @@ class Bones::App::Command
137
137
  def self.standard_options
138
138
  @standard_options ||= {
139
139
  :verbose => ['-v', '--verbose', 'Enable verbose output.',
140
- lambda { config[:verbose] = true }],
140
+ lambda { |_| config[:verbose] = true }],
141
141
 
142
142
  :directory => ['-d', '--directory DIRECTORY', String,
143
143
  'Project directory to create.', '(defaults to project_name)',
@@ -1,7 +1,7 @@
1
1
 
2
2
  # since RDoc v 2.4.2 has RDoc::Task to replace Rake::RDocTask
3
3
  begin
4
- gem 'rdoc' rescue nil # ignore if the RDoc gem is not installed
4
+ gem 'rdoc'
5
5
  require 'rdoc/task'
6
6
  rescue LoadError
7
7
  require 'rake/rdoctask'
@@ -6,20 +6,29 @@
6
6
  #
7
7
 
8
8
  Rake::TaskManager.class_eval do
9
- def alias_task(fq_name)
9
+ def alias_task( fq_name )
10
10
  new_name = "#{fq_name}:original"
11
11
  @tasks[new_name] = @tasks.delete(fq_name)
12
12
  end
13
+
14
+ def remove_task( fq_name )
15
+ @tasks.delete(fq_name.to_s)
16
+ end
13
17
  end
14
18
 
15
- def alias_task(fq_name)
19
+ def alias_task( fq_name )
16
20
  Rake.application.alias_task(fq_name)
17
21
  end
18
22
 
19
- def override_task(*args, &block)
23
+ def override_task( *args, &block )
20
24
  name, params, deps = Rake.application.resolve_args(args.dup)
21
25
  fq_name = Rake.application.instance_variable_get(:@scope).dup.push(name).join(':')
22
26
  alias_task(fq_name)
23
27
  Rake::Task.define_task(*args, &block)
24
28
  end
25
29
 
30
+ def remove_task( *args )
31
+ args.flatten.each { |fq_name| Rake.application.remove_task(fq_name) }
32
+ end
33
+ alias :remove_tasks :remove_task
34
+
@@ -1,5 +1,5 @@
1
1
 
2
- require 'spec_helper'
2
+ require File.expand_path('../../../spec_helper', __FILE__)
3
3
 
4
4
  # --------------------------------------------------------------------------
5
5
  describe Bones::App::FileManager do
@@ -156,4 +156,3 @@ end
156
156
 
157
157
  end
158
158
 
159
- # EOF
@@ -1,5 +1,5 @@
1
1
 
2
- require 'spec_helper'
2
+ require File.expand_path('../../spec_helper', __FILE__)
3
3
 
4
4
  class Runner
5
5
  attr_accessor :name
@@ -89,4 +89,3 @@ describe Bones::App do
89
89
 
90
90
  end # describe Bones::App
91
91
 
92
- # EOF
@@ -1,5 +1,5 @@
1
1
 
2
- require 'spec_helper'
2
+ require File.expand_path('../../spec_helper', __FILE__)
3
3
 
4
4
  describe Bones::Helpers do
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- require 'spec_helper'
2
+ require File.expand_path('../spec_helper', __FILE__)
3
3
 
4
4
  describe Bones do
5
5
 
@@ -19,4 +19,3 @@ describe Bones do
19
19
 
20
20
  end # describe Bones
21
21
 
22
- # EOF
@@ -41,4 +41,3 @@ end
41
41
 
42
42
  end # unless defined?
43
43
 
44
- # EOF
@@ -1 +1 @@
1
- 3.7.3
1
+ 3.8.0
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: 3.7.3
4
+ version: 3.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-16 00:00:00.000000000Z
12
+ date: 2012-03-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &2171878440 !ruby/object:Gem::Requirement
16
+ requirement: &2157600460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.8.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2171878440
24
+ version_requirements: *2157600460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: little-plugger
27
- requirement: &2171877820 !ruby/object:Gem::Requirement
27
+ requirement: &2157599900 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2171877820
35
+ version_requirements: *2157599900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: loquacious
38
- requirement: &2171877280 !ruby/object:Gem::Requirement
38
+ requirement: &2157599400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.9.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2171877280
46
+ version_requirements: *2157599400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &2171876720 !ruby/object:Gem::Requirement
49
+ requirement: &2157598900 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '2.6'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2171876720
57
+ version_requirements: *2157598900
58
58
  description: ! 'Mr Bones is a handy tool that creates new Ruby projects from a code
59
59
 
60
60
  skeleton. The skeleton contains some starter code and a collection of rake
@@ -77,6 +77,7 @@ extra_rdoc_files:
77
77
  - spec/data/rdoc.txt
78
78
  files:
79
79
  - .autotest
80
+ - .gitignore
80
81
  - History.txt
81
82
  - README.rdoc
82
83
  - Rakefile