jasmine-ajax 0.0.1 → 0.0.2

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.
@@ -48,7 +48,7 @@ function clearAjaxRequests() {
48
48
 
49
49
  // Fake XHR for mocking Ajax Requests & Responses
50
50
  function FakeXMLHttpRequest() {
51
- var extend = Object.extend || $.extend;
51
+ var extend = Object.extend || jQuery.extend;
52
52
  extend(this, {
53
53
  requestHeaders: {},
54
54
 
@@ -151,7 +151,7 @@ jasmine.Ajax = {
151
151
  installJquery: function() {
152
152
  jasmine.Ajax.mode = 'jQuery';
153
153
  jasmine.Ajax.real = jQuery.ajaxSettings.xhr;
154
- jQuery.ajaxSettings.xhr = jasmine.Ajax.jQueryMock;
154
+ jQuery.ajaxSetup({xhr: jasmine.Ajax.jQueryMock});
155
155
 
156
156
  },
157
157
 
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "jasmine-ajax"
7
+ s.version = Jasmine::Ajax::VERSION
8
+ s.authors = ["Chris Nelson", "Pivotal Labs"]
9
+ s.email = ["superchrisnelson@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{This is an asset gem version of the Pivotal jasmine mock ajax library}
12
+ s.description = %q{}
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+
19
+ # specify any dependencies here; for example:
20
+ # s.add_development_dependency "rspec"
21
+ # s.add_runtime_dependency "rest-client"
22
+ end
@@ -0,0 +1,6 @@
1
+ module Jasmine
2
+ module Ajax
3
+ class Engine < Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -1,5 +1,5 @@
1
1
  module Jasmine
2
2
  module Ajax
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-ajax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -26,6 +26,7 @@ files:
26
26
  - MIT.LICENSE
27
27
  - README.markdown
28
28
  - Rakefile
29
+ - app/assets/javascripts/mock-ajax.js
29
30
  - examples/jquery/Rakefile
30
31
  - examples/jquery/public/css/master.css
31
32
  - examples/jquery/public/css/reset.css
@@ -64,7 +65,8 @@ files:
64
65
  - examples/prototype/spec/javascripts/support/jasmine_runner.rb
65
66
  - frameworks/jquery.js
66
67
  - frameworks/prototype.js
67
- - lib/assets/javascripts/mock-ajax.js
68
+ - jasmine-ajax.gemspec
69
+ - lib/jasmine-ajax.rb
68
70
  - lib/spec-helper.js
69
71
  - lib/version.rb
70
72
  - spec/javascripts/fake-xml-http-request-spec.js
@@ -93,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
95
  - !ruby/object:Gem::Version
94
96
  version: '0'
95
97
  requirements: []
96
- rubyforge_project: .
98
+ rubyforge_project:
97
99
  rubygems_version: 1.8.17
98
100
  signing_key:
99
101
  specification_version: 3