Andrew Cantino
ec0e10c50f
initial effort on pulling Agents into gems
2014-09-27 22:12:19 -07:00
Akinori MUSHA
be4dc34f8e
Apply a correct fix for the flonum issue.
2014-09-21 23:02:39 +09:00
Akinori MUSHA
dd507e3cbf
Make Event's location accessible from Liquid templates.
2014-09-19 21:57:45 +09:00
Akinori MUSHA
edcd80f228
OK, Ruby 2.1 has introduced flonum, so do not expect identity.
2014-09-19 21:01:03 +09:00
Akinori MUSHA
b25142e793
Introduce a Location class.
2014-09-19 19:06:55 +09:00
Akinori MUSHA
d4bd3c7c8b
Add Event#location.
2014-09-19 10:36:27 +09:00
Akinori MUSHA
aceed9ac83
Add a scope with_location
to Event.
2014-09-19 10:16:02 +09:00
Akinori MUSHA
94cec5e4cd
Merge pull request #511 from knu/agent-drop_pending_events
...
Give user an option to drop pending events when enabling an agent.
2014-09-18 17:25:05 +09:00
Akinori MUSHA
faed2845c6
Add a spec for how drop_pending_events= should work.
2014-09-18 17:08:02 +09:00
Akinori MUSHA
4a06afafde
Move these specs to the right splace.
2014-09-18 16:47:04 +09:00
Akinori MUSHA
ea0fb2cf90
Make drop_pending_events a virtual attribute of Agent.
2014-09-18 15:09:17 +09:00
Akinori MUSHA
7edbf92f01
Give user an option to drop pending events when enabling an agent.
...
This is shown in a confirmation dialog introduced for enable/disable
actions.
2014-09-18 12:32:11 +09:00
Akinori MUSHA
89754a1cb3
Integrate UserLocationUpdatesController into WebRequestsController.
2014-09-17 10:39:30 +09:00
Akinori MUSHA
f720291b49
UserLocationAgent: Receive events and accept POST via WebRequestsController.
...
Show the POST URL on the details page while at it.
The old user_location_updates URLs still work.
This addresses #490 .
2014-09-16 20:56:08 +09:00
Andrew Cantino
85fb86b1cb
Merge pull request #495 from cantino/fix_rss_agent_ids
...
Calculate IDs in RssAgent if none are available
2014-09-14 14:56:31 -07:00
Andrew Cantino
34e7a52f0c
calculate ids if none are available
2014-09-13 11:51:12 -07:00
Akinori MUSHA
b71ad2e99c
Merge pull request #488 from knu/data_output_agent-pubDate
...
DataOutputAgent: Allow the `pubDate` value for each item to be given by user.
2014-09-13 16:11:38 +09:00
Andrew Cantino
40304e1f4b
Merge branch 'master' into table_sorting
2014-09-12 22:10:17 -07:00
Akinori MUSHA
9cf1e9545b
DataOutputAgent: Allow the pubDate
value for each item to be given by user.
2014-09-11 19:11:41 +09:00
Andrew Cantino
77723a91d5
tables can be sorted; optimized Agents load slightly
2014-09-10 00:23:14 -07:00
Andrew Cantino
e26a6dcfbf
remove unused method
2014-09-09 21:07:02 -07:00
Akinori MUSHA
ca6de90fc5
Add a new filter to_uri
.
2014-09-08 17:45:57 +09:00
Akinori MUSHA
23bdb7be7b
Define a default #to_s in Drop.
2014-09-02 20:04:07 +09:00
Akinori MUSHA
2db902a316
Prefer "stringify" over "stringize".
2014-09-02 20:01:55 +09:00
Akinori MUSHA
10ce9d598b
Merge remote-tracking branch 'knu/scheduler_agent'
...
Conflicts:
db/schema.rb
spec/lib/huginn_scheduler_spec.rb
2014-09-08 17:03:14 +09:00
Dominik Sander
3fa68bd1b3
Merge pull request #468 from dsander/job-management
...
Simple job management page
2014-09-07 14:16:50 +02:00
Dominik Sander
ad25568003
Sort queued jobs by next run time, allow to queue failed jobs
2014-09-07 13:28:08 +02:00
Andrew Cantino
47db27a003
reload to be clear
2014-09-06 10:35:50 -07:00
Andrew Cantino
142bb35d4e
Only update Agent's last_event_at on Event creation, not when Events are updated.
2014-09-05 20:19:39 -07:00
Akinori MUSHA
23b074193f
When the control action is run
, control targets must be schedulable.
2014-09-04 14:15:15 +09:00
Akinori MUSHA
8dc5244e6e
Merge remote-tracking branch 'origin/master' into scheduler_agent
...
Conflicts:
db/schema.rb
2014-09-03 16:59:57 +09:00
Akinori MUSHA
2b493f548b
Add specs for interpolation_context#[]=
and interpolate_with
.
2014-09-03 14:46:53 +09:00
Akinori MUSHA
51f8c8b805
Add some specs for our Rufus::Scheduler extension.
2014-09-03 13:20:18 +09:00
Akinori MUSHA
53067263cf
Allow multiples of fifteen as seconds.
2014-09-02 17:05:21 +09:00
Akinori MUSHA
c21bada226
WebsiteAgent: Provide a variable _response_ for interpolation.
...
* `_response_.headers.Header-Name` is expanded to the value of header
named _Header-Name_.
* `_response_.status` is expanded to the HTTP status as integer, which
is almost always 200, since currently the WebsiteAgent will only
create an event when a request succeeds, and the request method is
limited to GET.
2014-09-01 23:17:19 +09:00
Andrew Cantino
5a8206401a
Merge pull request #473 from cantino/nullify_agent_log_event_refs
...
Cleanup event references on AgentLogs when Events are deleted
2014-08-31 21:19:44 -07:00
Andrew Cantino
2c820e8af2
allow separate events for each answer in the HumanTaskAgent
2014-08-31 20:25:11 -07:00
Andrew Cantino
32a2a77143
Cleanup event references on AgentLogs when Events are deleted
2014-08-31 20:03:06 -07:00
Dominik Sander
250a244de5
Added specs for the HuginnScheduler
2014-09-01 00:41:53 +02:00
Dominik Sander
f27b6c5c21
Just keep the most recent 100 failed jobs + small improvements
2014-08-31 10:04:23 +02:00
Dominik Sander
830cf1bf3d
Simple job management page
...
Also added a seperate `job-indicator` for every job state
(pending/awaiting retry and failed)
The jobs page is automatically reloading when jobs are
enqueued, retried or failed.
2014-08-30 17:48:29 +02:00
Akinori MUSHA
1cea2ba36e
Merge remote-tracking branch 'origin/master' into scheduler_agent
2014-08-29 17:18:28 +09:00
Akinori MUSHA
30041706ff
Rename "target" to "control target".
2014-08-29 17:17:57 +09:00
Akinori MUSHA
d0d9c8ecf1
Fix specs for the new stuff in DOT output.
2014-08-29 17:17:35 +09:00
Akinori MUSHA
4c938f14e5
Make to_xpath
stringize a non-string operand as the standard filters do.
2014-08-28 20:34:59 +09:00
Akinori MUSHA
d378795176
Merge pull request #462 from knu/liquid-to_xpath
...
Add a Liquid filter `to_xpath`, which quotes a string for use in XPath expression.
2014-08-28 18:49:58 +09:00
Akinori MUSHA
df907c0290
Extend the spec to give a better idea on how to use to_xpath
.
2014-08-28 18:47:37 +09:00
Dominik Sander
daca2fd7b6
HipChatAgent: username length limit is 15 chars
...
Also try to use travis-cis bundle caching
2014-08-27 23:47:41 +02:00
Akinori MUSHA
806e41dd4c
Merge branch 'master' into scheduler_agent
...
Conflicts:
app/helpers/agent_helper.rb
db/schema.rb
2014-08-27 23:57:45 +09:00
Akinori MUSHA
64802bd457
uri_escape
: Do not fail when nil is given.
...
Do just the same as the standard filter `url_encode`.
2014-08-27 23:52:03 +09:00