Commit graph

836 commits

Author SHA1 Message Date
Akinori MUSHA
00514d2ca5 Add a hover-help for the Options field which explains interpolation. 2014-07-24 17:02:55 +09:00
Akinori MUSHA
c1f114d56b Make {{agent}} universally accessible from any agent.
To implement this, EventDrop is introduced to represent an Event object
in interpolation.
2014-07-24 15:48:09 +09:00
Akinori MUSHA
6c30b1676e Fix grammar. 2014-07-23 17:26:54 +09:00
Akinori MUSHA
a799408272 Add specs for AgentDrop. 2014-07-23 17:09:35 +09:00
Akinori MUSHA
9ab66aa32e Fix specs after the transition from skip_agent to {{agent}}. 2014-07-23 09:53:19 +09:00
Akinori MUSHA
f79e26d63a Remove the "skip_agent" option from EventFormattingAgent.
It is now possible to include an agent name without the special flag
just by putting `"agent" => "{{agent.type}}"` in "instructions".

This commit includes automatic migration.
2014-07-22 23:06:42 +09:00
Akinori MUSHA
e55bb4ac3d EventFormattingAgent: Enable access to upstream agent info via "agent".
With this enhancement you can, for example, embed the site URL in an
event created by WebsiteAgent by interpolating like
"{{agent.options.url}}", or add a message prefix depending on the type
of upstream agent using the "case" construct of Liquid.
2014-07-22 22:52:07 +09:00
Akinori MUSHA
a25e4f6c2a Fix a leftover of JsonPath to Liquid conversion. 2014-07-22 22:47:27 +09:00
Akinori MUSHA
4be27d53c7 Add Agent#short_type. 2014-07-22 21:58:34 +09:00
Andrew Cantino
67fcfef70c Merge pull request #408 from cantino/multiple_email_recipients
allow email agents to accept an optional "recipients" list to override the account default
2014-07-20 19:07:22 -07:00
Andrew Cantino
2ab771d61e Merge pull request #409 from cantino/post_agent_interpolates_url
allow the PostAgent to accept interpolation in post_url
2014-07-20 19:06:30 -07:00
Andrew Cantino
b257d11a26 allow the PostAgent to accept interpolation in post_url 2014-07-20 14:45:17 -07:00
Andrew Cantino
93dacae42c allow email agents to accept an optional "recipients" list to override the account default 2014-07-20 14:18:47 -07:00
Andrew Cantino
d0a8446628 Merge pull request #402 from albertsun/safer-liquid-migration
Inline models into migration
2014-07-16 22:26:22 -07:00
Albert Sun
4a433806ee inline models into migration 2014-07-16 15:25:08 -04:00
Andrew Cantino
6ffa528ab0 Merge pull request #398 from knu/imap_use_uid
Use "last seen UID" in ImapFolderAgent
2014-07-15 19:47:37 -07:00
Andrew Cantino
c7e29492c9 Merge pull request #391 from theofpa/master
Ignore xmlns when evaluating xpath
2014-07-12 15:19:56 -07:00
Akinori MUSHA
f3552ece2e ImapFolderAgent: Emit a log message when creating an event or skipping it. 2014-07-11 19:19:12 +09:00
Akinori MUSHA
d144d3797d ImapFolderAgent: Enable notification of mails already marked as read.
Add a condition key "is_unread" to allow user to select mails based on
the read status.
2014-07-11 19:08:55 +09:00
Akinori MUSHA
d1196a35ad ImapFolderAgent: "conditions" must not actually be nil. 2014-07-11 18:02:09 +09:00
Akinori MUSHA
280c09415e ImapFolderAgent: Do not fail when port is blank. 2014-07-11 18:02:09 +09:00
Akinori MUSHA
045fb957b2 ImapFolderAgent now recognizes "true"/"false" as boolean option values.
Add a utility method Agent#boolify to make it easier to handle boolean
option values.
2014-07-11 18:02:09 +09:00
Akinori MUSHA
c1b9caa8cc ImapFolderAgent: Unstringify integer keys of a hash saved in JSON. 2014-07-11 18:01:26 +09:00
Akinori MUSHA
6a06a32447 ImapFolderAgent: Only keep a single UID value for each folder in memory.
Previously it used to keep a list of the UIDs of unread mails.  Now we
start to assume that UIDs in a folder identified by a UID VALIDITY value
are strictly ascending (monotonically increasing) as suggested by RFC
3501 and 4549 and just keep the highest UID seen in the last run.

