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.
* 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
* 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
* 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
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.
* 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.
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`.
* 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
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.
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.