magic_carpet 0.5.0 → 0.6.0
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/magic_carpet/magic_carpet.js +3 -1
- data/app/controllers/magic_carpet/js_fixtures_controller.rb +1 -0
- data/lib/magic_carpet/version.rb +1 -1
- data/spec/controllers/magic_carpet/js_fixtures_controller_spec.rb +5 -0
- data/spec/dummy/log/development.log +3421 -0
- data/spec/dummy/log/test.log +2490 -0
- data/spec/dummy/spec/javascripts/magic_carpet_spec.js +10 -2
- data/spec/dummy/tmp/cache/assets/development/sprockets/0e3142f2ae2a0b8902383f65b86a5299 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0f87038bb320b83592e071bff83e4195 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1e259f0863fa6da47ded59eef77ac351 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/220ab8240fd9e0712b64dd9ff515f5df +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4817f65b5fc5c2042e04af7eb83a4c99 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/497ff8927ce695e3febb3cdfd3e4a74e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/55ea602f40a0ad2185e22964a16b4d42 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/744bda5bad4a3b9b9b244a4583fb6e29 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7cd1032c2c1fa8a02016ac207cd9c76f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/91ef1ca0ef363be62f4a38fb3fbc2291 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a0d10779d647db6ab1328734733a0e4d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/caa2f86bb055636b69e292f2ae993914 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/db4f843f0e597f7ba079bec345a91d58 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/dd5a838f402c1f78ff0f6e43b3ce6624 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e4092eb95487a855cb730373c97b8756 +0 -0
- data/spec/dummy/tmp/jasmine/assets/helpers/spec_helper.js +2 -2
- data/spec/dummy/tmp/jasmine/assets/magic_carpet/application.js +2 -2
- data/spec/dummy/tmp/jasmine/assets/magic_carpet/magic_carpet.js +2 -2
- data/spec/dummy/tmp/jasmine/assets/magic_carpet_spec.js +0 -3
- data/spec/dummy/tmp/pids/server.pid +1 -1
- metadata +2 -2
@@ -17,6 +17,14 @@ describe("MagicCarpet", function() {
|
|
17
17
|
expect(subject.asyncComplete).toBeTrue();
|
18
18
|
});
|
19
19
|
|
20
|
+
it("has its host property default to localhost:3000", function(){
|
21
|
+
expect(subject.host).toEqual("http://localhost:3000");
|
22
|
+
});
|
23
|
+
|
24
|
+
it("has its route property set to /magic_carpet by default", function(){
|
25
|
+
expect(subject.route).toEqual("/magic_carpet");
|
26
|
+
});
|
27
|
+
|
20
28
|
it("has an object for caching request results", function(){
|
21
29
|
expect(subject.cache).toBeObject();
|
22
30
|
});
|
@@ -154,8 +162,8 @@ describe("MagicCarpet", function() {
|
|
154
162
|
arg = $.ajax.calls.argsFor(0)[0];
|
155
163
|
});
|
156
164
|
|
157
|
-
it("makes a get request to /magic_carpet", function(){
|
158
|
-
expect(arg.url).toEqual(
|
165
|
+
it("makes a get request to the host at route /magic_carpet", function(){
|
166
|
+
expect(arg.url).toEqual(subject.host + subject.route);
|
159
167
|
expect(arg.method).toEqual("get");
|
160
168
|
});
|
161
169
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -54,7 +54,8 @@
|
|
54
54
|
this.lastRequest = data;
|
55
55
|
this.asyncComplete = false;
|
56
56
|
$.ajax({
|
57
|
-
url: "/magic_carpet",
|
57
|
+
// url: "/magic_carpet",
|
58
|
+
url: "http://localhost:3000/magic_carpet",
|
58
59
|
method: "get",
|
59
60
|
async: this.async,
|
60
61
|
data: data
|
@@ -71,7 +72,6 @@
|
|
71
72
|
},
|
72
73
|
|
73
74
|
handleFailure: function(response) {
|
74
|
-
debugger;
|
75
75
|
throw new Error(response.responseJSON.error);
|
76
76
|
},
|
77
77
|
|
@@ -54,7 +54,8 @@
|
|
54
54
|
this.lastRequest = data;
|
55
55
|
this.asyncComplete = false;
|
56
56
|
$.ajax({
|
57
|
-
url: "/magic_carpet",
|
57
|
+
// url: "/magic_carpet",
|
58
|
+
url: "http://localhost:3000/magic_carpet",
|
58
59
|
method: "get",
|
59
60
|
async: this.async,
|
60
61
|
data: data
|
@@ -71,7 +72,6 @@
|
|
71
72
|
},
|
72
73
|
|
73
74
|
handleFailure: function(response) {
|
74
|
-
debugger;
|
75
75
|
throw new Error(response.responseJSON.error);
|
76
76
|
},
|
77
77
|
|
@@ -54,7 +54,8 @@
|
|
54
54
|
this.lastRequest = data;
|
55
55
|
this.asyncComplete = false;
|
56
56
|
$.ajax({
|
57
|
-
url: "/magic_carpet",
|
57
|
+
// url: "/magic_carpet",
|
58
|
+
url: "http://localhost:3000/magic_carpet",
|
58
59
|
method: "get",
|
59
60
|
async: this.async,
|
60
61
|
data: data
|
@@ -71,7 +72,6 @@
|
|
71
72
|
},
|
72
73
|
|
73
74
|
handleFailure: function(response) {
|
74
|
-
debugger;
|
75
75
|
throw new Error(response.responseJSON.error);
|
76
76
|
},
|
77
77
|
|
@@ -234,9 +234,6 @@ describe("MagicCarpet", function() {
|
|
234
234
|
beforeEach(function() {
|
235
235
|
subject.async = false;
|
236
236
|
subject.initialize();
|
237
|
-
console.log("*********************************************");
|
238
|
-
console.log(window.location);
|
239
|
-
console.log("*********************************************");
|
240
237
|
});
|
241
238
|
|
242
239
|
describe("templates", function(){
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3869
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magic_carpet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Crismali
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|