Commit graph

3008 commits

Author SHA1 Message Date
Andrew Cantino
2a427902d3 update to ruby 2.0 in example deployment file 2013-11-23 21:25:54 -08:00
Andrew Cantino
9157a2a190 Merge pull request #106 from cantino/refactor_peak_detecter
Update PeakDetectorAgent
2013-11-23 21:20:30 -08:00
Andrew Cantino
fa492b75c8 Merge pull request #104 from cantino/transactionally_schedule
Add better event handling (expiration) and transactions
2013-11-23 21:17:59 -08:00
Andrew Cantino
39ffa2fcee Merge pull request #103 from cantino/refactor_twitter_stream
Cleanup TwitterStreamAgent and add specs
2013-11-23 21:17:24 -08:00
Andrew Cantino
97971d9385 Merge branch 'master' of github.com:cantino/huginn 2013-11-23 21:14:14 -08:00
Andrew Cantino
c2ecac2e1e bump ruby version to avoid cve-2013-4164 2013-11-23 21:14:04 -08:00
Andrew Cantino
a58ed91ba6 Merge pull request #107 from albertsun/full-json-website-agent
Website Agent Improvement
2013-11-22 22:41:10 -08:00
Albert Sun
f0741359a6 DRYed up website_agent code a bit 2013-11-22 18:14:55 -05:00
Albert Sun
43194c3c1b in website agent with type json, allow extract to be blank; in which case, the entire json object will be stored as the payload 2013-11-22 13:19:00 -05:00
Andrew Cantino
ed5cb4ca2f fix stream to work with filter groups 2013-11-07 22:47:58 -08:00
Andrew Cantino
aa8cea24de updated deployment with branch 2013-11-06 23:46:44 -08:00
Andrew Cantino
7526f01ba4 Update PeakDetectorAgent options and change it so that it detects peaks on the rise instead of fall. 2013-11-06 23:38:56 -08:00
Andrew Cantino
a2486b6785 allow filter aliases (groups) 2013-11-05 23:57:08 -08:00
Andrew Cantino
484e1210c3 add expires_at as attr_accessible 2013-11-05 20:54:12 -08:00
Andrew Cantino
86bcc465a4 allow events to expire; fix spec 2013-11-05 00:31:58 -08:00
Andrew Cantino
f32c6f0f7c add a transaction around event receiving 2013-11-04 22:28:32 -08:00
Andrew Cantino
0dcee80cba use TwitterConcern in the twitter_stream_agent; cleanup unused memory; add specs 2013-11-04 21:03:13 -08:00
Andrew Cantino
8d864c4a0b Merge pull request #101 from albertsun/concerns
Using ActiveSupport::Concerns with agents
2013-10-27 21:55:56 -07:00
Andrew Cantino
afff903283 bump rufus scheduler 2013-10-27 14:17:23 -07:00
Andrew Cantino
51d67a9624 Merge pull request #100 from KenYN/master
Handle rufus_scheduler v3 also
2013-10-27 14:10:34 -07:00
Albert Sun
bf54542242 make TwitterUserAgent and TwitterPublishAgent share a TwitterConcern 2013-10-26 17:32:06 -04:00
Albert Sun
88043dc348 starting a concerns pattern with a WeiboConern. concerns can encapsulate common functionality between related agents 2013-10-26 17:17:02 -04:00
KenYN
9991825d56 Handle rufus_scheduler v3 also
Stop rufus_scheduler v3 leaking ActiveRecord handles. See [this StackOverflow answer for details](http://stackoverflow.com/a/19380690/1270789).

rufus_scheduler v3 [deprecated `start_new`](https://github.com/jmettraux/rufus-scheduler/blob/master/lib/rufus/scheduler.rb#L120), so instead I call `new`. In [v2.0.22 this creates a `PlainScheduler`](82b70feeb2/lib/rufus/scheduler.rb (L33)), but fortunately the defaults that Huginn uses means that `start_new` in v2.0.22 also creates a `PlainScheduler`.
2013-10-21 12:17:08 +09:00
Andrew Cantino
b32cef09c9 doc 2013-10-05 11:33:33 -07:00
Andrew Cantino
3f2e2dc676 Merge branch 'master' into human_task_agent_makes_polls 2013-10-05 00:15:09 -07:00
Andrew Cantino
e71ed7ffbd Merge pull request #97 from albertsun/actionmailer-config
moving mail config into an initializer and a config/smtp.yml file
2013-10-05 00:14:48 -07:00
Andrew Cantino
0eb956e110 HumanTaskAgent can now accept combination_mode and poll_options which are used to generate a poll from the HITs answers. The poll asks additional Mechanical Turk users to rate the responses, and then the best one is returned. This allows for an additional step of validation on user generated content / data. 2013-10-04 22:24:21 -07:00
Andrew Cantino
403db15b35 Fix a bug where JSON was lost when saving invalid options 2013-09-30 21:42:20 -07:00
Albert Sun
9874e2b41a moving mail config into an initializer and a config/smtp.yml file 2013-09-27 01:15:28 -04:00
Andrew Cantino
f8744cb89a Merge pull request #96 from albertsun/asset-deploys
Asset deploys
2013-09-25 21:56:14 -07:00
Albert Sun
0481c17dac updated based on comments from cantino 2013-09-24 23:38:10 -04:00
Albert Sun
198708baa5 adding ASSET_HOST config and a staging environment file 2013-09-24 12:43:55 -04:00
Albert Sun
dd630a95e4 moving things out of assets group in gemfile 2013-09-24 12:21:41 -04:00
Albert Sun
a521695d6c initialize_on_precompile to false for asset compile 2013-09-24 12:17:38 -04:00
Andrew Cantino
9fb53c4f64 silence a log 2013-09-07 21:03:21 -07:00
Andrew Cantino
22e950214b cleanup HITs when they have been reviewed 2013-09-07 20:52:57 -07:00
Andrew Cantino
c9b4d1b1f0 allow the HITs lifetime to be set 2013-09-07 20:17:30 -07:00
Andrew Cantino
82156f3c75 move RTurk setup to an initializer 2013-09-07 18:03:26 -07:00
Andrew Cantino
a0da672a93 Merge pull request #88 from cantino/human_task_agent
Human task agent
2013-09-07 17:56:57 -07:00
Andrew Cantino
4851a7aad3 fix spec 2013-09-07 17:49:00 -07:00
Andrew Cantino
773a612dee Allow Events to be re-emitted for testing. 2013-09-07 13:53:58 -07:00
Andrew Cantino
31cdf610ac Rename max_assignments to assignments; add lots of validations and tests 2013-09-07 13:11:41 -07:00
Andrew Cantino
e24f940ac8 Merge branch 'master' into human_task_agent 2013-09-07 00:51:28 -07:00
Andrew Cantino
63e0147dd6 Merge pull request #94 from cantino/fix_xss
Prevent some possible XSS attacks
2013-09-07 00:49:21 -07:00
Andrew Cantino
3eaa9272b1 Prevent some possible XSS attacks where user input makes its way into JSON and contains </script> tags. 2013-09-07 00:34:51 -07:00
Andrew Cantino
d766eb6cd3 Merge branch 'master' into human_task_agent 2013-09-06 23:57:23 -07:00
Andrew Cantino
2ee05ab77c Merge pull request #93 from cantino/manual_event_agent
Allow Agents' detail views to POST to the server; add a new ManualEventAgent for testing
2013-09-06 23:57:11 -07:00
Andrew Cantino
8d7dde6fb5 Add a POST endpoint called handle_details_post that Agents' details views can use to send data to the Agent from the UI. Add a new ManualEventAgent that uses the handle_details_post functionality to create simple events on demand for testing / debugging. 2013-09-06 23:46:31 -07:00
Andrew Cantino
c0853a8801 Merge pull request #91 from jtzemp/master
current_user.agents fails if current_user == nil
2013-09-06 17:00:14 -07:00
JT Zemp
56cbe8bd68 current_user.agents fails if current_user == nil
I didn't want to mess with organization and style too much, so I didn't do a full-on refactor, but this might want to live as an AJAX call, or if not, maybe a helper.
2013-09-06 10:54:25 -07:00