Commit graph

16 commits

Author SHA1 Message Date
80527cbe6e Update to rtmbot 0.3.0
Merge tag '0.3.0'
2016-09-11 12:19:01 -04:00
1c23c3f94e Make the logging format a bit more verbose 2016-09-05 19:18:20 -04:00
Joe Smith
d384c8fda5 Fix up another unix-path-ism 2016-08-25 19:14:15 -07:00
Jeff Ammons
a8ee0a4477 Change to using sys.path and other windows compatibility changes 2016-08-25 16:08:00 -07:00
philipyun103
1fb557b178 Add API Context to Plugin Context
updated idea of @zbarahal’s PR (PR #20) to reflect the current master.
2016-08-07 00:42:37 -07:00
Jeff Ammons
c81bdfec99 Fix unicode error in py2.7 for example plugin
Strings should now be passed to the plugins as unicode values in py2.7
so we have to make sure that we don't convert those into ascii by using
python str instead of u'' strings.
2016-06-05 13:49:00 -07:00
Jeff Ammons
2b9e9b752c Add tests and bugfix for b'' messages appearing in python3.
I added unicode and non-unicode message testing for the output() method
on RTMBot. I'm concerned about why the encode('ascii', 'ignore') was
there in the first place, but not having it seems to do the right
thing...
2016-05-27 17:59:40 -07:00
0c1bf23961 Remove the encode() in core 2016-05-18 00:14:47 -04:00
Jeff Ammons
ef76bd58d2 Adding initial test for rtmbot and hopefully coveralls 2016-05-11 15:03:15 -07:00
Jeff Ammons
84db35fa6f Improve debug state handling and error messaging
If debug=True:
- Most plugin methods (if not all) should end the script and report the
  error to std.out
If debug=False:
- Plugin methods will log the error, data, and stack trace

Future planning:
- The debug=False case here has better behavior in my opinion, maybe
  there's a better way of handling debug=True
2016-04-24 12:40:37 -07:00
Jeff Ammons
c7582a7098 Conform all self.debug values to False
I really want to remove this dbg() mess.
2016-04-17 18:42:54 -07:00
Jeff Ammons
e1d4816e55 Remove unused global site_config 2016-04-17 18:29:17 -07:00
Jeff Ammons
f12a90ab0a Fix missing debug context in Job 2016-04-17 17:34:17 -07:00
Jeff Ammons
4c7fa8b9ae Merge branch 'master' of https://github.com/tzakrajs/python-rtmbot into tzakrajs-master
Also fixes some PEP8 issues and a number of small bugs.
2016-04-17 16:41:39 -07:00
Thomas Zakrajsek
bfe7df401a fixed regression, now self.debug exists in Plugin class context 2015-08-02 19:08:29 -04:00
Thomas Zakrajsek
45e9f7780c refactored main into start_rtmbot.py, refactored so that RtmBot class is more self sufficient and can be imported and used more easily, removed unused objects from main 2015-08-02 18:29:11 -04:00