Commit graph

2905 commits

Author SHA1 Message Date
Dominik Sander
ea2a5e3456 Upgrade jquery.jsoneditor to handle null values
Fixes the editor in dry-runs when working with events that include
`null` values.

https://github.com/cantino/jsoneditor/pull/3
2017-09-17 12:10:12 +02:00
Akinori MUSHA
985cc8e376 Merge pull request #2126 from dsander/fix-dry-run-modal
Fix dry-run modal when clicking on icon in 'Dry Run' button
2017-09-16 23:11:09 +09:00
Dominik Sander
dc9d16812b Fix dry-run modal when clicking on icon in 'Dry Run' button
tl;dr: By using `e.currentTarget` instead of `e.target` we ensure to always
pass the `button` element to `Utils.handleDryRunButton`.

`target` refers to the actual element the user clicked on, we then
passed the glyphicon span to `Utils.handleDryRunButton` which requested
`window.location` via ajax because `$(button).data('action-url')` returned
`undefined`.
Evaluating the whole page then triggered
`Error: rails-ujs has already been loaded!`, as a result the user can not
interact with anything that requires `rails-ujs`, `jquery` or bootstrap
javascript.
2017-09-16 13:01:35 +02:00
Dominik Sander
5ee7c35289 Merge pull request #2108 from baip/openshift
OpenShift v3 quickstart
2017-09-16 11:48:52 +02:00
Akinori MUSHA
a893aa7f65 Merge pull request #2015 from wasafiri/patch-1
Update Ruby version in instructions
2017-09-16 18:28:33 +09:00
Akinori MUSHA
4a92862c86 Merge branch 'master' into patch-1 2017-09-16 18:28:22 +09:00
Andrew Cantino
8925ddb8d5 Handle lazy loading of Agents in gems during Agent.receive! (#2125) 2017-09-16 00:47:57 -07:00
Akinori MUSHA
cd2ddcae67 Merge pull request #2122 from huginn/enhance_tweets_view
Enhance the tweets view of TwitterStreamAgent
2017-09-16 05:47:40 +09:00
Akinori MUSHA
6987360811 Add a CHANGES entry 2017-09-15 23:46:40 +09:00
Akinori MUSHA
e99b82b1eb Prevent tweet expansion from firing more than once 2017-09-15 23:38:54 +09:00
Akinori MUSHA
5519e6a1a7 Encode screen_name and id_str in URLs 2017-09-15 23:38:54 +09:00
Akinori MUSHA
0b88ce0edc Enhance the tweets view of TwitterStreamAgent
- Use the `extended_tweet.full_text` property instead of `text`
- Show the time and links to the tweet and event for each tweet
- Clicking on the tweet text replaces it with the embedded tweet widget
2017-09-15 23:38:49 +09:00
Akinori MUSHA
04eb81fa26 Add a bunch of recent changes to CHANGES.md 2017-09-14 16:05:29 +09:00
Akinori MUSHA
0541b3a31f Merge pull request #2119 from huginn/liquid_lazy_agent_assocs
Do not instantiate all records when liquidizing a record collection
2017-09-11 11:15:02 +09:00
Peng Bai
15c294cc66 Update to OpenShift v3 quickstart templates 2017-09-09 09:39:37 -05:00
Peng Bai
597a3ef2cb Add logrotate cron job & configuration for OpenShift 2017-09-09 09:28:56 -05:00
Peng Bai
a569d3ffb8 Update OpenShift deploy hook 2017-09-09 09:28:55 -05:00
Peng Bai
76d0a86b98 Revert "Cleanup openshift configuration since it is not supported (#1954)"
This reverts commit 69f062f537.
2017-09-09 09:28:54 -05:00
Akinori MUSHA
3c9a056978 Merge pull request #2118 from huginn/agent_diagnosis
Add `working` and `url` to AgentDrop for diagnostic purposes
2017-09-09 20:09:09 +09:00
Akinori MUSHA
b4817c74b5 Do not instantiate all records when liquidizing a record collection
Saved memory will be small for the average agent, but this will allow
handling a large amount of agents going forward.
2017-09-08 21:04:30 +09:00
Akinori MUSHA
ed9da9f35e Add working and url to AgentDrop for diagnostic purposes 2017-09-08 18:39:37 +09:00
Akinori MUSHA
48afe27bba Merge pull request #2114 from HyShai/itunes-image
add itunes podcast icon
2017-09-07 13:17:33 +09:00
Shaya G
5e1e5a1907 only add itunes icon if ns_itunes 2017-09-06 23:43:34 -04:00
Dominik Sander
8613adde55 Merge pull request #2115 from stritti/patch-1
Add `force_stop` to the manual update instructions
2017-09-06 11:09:48 +02:00
stritti
96513848a2 add force_stop
see: https://github.com/huginn/huginn/issues/1988
2017-09-05 23:38:58 +02:00
HyShai
69f4f22684 add tests 2017-09-05 16:33:46 -04:00
HyShai
23f8efa109 add itunes podcast icon 2017-09-05 13:42:10 -04:00
Akinori MUSHA
347381cf45 Merge pull request #2113 from dsander/fix-flaky-spec
Fix flaky spec
2017-09-05 23:42:50 +09:00
Akinori MUSHA
2b79fee1a7 Merge pull request #2110 from huginn/output_rss_items_with_multiple_categories
Fix DataOutputAgent so that it can output items with multiple categories
2017-09-05 22:54:18 +09:00
Dominik Sander
dc099b31ae Fix flaky spec
The `select_agent_type` helper is waiting for the options editor to be
initialized, which will never happen for Agents that are
FormConfigurable. The GrowlAgent was recently changed to
FormConfigurable which mean the spec should always have failed.
I have no idea how it passes on CI in some cases but this should fix the
'random' failures.
2017-09-05 12:05:16 +02:00
Akinori MUSHA
ef03f9f8b6 Fix DataOutputAgent so that it can output items with multiple categories
The to_xml method encodes `{ "category": ["a", "b"] }` as follows:
```xml
<item>
 <category>
  <category>a</category>
  <category>b</category>
 </category>
</item>
```
Instead of this:
```xml
<item>
 <category>a</category>
 <category>b</category>
</item>
```
Even if `category` is a singular noun.  This feature prevents
DataOutputAgent from emitting multiple `<category>` elements (or
`<enclosure>`, etc.) properly, so I've added a tweak to fix the
resulted XML document.

I know the code in the current form is far from optimal, so I think
we'll have to revisit here soon or later...
2017-09-04 20:01:22 +09:00
Akinori MUSHA
17b0ee572d Merge branch 'huginn_huginn' 2017-09-04 11:16:48 +09:00
Akinori MUSHA
d76ea3dea5 Replace some other occurrences of the references to the old URL 2017-09-04 11:15:56 +09:00
Akinori MUSHA
af9193a244 Merge pull request #2106 from huginn/huginn_huginn
Replace references to https://github.com/cantino/huginn with huginn/huginn
2017-09-04 11:10:00 +09:00
Dominik Sander
0147d6fd05 Merge pull request #2105 from huginn/switch_back_buildpack-graphviz
Switch back to the upstream heroku-buildpack-graphviz
2017-09-01 12:34:02 +02:00
Akinori MUSHA
30a4a67a0f Replace references to https://github.com/cantino/huginn with huginn/huginn 2017-09-01 18:56:10 +09:00
Akinori MUSHA
99b2d75a12 Switch back to the upstream heroku-buildpack-graphviz
The upstream added an additional change for Graphviz to work on
heroku-16 after 00dffe32 (#1998).
2017-09-01 18:41:27 +09:00
Akinori MUSHA
8ba1adc0a6 Merge pull request #2103 from dsander/fix-peak-detector
Prevent PeakDetectorAgent from storing invalid data in it's memory
2017-09-01 08:24:10 +09:00
Dominik Sander
e9709aec0a Prevent PeakDetectorAgent from storing invalid data in it's memory
The Agent expects the data in its memory groups to be castable to a
float. By attempting the type cast when receiving events we prevent the
memory from being corrupted with invalid data which lead exceptions
while trying to access it.

 #2101
2017-08-31 21:17:42 +02:00
Akinori MUSHA
0434c7b2c4 Merge branch 'update_rss_agent' 2017-08-10 21:48:17 +09:00
Akinori MUSHA
1c1d680812 Update Feedjira to 2.1.2 2017-08-10 21:46:48 +09:00
Akinori MUSHA
0339a23e45 Support the AtomYoutube feed format of Feedjira
This fixes #2054.
2017-08-10 21:46:48 +09:00
Akinori MUSHA
83a6fd091a Remove duplicated code 2017-08-10 21:46:48 +09:00
Akinori MUSHA
24880ef87f Merge pull request #2084 from dsander/upgrade-omniauth
Upgrade omniauth to prevent Hashie warning
2017-08-10 21:44:42 +09:00
Akinori MUSHA
825041e4ee Merge pull request #2083 from huginn/load_dotenv_test
Load .env.test instead of .env.development when running rspec
2017-08-10 21:26:19 +09:00
Dominik Sander
f7a7e7a0b8 Upgrade omniauth to prevent Hashie warning
Hashie `>= 3.5.0` warns when build in methods are overridden. Omniauth
'fixed' the warning by silencing the logger.
2017-08-09 10:02:04 +02:00
Akinori MUSHA
0baa0cafb7 Load .env.test instead of .env.development when running rspec 2017-08-09 11:58:57 +09:00
Dominik Sander
ff364f28d9 Merge pull request #2081 from pReya/patch-1
add logging output for pushover agent
2017-08-08 11:06:33 +02:00
Moritz Stückler
673db8d0b3 add all parameters except token to the log output 2017-08-07 10:40:30 +02:00
Moritz Stückler
309ae9cc1c add logging output for pushover agent
for debugging purposes there should be a logging output. however the pushover does not have a log output. i added a simple logging output.
2017-08-07 00:57:37 +02:00