Skip to content

Instantly share code, notes, and snippets.

View kborchers's full-sized avatar

Kris Borchers kborchers

  • GM Financial
  • Dallas, TX
  • 15:04 (UTC -05:00)
View GitHub Profile
Fails:
{"title":"test","date":"2012-12-12","description":"test","tags":[2]}
Works:
{"title":"test","date":"2012-12-12","description":"test","tags":[]}
No project but has tags, fails. No project and no tags works.
var todo = aerogear.pipeline([
{
name: "tasks",
settings: {
url: "/todo-server/tasks"
}
},
{
name: "projects",
settings: {
var todo = aerogear.pipeline( [ "tasks", "projects", "tags" ] );
<xsl:choose>
<xsl:when test="count(signature) > 0">
do your loop
</xsl:when>
<xsl:otherwise>
do with current
</xsl:otherwise>
</xsl:choose>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.as.quickstarts</groupId>
<artifactId>jboss-as-kitchensink-html5-mobile</artifactId>
<version>1.0.0.M4</version>
<packaging>war</packaging>
<name>JBoss AS Quickstarts: AeroGear HTML5/Mobile</name>
aerogear-js krisborchers$ rake doc --trace
rake aborted!
/Users/krisborchers/.rvm/gems/ruby-1.9.3-p194@global/gems/pdoc-0.2.0/lib/pdoc/generators/html/helpers.rb:115: invalid multibyte char (US-ASCII)
/Users/krisborchers/.rvm/gems/ruby-1.9.3-p194@global/gems/pdoc-0.2.0/lib/pdoc/generators/html/helpers.rb:115: invalid multibyte char (US-ASCII)
/Users/krisborchers/.rvm/gems/ruby-1.9.3-p194@global/gems/pdoc-0.2.0/lib/pdoc/generators/html/helpers.rb:115: syntax error, unexpected $end, expecting keyword_end
"[#{auto_link(match[1], options)}…]"
^
/Users/krisborchers/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/krisborchers/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/krisborchers/.rvm/gems/ruby-1.9.3-p194@global/gems/pdoc-0.2.0/lib/pdoc/generators/html.rb:3:in `<top (required)>'
total 56
drwxr-xr-x 14 krisborchers staff 476 Aug 28 22:34 .
drwxr-xr-x 10 krisborchers staff 340 Aug 30 07:20 ..
-rw-r--r-- 1 krisborchers staff 62 Aug 28 22:34 .npmignore
-rw-r--r-- 1 krisborchers staff 395 Aug 28 22:34 README.md
drwxr-xr-x 3 krisborchers staff 102 Aug 28 22:34 app
-rw-r--r-- 1 krisborchers staff 587 Aug 28 22:34 frontend.js
-rw-r--r-- 1 krisborchers staff 5654 Aug 28 22:34 grunt.js
drwxr-xr-x 5 krisborchers staff 170 Aug 28 22:34 lib
drwxr-xr-x 3 krisborchers staff 102 Aug 28 22:34 log
Kriss-MacBook-Pro:jqueryui.com krisborchers$ grunt deploy
Running "clean:folder" (clean) task
Folder "dist/" contents removed.
Running "lint:grunt" (lint) task
Lint free.
Running "build-pages:all" (build-pages) task
Built 2 pages.
Running "build-download" task
Initializing download module, might take a while
>> node.js:201
>> throw e; // process.nextTick error, or 'error' event on first tick
>> ^
>> TypeError: Object #<Object> has no method 'existsSync'
>> at setup (/Users/krisborchers/git-repo/jqueryui.com/node_modules/download.jqueryui.com/grunt.js:45:11)
>> at /Users/krisborchers/git-repo/jqueryui.com/node_modules/download.jqueryui.com/node_modules/async/lib/async.js:486:21
>> at /Users/krisborchers/git-repo/jqueryui.com/node_modules/download.jqueryui.com/node_modules/async/lib/async.js:185:13
>> at /Users/krisborchers/git-repo/jqueryui.com/node_modules/download.jqueryui.com/node_modules/async/lib/async.js:108:13

AeroGear DataManager JavaScript Specification

This is a very high level overview of the DataManager spec for the AeroGear.js library. This can also be used as inspiration for the other client libraries and is open for discussion from all points of view.

AeroGear.DataManager

Similar to AeroGear.Pipeline, this is an object used as a factory for creating new DataManager objects, which at this time are being referred to as valves in an attempt to stay with the Pipeline theme but is definitely not a name that is set in stone. A new valve is based off of adapters and planned adapters for the JS lib are memory (default), session/local storage, IndexedDB and possibly Web SQL though I believe this is no longer maintained and may be unnecessary. These objects then deal only with client side data.

Methods