jasmine-core 1.1.0.rc1 → 1.1.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. data/lib/jasmine-core.rb +19 -0
  2. data/lib/jasmine-core/jasmine.js +11 -10
  3. data/{spec → lib/jasmine-core/spec}/console/ConsoleReporterSpec.js +0 -0
  4. data/{spec → lib/jasmine-core/spec}/core/BaseSpec.js +0 -0
  5. data/{spec → lib/jasmine-core/spec}/core/CustomMatchersSpec.js +0 -0
  6. data/{spec → lib/jasmine-core/spec}/core/EnvSpec.js +0 -0
  7. data/{spec → lib/jasmine-core/spec}/core/ExceptionsSpec.js +0 -0
  8. data/{spec → lib/jasmine-core/spec}/core/JsApiReporterSpec.js +0 -0
  9. data/{spec → lib/jasmine-core/spec}/core/MatchersSpec.js +0 -0
  10. data/{spec → lib/jasmine-core/spec}/core/MockClockSpec.js +0 -0
  11. data/{spec → lib/jasmine-core/spec}/core/MultiReporterSpec.js +0 -0
  12. data/{spec → lib/jasmine-core/spec}/core/NestedResultsSpec.js +0 -0
  13. data/{spec → lib/jasmine-core/spec}/core/PrettyPrintSpec.js +0 -0
  14. data/{spec → lib/jasmine-core/spec}/core/QueueSpec.js +0 -0
  15. data/{spec → lib/jasmine-core/spec}/core/ReporterSpec.js +0 -0
  16. data/{spec → lib/jasmine-core/spec}/core/RunnerSpec.js +0 -0
  17. data/{spec → lib/jasmine-core/spec}/core/SpecRunningSpec.js +0 -0
  18. data/{spec → lib/jasmine-core/spec}/core/SpecSpec.js +0 -0
  19. data/{spec → lib/jasmine-core/spec}/core/SpySpec.js +0 -0
  20. data/{spec → lib/jasmine-core/spec}/core/SuiteSpec.js +0 -0
  21. data/{spec → lib/jasmine-core/spec}/core/UtilSpec.js +0 -0
  22. data/{spec → lib/jasmine-core/spec}/core/WaitsForBlockSpec.js +0 -0
  23. data/{spec → lib/jasmine-core/spec}/html/MatchersHtmlSpec.js +0 -0
  24. data/{spec → lib/jasmine-core/spec}/html/PrettyPrintHtmlSpec.js +0 -0
  25. data/{spec → lib/jasmine-core/spec}/html/TrivialReporterSpec.js +0 -0
  26. data/{spec → lib/jasmine-core/spec}/node_suite.js +0 -0
  27. data/lib/jasmine-core/version.rb +2 -4
  28. metadata +28 -57
  29. data/spec/runner.html +0 -79
  30. data/spec/templates/runner.html.erb +0 -49
  31. data/spec/templates/script_tag.html.erb +0 -1
data/lib/jasmine-core.rb CHANGED
@@ -9,6 +9,25 @@ module Jasmine
9
9
  (["jasmine.js"] + Dir.glob(File.join(path, "*.js"))).map { |f| File.basename(f) }.uniq
10
10
  end
11
11
 
12
+ SPEC_TYPES = ["core", "html", "node"]
13
+
14
+ def core_spec_files
15
+ spec_files("core")
16
+ end
17
+
18
+ def html_spec_files
19
+ spec_files("html")
20
+ end
21
+
22
+ def node_spec_files
23
+ spec_files("node")
24
+ end
25
+
26
+ def spec_files(type)
27
+ raise ArgumentError.new("Unrecognized spec type") unless SPEC_TYPES.include?(type)
28
+ (Dir.glob(File.join(path, "spec", type, "*.js"))).map { |f| File.join("spec", type, File.basename(f)) }.uniq
29
+ end
30
+
12
31
  def css_files
13
32
  Dir.glob(File.join(path, "*.css")).map { |f| File.basename(f) }
14
33
  end
