Commit graph

2855 commits

Author SHA1 Message Date
Andrew Cantino
eb3683343a Update README.md 2017-05-11 19:13:28 +12:00
Gergely Brautigam
871b7d5570 Update to bugfix on JsonPath. Floating point numbers in eval statements. (#1997) 2017-05-11 11:51:36 +12:00
Dominik Sander
00dffe3248 Switch graphviz heroku buildpack to a fork to support new heroku stack
The new default Heroku-16 stack is based on Ubuntu 16 which is not yet
supported by the upstream version of the graphviz buildpack.

Switching to a fork until upstream is updated.
2017-05-10 11:27:17 +02:00
Andrew Cantino
4958ff2ed2 Update README.md 2017-05-08 21:58:57 +12:00
Dominik Sander
e815b8dff2 Merge pull request #1996 from Skarlso/update_jsonpathv2_to_jsonpath
Remove jsonpathv2 as the original is now up-to-date.
2017-05-07 22:01:17 +02:00
Gergely Brautigam
3ae2819d50
Remove jsonpathv2 as the original is now up-to-date. 2017-05-07 08:40:18 +02:00
Andrew Cantino
3519d80e12 Update README.md 2017-05-04 21:59:04 +12:00
Andrew Cantino
9ad4741212 Revert "Protect the latest event from automatic deletion when using MySQL" (#1993) 2017-05-01 14:17:42 +12:00
Andrew Cantino
05f63d32a0 Update README.md 2017-04-29 20:34:49 +12:00
Akinori MUSHA
807c493efe Add a tweak for Travis where BUNDLE_GEMFILE is preset 2017-04-28 20:41:54 +09:00
Akinori MUSHA
eb48fd3f6d Merge pull request #1974 from cantino/fix_1940
Protect the latest event from automatic deletion when using MySQL
2017-04-28 19:29:25 +09:00
Akinori MUSHA
10e0398444 Add a new option unbundle to ShellCommandAgent
This addresses #1989.
2017-04-28 19:23:03 +09:00
Albert Sun
2ac6927a6a Option for custom response headers for receive_web_request (#1977)
* Option for custom response headers for receive_web_request

In DataOutputAgent, WebhookAgent, LiquidOutputAgent, this enables
setting options['response_headers'] as a JSON object with custom
response headers to set on the HTTP response through the
WebRequestsController.

* code copy edits from @cantino
2017-04-27 12:19:59 +12:00
Dominik Sander
e1f702adf1 Upgrade liquid (#1982)
* Update Liquid to 4.0

* Handle Liquid renaming before_method to liquid_method_missing

* Adopt `regex_replace` tags to new Liquid BlockBody class
2017-04-26 22:09:21 +02:00
Jon Neverland
2b41b6cc54 Google translate (#1978)
* Added GoogleTranslationAgent

* Well, I forgot to add it..

* Wrong ruby version

* Removed duplicate GoogleTranslationAgent

* Fixed Gemfile upgrades by adding required version of jwt

* Added spec for GoogleTranslationAgent and fixed description

* PR fixes:
No more hash rockets
Added info to description
Indentation

* Deleted TranslationAgent because service is deprecated

* Reverted google-api-client version

* Downgraded rest of gems and fixed hash rockets

* More PR fixes
2017-04-26 17:49:05 +12:00
Warloxx
e3f79bf84b Rss agent dynamic cleanup (#1733)
* Remove fixed limit of 500 IDs used to figure out which entries are new.
Instead each ID that is checked against the seen_ids gets moved to the top of the list.
IDs that are no longer used in the RSS Feed will end up at the bottom of the seen_ids list end will be removed.

* remove uncommented code line

* fix undefined method `count' for nil:NilClass, in case the first fetch of an rss feed failed or fetched empty rss feed.

changed spec to verify the deletion of old ids by keeping all current ones, not by fixed limit

* revert changes for dynamic cleanup.
Instead made the limit of stored ids configurable. (key: max_ids)
Default limit will remain 500.

* fixed error message.
replaced repeated function call with single call specifying amount.
using options['max_ids'] instead of interpolated['max_ids'] to retrieve setting.

* Rename to remembered_id_count and fix spec

* Update rss_agent.rb

fixed indentation
2017-04-24 10:44:03 +12:00
Jon Neverland
81324ebad4 Fixed TwilioReceiveTextAgent#default_options (#1980) 2017-04-21 17:03:13 +02:00
Akinori MUSHA
be16c50bbd Add a spec for the change 2017-04-19 20:04:44 +09:00
Akinori MUSHA
cabc7156d1 Protect the latest event from automatic deletion when using MySQL
This is a workaround for #1940.
2017-04-19 19:25:14 +09:00
Akinori MUSHA
7c30c284b3 Merge pull request #1973 from cantino/rss_content_type
Make DataOutputAgent serve RSS output as `application/rss+xml`
2017-04-19 17:59:32 +09:00
Akinori MUSHA
722349c5cd Make DataOutputAgent serve RSS output as application/rss+xml
For backward compatibility, a new option `rss_content_type` is added
and existing agents will have its value set to `text/xml`, which was
the Content-Type value before this change.

This fixes #1968.
2017-04-19 17:35:46 +09:00
SoonKhen OwYong
37a70f62a7 add another method to ping yourself from huginn (#1970)
I have tested this from my sk-huginn.herokuapp.com instance and it seems to work
2017-04-19 19:23:18 +12:00
Dominik Sander
3726709efd Fix dry runs controller spec 2017-04-12 13:32:58 +02:00
Dominik Sander
fbc892d9da Merge pull request #1965 from dsander/dry-run-event-created_at
Set created_at of dry-runned event to the current time
2017-04-12 13:15:48 +02:00
Akinori MUSHA
652eb4418f DataOutputAgent should not override events in each event
This fixes #1963.
2017-04-12 19:24:13 +09:00
Dominik Sander
d277afbe12 Set created_at of dry-runned event to the current time
Allows the usage of `{{created_at}}` when dry-running Agents.

 #1964
2017-04-11 22:30:50 +02:00
Akinori MUSHA
b12fe2c80a Update unf_ext to 0.0.7.3, which fixes build on ARM with GCC 6 2017-04-11 17:51:39 +09:00
Andrew Cantino
69f062f537 Cleanup openshift configuration since it is not supported (#1954) 2017-04-10 15:03:18 +12:00
Zack Fernandes
f21d6abaee Create Tumblr Likes Agent (#1923)
* Create Tumblr Likes Agent

* Don't interpolate options

* Clear ID memory after 50 entries

In order to prevent the ID array from getting to large, keep only the
last 50 entries. 50 is currently the maximum the API will return at a
time, so we should never exceed that limit.

* Request likes after the last recorded like

Instead of just returning blog likes, request only likes after the
timestamp of the last liked item we’ve processed.
2017-04-07 19:27:24 -04:00
Andrew Cantino
be0d0417bd Fix #1799 by linking to Liquid docs (#1953) 2017-04-05 17:52:55 -04:00
Andrew Cantino
4eb9f8df05 Update install.md 2017-04-05 16:55:38 -04:00
Andrew Cantino
cbbb7fc9b1 Update README.md 2017-04-05 16:53:36 -04:00
Akinori MUSHA
fa886a4244 Merge pull request #1950 from cantino/extend_change_detector_agent
Give ChangeDetectorAgent access to `last_property`
2017-03-31 17:32:57 +09:00
Akinori MUSHA
5f881ee786 Give ChangeDetectorAgent access to last_property
This allows user to detect a new lowest value or a new high by
comparing a new value with the existing value.
2017-03-30 21:21:26 +09:00
Andrew Cantino
5276fcb74f Update Nokogiri to 1.7.1 (#1947) 2017-03-25 21:24:51 -04:00
Dominik Sander
9cdb36d9b4 Merge pull request #1942 from ashleysommer/master
action_mailer initializer usability fixes
2017-03-21 11:56:00 +01:00
aeter
8ab1f97c7d Close #1914 - remove 'become user' if deactivated user (#1938)
Ticket -- https://github.com/cantino/huginn/issues/1914
Testing -- Local huginn setup
About --
Switching as admin to a user is broken if the user is deactivated.

This code makes the 'Become User' buttons invisible if the user to
be impersonated is deactivated. The buttons used to be visible on:
* /admin/users
* /admin/users/XX/edit

Bonus: removes the 'Become User' button from the 'Edit Users' page
if we are the edited `current_user`.
2017-03-18 17:28:42 -04:00
Dominik Sander
92d4605de9 Merge pull request #1931 from tvierling/docker-generate-secret
docker: generate Rails secret at first run if not configured
2017-03-17 14:30:43 +01:00
Dominik Sander
ee95a11417 Merge pull request #1922 from dsander/fix-multi-process-postgres
Fix multi-process image when not specifying  POSTGRES_PORT_5432_TCP_ADDR
2017-03-17 14:22:04 +01:00
Akinori MUSHA
c9f71ce328 Use an infinite sequence and save a query 2017-03-17 02:02:46 +09:00
Akinori MUSHA
90dd0f7cdc Copy service_id when cloning an agent 2017-03-17 02:01:05 +09:00
MingShyanWei
68ad0f2e89 Fix View diagram : Too many agent to display (#1664) (#1935)
* Fix View diagram : Too many agent to display (#1664)
Making a GET request is simple, but GET URLs are limited to 2K characters.
The Google Chart API supports HTTP POST for chart requests up to 16K long. (*1)

(*1) https://developers.google.com/chart/image/docs/post_requests

* Fix View diagram : Too many agent to display (#1664)

Use  Faraday to POST api. 
Use when case to check response.status
2017-03-17 01:43:43 +09:00
Ashley Sommer
d43d07c74b Added the ability to set authentication type, user name, and password to nil in action_mailer initializer, by using environment variables with contents that are exactly the word "none". 2017-03-16 11:59:51 +10:00
Akinori MUSHA
37a2aaaf65 Fix typos in the document: _request_ -> _response_
😵
2017-03-14 15:21:03 +09:00
Todd Vierling
2ba6297fec docker: generate Rails secret at first run if not configured
After the container is created with "docker run", if the default token
("REPLACE_ME_NOW!") is still in .env.default, generate a random token
which will persist for the lifetime of the container (until the
container is rebuilt).

If the user sets APP_SECRET_TOKEN in the environment, this substitution
will be skipped and the env var will take precedence.
2017-03-12 22:27:06 -04:00
Dominik Sander
01b1d94606 Merge pull request #1932 from tvierling/standalone-packages-nit
docker: DEBIAN_FRONTEND was missing "export"
2017-03-12 22:07:09 +01:00
Todd Vierling
05ece8b3a6 docker: DEBIAN_FRONTEND was missing "export" 2017-03-12 16:38:54 -04:00
Andrew Cantino
480f4473da Update README.md (#1929) 2017-03-12 16:30:42 -04:00
aeter
d75e4c7cef Close #801 - peak detector min datapoints (#1924)
Closes -- https://github.com/cantino/huginn/issues/801
Testing -- ran rspec
About --
  Adds an option `min_events` to the peak detector agent. The
  agent will start looking for peaks only after min number of
  events are accumulated.
2017-03-10 19:05:10 -05:00
Dominik Sander
845b04ee9d Merge pull request #1926 from strugee/rm-empty-docs
Remove some empty documentation files
2017-03-07 22:56:23 +01:00