visionmedia-jspec 2.8.3 → 2.8.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
1
 
2
+ === 2.8.4 / 2009-08-02
3
+
4
+ * Fixed error thrown when a module has no utilities
5
+
2
6
  === 2.8.3 / 2009-07-30
3
7
 
4
8
  * Added JSpec.evalHook()
data/bin/jspec CHANGED
@@ -11,7 +11,7 @@ require 'fileutils'
11
11
  RHINO = 'java org.mozilla.javascript.tools.shell.Main'
12
12
 
13
13
  program :name, 'JSpec'
14
- program :version, '2.8.3'
14
+ program :version, '2.8.4'
15
15
  program :description, 'JavaScript BDD Testing Framework'
16
16
  default_command :bind
17
17
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{jspec}
5
- s.version = "2.8.3"
5
+ s.version = "2.8.4"
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-07-30}
9
+ s.date = %q{2009-08-02}
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}
@@ -5,7 +5,7 @@
5
5
 
6
6
  JSpec = {
7
7
 
8
- version : '2.8.3',
8
+ version : '2.8.4',
9
9
  cache : {},
10
10
  suites : [],
11
11
  modules : [],
@@ -665,6 +665,7 @@
665
665
  var context = this.context || this.defaultContext
666
666
  var contents = this.contentsOf(module[name])
667
667
  var params = this.paramsFor(module[name])
668
+ module.utilities = module.utilities || {}
668
669
  params.unshift('context'); args.unshift(context)
669
670
  hook('evaluatingHookBody', module, name, context)
670
671
  try { return new Function(params.join(), 'with (this.utilities) { with (context) { with (JSpec) { ' + contents + ' }}}').apply(module, args) }
@@ -35,4 +35,8 @@ ExampleModule = {
35
35
  }
36
36
  }
37
37
 
38
- JSpec.include(ExampleModule)
38
+ JSpec.include(ExampleModule)
39
+
40
+ JSpec.include({
41
+ name : 'EmptyModule'
42
+ })
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.8.3
4
+ version: 2.8.4
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-07-30 00:00:00 -07:00
12
+ date: 2009-08-02 00:00:00 -07:00
13
13
  default_executable: jspec
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency