Commits

Rich Manalang [Atlassian] committed acee8cb Merge

Merge branch 'release/0.8.0'

Comments (0)

Files changed (5)

lib/internal/registration.js

 function registerConnect(hostRegUrl, descriptorUrl) {
   var promise = new RSVP.Promise(function(resolve,reject) {
     request.post({
-      uri: hostRegUrl + '/rest/remotable-plugins/latest/installer',
+      uri: hostRegUrl + '/rest/atlassian-connect/latest/installer',
       form: {url: descriptorUrl},
       jar: false
     }, function (err, res) {
 function deregisterConnect(self, hostRegUrl, clientKey) {
   var promise = new RSVP.Promise(function(resolve,reject) {
     request.del({
-      uri: hostRegUrl + '/rest/remotable-plugins/latest/uninstaller/' + self.key,
+      uri: hostRegUrl + '/rest/atlassian-connect/latest/uninstaller/' + self.key,
       jar: false
     }, function (err, res) {
       if (err || (res && res.statusCode !== 204)) return reject([err, res]);

lib/middleware/request.js

 
 function hostResourceUrl(app, baseUrl, type) {
   var suffix = app.get('env') === 'development' ? '-debug' : '';
-  return baseUrl + '/remotable-plugins/all' + suffix + '.' + type;
+  return baseUrl + '/atlassian-connect/all' + suffix + '.' + type;
 }
 
 function camelize(s) {
 {
   "name": "atlassian-connect-express",
-  "version": "0.7.1",
+  "version": "0.8.0",
   "description": "Library for building Atlassian Add-ons on top of Express",
   "dependencies": {
     "express": "~3.3.4",

test/atlassian-plugin.xml

 <atlassian-plugin key="{{key}}" name="{{name}}" plugins-version="2"
-  xmlns="https://remoteapps.jira.com/rest/remotable-plugins/1/installer/schema/atlassian-plugin">
+  xmlns="https://remoteapps.jira.com/rest/atlassian-connect/1/installer/schema/atlassian-plugin">
 
   <plugin-info>
     <description>{{description}}</description>
     {{#if documentationUrl}}
     <param name="documentation.url">{{documentationUrl}}</param>
     {{/if}}
-    <param name="configure.url">/plugins/servlet/remotable-plugins/{{key}}/config-page</param>
+    <param name="configure.url">/plugins/servlet/atlassian-connect/{{key}}/config-page</param>
   </plugin-info>
 
   <remote-plugin-container key="container" display-url="{{localBaseUrl}}">

test/descriptor_test.js

     assert.equal(docUrl, 'http://example.com');
     var configUrl = addon.descriptor.configureUrl();
     assert.equal(typeof configUrl, 'string');
-    assert.equal(configUrl, '/plugins/servlet/remotable-plugins/my-test-app-key/config-page');
+    assert.equal(configUrl, '/plugins/servlet/atlassian-connect/my-test-app-key/config-page');
     done();
   });