bones 3.7.3 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +13 -0
- data/History.txt +10 -0
- data/default/spec/NAME_spec.rb.bns +1 -1
- data/default/spec/spec_helper.rb.bns +8 -6
- data/lib/bones.rb +2 -2
- data/lib/bones/app/command.rb +1 -1
- data/lib/bones/plugins/rdoc.rb +1 -1
- data/lib/bones/rake_override_task.rb +12 -3
- data/spec/bones/app/file_manager_spec.rb +1 -2
- data/spec/bones/app_spec.rb +1 -2
- data/spec/bones/helpers_spec.rb +1 -1
- data/spec/bones_spec.rb +1 -2
- data/spec/spec_helper.rb +0 -1
- data/version.txt +1 -1
- metadata +11 -10
data/.gitignore
ADDED
@@ -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
|
data/History.txt
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
|
2
|
-
require
|
3
|
-
|
2
|
+
require 'rubygems'
|
3
|
+
require 'rspec'
|
4
4
|
|
5
|
-
|
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.
|
12
|
-
# config.
|
13
|
-
# config.
|
13
|
+
# config.mock_framework = :mocha
|
14
|
+
# config.mock_framework = :flexmock
|
15
|
+
# config.mock_framework = :rr
|
14
16
|
end
|
15
17
|
|
data/lib/bones.rb
CHANGED
@@ -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(
|
23
|
-
|
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:
|
data/lib/bones/app/command.rb
CHANGED
@@ -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)',
|
data/lib/bones/plugins/rdoc.rb
CHANGED
@@ -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
|
+
|
data/spec/bones/app_spec.rb
CHANGED
data/spec/bones/helpers_spec.rb
CHANGED
data/spec/bones_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
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.
|
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:
|
12
|
+
date: 2012-03-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
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: *
|
24
|
+
version_requirements: *2157600460
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: little-plugger
|
27
|
-
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: *
|
35
|
+
version_requirements: *2157599900
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: loquacious
|
38
|
-
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: *
|
46
|
+
version_requirements: *2157599400
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
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: *
|
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
|