Skip to content

Commit df94be0

Browse files
authored
Merge pull request #186 from StackStorm/refactor-chat-adapters
Modernize directory structure and refactor chat adapters
2 parents 74e9de0 + fb4616a commit df94be0

40 files changed

+1202
-1205
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ in development
55
--------------
66

77
* Move babel-eslint dependency to devDependencies (bug fix)
8-
* Small refactor and more tests (for `scripts/stackstorm.js`) (improvement)
8+
* Small refactor and more tests (for ``scripts/stackstorm.js``) (improvement)
9+
* Refactor chat providers into their own modules (improvement)
10+
* Modernize directory structure to be more consistent with other hubot plugins (improvement)
911

1012
0.9.6
1113
-----
1214
* Don't consider failed alias execution as a critical reason to exit hubot (bug fix)
1315

1416
0.9.5
1517
-----
16-
* Exit hubot on invalid, expired `ST2_API_KEY` / `ST2_AUTH_TOKEN` or any other Unauthorized response from st2 server (bug fix)
18+
* Exit hubot on invalid, expired ``ST2_API_KEY`` / ``ST2_AUTH_TOKEN`` or any other Unauthorized response from st2 server (bug fix)
1719
* When st2 username/password is used, re-generate st2 auth token in advance, giving enough time for request to complete, st2client.js (bug fix)
1820

1921
0.9.4
@@ -28,7 +30,7 @@ in development
2830

2931
0.9.2
3032
-----
31-
* Rename ENV variable `ST2_API` -> `ST2_API_URL` for consistency, keep `ST2_API` for backwards compatibility (improvement)
33+
* Rename ENV variable ``ST2_API`` -> ``ST2_API_URL`` for consistency, keep ``ST2_API`` for backwards compatibility (improvement)
3234

3335
0.9.1
3436
-----

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gulp.task('lint', () => gulp.src(settings.lint, { cwd: settings.dev })
2424
.pipe(plugins.eslint.format())
2525
);
2626

27-
gulp.task('test', () => gulp.src('tests/**/*.js', { read: false })
27+
gulp.task('test', () => gulp.src('test/**/*.js', { read: false })
2828
.pipe(plugins.mocha({ reporter: 'spec' }))
2929
);
3030

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
var fs = require('fs');
1616
var path = require('path');
1717

18-
var SCRIPTS_PATH = path.resolve(__dirname, 'scripts');
18+
var SCRIPTS_PATH = path.resolve(__dirname, 'src');
1919

2020

2121
module.exports = function(robot, scripts) {

lib/format_data.js

Lines changed: 0 additions & 301 deletions
This file was deleted.

0 commit comments

Comments
 (0)