jasmine-ajax 0.0.1
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.
- data/.gitignore +2 -0
- data/.pairs +6 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +35 -0
- data/MIT.LICENSE +20 -0
- data/README.markdown +168 -0
- data/Rakefile +3 -0
- data/examples/jquery/Rakefile +2 -0
- data/examples/jquery/public/css/master.css +59 -0
- data/examples/jquery/public/css/reset.css +47 -0
- data/examples/jquery/public/images/fail-whale.png +0 -0
- data/examples/jquery/public/index.html +60 -0
- data/examples/jquery/public/javascripts/Tweet.js +6 -0
- data/examples/jquery/public/javascripts/TwitSearch.js +32 -0
- data/examples/jquery/public/javascripts/TwitterApi.js +31 -0
- data/examples/jquery/spec/SpecRunner.html +32 -0
- data/examples/jquery/spec/javascripts/TweetSpec.js +24 -0
- data/examples/jquery/spec/javascripts/TwitterApiSpec.js +88 -0
- data/examples/jquery/spec/javascripts/helpers/test_responses/search.js +16 -0
- data/examples/jquery/spec/javascripts/helpers/tweets.js +3 -0
- data/examples/jquery/spec/javascripts/jasmine-0.11.1/jasmine-html.js +182 -0
- data/examples/jquery/spec/javascripts/jasmine-0.11.1/jasmine.css +166 -0
- data/examples/jquery/spec/javascripts/jasmine-0.11.1/jasmine.js +2343 -0
- data/examples/jquery/spec/javascripts/support/jasmine.yml +78 -0
- data/examples/jquery/spec/javascripts/support/jasmine_runner.rb +21 -0
- data/examples/prototype/Rakefile +2 -0
- data/examples/prototype/public/css/master.css +59 -0
- data/examples/prototype/public/css/reset.css +47 -0
- data/examples/prototype/public/images/fail-whale.png +0 -0
- data/examples/prototype/public/index.html +45 -0
- data/examples/prototype/public/javascripts/Tweet.js +6 -0
- data/examples/prototype/public/javascripts/TwitSearch.js +32 -0
- data/examples/prototype/public/javascripts/TwitterApi.js +24 -0
- data/examples/prototype/spec/SpecRunner.html +32 -0
- data/examples/prototype/spec/javascripts/TweetSpec.js +24 -0
- data/examples/prototype/spec/javascripts/TwitterApiSpec.js +89 -0
- data/examples/prototype/spec/javascripts/helpers/test_responses/search.js +16 -0
- data/examples/prototype/spec/javascripts/helpers/tweets.js +3 -0
- data/examples/prototype/spec/javascripts/jasmine-0.11.1/jasmine-html.js +182 -0
- data/examples/prototype/spec/javascripts/jasmine-0.11.1/jasmine.css +166 -0
- data/examples/prototype/spec/javascripts/jasmine-0.11.1/jasmine.js +2343 -0
- data/examples/prototype/spec/javascripts/support/jasmine.yml +78 -0
- data/examples/prototype/spec/javascripts/support/jasmine_runner.rb +21 -0
- data/frameworks/jquery.js +8176 -0
- data/frameworks/prototype.js +4874 -0
- data/lib/assets/javascripts/mock-ajax.js +207 -0
- data/lib/spec-helper.js +0 -0
- data/lib/version.rb +5 -0
- data/spec/javascripts/fake-xml-http-request-spec.js +45 -0
- data/spec/javascripts/helpers/spec-helper.js +5 -0
- data/spec/javascripts/mock-ajax-jquery-spec.js +374 -0
- data/spec/javascripts/mock-ajax-prototypejs-spec.js +287 -0
- data/spec/javascripts/mock-ajax-spec.js +193 -0
- data/spec/javascripts/support/jasmine.yml +81 -0
- data/spec/javascripts/support/jasmine_runner.rb +21 -0
- metadata +108 -0
@@ -0,0 +1,81 @@
|
|
1
|
+
src_dir: .
|
2
|
+
|
3
|
+
src_files:
|
4
|
+
- frameworks/prototype.js
|
5
|
+
- frameworks/jquery.js
|
6
|
+
- lib/mock-ajax.js
|
7
|
+
|
8
|
+
spec_dir:
|
9
|
+
|
10
|
+
spec_files:
|
11
|
+
|
12
|
+
helpers:
|
13
|
+
|
14
|
+
stylesheets:
|
15
|
+
|
16
|
+
# src_files
|
17
|
+
#
|
18
|
+
# Return an array of filepaths relative to src_dir to include before jasmine specs.
|
19
|
+
# Default: []
|
20
|
+
#
|
21
|
+
# EXAMPLE:
|
22
|
+
#
|
23
|
+
# src_files:
|
24
|
+
# - lib/source1.js
|
25
|
+
# - lib/source2.js
|
26
|
+
# - dist/**/*.js
|
27
|
+
#
|
28
|
+
|
29
|
+
# stylesheets
|
30
|
+
#
|
31
|
+
# Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs.
|
32
|
+
# Default: []
|
33
|
+
#
|
34
|
+
# EXAMPLE:
|
35
|
+
#
|
36
|
+
# stylesheets:
|
37
|
+
# - css/style.css
|
38
|
+
# - stylesheets/*.css
|
39
|
+
#
|
40
|
+
|
41
|
+
# helpers
|
42
|
+
#
|
43
|
+
# Return an array of filepaths relative to spec_dir to include before jasmine specs.
|
44
|
+
# Default: ["helpers/**/*.js"]
|
45
|
+
#
|
46
|
+
# EXAMPLE:
|
47
|
+
#
|
48
|
+
# helpers:
|
49
|
+
# - helpers/**/*.js
|
50
|
+
#
|
51
|
+
|
52
|
+
# spec_files
|
53
|
+
#
|
54
|
+
# Return an array of filepaths relative to spec_dir to include.
|
55
|
+
# Default: ["**/*[sS]pec.js"]
|
56
|
+
#
|
57
|
+
# EXAMPLE:
|
58
|
+
#
|
59
|
+
# spec_files:
|
60
|
+
# - **/*[sS]pec.js
|
61
|
+
#
|
62
|
+
|
63
|
+
# src_dir
|
64
|
+
#
|
65
|
+
# Source directory path. Your src_files must be returned relative to this path. Will use root if left blank.
|
66
|
+
# Default: project root
|
67
|
+
#
|
68
|
+
# EXAMPLE:
|
69
|
+
#
|
70
|
+
# src_dir: public
|
71
|
+
#
|
72
|
+
|
73
|
+
# spec_dir
|
74
|
+
#
|
75
|
+
# Spec directory path. Your spec_files must be returned relative to this path.
|
76
|
+
# Default: spec/javascripts
|
77
|
+
#
|
78
|
+
# EXAMPLE:
|
79
|
+
#
|
80
|
+
# spec_dir: spec/javascripts
|
81
|
+
#
|
@@ -0,0 +1,21 @@
|
|
1
|
+
$:.unshift(ENV['JASMINE_GEM_PATH']) if ENV['JASMINE_GEM_PATH'] # for gem testing purposes
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'jasmine'
|
5
|
+
jasmine_config_overrides = File.expand_path(File.join(File.dirname(__FILE__), 'jasmine_config.rb'))
|
6
|
+
require jasmine_config_overrides if File.exists?(jasmine_config_overrides)
|
7
|
+
|
8
|
+
jasmine_config = Jasmine::Config.new
|
9
|
+
spec_builder = Jasmine::SpecBuilder.new(jasmine_config)
|
10
|
+
|
11
|
+
should_stop = false
|
12
|
+
|
13
|
+
Spec::Runner.configure do |config|
|
14
|
+
config.after(:suite) do
|
15
|
+
spec_builder.stop if should_stop
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
spec_builder.start
|
20
|
+
should_stop = true
|
21
|
+
spec_builder.declare_suites
|
metadata
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jasmine-ajax
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Chris Nelson
|
9
|
+
- Pivotal Labs
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2012-03-20 00:00:00.000000000 Z
|
14
|
+
dependencies: []
|
15
|
+
description: ''
|
16
|
+
email:
|
17
|
+
- superchrisnelson@gmail.com
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- .gitignore
|
23
|
+
- .pairs
|
24
|
+
- Gemfile
|
25
|
+
- Gemfile.lock
|
26
|
+
- MIT.LICENSE
|
27
|
+
- README.markdown
|
28
|
+
- Rakefile
|
29
|
+
- examples/jquery/Rakefile
|
30
|
+
- examples/jquery/public/css/master.css
|
31
|
+
- examples/jquery/public/css/reset.css
|
32
|
+
- examples/jquery/public/images/fail-whale.png
|
33
|
+
- examples/jquery/public/index.html
|
34
|
+
- examples/jquery/public/javascripts/Tweet.js
|
35
|
+
- examples/jquery/public/javascripts/TwitSearch.js
|
36
|
+
- examples/jquery/public/javascripts/TwitterApi.js
|
37
|
+
- examples/jquery/spec/SpecRunner.html
|
38
|
+
- examples/jquery/spec/javascripts/TweetSpec.js
|
39
|
+
- examples/jquery/spec/javascripts/TwitterApiSpec.js
|
40
|
+
- examples/jquery/spec/javascripts/helpers/test_responses/search.js
|
41
|
+
- examples/jquery/spec/javascripts/helpers/tweets.js
|
42
|
+
- examples/jquery/spec/javascripts/jasmine-0.11.1/jasmine-html.js
|
43
|
+
- examples/jquery/spec/javascripts/jasmine-0.11.1/jasmine.css
|
44
|
+
- examples/jquery/spec/javascripts/jasmine-0.11.1/jasmine.js
|
45
|
+
- examples/jquery/spec/javascripts/support/jasmine.yml
|
46
|
+
- examples/jquery/spec/javascripts/support/jasmine_runner.rb
|
47
|
+
- examples/prototype/Rakefile
|
48
|
+
- examples/prototype/public/css/master.css
|
49
|
+
- examples/prototype/public/css/reset.css
|
50
|
+
- examples/prototype/public/images/fail-whale.png
|
51
|
+
- examples/prototype/public/index.html
|
52
|
+
- examples/prototype/public/javascripts/Tweet.js
|
53
|
+
- examples/prototype/public/javascripts/TwitSearch.js
|
54
|
+
- examples/prototype/public/javascripts/TwitterApi.js
|
55
|
+
- examples/prototype/spec/SpecRunner.html
|
56
|
+
- examples/prototype/spec/javascripts/TweetSpec.js
|
57
|
+
- examples/prototype/spec/javascripts/TwitterApiSpec.js
|
58
|
+
- examples/prototype/spec/javascripts/helpers/test_responses/search.js
|
59
|
+
- examples/prototype/spec/javascripts/helpers/tweets.js
|
60
|
+
- examples/prototype/spec/javascripts/jasmine-0.11.1/jasmine-html.js
|
61
|
+
- examples/prototype/spec/javascripts/jasmine-0.11.1/jasmine.css
|
62
|
+
- examples/prototype/spec/javascripts/jasmine-0.11.1/jasmine.js
|
63
|
+
- examples/prototype/spec/javascripts/support/jasmine.yml
|
64
|
+
- examples/prototype/spec/javascripts/support/jasmine_runner.rb
|
65
|
+
- frameworks/jquery.js
|
66
|
+
- frameworks/prototype.js
|
67
|
+
- lib/assets/javascripts/mock-ajax.js
|
68
|
+
- lib/spec-helper.js
|
69
|
+
- lib/version.rb
|
70
|
+
- spec/javascripts/fake-xml-http-request-spec.js
|
71
|
+
- spec/javascripts/helpers/spec-helper.js
|
72
|
+
- spec/javascripts/mock-ajax-jquery-spec.js
|
73
|
+
- spec/javascripts/mock-ajax-prototypejs-spec.js
|
74
|
+
- spec/javascripts/mock-ajax-spec.js
|
75
|
+
- spec/javascripts/support/jasmine.yml
|
76
|
+
- spec/javascripts/support/jasmine_runner.rb
|
77
|
+
homepage: ''
|
78
|
+
licenses: []
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
requirements: []
|
96
|
+
rubyforge_project: .
|
97
|
+
rubygems_version: 1.8.17
|
98
|
+
signing_key:
|
99
|
+
specification_version: 3
|
100
|
+
summary: This is an asset gem version of the Pivotal jasmine mock ajax library
|
101
|
+
test_files:
|
102
|
+
- spec/javascripts/fake-xml-http-request-spec.js
|
103
|
+
- spec/javascripts/helpers/spec-helper.js
|
104
|
+
- spec/javascripts/mock-ajax-jquery-spec.js
|
105
|
+
- spec/javascripts/mock-ajax-prototypejs-spec.js
|
106
|
+
- spec/javascripts/mock-ajax-spec.js
|
107
|
+
- spec/javascripts/support/jasmine.yml
|
108
|
+
- spec/javascripts/support/jasmine_runner.rb
|