bozo-scripts 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE +18 -18
- data/VERSION +1 -1
- data/lib/bozo/compilers/msbuild.rb +299 -279
- data/lib/bozo/configuration.rb +154 -154
- data/lib/bozo/dependency_resolvers/bundler.rb +53 -53
- data/lib/bozo/dependency_resolvers/nuget.rb +85 -85
- data/lib/bozo/erubis_templating_coordinator.rb +127 -127
- data/lib/bozo/hooks/fxcop.rb +151 -151
- data/lib/bozo/hooks/git_commit_hashes.rb +11 -11
- data/lib/bozo/hooks/git_hub.rb +79 -79
- data/lib/bozo/hooks/git_tag_release.rb +22 -22
- data/lib/bozo/hooks/hipchat.rb +101 -101
- data/lib/bozo/hooks/jenkins.rb +18 -18
- data/lib/bozo/hooks/teamcity.rb +91 -91
- data/lib/bozo/hooks/timing.rb +40 -40
- data/lib/bozo/packagers/nuget.rb +226 -226
- data/lib/bozo/packagers/rubygems.rb +23 -23
- data/lib/bozo/preparers/common_assembly_info.rb +34 -34
- data/lib/bozo/preparers/file_templating.rb +152 -152
- data/lib/bozo/publishers/file_copy.rb +82 -82
- data/lib/bozo/publishers/rubygems.rb +17 -17
- data/lib/bozo/test_runners/dotcover.rb +157 -157
- data/lib/bozo/test_runners/nunit.rb +130 -130
- data/lib/bozo/test_runners/runit.rb +34 -34
- data/lib/bozo/version.rb +4 -4
- data/lib/bozo_scripts.rb +29 -29
- metadata +5 -23
@@ -1,35 +1,35 @@
|
|
1
|
-
module Bozo::TestRunners
|
2
|
-
|
3
|
-
class Runit
|
4
|
-
|
5
|
-
def initialize
|
6
|
-
@paths = []
|
7
|
-
end
|
8
|
-
|
9
|
-
def path(path)
|
10
|
-
@paths << path
|
11
|
-
end
|
12
|
-
|
13
|
-
def execute
|
14
|
-
require 'test/unit'
|
15
|
-
|
16
|
-
test_files = []
|
17
|
-
|
18
|
-
@paths.each do |p|
|
19
|
-
Dir[p].select {|f| (File.extname f) == '.rb'}.each {|f| test_files << f}
|
20
|
-
end
|
21
|
-
|
22
|
-
# raise an error if no test files were found. This may indicate a configuration issue
|
23
|
-
raise Bozo::ConfigurationError.new "No tests found" unless test_files.any?
|
24
|
-
raise Bozo::ExecutionError.new(:runit, test_files, -1) unless execute_tests test_files
|
25
|
-
end
|
26
|
-
|
27
|
-
private
|
28
|
-
|
29
|
-
def execute_tests(test_files)
|
30
|
-
Test::Unit::AutoRunner.run(true, nil, test_files)
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
|
1
|
+
module Bozo::TestRunners
|
2
|
+
|
3
|
+
class Runit
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@paths = []
|
7
|
+
end
|
8
|
+
|
9
|
+
def path(path)
|
10
|
+
@paths << path
|
11
|
+
end
|
12
|
+
|
13
|
+
def execute
|
14
|
+
require 'test/unit'
|
15
|
+
|
16
|
+
test_files = []
|
17
|
+
|
18
|
+
@paths.each do |p|
|
19
|
+
Dir[p].select {|f| (File.extname f) == '.rb'}.each {|f| test_files << f}
|
20
|
+
end
|
21
|
+
|
22
|
+
# raise an error if no test files were found. This may indicate a configuration issue
|
23
|
+
raise Bozo::ConfigurationError.new "No tests found" unless test_files.any?
|
24
|
+
raise Bozo::ExecutionError.new(:runit, test_files, -1) unless execute_tests test_files
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def execute_tests(test_files)
|
30
|
+
Test::Unit::AutoRunner.run(true, nil, test_files)
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
35
|
end
|
data/lib/bozo/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module BozoScripts
|
2
|
-
|
3
|
-
VERSION = File.read(File.expand_path(File.dirname(File.realpath(__FILE__)) + '/../../VERSION')).strip
|
4
|
-
|
1
|
+
module BozoScripts
|
2
|
+
|
3
|
+
VERSION = File.read(File.expand_path(File.dirname(File.realpath(__FILE__)) + '/../../VERSION')).strip
|
4
|
+
|
5
5
|
end
|
data/lib/bozo_scripts.rb
CHANGED
@@ -1,29 +1,29 @@
|
|
1
|
-
$:.push File.expand_path(File.dirname(__FILE__))
|
2
|
-
|
3
|
-
require 'fileutils'
|
4
|
-
require 'rainbow'
|
5
|
-
require 'bozo'
|
6
|
-
|
7
|
-
require 'bozo/compilers/msbuild'
|
8
|
-
require 'bozo/dependency_resolvers/bundler'
|
9
|
-
require 'bozo/dependency_resolvers/nuget'
|
10
|
-
require 'bozo/hooks/fxcop'
|
11
|
-
require 'bozo/hooks/git_commit_hashes'
|
12
|
-
require 'bozo/hooks/git_tag_release'
|
13
|
-
require 'bozo/hooks/git_hub'
|
14
|
-
require 'bozo/hooks/hipchat'
|
15
|
-
require 'bozo/hooks/jenkins'
|
16
|
-
require 'bozo/hooks/teamcity'
|
17
|
-
require 'bozo/hooks/timing'
|
18
|
-
require 'bozo/packagers/rubygems'
|
19
|
-
require 'bozo/packagers/nuget'
|
20
|
-
require 'bozo/preparers/common_assembly_info'
|
21
|
-
require 'bozo/preparers/file_templating'
|
22
|
-
require 'bozo/publishers/file_copy'
|
23
|
-
require 'bozo/publishers/rubygems'
|
24
|
-
require 'bozo/test_runners/dotcover'
|
25
|
-
require 'bozo/test_runners/nunit'
|
26
|
-
require 'bozo/test_runners/runit'
|
27
|
-
require 'bozo/configuration'
|
28
|
-
require 'bozo/erubis_templating_coordinator'
|
29
|
-
require 'bozo/version'
|
1
|
+
$:.push File.expand_path(File.dirname(__FILE__))
|
2
|
+
|
3
|
+
require 'fileutils'
|
4
|
+
require 'rainbow'
|
5
|
+
require 'bozo'
|
6
|
+
|
7
|
+
require 'bozo/compilers/msbuild'
|
8
|
+
require 'bozo/dependency_resolvers/bundler'
|
9
|
+
require 'bozo/dependency_resolvers/nuget'
|
10
|
+
require 'bozo/hooks/fxcop'
|
11
|
+
require 'bozo/hooks/git_commit_hashes'
|
12
|
+
require 'bozo/hooks/git_tag_release'
|
13
|
+
require 'bozo/hooks/git_hub'
|
14
|
+
require 'bozo/hooks/hipchat'
|
15
|
+
require 'bozo/hooks/jenkins'
|
16
|
+
require 'bozo/hooks/teamcity'
|
17
|
+
require 'bozo/hooks/timing'
|
18
|
+
require 'bozo/packagers/rubygems'
|
19
|
+
require 'bozo/packagers/nuget'
|
20
|
+
require 'bozo/preparers/common_assembly_info'
|
21
|
+
require 'bozo/preparers/file_templating'
|
22
|
+
require 'bozo/publishers/file_copy'
|
23
|
+
require 'bozo/publishers/rubygems'
|
24
|
+
require 'bozo/test_runners/dotcover'
|
25
|
+
require 'bozo/test_runners/nunit'
|
26
|
+
require 'bozo/test_runners/runit'
|
27
|
+
require 'bozo/configuration'
|
28
|
+
require 'bozo/erubis_templating_coordinator'
|
29
|
+
require 'bozo/version'
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bozo-scripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.11
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Garry Shutler
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: nokogiri
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: erubis
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: test-unit
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,7 +56,6 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: bozo
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ~>
|
69
61
|
- !ruby/object:Gem::Version
|
@@ -71,7 +63,6 @@ dependencies:
|
|
71
63
|
type: :runtime
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ~>
|
77
68
|
- !ruby/object:Gem::Version
|
@@ -79,7 +70,6 @@ dependencies:
|
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: zip
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
74
|
- - ~>
|
85
75
|
- !ruby/object:Gem::Version
|
@@ -87,7 +77,6 @@ dependencies:
|
|
87
77
|
type: :runtime
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
81
|
- - ~>
|
93
82
|
- !ruby/object:Gem::Version
|
@@ -128,32 +117,25 @@ files:
|
|
128
117
|
- LICENSE
|
129
118
|
homepage: https://github.com/zopaUK/bozo-scripts
|
130
119
|
licenses: []
|
120
|
+
metadata: {}
|
131
121
|
post_install_message:
|
132
122
|
rdoc_options: []
|
133
123
|
require_paths:
|
134
124
|
- lib
|
135
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
136
|
-
none: false
|
137
126
|
requirements:
|
138
127
|
- - ! '>='
|
139
128
|
- !ruby/object:Gem::Version
|
140
129
|
version: '0'
|
141
|
-
segments:
|
142
|
-
- 0
|
143
|
-
hash: -2293458282868325952
|
144
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
131
|
requirements:
|
147
132
|
- - ! '>='
|
148
133
|
- !ruby/object:Gem::Version
|
149
134
|
version: '0'
|
150
|
-
segments:
|
151
|
-
- 0
|
152
|
-
hash: -2293458282868325952
|
153
135
|
requirements: []
|
154
136
|
rubyforge_project: bozo-scripts
|
155
|
-
rubygems_version:
|
137
|
+
rubygems_version: 2.0.3
|
156
138
|
signing_key:
|
157
|
-
specification_version:
|
139
|
+
specification_version: 4
|
158
140
|
summary: Zopa build system scripts
|
159
141
|
test_files: []
|