Skip to content

Instantly share code, notes, and snippets.

diff --git a/gmaps-app.js b/gmaps-app.js
index 17a52b3..50cb3da 100644
--- a/gmaps-app.js
+++ b/gmaps-app.js
@@ -10,11 +10,16 @@ go.app = function() {
var LocationState = require('go-jsbox-location');
var App = vumigo.App;
var EndState = vumigo.states.EndState;
+ var ChoiceState = vumigo.states.ChoiceState;
+ var Choice = vumigo.states.Choice;
diff --git a/gmaps-app.js b/gmaps-app.js
index 17a52b3..284b1d0 100644
--- a/gmaps-app.js
+++ b/gmaps-app.js
@@ -10,6 +10,8 @@ go.app = function() {
var LocationState = require('go-jsbox-location');
var App = vumigo.App;
var EndState = vumigo.states.EndState;
+ var ChoiceState = vumigo.states.ChoiceState;
+ var Choice = vumigo.states.Choice;
diff --git a/package.json b/package.json
index db0d652..9bfa908 100644
--- a/package.json
+++ b/package.json
@@ -8,13 +8,14 @@
}
},
"dependencies": {
- "q": "~0.9.7",
+ "go-jsbox-location": "^0.1.1",
diff --git a/modules/vumigo/files/dialogue_application.yaml b/modules/vumigo/files/dialogue_application.yaml
index 1e47823..c635a57 100644
--- a/modules/vumigo/files/dialogue_application.yaml
+++ b/modules/vumigo/files/dialogue_application.yaml
@@ -12,7 +12,7 @@ riak_manager: &RIAK
env:
NODE_PATH: "/usr/lib/node_modules:/usr/local/lib/node_modules"
-app_context: "{require: function(m) { if (['moment', 'url', 'querystring', 'crypto', 'lodash', 'q', 'jed', 'libxmljs', 'zlib', 'vumigo_v01', 'vumigo_v02'].indexOf(m) >= 0) return require(m); return null; }, Buffer: Buffer}"
+app_context: "{require: function(m) { if (['moment', 'url', 'querystring', 'crypto', 'lodash', 'q', 'jed', 'libxmljs', 'zlib', 'vumigo_v01', 'vumigo_v02', 'go-jsbox-location'].indexOf(m) >= 0) return require(m); return null; }, Buffer: Buffer}"
$ git checkout develop
$ git tag
go-contacts-0.1.0a
go-contacts-0.1.1
go-contacts-0.1.2
$ SERIES=0.1.x
$ VER=0.1.3
diff --git a/go_contacts/backends/groups.py b/go_contacts/backends/groups.py
index bf8638a..cc431b1 100644
--- a/go_contacts/backends/groups.py
+++ b/go_contacts/backends/groups.py
@@ -147,6 +147,7 @@ class RiakGroupsCollection(object):
max_results = max_results or float('inf')
max_results = min(max_results, self.max_groups_per_page)
+ # Encoding and decoding are the same operation
cursor = self._encode_cursor(cursor)
@rudigiesler
rudigiesler / api-config.yaml
Last active November 18, 2015 04:38
A simple supervisord and Nginx config for running a real API.
max_contacts_per_page: 5
max_groups_per_page: 5
riak_manager: {bucket_prefix: test}
@rudigiesler
rudigiesler / issues.json
Created September 17, 2014 15:51
Example for issues list returned from API
[
{
"en": "Broken toilet",
"zh": "Aphukileyo indlu yangasese",
"value": "broken_toilet"
},
{
"en": "Broken sink",
"zh": "Aphukileyo isitya",
"value": "broken_sink"
+ it('should fire the metrics for each new user', function() {
+ return tester
+ .inputs(
+ {from_addr: '+271234', content: null},
+ {from_addr: '+274321', content: null})
+ .check(function(api, im , app) {
+ metrics = api.metrics
+ .stores['metricsHelper-tester'].uniqueUsers;
+ assert.deepEqual(
+ metrics, {agg: 'sum', values: [1]});
@rudigiesler
rudigiesler / package.json.gist
Created October 9, 2014 14:45
fix package.json for go-jsbox-ona
diff --git a/package.json b/package.json
index 69c2a4e..87e5cd8 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "go-jsbox-ona",
"version": "0.0.2a",
"description": "A vumi jsbox helper library for interacting with Ona",
- "main": "lib/index.js",
+ "main": "src/index.js",