webkit-rspec-formatter 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.md +7 -0
- data/README.md +10 -20
- data/Rakefile +16 -362
- metadata +68 -126
- metadata.gz.sig +0 -0
- data/ChangeLog +0 -81
- data/LICENSE +0 -27
- data/data/webkit-rspec-formatter/css/textmate-rspec.css +0 -332
- data/data/webkit-rspec-formatter/images/clock.png +0 -0
- data/data/webkit-rspec-formatter/images/cross_circle.png +0 -0
- data/data/webkit-rspec-formatter/images/cross_circle_frame.png +0 -0
- data/data/webkit-rspec-formatter/images/cross_octagon.png +0 -0
- data/data/webkit-rspec-formatter/images/cross_octagon_frame.png +0 -0
- data/data/webkit-rspec-formatter/images/cross_shield.png +0 -0
- data/data/webkit-rspec-formatter/images/exclamation.png +0 -0
- data/data/webkit-rspec-formatter/images/exclamation_frame.png +0 -0
- data/data/webkit-rspec-formatter/images/exclamation_shield.png +0 -0
- data/data/webkit-rspec-formatter/images/exclamation_small.png +0 -0
- data/data/webkit-rspec-formatter/images/plus_circle.png +0 -0
- data/data/webkit-rspec-formatter/images/plus_circle_frame.png +0 -0
- data/data/webkit-rspec-formatter/images/question.png +0 -0
- data/data/webkit-rspec-formatter/images/question_frame.png +0 -0
- data/data/webkit-rspec-formatter/images/question_shield.png +0 -0
- data/data/webkit-rspec-formatter/images/question_small.png +0 -0
- data/data/webkit-rspec-formatter/images/tick.png +0 -0
- data/data/webkit-rspec-formatter/images/tick_circle.png +0 -0
- data/data/webkit-rspec-formatter/images/tick_circle_frame.png +0 -0
- data/data/webkit-rspec-formatter/images/tick_shield.png +0 -0
- data/data/webkit-rspec-formatter/images/tick_small.png +0 -0
- data/data/webkit-rspec-formatter/images/tick_small_circle.png +0 -0
- data/data/webkit-rspec-formatter/images/ticket.png +0 -0
- data/data/webkit-rspec-formatter/images/ticket_arrow.png +0 -0
- data/data/webkit-rspec-formatter/images/ticket_exclamation.png +0 -0
- data/data/webkit-rspec-formatter/images/ticket_minus.png +0 -0
- data/data/webkit-rspec-formatter/images/ticket_pencil.png +0 -0
- data/data/webkit-rspec-formatter/images/ticket_plus.png +0 -0
- data/data/webkit-rspec-formatter/images/ticket_small.png +0 -0
- data/data/webkit-rspec-formatter/js/jquery-1.4.2.min.js +0 -154
- data/data/webkit-rspec-formatter/js/textmate-rspec.js +0 -402
- data/data/webkit-rspec-formatter/templates/failed.rhtml +0 -35
- data/data/webkit-rspec-formatter/templates/footer.rhtml +0 -9
- data/data/webkit-rspec-formatter/templates/header.rhtml +0 -35
- data/data/webkit-rspec-formatter/templates/page.rhtml +0 -131
- data/data/webkit-rspec-formatter/templates/passed.rhtml +0 -10
- data/data/webkit-rspec-formatter/templates/pending-fixed.rhtml +0 -25
- data/data/webkit-rspec-formatter/templates/pending.rhtml +0 -14
- data/lib/rspec/core/formatters/web_kit.rb +0 -4
- data/lib/rspec/core/formatters/webkit.rb +0 -222
- data/lib/rspec/mate/runner.rb +0 -65
- data/rake/191_compat.rb +0 -26
- data/rake/dependencies.rb +0 -76
- data/rake/documentation.rb +0 -123
- data/rake/helpers.rb +0 -502
- data/rake/hg.rb +0 -287
- data/rake/manual.rb +0 -787
- data/rake/packaging.rb +0 -129
- data/rake/publishing.rb +0 -341
- data/rake/style.rb +0 -62
- data/rake/svn.rb +0 -668
- data/rake/testing.rb +0 -151
- data/rake/verifytask.rb +0 -64
data.tar.gz.sig
CHANGED
Binary file
|
data/History.md
ADDED
data/README.md
CHANGED
@@ -1,26 +1,16 @@
|
|
1
|
-
#
|
1
|
+
# Placeholder Gem for rspec-formatter-webkit
|
2
2
|
|
3
|
-
|
3
|
+
http://deveiate.org/webkit-rspec-formatter.html
|
4
4
|
|
5
|
-
|
5
|
+
## Description
|
6
6
|
|
7
|
-
|
7
|
+
This is a placeholder gem for the WebKit Formatter for RSpec.
|
8
8
|
|
9
|
-
|
9
|
+
The gem was renamed to 'rspec-formatter-webkit' to better
|
10
|
+
follow standard gem-naming conventions. The new gem is a dependency
|
11
|
+
of this one, so installing this should install the latest
|
12
|
+
version for you, but you'll need to use the new name in the future.
|
10
13
|
|
11
|
-
|
12
|
-
|
13
|
-
$ gem install webkit-rspec-formatter
|
14
|
-
|
15
|
-
If you're running specs in Textmate via [the RSpec bundle](http://github.com/rspec/rspec-tmbundle), you can use the webkit formatter by opening Textmate's 'Advanced' Preferences and adding a `TM_RSPEC_OPTS` Shell Variable with the value `--format RSpec::Core::Formatters::WebKit`:
|
16
|
-
|
17
|
-
![Setting TM_RSPEC_OPTS](http://deveiate.org/images/tmrspecopts-shellvar.png)
|
18
|
-
|
19
|
-
That's it!
|
20
|
-
|
21
|
-
## Miscellaneous
|
22
|
-
|
23
|
-
It's also usable anywhere else the standard HTML formatter is, of course. Also, while it's specifically intended to be used under the Textmate HTML viewer that the RSpec bundle uses, the output should work fine under recent Gecko/Firefox-based viewers, as well.
|
24
|
-
|
25
|
-
Patches/suggestions welcomed.
|
14
|
+
You should do a 'gem cleanup webkit-rspec-formatter' to remove any
|
15
|
+
previously-installed versions if you have them.
|
26
16
|
|
data/Rakefile
CHANGED
@@ -1,371 +1,25 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# WebKit-RSpec-Formatter rakefile
|
4
|
-
#
|
5
|
-
# Based on various other Rakefiles, especially one by Ben Bleything
|
6
|
-
#
|
7
|
-
# Copyright (c) 2007-2010 The FaerieMUD Consortium
|
8
|
-
#
|
9
|
-
# Authors:
|
10
|
-
# * Michael Granger <ged@FaerieMUD.org>
|
11
|
-
#
|
1
|
+
#!/usr/bin/env rake
|
12
2
|
|
13
|
-
|
14
|
-
require 'rbconfig'
|
15
|
-
require 'pathname'
|
16
|
-
basedir = Pathname.new( __FILE__ ).dirname
|
3
|
+
require 'hoe'
|
17
4
|
|
18
|
-
|
19
|
-
|
5
|
+
Hoe.plugin :hg
|
6
|
+
Hoe.plugin :yard
|
7
|
+
Hoe.plugin :signing
|
20
8
|
|
21
|
-
|
22
|
-
$LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
|
23
|
-
$LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
|
24
|
-
}
|
9
|
+
Hoe.plugins.delete :rubyforge
|
25
10
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
$stderr.print( text.chomp )
|
33
|
-
return $stdin.gets
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
begin
|
38
|
-
require 'rubygems'
|
39
|
-
rescue LoadError
|
40
|
-
module Gem
|
41
|
-
class Specification; end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
require 'rbconfig'
|
46
|
-
require 'rake'
|
47
|
-
require 'rake/testtask'
|
48
|
-
require 'rake/packagetask'
|
49
|
-
require 'rake/clean'
|
50
|
-
# require 'rake/191_compat.rb'
|
51
|
-
|
52
|
-
$dryrun = false
|
53
|
-
|
54
|
-
### Config constants
|
55
|
-
BASEDIR = Pathname.new( __FILE__ ).dirname.relative_path_from( Pathname.getwd )
|
56
|
-
BINDIR = BASEDIR + 'bin'
|
57
|
-
LIBDIR = BASEDIR + 'lib'
|
58
|
-
EXTDIR = BASEDIR + 'ext'
|
59
|
-
DOCSDIR = BASEDIR + 'docs'
|
60
|
-
PKGDIR = BASEDIR + 'pkg'
|
61
|
-
DATADIR = BASEDIR + 'data'
|
62
|
-
|
63
|
-
MANUALDIR = DOCSDIR + 'manual'
|
64
|
-
|
65
|
-
PROJECT_NAME = 'WebKit-RSpec-Formatter'
|
66
|
-
PKG_NAME = PROJECT_NAME.downcase
|
67
|
-
PKG_SUMMARY = 'A webkit-aware pretty formatter for RSpec'
|
68
|
-
|
69
|
-
# Cruisecontrol stuff
|
70
|
-
CC_BUILD_LABEL = ENV['CC_BUILD_LABEL']
|
71
|
-
CC_BUILD_ARTIFACTS = ENV['CC_BUILD_ARTIFACTS'] || 'artifacts'
|
72
|
-
|
73
|
-
VERSION_FILE = LIBDIR + 'rspec/core/formatters/webkit.rb'
|
74
|
-
if VERSION_FILE.exist? && buildrev = ENV['CC_BUILD_LABEL']
|
75
|
-
PKG_VERSION = VERSION_FILE.read[ /VERSION\s*=\s*['"](\d+\.\d+\.\d+)['"]/, 1 ] + '.' + buildrev
|
76
|
-
elsif VERSION_FILE.exist?
|
77
|
-
PKG_VERSION = VERSION_FILE.read[ /VERSION\s*=\s*['"](\d+\.\d+\.\d+)['"]/, 1 ]
|
78
|
-
end
|
79
|
-
|
80
|
-
PKG_VERSION = '0.0.0' unless defined?( PKG_VERSION ) && !PKG_VERSION.nil?
|
81
|
-
|
82
|
-
PKG_FILE_NAME = "#{PKG_NAME.downcase}-#{PKG_VERSION}"
|
83
|
-
GEM_FILE_NAME = "#{PKG_FILE_NAME}.gem"
|
84
|
-
|
85
|
-
# Universal VCS constants
|
86
|
-
DEFAULT_EDITOR = 'vi'
|
87
|
-
COMMIT_MSG_FILE = 'commit-msg.txt'
|
88
|
-
FILE_INDENT = " " * 12
|
89
|
-
LOG_INDENT = " " * 3
|
90
|
-
|
91
|
-
EXTCONF = EXTDIR + 'extconf.rb'
|
92
|
-
|
93
|
-
ARTIFACTS_DIR = Pathname.new( CC_BUILD_ARTIFACTS )
|
94
|
-
|
95
|
-
TEXT_FILES = Rake::FileList.new( %w[Rakefile ChangeLog README* LICENSE] )
|
96
|
-
BIN_FILES = Rake::FileList.new( "#{BINDIR}/*" )
|
97
|
-
LIB_FILES = Rake::FileList.new( "#{LIBDIR}/**/*.rb" )
|
98
|
-
EXT_FILES = Rake::FileList.new( "#{EXTDIR}/**/*.{c,h,rb}" )
|
99
|
-
DATA_FILES = Rake::FileList.new( "#{DATADIR}/**/*" )
|
100
|
-
|
101
|
-
SPECDIR = BASEDIR + 'spec'
|
102
|
-
SPECLIBDIR = SPECDIR + 'lib'
|
103
|
-
SPEC_FILES = Rake::FileList.new( "#{SPECDIR}/**/*_spec.rb", "#{SPECLIBDIR}/**/*.rb" )
|
104
|
-
|
105
|
-
TESTDIR = BASEDIR + 'tests'
|
106
|
-
TEST_FILES = Rake::FileList.new( "#{TESTDIR}/**/*.tests.rb" )
|
107
|
-
|
108
|
-
RAKE_TASKDIR = BASEDIR + 'rake'
|
109
|
-
RAKE_TASKLIBS = Rake::FileList.new( "#{RAKE_TASKDIR}/*.rb" )
|
110
|
-
PKG_TASKLIBS = Rake::FileList.new( "#{RAKE_TASKDIR}/{191_compat,helpers,packaging,rdoc,testing}.rb" )
|
111
|
-
PKG_TASKLIBS.include( "#{RAKE_TASKDIR}/manual.rb" ) if MANUALDIR.exist?
|
112
|
-
|
113
|
-
RAKE_TASKLIBS_URL = 'http://repo.deveiate.org/rake-tasklibs'
|
114
|
-
|
115
|
-
LOCAL_RAKEFILE = BASEDIR + 'Rakefile.local'
|
116
|
-
|
117
|
-
EXTRA_PKGFILES = Rake::FileList.new
|
118
|
-
EXTRA_PKGFILES.include( "#{BASEDIR}/data/**/*" )
|
119
|
-
|
120
|
-
RELEASE_FILES = TEXT_FILES +
|
121
|
-
SPEC_FILES +
|
122
|
-
TEST_FILES +
|
123
|
-
BIN_FILES +
|
124
|
-
LIB_FILES +
|
125
|
-
EXT_FILES +
|
126
|
-
DATA_FILES +
|
127
|
-
RAKE_TASKLIBS +
|
128
|
-
EXTRA_PKGFILES
|
129
|
-
|
130
|
-
|
131
|
-
RELEASE_FILES << LOCAL_RAKEFILE.to_s if LOCAL_RAKEFILE.exist?
|
132
|
-
|
133
|
-
RELEASE_ANNOUNCE_ADDRESSES = [
|
134
|
-
"Ruby-Talk List <ruby-talk@ruby-lang.org>",
|
135
|
-
]
|
136
|
-
|
137
|
-
COVERAGE_MINIMUM = ENV['COVERAGE_MINIMUM'] ? Float( ENV['COVERAGE_MINIMUM'] ) : 85.0
|
138
|
-
RCOV_EXCLUDES = 'spec,tests,/Library/Ruby,/var/lib,/usr/local/lib'
|
139
|
-
RCOV_OPTS = [
|
140
|
-
'--exclude', RCOV_EXCLUDES,
|
141
|
-
'--xrefs',
|
142
|
-
'--save',
|
143
|
-
'--callsites',
|
144
|
-
#'--aggregate', 'coverage.data' # <- doesn't work as of 0.8.1.2.0
|
145
|
-
]
|
146
|
-
|
147
|
-
|
148
|
-
### Load some task libraries that need to be loaded early
|
149
|
-
if !RAKE_TASKDIR.exist?
|
150
|
-
$stderr.puts "It seems you don't have the build task directory. Shall I fetch it "
|
151
|
-
ans = readline( "for you? [y]" )
|
152
|
-
ans = 'y' if !ans.nil? && ans.empty?
|
153
|
-
|
154
|
-
if ans =~ /^y/i
|
155
|
-
$stderr.puts "Okay, fetching #{RAKE_TASKLIBS_URL} into #{RAKE_TASKDIR}..."
|
156
|
-
system 'hg', 'clone', RAKE_TASKLIBS_URL, "./#{RAKE_TASKDIR}"
|
157
|
-
if ! $?.success?
|
158
|
-
fail "Damn. That didn't work. Giving up; maybe try manually fetching?"
|
159
|
-
end
|
160
|
-
else
|
161
|
-
$stderr.puts "Then I'm afraid I can't continue. Best of luck."
|
162
|
-
fail "Rake tasklibs not present."
|
163
|
-
end
|
164
|
-
|
165
|
-
RAKE_TASKLIBS.include( "#{RAKE_TASKDIR}/*.rb" )
|
166
|
-
end
|
167
|
-
|
168
|
-
require RAKE_TASKDIR + 'helpers.rb'
|
169
|
-
include RakefileHelpers
|
170
|
-
|
171
|
-
# Set the build ID if the mercurial executable is available
|
172
|
-
if hg = which( 'hg' )
|
173
|
-
id = `#{hg} id -n`.chomp
|
174
|
-
PKG_BUILD = (id.chomp[ /^[[:xdigit:]]+/ ] || '1')
|
175
|
-
else
|
176
|
-
PKG_BUILD = '0'
|
177
|
-
end
|
178
|
-
SNAPSHOT_PKG_NAME = "#{PKG_FILE_NAME}.#{PKG_BUILD}"
|
179
|
-
SNAPSHOT_GEM_NAME = "#{SNAPSHOT_PKG_NAME}.gem"
|
11
|
+
hoespec = Hoe.spec 'webkit-rspec-formatter' do
|
12
|
+
self.readme_file = 'README.md'
|
13
|
+
self.developer 'Michael Granger', 'ged@FaerieMUD.org'
|
14
|
+
self.extra_deps << ['rspec-formatter-webkit', '>= 2.1.0']
|
15
|
+
self.spec_extras[:signing_key] = '/Volumes/Keys/ged-private_gem_key.pem'
|
16
|
+
self.version = '2.0.2'
|
180
17
|
|
181
|
-
|
182
|
-
API_DOCSDIR = DOCSDIR + 'api'
|
183
|
-
README_FILE = TEXT_FILES.find {|path| path =~ /^README/ } || 'README'
|
184
|
-
RDOC_OPTIONS = [
|
185
|
-
'--tab-width=4',
|
186
|
-
'--show-hash',
|
187
|
-
'--include', BASEDIR.to_s,
|
188
|
-
"--main=#{README_FILE}",
|
189
|
-
"--title=#{PKG_NAME}",
|
190
|
-
]
|
191
|
-
YARD_OPTIONS = [
|
192
|
-
'--use-cache',
|
193
|
-
'--no-private',
|
194
|
-
'--protected',
|
195
|
-
'-r', README_FILE,
|
196
|
-
'--exclude', 'extconf\\.rb',
|
197
|
-
'--files', 'ChangeLog,LICENSE',
|
198
|
-
'--output-dir', API_DOCSDIR.to_s,
|
199
|
-
'--title', "#{PKG_NAME} #{PKG_VERSION}",
|
200
|
-
]
|
201
|
-
|
202
|
-
# Release constants
|
203
|
-
SMTP_HOST = "mail.faeriemud.org"
|
204
|
-
SMTP_PORT = 465 # SMTP + SSL
|
205
|
-
|
206
|
-
# Project constants
|
207
|
-
PROJECT_HOST = 'deveiate'
|
208
|
-
PROJECT_PUBDIR = '/usr/local/www/public/code/'
|
209
|
-
PROJECT_DOCDIR = "#{PROJECT_PUBDIR}/#{PKG_NAME}"
|
210
|
-
PROJECT_SCPPUBURL = "#{PROJECT_HOST}:#{PROJECT_PUBDIR}"
|
211
|
-
PROJECT_SCPDOCURL = "#{PROJECT_HOST}:#{PROJECT_DOCDIR}"
|
212
|
-
|
213
|
-
GEM_PUBHOST = 'rubygems.org'
|
214
|
-
|
215
|
-
# Gem dependencies: gemname => version
|
216
|
-
DEPENDENCIES = {
|
217
|
-
'rspec-core' => '>=2.0.1',
|
218
|
-
}
|
219
|
-
|
220
|
-
# Developer Gem dependencies: gemname => version
|
221
|
-
DEVELOPMENT_DEPENDENCIES = {
|
222
|
-
'rake' => '>= 0.8.7',
|
223
|
-
'rcodetools' => '>= 0.7.0.0',
|
224
|
-
'rcov' => '>= 0.8.1.2.0',
|
225
|
-
'rdoc' => '>= 2.4.3',
|
226
|
-
'RedCloth' => '>= 4.0.3',
|
227
|
-
'rspec' => '>= 1.2.6',
|
228
|
-
'ruby-termios' => '>= 0.9.6',
|
229
|
-
'text-format' => '>= 1.0.0',
|
230
|
-
'tmail' => '>= 1.2.3.1',
|
231
|
-
'diff-lcs' => '>= 1.1.2',
|
232
|
-
}
|
233
|
-
|
234
|
-
# Non-gem requirements: packagename => version
|
235
|
-
REQUIREMENTS = {
|
236
|
-
'Rspec-Bundle' => '>=0',
|
237
|
-
'Textmate' => '>=0',
|
238
|
-
}
|
239
|
-
|
240
|
-
# RubyGem specification
|
241
|
-
GEMSPEC = Gem::Specification.new do |gem|
|
242
|
-
gem.name = PKG_NAME.downcase
|
243
|
-
gem.version = PKG_VERSION
|
244
|
-
|
245
|
-
gem.summary = PKG_SUMMARY
|
246
|
-
gem.description = [
|
247
|
-
"This is a formatter for RSpec that takes advantage of some of the advanced features of the webkit",
|
248
|
-
"HTML engine, like the one TextMate uses for its output.",
|
249
|
-
].join( "\n" )
|
250
|
-
gem.post_install_message = [
|
251
|
-
"",
|
252
|
-
"You can use this formatter from TextMate (if you're using RSpec 2.0.0 ",
|
253
|
-
"or later) bysetting the TM_RSPEC_OPTS shell variable (in the ",
|
254
|
-
"'Advanced' preference pane) to:",
|
255
|
-
"",
|
256
|
-
" --format RSpec::Core::Formatters::WebKit",
|
257
|
-
"",
|
258
|
-
"Have fun!",
|
259
|
-
].join( "\n" )
|
260
|
-
|
261
|
-
gem.authors = "Michael Granger"
|
262
|
-
gem.email = ["ged@FaerieMUD.org"]
|
263
|
-
gem.homepage = 'http://deveiate.org/webkit-rspec-formatter.html'
|
264
|
-
|
265
|
-
gem.has_rdoc = true
|
266
|
-
gem.rdoc_options = RDOC_OPTIONS
|
267
|
-
gem.extra_rdoc_files = TEXT_FILES - [ 'Rakefile' ]
|
268
|
-
|
269
|
-
gem.bindir = BINDIR.relative_path_from(BASEDIR).to_s
|
270
|
-
gem.executables = BIN_FILES.select {|pn| File.executable?(pn) }.
|
271
|
-
collect {|pn| File.basename(pn) }
|
272
|
-
gem.require_paths << EXTDIR.relative_path_from( BASEDIR ).to_s if EXTDIR.exist?
|
273
|
-
|
274
|
-
if EXTCONF.exist?
|
275
|
-
gem.extensions << EXTCONF.relative_path_from( BASEDIR ).to_s
|
276
|
-
end
|
277
|
-
|
278
|
-
gem.files = RELEASE_FILES
|
279
|
-
gem.test_files = SPEC_FILES
|
280
|
-
|
281
|
-
# signing key and certificate chain
|
282
|
-
gem.signing_key = '/Volumes/Keys/ged-private_gem_key.pem'
|
283
|
-
gem.cert_chain = [File.expand_path('~/.gem/ged-public_gem_cert.pem')]
|
284
|
-
|
285
|
-
|
286
|
-
DEPENDENCIES.each do |name, version|
|
287
|
-
version = '>= 0' if version.length.zero?
|
288
|
-
gem.add_runtime_dependency( name, version )
|
289
|
-
end
|
290
|
-
|
291
|
-
REQUIREMENTS.each do |name, version|
|
292
|
-
gem.requirements << [ name, version ].compact.join(' ')
|
293
|
-
end
|
294
|
-
end
|
295
|
-
|
296
|
-
$trace = Rake.application.options.trace ? true : false
|
297
|
-
$dryrun = Rake.application.options.dryrun ? true : false
|
298
|
-
$include_dev_dependencies = false
|
299
|
-
|
300
|
-
# Load any remaining task libraries
|
301
|
-
RAKE_TASKLIBS.each do |tasklib|
|
302
|
-
next if tasklib.to_s =~ %r{/helpers\.rb$}
|
303
|
-
begin
|
304
|
-
trace " loading tasklib %s" % [ tasklib ]
|
305
|
-
import tasklib
|
306
|
-
rescue ScriptError => err
|
307
|
-
fail "Task library '%s' failed to load: %s: %s" %
|
308
|
-
[ tasklib, err.class.name, err.message ]
|
309
|
-
trace "Backtrace: \n " + err.backtrace.join( "\n " )
|
310
|
-
rescue => err
|
311
|
-
log "Task library '%s' failed to load: %s: %s. Some tasks may not be available." %
|
312
|
-
[ tasklib, err.class.name, err.message ]
|
313
|
-
trace "Backtrace: \n " + err.backtrace.join( "\n " )
|
314
|
-
end
|
315
|
-
end
|
316
|
-
|
317
|
-
# Load any project-specific rules defined in 'Rakefile.local' if it exists
|
318
|
-
import LOCAL_RAKEFILE if LOCAL_RAKEFILE.exist?
|
319
|
-
|
320
|
-
|
321
|
-
#####################################################################
|
322
|
-
### T A S K S
|
323
|
-
#####################################################################
|
324
|
-
|
325
|
-
### Default task
|
326
|
-
task :default => [:clean, :local, :spec, :apidocs, :package]
|
327
|
-
|
328
|
-
### Task the local Rakefile can append to -- no-op by default
|
329
|
-
task :local
|
330
|
-
|
331
|
-
### Task: clean
|
332
|
-
CLEAN.include 'coverage', '**/*.orig', '**/*.rej'
|
333
|
-
CLOBBER.include 'artifacts', 'coverage.info', 'ChangeLog', PKGDIR
|
334
|
-
|
335
|
-
### Task: changelog
|
336
|
-
file 'ChangeLog' do |task|
|
337
|
-
log "Updating #{task.name}"
|
338
|
-
|
339
|
-
changelog = make_changelog()
|
340
|
-
File.open( task.name, 'w' ) do |fh|
|
341
|
-
fh.print( changelog )
|
342
|
-
end
|
343
|
-
end
|
344
|
-
|
345
|
-
|
346
|
-
### Task: cruise (Cruisecontrol task)
|
347
|
-
desc "Cruisecontrol build"
|
348
|
-
task :cruise => [:clean, 'spec:quiet', :package] do |task|
|
349
|
-
raise "Artifacts dir not set." if ARTIFACTS_DIR.to_s.empty?
|
350
|
-
artifact_dir = ARTIFACTS_DIR.cleanpath + (CC_BUILD_LABEL || Time.now.strftime('%Y%m%d-%T'))
|
351
|
-
artifact_dir.mkpath
|
352
|
-
|
353
|
-
coverage = BASEDIR + 'coverage'
|
354
|
-
if coverage.exist? && coverage.directory?
|
355
|
-
$stderr.puts "Copying coverage stats..."
|
356
|
-
FileUtils.cp_r( 'coverage', artifact_dir )
|
357
|
-
end
|
358
|
-
|
359
|
-
$stderr.puts "Copying packages..."
|
360
|
-
FileUtils.cp_r( FileList['pkg/*'].to_a, artifact_dir )
|
361
|
-
end
|
18
|
+
self.spec_extras[:post_install_message] = self.paragraphs_of( 'README.md', 3..5 ).join( "\n\n" )
|
362
19
|
|
20
|
+
self.hg_sign_tags = false if self.respond_to?( :hg_sign_tags )
|
21
|
+
self.yard_opts = [ '--use-cache', '--protected', '--verbose' ] if
|
22
|
+
self.respond_to?( :yard_opts )
|
363
23
|
|
364
|
-
desc "Update the build system to the latest version"
|
365
|
-
task :update_build do
|
366
|
-
log "Updating the build system"
|
367
|
-
run 'hg', '-R', RAKE_TASKDIR, 'pull', '-u'
|
368
|
-
log "Updating the Rakefile"
|
369
|
-
sh 'rake', '-f', RAKE_TASKDIR + 'Metarakefile'
|
370
24
|
end
|
371
25
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webkit-rspec-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 2
|
10
|
+
version: 2.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Granger
|
@@ -35,28 +35,67 @@ cert_chain:
|
|
35
35
|
cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
|
36
36
|
-----END CERTIFICATE-----
|
37
37
|
|
38
|
-
date: 2010-
|
38
|
+
date: 2010-12-22 00:00:00 -08:00
|
39
39
|
default_executable:
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec-
|
42
|
+
name: rspec-formatter-webkit
|
43
43
|
prerelease: false
|
44
44
|
requirement: &id001 !ruby/object:Gem::Requirement
|
45
45
|
none: false
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
hash:
|
49
|
+
hash: 11
|
50
50
|
segments:
|
51
51
|
- 2
|
52
|
-
- 0
|
53
52
|
- 1
|
54
|
-
|
53
|
+
- 0
|
54
|
+
version: 2.1.0
|
55
55
|
type: :runtime
|
56
56
|
version_requirements: *id001
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: hoe-yard
|
59
|
+
prerelease: false
|
60
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
hash: 31
|
66
|
+
segments:
|
67
|
+
- 0
|
68
|
+
- 1
|
69
|
+
- 2
|
70
|
+
version: 0.1.2
|
71
|
+
type: :development
|
72
|
+
version_requirements: *id002
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: hoe
|
75
|
+
prerelease: false
|
76
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
hash: 47
|
82
|
+
segments:
|
83
|
+
- 2
|
84
|
+
- 8
|
85
|
+
- 0
|
86
|
+
version: 2.8.0
|
87
|
+
type: :development
|
88
|
+
version_requirements: *id003
|
57
89
|
description: |-
|
58
|
-
This is a
|
59
|
-
|
90
|
+
This is a placeholder gem for the WebKit Formatter for RSpec.
|
91
|
+
|
92
|
+
The gem was renamed to 'rspec-formatter-webkit' to better
|
93
|
+
follow standard gem-naming conventions. The new gem is a dependency
|
94
|
+
of this one, so installing this should install the latest
|
95
|
+
version for you, but you'll need to use the new name in the future.
|
96
|
+
|
97
|
+
You should do a 'gem cleanup webkit-rspec-formatter' to remove any
|
98
|
+
previously-installed versions if you have them.
|
60
99
|
email:
|
61
100
|
- ged@FaerieMUD.org
|
62
101
|
executables: []
|
@@ -64,127 +103,31 @@ executables: []
|
|
64
103
|
extensions: []
|
65
104
|
|
66
105
|
extra_rdoc_files:
|
67
|
-
-
|
68
|
-
- README.md
|
69
|
-
- LICENSE
|
106
|
+
- History.md
|
70
107
|
files:
|
71
108
|
- Rakefile
|
72
|
-
- ChangeLog
|
73
109
|
- README.md
|
74
|
-
-
|
75
|
-
|
76
|
-
- lib/rspec/core/formatters/webkit.rb
|
77
|
-
- lib/rspec/mate/runner.rb
|
78
|
-
- data/webkit-rspec-formatter/css/textmate-rspec.css
|
79
|
-
- data/webkit-rspec-formatter/images/clock.png
|
80
|
-
- data/webkit-rspec-formatter/images/cross_circle.png
|
81
|
-
- data/webkit-rspec-formatter/images/cross_circle_frame.png
|
82
|
-
- data/webkit-rspec-formatter/images/cross_octagon.png
|
83
|
-
- data/webkit-rspec-formatter/images/cross_octagon_frame.png
|
84
|
-
- data/webkit-rspec-formatter/images/cross_shield.png
|
85
|
-
- data/webkit-rspec-formatter/images/exclamation.png
|
86
|
-
- data/webkit-rspec-formatter/images/exclamation_frame.png
|
87
|
-
- data/webkit-rspec-formatter/images/exclamation_shield.png
|
88
|
-
- data/webkit-rspec-formatter/images/exclamation_small.png
|
89
|
-
- data/webkit-rspec-formatter/images/plus_circle.png
|
90
|
-
- data/webkit-rspec-formatter/images/plus_circle_frame.png
|
91
|
-
- data/webkit-rspec-formatter/images/question.png
|
92
|
-
- data/webkit-rspec-formatter/images/question_frame.png
|
93
|
-
- data/webkit-rspec-formatter/images/question_shield.png
|
94
|
-
- data/webkit-rspec-formatter/images/question_small.png
|
95
|
-
- data/webkit-rspec-formatter/images/tick.png
|
96
|
-
- data/webkit-rspec-formatter/images/tick_circle.png
|
97
|
-
- data/webkit-rspec-formatter/images/tick_circle_frame.png
|
98
|
-
- data/webkit-rspec-formatter/images/tick_shield.png
|
99
|
-
- data/webkit-rspec-formatter/images/tick_small.png
|
100
|
-
- data/webkit-rspec-formatter/images/tick_small_circle.png
|
101
|
-
- data/webkit-rspec-formatter/images/ticket.png
|
102
|
-
- data/webkit-rspec-formatter/images/ticket_arrow.png
|
103
|
-
- data/webkit-rspec-formatter/images/ticket_exclamation.png
|
104
|
-
- data/webkit-rspec-formatter/images/ticket_minus.png
|
105
|
-
- data/webkit-rspec-formatter/images/ticket_pencil.png
|
106
|
-
- data/webkit-rspec-formatter/images/ticket_plus.png
|
107
|
-
- data/webkit-rspec-formatter/images/ticket_small.png
|
108
|
-
- data/webkit-rspec-formatter/js/jquery-1.4.2.min.js
|
109
|
-
- data/webkit-rspec-formatter/js/textmate-rspec.js
|
110
|
-
- data/webkit-rspec-formatter/templates/failed.rhtml
|
111
|
-
- data/webkit-rspec-formatter/templates/footer.rhtml
|
112
|
-
- data/webkit-rspec-formatter/templates/header.rhtml
|
113
|
-
- data/webkit-rspec-formatter/templates/page.rhtml
|
114
|
-
- data/webkit-rspec-formatter/templates/passed.rhtml
|
115
|
-
- data/webkit-rspec-formatter/templates/pending-fixed.rhtml
|
116
|
-
- data/webkit-rspec-formatter/templates/pending.rhtml
|
117
|
-
- rake/191_compat.rb
|
118
|
-
- rake/dependencies.rb
|
119
|
-
- rake/documentation.rb
|
120
|
-
- rake/helpers.rb
|
121
|
-
- rake/hg.rb
|
122
|
-
- rake/manual.rb
|
123
|
-
- rake/packaging.rb
|
124
|
-
- rake/publishing.rb
|
125
|
-
- rake/style.rb
|
126
|
-
- rake/svn.rb
|
127
|
-
- rake/testing.rb
|
128
|
-
- rake/verifytask.rb
|
129
|
-
- ./data/webkit-rspec-formatter/css/textmate-rspec.css
|
130
|
-
- ./data/webkit-rspec-formatter/images/clock.png
|
131
|
-
- ./data/webkit-rspec-formatter/images/cross_circle.png
|
132
|
-
- ./data/webkit-rspec-formatter/images/cross_circle_frame.png
|
133
|
-
- ./data/webkit-rspec-formatter/images/cross_octagon.png
|
134
|
-
- ./data/webkit-rspec-formatter/images/cross_octagon_frame.png
|
135
|
-
- ./data/webkit-rspec-formatter/images/cross_shield.png
|
136
|
-
- ./data/webkit-rspec-formatter/images/exclamation.png
|
137
|
-
- ./data/webkit-rspec-formatter/images/exclamation_frame.png
|
138
|
-
- ./data/webkit-rspec-formatter/images/exclamation_shield.png
|
139
|
-
- ./data/webkit-rspec-formatter/images/exclamation_small.png
|
140
|
-
- ./data/webkit-rspec-formatter/images/plus_circle.png
|
141
|
-
- ./data/webkit-rspec-formatter/images/plus_circle_frame.png
|
142
|
-
- ./data/webkit-rspec-formatter/images/question.png
|
143
|
-
- ./data/webkit-rspec-formatter/images/question_frame.png
|
144
|
-
- ./data/webkit-rspec-formatter/images/question_shield.png
|
145
|
-
- ./data/webkit-rspec-formatter/images/question_small.png
|
146
|
-
- ./data/webkit-rspec-formatter/images/tick.png
|
147
|
-
- ./data/webkit-rspec-formatter/images/tick_circle.png
|
148
|
-
- ./data/webkit-rspec-formatter/images/tick_circle_frame.png
|
149
|
-
- ./data/webkit-rspec-formatter/images/tick_shield.png
|
150
|
-
- ./data/webkit-rspec-formatter/images/tick_small.png
|
151
|
-
- ./data/webkit-rspec-formatter/images/tick_small_circle.png
|
152
|
-
- ./data/webkit-rspec-formatter/images/ticket.png
|
153
|
-
- ./data/webkit-rspec-formatter/images/ticket_arrow.png
|
154
|
-
- ./data/webkit-rspec-formatter/images/ticket_exclamation.png
|
155
|
-
- ./data/webkit-rspec-formatter/images/ticket_minus.png
|
156
|
-
- ./data/webkit-rspec-formatter/images/ticket_pencil.png
|
157
|
-
- ./data/webkit-rspec-formatter/images/ticket_plus.png
|
158
|
-
- ./data/webkit-rspec-formatter/images/ticket_small.png
|
159
|
-
- ./data/webkit-rspec-formatter/js/jquery-1.4.2.min.js
|
160
|
-
- ./data/webkit-rspec-formatter/js/textmate-rspec.js
|
161
|
-
- ./data/webkit-rspec-formatter/templates/failed.rhtml
|
162
|
-
- ./data/webkit-rspec-formatter/templates/footer.rhtml
|
163
|
-
- ./data/webkit-rspec-formatter/templates/header.rhtml
|
164
|
-
- ./data/webkit-rspec-formatter/templates/page.rhtml
|
165
|
-
- ./data/webkit-rspec-formatter/templates/passed.rhtml
|
166
|
-
- ./data/webkit-rspec-formatter/templates/pending-fixed.rhtml
|
167
|
-
- ./data/webkit-rspec-formatter/templates/pending.rhtml
|
168
|
-
has_rdoc: true
|
110
|
+
- History.md
|
111
|
+
has_rdoc: yard
|
169
112
|
homepage: http://deveiate.org/webkit-rspec-formatter.html
|
170
113
|
licenses: []
|
171
114
|
|
172
115
|
post_install_message: |-
|
116
|
+
This is a placeholder gem for the WebKit Formatter for RSpec.
|
173
117
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
--format RSpec::Core::Formatters::WebKit
|
118
|
+
The gem was renamed to 'rspec-formatter-webkit' to better
|
119
|
+
follow standard gem-naming conventions. The new gem is a dependency
|
120
|
+
of this one, so installing this should install the latest
|
121
|
+
version for you, but you'll need to use the new name in the future.
|
179
122
|
|
180
|
-
|
123
|
+
You should do a 'gem cleanup webkit-rspec-formatter' to remove any
|
124
|
+
previously-installed versions if you have them.
|
181
125
|
rdoc_options:
|
182
|
-
- --
|
183
|
-
- --
|
184
|
-
- --
|
185
|
-
-
|
186
|
-
-
|
187
|
-
- --title=webkit-rspec-formatter
|
126
|
+
- --use-cache
|
127
|
+
- --protected
|
128
|
+
- --verbose
|
129
|
+
- --title
|
130
|
+
- WebkitRspecFormatter Documentation
|
188
131
|
require_paths:
|
189
132
|
- lib
|
190
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -205,13 +148,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
148
|
segments:
|
206
149
|
- 0
|
207
150
|
version: "0"
|
208
|
-
requirements:
|
209
|
-
|
210
|
-
-
|
211
|
-
rubyforge_project:
|
151
|
+
requirements: []
|
152
|
+
|
153
|
+
rubyforge_project: webkit-rspec-formatter
|
212
154
|
rubygems_version: 1.3.7
|
213
155
|
signing_key:
|
214
156
|
specification_version: 3
|
215
|
-
summary:
|
157
|
+
summary: This is a placeholder gem for the WebKit Formatter for RSpec
|
216
158
|
test_files: []
|
217
159
|
|