bones-extras 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +10 -0
- data/Rakefile +1 -1
- data/lib/bones/plugins/rcov.rb +7 -5
- data/lib/bones/plugins/rubyforge.rb +9 -5
- data/lib/bones/plugins/spec.rb +6 -3
- metadata +4 -4
data/History.txt
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
== 1.2.1 / 2009-12-01
|
2
|
+
|
3
|
+
* 1 bug fix
|
4
|
+
* Initializing the rubyforge.name if none is given
|
5
|
+
|
6
|
+
== 1.2.0 / 2009-11-21
|
7
|
+
|
8
|
+
* 1 minor enhancement
|
9
|
+
* Config optoins are not loaded if a gem is not installed
|
10
|
+
|
1
11
|
== 1.1.0 / 2009-11-08
|
2
12
|
|
3
13
|
* 1 minor enhancement
|
data/Rakefile
CHANGED
data/lib/bones/plugins/rcov.rb
CHANGED
@@ -4,6 +4,10 @@ module Bones::Plugins::Rcov
|
|
4
4
|
extend self
|
5
5
|
|
6
6
|
def initialize_rcov
|
7
|
+
require 'rcov'
|
8
|
+
require 'rcov/rcovtask'
|
9
|
+
have?(:rcov) { true }
|
10
|
+
|
7
11
|
::Bones.config {
|
8
12
|
desc 'Configuration settings for the Rcov code coverage tool.'
|
9
13
|
rcov {
|
@@ -29,16 +33,14 @@ module Bones::Plugins::Rcov
|
|
29
33
|
__
|
30
34
|
}
|
31
35
|
}
|
36
|
+
rescue LoadError
|
37
|
+
have?(:rcov) { false }
|
32
38
|
end
|
33
39
|
|
34
40
|
def post_load
|
35
|
-
|
36
|
-
require 'rcov/rcovtask'
|
41
|
+
return unless have? :rcov
|
37
42
|
config = ::Bones.config
|
38
43
|
config.exclude << "^#{Regexp.escape(config.rcov.dir)}/"
|
39
|
-
have?(:rcov) { true }
|
40
|
-
rescue LoadError
|
41
|
-
have?(:rcov) { false }
|
42
44
|
end
|
43
45
|
|
44
46
|
def define_tasks
|
@@ -4,6 +4,10 @@ module Bones::Plugins::Rubyforge
|
|
4
4
|
extend self
|
5
5
|
|
6
6
|
def initialize_rubyforge
|
7
|
+
require 'rubyforge'
|
8
|
+
require 'rake/contrib/sshpublisher'
|
9
|
+
have?(:rubyforge) { true }
|
10
|
+
|
7
11
|
::Bones.config {
|
8
12
|
desc 'Configuration settings for RubyForge publishing.'
|
9
13
|
rubyforge {
|
@@ -24,14 +28,14 @@ module Bones::Plugins::Rubyforge
|
|
24
28
|
__
|
25
29
|
}
|
26
30
|
}
|
31
|
+
rescue LoadError
|
32
|
+
have?(:rubyforge) { false }
|
27
33
|
end
|
28
34
|
|
29
35
|
def post_load
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
rescue LoadError => err
|
34
|
-
have?(:rubyforge) { false }
|
36
|
+
return unless have? :rubyforge
|
37
|
+
config = ::Bones.config
|
38
|
+
config.rubyforge.name ||= config.name
|
35
39
|
end
|
36
40
|
|
37
41
|
def define_tasks
|
data/lib/bones/plugins/spec.rb
CHANGED
@@ -4,6 +4,9 @@ module Bones::Plugins::Spec
|
|
4
4
|
extend self
|
5
5
|
|
6
6
|
def initialize_spec
|
7
|
+
require 'spec/rake/spectask'
|
8
|
+
have?(:spec) { true }
|
9
|
+
|
7
10
|
::Bones.config {
|
8
11
|
desc 'Configuration settings for the RSpec test framework.'
|
9
12
|
spec {
|
@@ -19,14 +22,14 @@ module Bones::Plugins::Spec
|
|
19
22
|
__
|
20
23
|
}
|
21
24
|
}
|
25
|
+
rescue LoadError
|
26
|
+
have?(:spec) { false }
|
22
27
|
end
|
23
28
|
|
24
29
|
def post_load
|
25
|
-
|
30
|
+
return unless have? :spec
|
26
31
|
config = ::Bones.config
|
27
32
|
have?(:spec) { !config.spec.files.to_a.empty? }
|
28
|
-
rescue LoadError
|
29
|
-
have?(:spec) { false }
|
30
33
|
end
|
31
34
|
|
32
35
|
def define_tasks
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bones-extras
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1
|
4
|
+
version: 1.2.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: 2009-
|
12
|
+
date: 2009-12-01 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: 3.0
|
23
|
+
version: 3.1.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bones
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.0
|
33
|
+
version: 3.1.0
|
34
34
|
version:
|
35
35
|
description: |-
|
36
36
|
The extras package for Mr Bones provides some handy Rake tasks for running
|