visionmedia-jspec 2.11.0 → 2.11.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ === 2.11.1 / 2009-09-10
3
+
4
+ * Fixed JSpec root when using --symlink, --freeze [#36]
5
+ * Added __END__ to the grammar (works like Ruby's __END__)
6
+
2
7
  === 2.11.0 / 2009-09-04
3
8
 
4
9
  * Added --symlink switch (links the current version of JSpec to ./spec/lib) [#4]
data/bin/jspec CHANGED
@@ -12,7 +12,7 @@ require 'server/server'
12
12
  RHINO = 'java org.mozilla.javascript.tools.shell.Main'
13
13
 
14
14
  program :name, 'JSpec'
15
- program :version, '2.11.0'
15
+ program :version, '2.11.1'
16
16
  program :description, 'JavaScript BDD Testing Framework'
17
17
  default_command :bind
18
18
 
@@ -249,9 +249,9 @@ end
249
249
 
250
250
  def replace_root_in dest, *paths
251
251
  if rails? && File.exist?("#{dest}/jspec/lib")
252
- root = "."
252
+ root = './jspec'
253
253
  elsif File.exist?("#{dest}/spec/lib")
254
- root = "."
254
+ root = "./spec"
255
255
  else
256
256
  root = JSPEC_ROOT
257
257
  end
data/jspec.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "2.11.0"
5
+ s.version = "2.11.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
9
- s.date = %q{2009-09-04}
9
+ s.date = %q{2009-09-10}
10
10
  s.default_executable = %q{jspec}
11
11
  s.description = %q{JavaScript BDD Testing Framework}
12
12
  s.email = %q{tj@vision-media.ca}
data/lib/jspec.js CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  JSpec = {
7
7
 
8
- version : '2.11.0',
8
+ version : '2.11.1',
9
9
  cache : {},
10
10
  suites : [],
11
11
  modules : [],
@@ -1365,7 +1365,8 @@
1365
1365
  replace(/\.should([_\.]not)?[_\.](\w+)(?: |;|$)(.*)$/gm, '.should$1_$2($3)').
1366
1366
  replace(/([\/\s]*)(.+?)\.(should(?:[_\.]not)?)[_\.](\w+)\((.*)\)\s*;?$/gm, '$1 expect($2).$3($4, $5)').
1367
1367
  replace(/, \)/gm, ')').
1368
- replace(/should\.not/gm, 'should_not')
1368
+ replace(/should\.not/gm, 'should_not').
1369
+ replace(/__END__.*/m, '')
1369
1370
  },
1370
1371
 
1371
1372
  /**
data/spec/spec.grammar.js CHANGED
@@ -215,4 +215,12 @@ describe 'Grammar'
215
215
  end
216
216
  end
217
217
 
218
+ end
219
+
220
+ __END__
221
+
222
+ describe 'Grammar'
223
+ it 'should consider everything below __END__ a comment'
224
+
225
+ end
218
226
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visionmedia-jspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-04 00:00:00 -07:00
12
+ date: 2009-09-10 00:00:00 -07:00
13
13
  default_executable: jspec
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency