Commit graph

814 commits

Author SHA1 Message Date
Andrew Cantino
2a99614919 Merge pull request #735 from HyeongBaeYu/huginn_patch
Fix validation issue of Get url maximum length
2015-03-18 22:33:44 -07:00
HyeongBae Yu
fcb68ccb0b Reflection of code style
Thanks cantino for advice.
I added spaces around the equal sign for code style.
2015-03-18 17:07:41 +09:00
HyeongBae Yu
e0c33f7e3f Update dot_helper.rb
opps! It's my mistake. I fixed it.
2015-03-16 10:32:49 +09:00
Akinori MUSHA
f4a177debe Factor out dynamic modal dialog creation into Utils.showDynamicModal(). 2015-03-15 17:33:59 +09:00
Akinori MUSHA
ba73dd4c8f Make dry_run! mark the object as readonly!. 2015-03-15 15:16:42 +09:00
Akinori MUSHA
45ab179cc7 Do not show a "Dry Run" button when editing a non-dry-runnable agent. 2015-03-15 15:12:20 +09:00
Akinori MUSHA
86088e3fcf Handle Ajax call failure in dry-run. 2015-03-14 04:54:53 +09:00
Akinori MUSHA
05f98cac61 Show error messages when trying to dry-run an invalid agent. 2015-03-14 04:54:34 +09:00
Akinori MUSHA
979f803759 Add a "Dry Run" feature to the Agent form.
User can test if an agent being saved will work as expected simply by
clicking the "Dry Run" button, which opens up a modal window that shows
dry-run results including log, events and memory.  Resolves #593.

The current implementation only allows dry-run of Agents that do not
require an incoming event to be run.

Also, each Agent class must opt in for this feature by declaring
themselves as `can_dry_run!`.  To begin with, only WebsiteAgent is
marked as dry-runnable for now.
2015-03-14 04:52:44 +09:00
hbywoo
3abc91956e Fix validation issue of Get url maximum length 2015-03-13 10:31:05 +09:00
Andrew Cantino
0ff1c95ab7 Merge pull request #734 from cantino/object_logging
allow logging of any object by inspecting non-strings
2015-03-11 13:08:24 -10:00
Dominik Sander
da77a8a333 Merge pull request #711 from dsander/pushbullet-unification
Pushbullet pull request unification
2015-02-25 22:52:56 +01:00
Dominik Sander
0b979dd1c0 PushbulletAgent moved device creation to a before_validation callback 2015-02-24 20:26:31 +01:00
KimJungHun
bfcec46e45 Update agents_controller.rb
I don't consider if the @agent variable is not present.
So I changed it again.
2015-02-24 19:29:13 +09:00
KimJungHun
b939a27526 Update agents_controller.rb
"@agent.destroyed?" is more simple and obvious than "message.include?("deleted")"
2015-02-24 17:59:00 +09:00
KimJungHun
073b80a5cc Update agents_controller.rb
When user stay agent details page, user can use action.

But user use "Delete agent" action, then exception error is occurred.

When action of "Delete agent" run, destory is called, it call "redirect_back".

Although @agent is destroyed, redirect_back used "path = agent_path(@agent)" .

So I add for this case.

if message include "deleted", redirect_back is called by destroy.

