Skip to content

Commit

Permalink
- Added release raketask, history, and pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 18, 2009
1 parent a43e73c commit 590dba1
Show file tree
Hide file tree
Showing 7 changed files with 609 additions and 2 deletions.
7 changes: 7 additions & 0 deletions History.txt
@@ -1,4 +1,11 @@

=== 0.1.1 / 2009-02-18

* 2 Minor Enhancement

* Added release rake task
* Added package for 0.1.1 with minified alternative

=== 0.1.0 / 2009-02-18

* 8 Major Enhancements
Expand Down
13 changes: 12 additions & 1 deletion Rakefile
Expand Up @@ -30,9 +30,20 @@ task :version do
puts "JSpec-#{version}"
end

desc 'Release to VERSION'
task :release do
raise 'VERSION required' unless ENV['VERSION']
contents = File.read 'lib/jspec.js'
contents.sub! /#{version}/, ENV['VERSION']
File.open('lib/jspec.js', 'w+') do |file|
file.write contents
end
task(:package).invoke
end

task :build => [:package]
task :remove => [:clear]

def version
@version ||= $1 if File.read('lib/jspec.js').match /version : '(.*?)'/
$1 if File.read('lib/jspec.js').match /version : '(.*?)'/
end
2 changes: 1 addition & 1 deletion lib/jspec.js
Expand Up @@ -6,7 +6,7 @@

var JSpec = {

version : '0.1.0',
version : '0.1.1',
suites : {},
stats : { specs : 0, assertions : 0, failures : 0, passes : 0 },

Expand Down
Binary file added pkg/images/sprites.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions pkg/jspec.css
@@ -0,0 +1,54 @@

#jspec-report * {
margin: 0;
padding: 0;
background: none;
border: none;
}
#jspec-report {
padding: 60px;
font: 12px "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif;
}
#jspec-report .heading span {
margin-right: 15px;
}
#jspec-report .heading em {
font-weight: bold;
font-style: normal;
}
#jspec-report .heading span.passes em {
color: green;
}
#jspec-report .heading span.failures em {
color: red;
}
#jspec-report h2 {
margin-top: 25px;
margin-bottom: 10px;
font-size: 15px;
}
#jspec-report p {
margin-top: 5px;
padding-left: 20px;
}
#jspec-report p.pass {
background: url(images/sprites.png) -12px -12px no-repeat;
color: green;
}
#jspec-report p.fail {
background: url(images/sprites.png) -12px -54px no-repeat;
color: red;
}
#jspec-report p.fail em {
font-size: 11px;
font-style: normal;
color: #9B9B9B;
}
#jspec-report p.requires-implementation {
background: url(images/sprites.png) -12px -96px no-repeat;
color: #9B9B9B;
}
#jspec-report span.assertion-count {
font-weight: bold;
padding: 0 1px;
}

0 comments on commit 590dba1

Please sign in to comment.