This enhancement will help reduce the size of memory typically where
mails are left unread forever.
2014-07-11 18:01:26 +09:00
Andrew Cantino
9ed63e45b2 Merge pull request #397 from cantino/update_rails_and_gems
upgrade rails and gems
2014-07-05 16:34:29 -07:00
Andrew Cantino
87a7abda23 upgrade rails and gems 2014-07-05 08:01:36 -07:00
Andrew Cantino
ea7594fa97 Merge pull request #396 from knu/show_propagate_immediately
Make propagate_immediately more visible in agent details and the diagram.
2014-07-03 20:50:40 -07:00
Akinori MUSHA
0e80f53415 Dashed line in a diagram indicates propagate_immediately being false. 2014-07-04 03:42:52 +09:00
Akinori MUSHA
cf9cdfb3ac Show the propagate_immediately flag in agent details. 2014-07-04 02:53:31 +09:00
Andrew Cantino
b1128335b8 Merge pull request #389 from dsander/silence_worker_status
Supress logging for requests to the /worker_status
2014-07-01 21:47:40 -07:00
Andrew Cantino
d25e670b1c Merge pull request #393 from CloCkWeRX/google_calendar
Add Google calendar publish agent
2014-07-01 21:47:16 -07:00
Andrew Cantino
d7b0e35aaa switch to cantino-twitter-stream 2014-07-01 21:36:38 -07:00
Daniel O'Connor
d465158f77 Shift to dev group 2014-07-01 16:37:47 +09:30
Daniel O'Connor
4276afef5f Drop copy/pasted default option. 2014-06-30 08:27:35 +09:30
Daniel O'Connor
2b38047d47 Tabs -> 2 space soft tab 2014-06-29 22:18:05 +09:30
Andrew Cantino
fa036646dd Merge pull request #394 from cantino/post_agent_additions
PostAgent Additions
2014-06-29 13:57:09 +02:00
Daniel O'Connor
6ed4f5ab67 Fix up interaction with triggeragents by allowing a message param 2014-06-29 03:22:49 +09:30
Daniel O'Connor
e28b63e3e3 Update docs slightly 2014-06-29 03:07:09 +09:30
Daniel O'Connor
658962ceaf Merge branch 'google_calendar' of github.com:CloCkWeRX/huginn into google_calendar
Conflicts:
	Gemfile.lock
	app/models/agents/google_calendar_publish_agent.rb
	lib/google_calendar.rb
2014-06-29 02:57:37 +09:30
Daniel O'Connor
62e36d85cc Pass spec 2014-06-29 02:56:03 +09:30
Daniel O'Connor
b7346a5cf9 Add spec 2014-06-29 02:55:51 +09:30
Daniel O'Connor
46606455c1 Add VCR support, for more complex mocking. 2014-06-29 02:54:42 +09:30
Daniel O'Connor
5d26473da1 Various minor typos 2014-06-29 00:14:27 +09:30
Daniel O'Connor
8d2cfc8456 Publish raw payload 2014-06-28 23:44:48 +09:30
Daniel O'Connor
b5c960db56 Update documentation 2014-06-28 23:44:48 +09:30
Daniel O'Connor
fc3b67e7d0 Improve documentation 2014-06-28 23:44:48 +09:30
Daniel O'Connor
3006855bc0 Fork twitter agent to create google calendar publish agent 2014-06-28 23:44:48 +09:30
Daniel O'Connor
604581cf7e Add a service account based helper library for publishing google calendar events. 2014-06-28 23:44:48 +09:30
Daniel O'Connor
790d48f3a8 Add google api client 2014-06-28 23:44:48 +09:30
Andrew Cantino
8c18160e15 fix missing default schedule usage when making an agent 2014-06-28 00:27:42 +02:00