then redirect_back use "path = agents_path".
2015-02-24 15:49:47 +09:00
Dominik Sander
c7b4c4260f PushbulletAgent validate and autocomplete options
It will also register a new device if the device_id option is not set
2015-02-23 23:41:15 +01:00
Andrew Cantino
7ee3c01690 allow logging of any object by inspecting non-strings 2015-02-22 14:39:11 -08:00
Andrew Cantino
8a0c95bdf0 update RSSAgent doc 2015-02-22 14:23:56 -08:00
Dominik Sander
eee268a920 Made Pushbullet agent form configurable and validate additional fields 2015-02-21 21:49:07 +01:00
Dominik Sander
b8e12e2413 PushbulletAgent code refactoring 2015-02-20 00:14:48 +01:00
Dominik Sander
9902c2313c Added migration for existing PushbulletAgents and fixed the specs 2015-02-19 23:47:39 +01:00
Christian Berendt
80799bf14e [pushbullet] use API version 2 2015-02-19 22:31:18 +01:00
Christian Berendt
9edbf18422 [pushbullet] add support for further message types
There are more usable message types documented at
https://docs.pushbullet.com/v2/pushes/.
2015-02-19 22:31:05 +01:00
Christian Berendt
6d916534ae [pusbullet] add a note how to register a new device 2015-02-19 22:30:42 +01:00
Dominik Sander
66b4adad9a Added line_break tag to insert \n into liquid interpolated string 2015-02-17 23:52:19 +01:00
Andrew Cantino
8aa111f8ed Merge pull request #685 from stvnrlly/far-enough
Far enough
2015-02-06 13:39:48 -08:00
stvnrlly
4d2dea5df6 get spec working 2015-02-06 00:11:58 -05:00
Andrew Cantino
61ab9a0e03 allow a body key to be provided to set the email body 2015-01-30 14:37:30 -05:00
stvnrlly
c1a54ec365 option name and dependency check 2015-01-22 22:36:36 -05:00
stvnrlly
45bd695326 spec for distance traveled 2015-01-21 22:22:49 -05:00
stvnrlly
7aaeea823b distance traveled option for location agent 2015-01-21 21:51:46 -05:00
Andrew Cantino
2e9d1c0de9 Merge pull request #677 from stvnrlly/slack-icon
allow custom icon for slack webhooks
2015-01-21 15:58:02 -08:00
stvnrlly
f1285737e0 fix indent and add spec 2015-01-21 17:48:29 -05:00
Andrew Cantino
77d65fd825 Merge pull request #678 from stvnrlly/max-accuracy
add max_accuracy option in location agent
2015-01-20 19:31:30 -08:00
Andrew Cantino
035097bf76 refactor suggested by @knu 2015-01-20 09:45:32 -08:00
Andrew Cantino
49a94f0f7a Switch to boolify and document disable_ssl_verification 2015-01-19 20:51:56 -08:00
stvnrlly
ae286c3abe code cleanup and additional spec 2015-01-19 18:51:36 -05:00
Andrew Cantino
54c333b6ea Merge pull request #656 from vitorbaptista/648-access-site-with-invalid-ssl
Access site with invalid SSL
2015-01-19 06:39:18 -08:00
stvnrlly
50a5d2622d add spec, convert strings to integers for comparison 2015-01-17 00:36:40 -05:00
stvnrlly
147617e771 allow setting different name for accuracy field 2015-01-17 00:11:37 -05:00
stvnrlly
ccf6d7d0e0 create event if accuracy field missing entirely 2015-01-16 23:44:49 -05:00
stvnrlly
09647798e7 deal with empty option 2015-01-14 00:06:26 -05:00
stvnrlly
9550fa5bf6 add max_accuracy option in location agent 2015-01-09 00:08:46 -05:00
stvnrlly
9e4b58b023 allow custom icon for slack webhooks 2015-01-08 23:08:32 -05:00
Andrew Cantino
fae25f278c minor whitespace 2015-01-08 08:56:18 -08:00
stvnrlly
486f003f6e code cleanup 2015-01-05 23:05:11 -05:00
stvnrlly
a297d80802 only show checkbox if there are circles 2015-01-02 01:17:33 -05:00
stvnrlly
cca770ae2e allow toggling between circles and points in recent event map 2015-01-02 01:04:16 -05:00
Vitor Baptista
41c8ee7a35 [#648] Add disable_ssl_verification option to WebRequestConcern
This allows the user to disable Faraday's verification of the site's SSL
certificate.
2014-12-04 00:57:40 -03:00