Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated packages

  • Loading branch information...
commit ebb2adbf72437c48e40cdc58b07552ef745ab966 1 parent 76bd53e
@sebv authored
View
2  index.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
(function() {
module.exports = require('./lib/soda-sync');
View
8 lib/soda-sync.coffee
@@ -1,5 +1,5 @@
soda = require("soda")
-{makeSync,sync} = require 'make-sync'
+{makeSync,sync,current} = require 'make-sync'
buildOptions =
mode: 'sync'
@@ -15,7 +15,7 @@ patch = (browser, options) ->
_sync = (cb) ->
if cb?
sync ->
- Fiber.current.soda_sync_browser = browser
+ current().soda_sync_browser = browser
cb.apply browser , []
{
browser: browser
@@ -31,7 +31,7 @@ sodaSync =
# retrieve the browser currently in use
# useful when writting helpers
- current: -> Fiber.current.soda_sync_browser
+ current: -> current().soda_sync_browser
# careful, below browser is a function so it get evaluated with the rest
@@ -44,7 +44,7 @@ sodaSync =
globalOptions.pre.apply @, [] if globalOptions?.pre?
options.pre.apply @, [] if options?.pre?
sync ->
- Fiber.current.soda_sync_browser = globalOptions?.with?()
+ current().soda_sync_browser = globalOptions?.with?()
cb.apply globalOptions?.with?(), []
done() if done?
View
12 lib/soda-sync.js
@@ -1,10 +1,10 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
(function() {
- var buildOptions, makeSync, patch, soda, sodaSync, sync, _ref;
+ var buildOptions, current, makeSync, patch, soda, sodaSync, sync, _ref;
soda = require("soda");
- _ref = require('make-sync'), makeSync = _ref.makeSync, sync = _ref.sync;
+ _ref = require('make-sync'), makeSync = _ref.makeSync, sync = _ref.sync, current = _ref.current;
buildOptions = {
mode: 'sync',
@@ -19,7 +19,7 @@
_sync = function(cb) {
if (cb != null) {
return sync(function() {
- Fiber.current.soda_sync_browser = browser;
+ current().soda_sync_browser = browser;
return cb.apply(browser, []);
});
}
@@ -38,7 +38,7 @@
return patch(soda.createSauceClient(options), options);
},
current: function() {
- return Fiber.current.soda_sync_browser;
+ return current().soda_sync_browser;
},
can: function(globalOptions) {
return function(options, cb) {
@@ -55,7 +55,7 @@
options.pre.apply(this, []);
}
return sync(function() {
- Fiber.current.soda_sync_browser = globalOptions != null ? typeof globalOptions["with"] === "function" ? globalOptions["with"]() : void 0 : void 0;
+ current().soda_sync_browser = globalOptions != null ? typeof globalOptions["with"] === "function" ? globalOptions["with"]() : void 0 : void 0;
cb.apply(globalOptions != null ? typeof globalOptions["with"] === "function" ? globalOptions["with"]() : void 0 : void 0, []);
if (done != null) {
return done();
View
12 package.json
@@ -11,14 +11,14 @@
"test": "cake test"
}
, "dependencies": {
- "soda": "git://github.com/LearnBoost/soda.git",
+ "soda": "0.2.x",
"make-sync": "0.1.x"
}
, "devDependencies" : {
- "coffee-script" : "1.3.x"
- , "sv-cake-utils" : "0.1.x"
- , "mocha": "1.6.x"
- ,"should": "1.2.x"
- ,"sv-selenium": "0.1.x"
+ "coffee-script" : "latest"
+ , "sv-cake-utils" : "latest"
+ , "mocha": "latest"
+ ,"should": "latest"
+ ,"sv-selenium": "latest"
}
}
View
2  test/sauce/config.sample.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
(function() {
module.exports = {
View
2  test/sauce/sauce-test.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
(function() {
var config, should, sodaSync;
View
2  test/unit/can-test.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
(function() {
var should, sodaSync, someText;
View
2  test/unit/sync-test.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.4.0
(function() {
var should, sodaSync;
Please sign in to comment.
Something went wrong with that request. Please try again.