jasmine 2.0.0.rc4 → 2.0.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -17,3 +17,8 @@ else
17
17
  gem 'jasmine-core', :path => '../jasmine'
18
18
  end
19
19
 
20
+ if ENV['RAILS_VERSION'] == "rails3"
21
+ gem 'rack', '1.4.5'
22
+ else
23
+ gem 'rack', '1.5.2'
24
+ end
@@ -8,6 +8,7 @@ See release docs in jasmine-core
8
8
 
9
9
  ## Jasmine Gem
10
10
 
11
+ 1. Update the release notes in `release_notes` - use the Anchorman gem to generate the markdown file and edit accordingly
11
12
  1. update version in version.rb
12
13
  * for release candidates, add ".rc" + number to the end of the appropriate version part
13
14
  1. commit and push the version update to github
@@ -32,8 +32,8 @@ Gem::Specification.new do |s|
32
32
  s.add_development_dependency 'multi_json'
33
33
  s.add_development_dependency 'rspec', '>= 2.5.0'
34
34
 
35
- s.add_dependency 'jasmine-core', '~> 2.0.0.rc3'
36
- s.add_dependency 'rack'
35
+ s.add_dependency 'jasmine-core', '~> 2.0.0.rc5'
36
+ s.add_dependency 'rack', '>= 1.2.1'
37
37
  s.add_dependency 'rake'
38
38
  s.add_dependency 'phantomjs'
39
39
  end