@@ -735,17 +735,17 @@ jasmine.Env.prototype.version = function () {
735
735
  * @returns string containing jasmine version build info, if set.
736
736
  */
737
737
  jasmine.Env.prototype.versionString = function() {
738
- if (jasmine.version_) {
739
- var version = this.version();
740
- var versionString = version.major + "." + version.minor + "." + version.build;
741
- if (version.release_candidate) {
742
- versionString += ".rc" + version.release_candidate
743
- }
744
- versionString += " revision " + version.revision
745
- return versionString;
746
- } else {
738
+ if (!jasmine.version_) {
747
739
  return "version unknown";
748
740
  }
741
+
742
+ var version = this.version();
743
+ var versionString = version.major + "." + version.minor + "." + version.build;
744
+ if (version.release_candidate) {
745
+ versionString += ".rc" + version.release_candidate
746
+ }
747
+ versionString += " revision " + version.revision;
748
+ return versionString;
749
749
  };
750
750
 
751
751
  /**
@@ -2472,5 +2472,6 @@ jasmine.version_= {
2472
2472
  "major": 1,
2473
2473
  "minor": 1,
2474
2474
  "build": 0,
2475
- "revision": 1308358300
2475
+ "revision": 1308965645,
2476
+ "release_candidate": 2
2476
2477
  };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,8 +1,6 @@
1
1
  module Jasmine
2
2
  module Core
3
- require 'json'
4
- VERSION_HASH = JSON.parse(File.new(File.join(File.dirname(__FILE__), "..", "..", "src", "version.json")).read);
5
- VERSION = "#{VERSION_HASH['major']}.#{VERSION_HASH['minor']}.#{VERSION_HASH['build']}"
6
- VERSION << ".rc#{VERSION_HASH['release_candidate']}" if VERSION_HASH['release_candidate']
3
+ VERSION = "1.1.0.rc2"
7
4
  end
8
5
  end
6
+
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jasmine-core
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 1.1.0.rc1
5
+ version: 1.1.0.rc2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rajan Agaskar
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-06-17 00:00:00 -04:00
15
+ date: 2011-06-24 00:00:00 -04:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -79,33 +79,30 @@ files:
79
79
  - ./lib/jasmine-core/json2.js
80
80
  - ./lib/jasmine-core/version.rb
81
81
  - ./lib/jasmine-core.rb
82
- - spec/console/ConsoleReporterSpec.js
83
- - spec/core/BaseSpec.js
84
- - spec/core/CustomMatchersSpec.js
85
- - spec/core/EnvSpec.js
86
- - spec/core/ExceptionsSpec.js
87
- - spec/core/JsApiReporterSpec.js
88
- - spec/core/MatchersSpec.js
89
- - spec/core/MockClockSpec.js
90
- - spec/core/MultiReporterSpec.js
91
- - spec/core/NestedResultsSpec.js
92
- - spec/core/PrettyPrintSpec.js
93
- - spec/core/QueueSpec.js
94
- - spec/core/ReporterSpec.js
95
- - spec/core/RunnerSpec.js
96
- - spec/core/SpecRunningSpec.js
97
- - spec/core/SpecSpec.js
98
- - spec/core/SpySpec.js
99
- - spec/core/SuiteSpec.js
100
- - spec/core/UtilSpec.js
101
- - spec/core/WaitsForBlockSpec.js
102
- - spec/html/MatchersHtmlSpec.js
103
- - spec/html/PrettyPrintHtmlSpec.js
104
- - spec/html/TrivialReporterSpec.js
105
- - spec/node_suite.js
106
- - spec/runner.html
107
- - spec/templates/runner.html.erb
108
- - spec/templates/script_tag.html.erb
82
+ - ./lib/jasmine-core/spec/console/ConsoleReporterSpec.js
83
+ - ./lib/jasmine-core/spec/core/BaseSpec.js
84
+ - ./lib/jasmine-core/spec/core/CustomMatchersSpec.js
85
+ - ./lib/jasmine-core/spec/core/EnvSpec.js
86
+ - ./lib/jasmine-core/spec/core/ExceptionsSpec.js
87
+ - ./lib/jasmine-core/spec/core/JsApiReporterSpec.js
88
+ - ./lib/jasmine-core/spec/core/MatchersSpec.js
89
+ - ./lib/jasmine-core/spec/core/MockClockSpec.js
90
+ - ./lib/jasmine-core/spec/core/MultiReporterSpec.js
91
+ - ./lib/jasmine-core/spec/core/NestedResultsSpec.js
92
+ - ./lib/jasmine-core/spec/core/PrettyPrintSpec.js
93
+ - ./lib/jasmine-core/spec/core/QueueSpec.js
94
+ - ./lib/jasmine-core/spec/core/ReporterSpec.js
95
+ - ./lib/jasmine-core/spec/core/RunnerSpec.js
96
+ - ./lib/jasmine-core/spec/core/SpecRunningSpec.js
97
+ - ./lib/jasmine-core/spec/core/SpecSpec.js
98
+ - ./lib/jasmine-core/spec/core/SpySpec.js
99
+ - ./lib/jasmine-core/spec/core/SuiteSpec.js
100
+ - ./lib/jasmine-core/spec/core/UtilSpec.js
101
+ - ./lib/jasmine-core/spec/core/WaitsForBlockSpec.js
102
+ - ./lib/jasmine-core/spec/html/MatchersHtmlSpec.js
103
+ - ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
104
+ - ./lib/jasmine-core/spec/html/TrivialReporterSpec.js
105
+ - ./lib/jasmine-core/spec/node_suite.js
109
106
  has_rdoc: true
110
107
  homepage: http://pivotal.github.com/jasmine
111
108
  licenses: []
@@ -134,31 +131,5 @@ rubygems_version: 1.6.2
134
131
  signing_key:
135
132
  specification_version: 3
136
133
  summary: JavaScript BDD framework
137
- test_files:
138
- - spec/console/ConsoleReporterSpec.js
139
- - spec/core/BaseSpec.js
140
- - spec/core/CustomMatchersSpec.js
141
- - spec/core/EnvSpec.js
142
- - spec/core/ExceptionsSpec.js
143
- - spec/core/JsApiReporterSpec.js
144
- - spec/core/MatchersSpec.js
145
- - spec/core/MockClockSpec.js
146
- - spec/core/MultiReporterSpec.js
147
- - spec/core/NestedResultsSpec.js
148
- - spec/core/PrettyPrintSpec.js
149
- - spec/core/QueueSpec.js
150
- - spec/core/ReporterSpec.js
151
- - spec/core/RunnerSpec.js
152
- - spec/core/SpecRunningSpec.js
153
- - spec/core/SpecSpec.js
154
- - spec/core/SpySpec.js
155
- - spec/core/SuiteSpec.js
156
- - spec/core/UtilSpec.js
157
- - spec/core/WaitsForBlockSpec.js
158
- - spec/html/MatchersHtmlSpec.js
159
- - spec/html/PrettyPrintHtmlSpec.js
160
- - spec/html/TrivialReporterSpec.js
161
- - spec/node_suite.js
162
- - spec/runner.html
163
- - spec/templates/runner.html.erb
164
- - spec/templates/script_tag.html.erb
134
+ test_files: []
135
+
data/spec/runner.html DELETED
@@ -1,79 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
- "http://www.w3.org/TR/html4/loose.dtd">
3
- <html>
4
- <head>
5
- <title>Jasmine Spec Runner: Jasmine Core</title>
6
-
7
- <link rel="shortcut icon" type="image/png" href="../images/jasmine_favicon.png">
8
-
9
- <link href="../lib/jasmine-core/jasmine.css" rel="stylesheet"/>
10
- <script type="text/javascript" src="../lib/jasmine-core/jasmine.js"></script>
11
- <script type="text/javascript">
12
- // yes, really keep this here to keep us honest, but only for jasmine's own runner! [xw]
13
- undefined = "diz be undefined yo";
14
- </script>
15
-
16
-
17
- <!-- include source files here... -->
18
- <script type="text/javascript" src=".././src/html/TrivialReporter.js"></script>
19
- <script type="text/javascript" src=".././src/console/ConsoleReporter.js"></script>
20
-
21
- <!-- include spec files here... -->
22
- <script type="text/javascript" src=".././spec/core/BaseSpec.js"></script>
23
- <script type="text/javascript" src=".././spec/core/CustomMatchersSpec.js"></script>
24
- <script type="text/javascript" src=".././spec/core/EnvSpec.js"></script>
25
- <script type="text/javascript" src=".././spec/core/ExceptionsSpec.js"></script>
26
- <script type="text/javascript" src=".././spec/core/JsApiReporterSpec.js"></script>
27
- <script type="text/javascript" src=".././spec/core/MatchersSpec.js"></script>
28
- <script type="text/javascript" src=".././spec/core/MockClockSpec.js"></script>
29
- <script type="text/javascript" src=".././spec/core/MultiReporterSpec.js"></script>
30
- <script type="text/javascript" src=".././spec/core/NestedResultsSpec.js"></script>
31
- <script type="text/javascript" src=".././spec/core/PrettyPrintSpec.js"></script>
32
- <script type="text/javascript" src=".././spec/core/QueueSpec.js"></script>
33
- <script type="text/javascript" src=".././spec/core/ReporterSpec.js"></script>
34
- <script type="text/javascript" src=".././spec/core/RunnerSpec.js"></script>
35
- <script type="text/javascript" src=".././spec/core/SpecRunningSpec.js"></script>
36
- <script type="text/javascript" src=".././spec/core/SpecSpec.js"></script>
37
- <script type="text/javascript" src=".././spec/core/SpySpec.js"></script>
38
- <script type="text/javascript" src=".././spec/core/SuiteSpec.js"></script>
39
- <script type="text/javascript" src=".././spec/core/UtilSpec.js"></script>
40
- <script type="text/javascript" src=".././spec/core/WaitsForBlockSpec.js"></script>
41
- <script type="text/javascript" src=".././spec/html/MatchersHtmlSpec.js"></script>
42
- <script type="text/javascript" src=".././spec/html/PrettyPrintHtmlSpec.js"></script>
43
- <script type="text/javascript" src=".././spec/html/TrivialReporterSpec.js"></script>
44
- <script type="text/javascript" src=".././spec/console/ConsoleReporterSpec.js"></script>
45
-
46
- <script type="text/javascript">
47
- (function() {
48
- var jasmineEnv = jasmine.getEnv();
49
- jasmineEnv.updateInterval = 1000;
50
-
51
- var trivialReporter = new jasmine.TrivialReporter();
52
-
53
- jasmineEnv.addReporter(trivialReporter);
54
-
55
- jasmineEnv.specFilter = function(spec) {
56
- return trivialReporter.specFilter(spec);
57
- };
58
-
59
- var currentWindowOnload = window.onload;
60
-
61
- window.onload = function() {
62
- if (currentWindowOnload) {
63
- currentWindowOnload();
64
- }
65
- execJasmine();
66
- };
67
-
68
- function execJasmine() {
69
- jasmineEnv.execute();
70
- }
71
-
72
- })();
73
- </script>
74
-
75
- </head>
76
-
77
- <body>
78
- </body>
79
- </html>
@@ -1,49 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
- "http://www.w3.org/TR/html4/loose.dtd">
3
- <html>
4
- <head>
5
- <title><%= title %></title>
6
-
7
- <%= favicon %>
8
- <%= jasmine_tags %>
9
-
10
- <!-- include source files here... -->
11
- <%= source_tags %>
12
-
13
- <!-- include spec files here... -->
14
- <%= spec_file_tags %>
15
-
16
- <script type="text/javascript">
17
- (function() {
18
- var jasmineEnv = jasmine.getEnv();
19
- jasmineEnv.updateInterval = 1000;
20
-
21
- var trivialReporter = new jasmine.TrivialReporter();
22
-
23
- jasmineEnv.addReporter(trivialReporter);
24
-
25
- jasmineEnv.specFilter = function(spec) {
26
- return trivialReporter.specFilter(spec);
27
- };
28
-
29
- var currentWindowOnload = window.onload;
30
-
31
- window.onload = function() {
32
- if (currentWindowOnload) {
33
- currentWindowOnload();
34
- }
35
- execJasmine();
36
- };
37
-
38
- function execJasmine() {
39
- jasmineEnv.execute();
40
- }
41
-
42
- })();
43
- </script>
44
-
45
- </head>
46
-
47
- <body>
48
- </body>
49
- </html>
@@ -1 +0,0 @@
1
- <script type="text/javascript" src="<%= file %>"></script>