@@ -1,15 +1,15 @@
1
1
  beforeEach(function () {
2
- jasmine.Expectation.addMatchers({
3
- toBePlaying: function () {
4
- return {
5
- compare: function (actual, expected) {
6
- var player = actual;
2
+ jasmine.addMatchers({
3
+ toBePlaying: function () {
4
+ return {
5
+ compare: function (actual, expected) {
6
+ var player = actual;
7
7
 
8
- return {
9
- pass: player.currentlyPlayingSong === expected && player.isPlaying
10
- }
11
- }
12
- };
8
+ return {
9
+ pass: player.currentlyPlayingSong === expected && player.isPlaying
10
+ }
13
11
  }
14
- });
12
+ };
13
+ }
14
+ });
15
15
  });
@@ -87,3 +87,26 @@ spec_dir:
87
87
  #
88
88
  spec_helper: spec/javascripts/support/jasmine_helper.rb
89
89
 
90
+ # boot_dir
91
+ #
92
+ # Boot directory path. Your boot_files must be returned relative to this path.
93
+ # Default: Built in boot file
94
+ #
95
+ # EXAMPLE:
96
+ #
97
+ # boot_dir: spec/javascripts/support/boot
98
+ #
99
+ boot_dir:
100
+
101
+ # boot_files
102
+ #
103
+ # Return an array of filepaths relative to boot_dir to include in order to boot Jasmine
104
+ # Default: Built in boot file
105
+ #
106
+ # EXAMPLE
107
+ #
108
+ # boot_files:
109
+ # - '**/*.js'
110
+ #
111
+ boot_files:
112
+
@@ -1,3 +1,3 @@
1
1
  module Jasmine
2
- VERSION = "2.0.0.rc4"
2
+ VERSION = "2.0.0.rc5"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  # Jasmine Gem 2.0 Release Notes
2
2
 
3
- These notes cover version 2.0.0.rc3
3
+ These notes cover version 2.0.0.rc4
4
4
 
5
5
  ## Summary
6
6
 
@@ -0,0 +1,94 @@
1
+ # Jasmine Gem 2.0 Release Notes
2
+
3
+ These notes cover version 2.0.0.rc5
4
+
5
+ ## Summary
6
+
7
+ This release is focused on support for Jasmine 2.0, gem configuration simplification, and improvement of Rails support (including Rails 4).
8
+
9
+ The `Jasmine.configure` block now allows for fine-tuned configuration of how a project's suite is run. There are two new/refined concepts: Runners and Formatters.
10
+
11
+ Formatters are responsible for taking the results from the Jasmine suite and presenting the data in a specific format. Runners take a URL and a Formatter and are responsible for running the Jasmine suite and passing results to the given formatter.
12
+
13
+ The default Runner uses PhantomJS to run the suite. The default Formatter sends results to the console. There are Ruby gems for a [Selenium/Webdriver Runner][selenium] and a [JUnit XML Formatter][junit]. These projects are great examples for writing a Runner or Formatter for your environment.
14
+
15
+ ## Dropped Support
16
+
17
+ * _Most_ ENV variables removed - use `Jasmine.configure` to set browser, ports, etc.
18
+ * Dropped support for 1.8.x Rubies, Rails 2, RSpec 1 - please continue to use Jasmine gem 1.3.2
19
+ * "self-test" is gone as [Jasmine core now tests itself](http://travis-ci.org/pivotal/jasmine)
20
+
21
+ ## Changes
22
+
23
+ * Support for changes in Jasmine 2.0
24
+ * Hooks in `jasmine.yml` and configuration for `boot_dir` and `boot_files`
25
+ * Support for changes to results interface
26
+ * Results Formatters:
27
+ * New console results formatter for CI tasks - Jasmine Gem no longer depend on RSpec for console output
28
+ * Optional JUnit XML results formatter for CI tasks
29
+ * Projects can provide custom formatters
30
+ * Rails 4 support
31
+ * Better support for non-Rails Ruby projects
32
+ * Loosely pinning to the `jasmine-core` gem, allowing for Jasmine Core's build to work on release for Jasmine build to work.
33
+ * SHA: 42021e3a86e57f6b7b23dfbe921867d7560f4e4f
34
+ * Add warning to `jasmine init`
35
+ * SHA: e071474b014e7d6909d69f86988b84eacb801201
36
+ * Globbing should now return files in a consistent, predictable order across systems
37
+ * Improved integration tests with Rails
38
+ * Added the configuration option to specify your own Webdriver instance
39
+ * Brought back the Jasmine Favicon
40
+
41
+ ### In RC5
42
+
43
+ * Update SpecHelper template from latest jasmine-core template to show how to add custom matchers
44
+ * Update template jasmine.yml to include boot_dir and boot_files
45
+
46
+ ### In RC4
47
+
48
+ * `jasmine:ci` rake task doesn't call exit and stop other rake tasks
49
+
50
+ * Respect source js files outside the asset pipeline
51
+
52
+ [Finish #37284657](http://www.pivotaltracker.com/story/37284657)
53
+ * SHA: ad8f6c839bce5d362409e59c46043b0ecc762faf
54
+ * Gregg Van Hove and Tim Jarratt, pair+gvanhove+tjarratt@pivotallabs.com
55
+
56
+
57
+ ### In RC3
58
+
59
+ * Better re-work of Runners and Formatters
60
+ * In Rails 4, turn off turbolink processing of jasmine runner spec links so spec links work
61
+ * User can copy `boot.js` into their project for customization - usage: `jasmine copy_boot_js`
62
+ * Allow user to configure path to `jasmine.yml` via an ENV variable.
63
+ * More data printed out to console when starting the Jasmine server
64
+ * Support for specs to be written in CoffeeScript when used with Rails
65
+ * Fix stylesheet asset expansion for Rails 4
66
+ * Remove RSpec dependency - Jasmine gem builds its own output
67
+ * Remove Selenium dependency - builds run against PhantomJS by default
68
+ * Remove accidental sqllite development dependency
69
+ * Jasmine example code no longer installed when `jasmine init` is run. Examples are now installed explicitly with `jasmine examples`
70
+ * Extraction to separate gems for:
71
+ * JUnit XML formatter
72
+ * Selenium/Webdriver integration
73
+
74
+ ## Accepted Pull Requests
75
+
76
+ * Fix README.markdown and add config example #[144](http://github.com/pivotal/jasmine-gem/pull/144) from @enrapt-mochizuki
77
+ * Use a relative path to jasmine repo in Gemfile #[161](http://github.com/pivotal/jasmine-gem/pull/161) from @zephyr-dev
78
+ * Problem when using a asset prefix other than '/assets' #[155](http://github.com/pivotal/jasmine-gem/pull/155) from @janv
79
+ * Remove unused code - #[154](http://github.com/pivotal/jasmine-gem/pull/154) from @daytonn
80
+ * Fix default path for :spec_helper in template #[147](http://github.com/pivotal/jasmine-gem/pull/147) from @kmayer
81
+ * Improve Gemfile installation instructions #[141](http://github.com/pivotal/jasmine-gem/pull/141)
82
+
83
+ ### In RC3
84
+
85
+ * Use IE=edge for IE compatibility because this will put IE into the highest available mode for each version of IE - see [Question on StackOverflow](http://stackoverflow.com/questions/3449286/force-ie-compatibility-mode-off-in-ie-using-tags
86
+ ) - #[168](http://github.com/pivotal/jasmine-gem/pull/168) from @iwz
87
+
88
+
89
+ ------
90
+
91
+ _Release Notes generated with [Anchorman](http://github.com/infews/anchorman)_
92
+
93
+ [selenium]: https://github.com/jasmine/jasmine_selenium_runner
94
+ [junit]: https://github.com/jasmine/jasmine_junitxml_formatter
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc4
4
+ version: 2.0.0.rc5
5
+ prerelease: 6
5
6
  platform: ruby
6
7
  authors:
7
8
  - Rajan Agaskar
@@ -10,118 +11,134 @@ authors:
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2013-10-11 00:00:00.000000000 Z
14
+ date: 2013-10-30 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rails
17
18
  requirement: !ruby/object:Gem::Requirement
19
+ none: false
18
20
  requirements:
19
- - - '>='
21
+ - - ! '>='
20
22
  - !ruby/object:Gem::Version
21
23
  version: '4'
22
24
  type: :development
23
25
  prerelease: false
24
26
  version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
25
28
  requirements:
26
- - - '>='
29
+ - - ! '>='
27
30
  - !ruby/object:Gem::Version
28
31
  version: '4'
29
32
  - !ruby/object:Gem::Dependency
30
33
  name: rack-test
31
34
  requirement: !ruby/object:Gem::Requirement
35
+ none: false
32
36
  requirements:
33
- - - '>='
37
+ - - ! '>='
34
38
  - !ruby/object:Gem::Version
35
39
  version: '0'
36
40
  type: :development
37
41
  prerelease: false
38
42
  version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
39
44
  requirements:
40
- - - '>='
45
+ - - ! '>='
41
46
  - !ruby/object:Gem::Version
42
47
  version: '0'
43
48
  - !ruby/object:Gem::Dependency
44
49
  name: multi_json
45
50
  requirement: !ruby/object:Gem::Requirement
51
+ none: false
46
52
  requirements:
47
- - - '>='
53
+ - - ! '>='
48
54
  - !ruby/object:Gem::Version
49
55
  version: '0'
50
56
  type: :development
51
57
  prerelease: false
52
58
  version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
53
60
  requirements:
54
- - - '>='
61
+ - - ! '>='
55
62
  - !ruby/object:Gem::Version
56
63
  version: '0'
57
64
  - !ruby/object:Gem::Dependency
58
65
  name: rspec
59
66
  requirement: !ruby/object:Gem::Requirement
67
+ none: false
60
68
  requirements:
61
- - - '>='
69
+ - - ! '>='
62
70
  - !ruby/object:Gem::Version
63
71
  version: 2.5.0
64
72
  type: :development
65
73
  prerelease: false
66
74
  version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
67
76
  requirements:
68
- - - '>='
77
+ - - ! '>='
69
78
  - !ruby/object:Gem::Version
70
79
  version: 2.5.0
71
80
  - !ruby/object:Gem::Dependency
72
81
  name: jasmine-core
73
82
  requirement: !ruby/object:Gem::Requirement
83
+ none: false
74
84
  requirements:
75
85
  - - ~>
76
86
  - !ruby/object:Gem::Version
77
- version: 2.0.0.rc3
87
+ version: 2.0.0.rc5
78
88
  type: :runtime
79
89
  prerelease: false
80
90
  version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
81
92
  requirements:
82
93
  - - ~>
83
94
  - !ruby/object:Gem::Version
84
- version: 2.0.0.rc3
95
+ version: 2.0.0.rc5
85
96
  - !ruby/object:Gem::Dependency
86
97
  name: rack
87
98
  requirement: !ruby/object:Gem::Requirement
99
+ none: false
88
100
  requirements:
89
- - - '>='
101
+ - - ! '>='
90
102
  - !ruby/object:Gem::Version
91
- version: '0'
103
+ version: 1.2.1
92
104
  type: :runtime
93
105
  prerelease: false
94
106
  version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
95
108
  requirements:
96
- - - '>='
109
+ - - ! '>='
97
110
  - !ruby/object:Gem::Version
98
- version: '0'
111
+ version: 1.2.1
99
112
  - !ruby/object:Gem::Dependency
100
113
  name: rake
101
114
  requirement: !ruby/object:Gem::Requirement
115
+ none: false
102
116
  requirements:
103
- - - '>='
117
+ - - ! '>='
104
118
  - !ruby/object:Gem::Version
105
119
  version: '0'
106
120
  type: :runtime
107
121
  prerelease: false
108
122
  version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
109
124
  requirements:
110
- - - '>='
125
+ - - ! '>='
111
126
  - !ruby/object:Gem::Version
112
127
  version: '0'
113
128
  - !ruby/object:Gem::Dependency
114
129
  name: phantomjs
115
130
  requirement: !ruby/object:Gem::Requirement
131
+ none: false
116
132
  requirements:
117
- - - '>='
133
+ - - ! '>='
118
134
  - !ruby/object:Gem::Version
119
135
  version: '0'
120
136
  type: :runtime
121
137
  prerelease: false
122
138
  version_requirements: !ruby/object:Gem::Requirement
139
+ none: false
123
140
  requirements:
124
- - - '>='
141
+ - - ! '>='
125
142
  - !ruby/object:Gem::Version
126
143
  version: '0'
127
144
  description: Test your JavaScript without any framework dependencies, in any environment,
@@ -190,6 +207,7 @@ files:
190
207
  - release_notes/v2.0.0.rc2.md
191
208
  - release_notes/v2.0.0.rc3.md
192
209
  - release_notes/v2.0.0.rc4.md
210
+ - release_notes/v2.0.0.rc5.md
193
211
  - spec/application_integration_spec.rb
194
212
  - spec/application_spec.rb
195
213
  - spec/base_spec.rb
@@ -218,27 +236,28 @@ files:
218
236
  homepage: http://pivotal.github.com/jasmine/
219
237
  licenses:
220
238
  - MIT
221
- metadata: {}
222
239
  post_install_message:
223
240
  rdoc_options:
224
241
  - --charset=UTF-8
225
242
  require_paths:
226
243
  - lib
227
244
  required_ruby_version: !ruby/object:Gem::Requirement
245
+ none: false
228
246
  requirements:
229
- - - '>='
247
+ - - ! '>='
230
248
  - !ruby/object:Gem::Version
231
249
  version: '0'
232
250
  required_rubygems_version: !ruby/object:Gem::Requirement
251
+ none: false
233
252
  requirements:
234
- - - '>'
253
+ - - ! '>'
235
254
  - !ruby/object:Gem::Version
236
255
  version: 1.3.1
237
256
  requirements: []
238
257
  rubyforge_project:
239
- rubygems_version: 2.0.6
258
+ rubygems_version: 1.8.25
240
259
  signing_key:
241
- specification_version: 4
260
+ specification_version: 3
242
261
  summary: JavaScript BDD framework
243
262
  test_files:
244
263
  - spec/application_integration_spec.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 25b9d87800d70c9fce241ec4e329cb4a3768b314
4
- data.tar.gz: 57f4d922f245cfa8b84b9201f9ba245a728529f3
5
- SHA512:
6
- metadata.gz: 068395a81cacb184dc6b3f76b7dcae19892583604b78d66602d9018f5ce3196b4e217b7d6076c36f232890a555f5e2de2d7fb63dc98c9c57e97fb3e5ad2062cf
7
- data.tar.gz: e6a447e4757b4cbc4e50cfeda058f305b97c839b5f763140d906184086b523d6bdcd23381c412b3fda280ab989ba529f5c0fb6ae82986fe86aedcf172aa8c4ac