Akinori MUSHA
e81ae4a65c
Merge pull request #2353 from whtsky/mergeJSONParse
...
Support merge mode in JsonParseAgent
2018-08-30 16:28:22 +09:00
Wu Haotian
753af61df9
Support merge mode in JsonParseAgent
2018-08-25 14:35:57 +08:00
a10kiloham
7b3050997d
API Deprecated
...
No longer of use sadly
2018-08-14 17:27:51 +01:00
Akinori MUSHA
d04c9d44a9
Merge pull request #2174 from huginn/update_twitter
...
Fix "already retweeted" error detection
2018-08-08 00:07:37 +09:00
Akinori MUSHA
542d4dca7e
Rephrase the description of raw_mail
2018-08-07 12:06:26 +09:00
Akinori MUSHA
fc38b47f30
Update FORBIDDEN_MESSAGES
for the new already retweeted error message
...
cf. https://github.com/sferik/twitter/pull/890
2018-08-06 14:42:58 +09:00
Akinori MUSHA
d952e91426
Encode raw_mail in Base64
...
Because e-mails are often in a non-UTF-8 "legacy" encoding, it cannot
always be carried via Event (JSON).
2018-08-05 23:10:19 +09:00
Akinori MUSHA
fab63a2f4b
Properly apply Net::IMAP.encode_utf7 to folder names
2018-08-05 23:10:19 +09:00
Irfan Charania
2c9b9bb29c
Update DataOutputAgent accept header for browser compatibility ( #2338 )
...
* Update accept header for browser compatibility
Allows browser to display content as xml instead of plain text
Ref: https://stackoverflow.com/a/7001617/4397001
* Updated specs
2018-07-31 11:00:25 +02:00
Stefanus
402f8645d6
Make 'expected_receive_period_in_days' of PostAgent optional ( #2333 )
...
* Make 'expected_receive_period_in_days' optional due to new implementation of 'working?'
* Adjust spec
2018-07-16 10:15:02 +02:00
Stefanus
44709dc9a7
Fix "working?" of PostAgent ( #2329 )
...
* Fix "working?" of PostAgent
* Adjust specs
* Enhance specs
* Fix specs
* Fix code style
* Fix typo
* Change implementation of "working?"
* Fix spec
* Add comments
* Add new test
* Fix syntax error
* Restore original spec
2018-07-14 10:52:57 +02:00
Dominik Sander
61b33bf37c
Merge pull request #2266 from dsander/rails52
...
Upgrade to Rails 5.2
2018-06-17 11:50:01 +02:00
Deng Yang
b2ba84a6e3
Update google_translation_agent.rb
...
leave translate_from empty to let google detect the source language automatically
2018-06-04 21:56:32 +08:00
Dominik Sander
5cd209234d
Merge pull request #2307 from sfischer13/master
...
Improve logic of "working?" in MqttAgent
2018-06-04 10:02:55 +02:00
Stefan Fischer
c7d311b630
Improve logic of "working?"
2018-06-03 16:38:03 +02:00
Ricardo Arturo Cabral
b3c6c7f80f
Remove open-uri require
2018-05-09 13:17:09 -04:00
Ricardo Arturo Cabral
99b0821700
Remove load_field
2018-05-09 08:59:34 -04:00
Ricardo Arturo Cabral
6c8bc39ac4
Pass URLs to Telegram API directly
2018-05-09 08:38:45 -04:00
Dominik Sander
e4b5e75e82
Fix HttpStatusAgent case insensitive header lookup
...
Ruby 2.5 added the `Hash#slice` method which allowed Rails 5.2 [to not
apply][1] it's ActiveSupport core extension. Because the Ruby
implementation is done in C it [does not call the `[]` method][2] which
is overridden by [`Faraday::Utils::Headers`][3] to achieve case
insensitive header look ups.
By calling the `Faraday::Utils::Headers#[]` directly we keep the case
insensitive lookup.
[1]: a524c955bf
[2]: ae92a9e4ed/hash.c (L1357-L1375)
[3]: 4381c2d62d/lib/faraday/utils.rb (L51-L54)
2018-05-05 10:14:06 +02:00
Dominik Sander
201b784562
Fix specs and deprecation warnings
2018-05-05 10:14:06 +02:00
Dominik Sander
ee485990f5
Upgrade Rails to 5.2 and adjust configuration to new defaults
2018-05-05 10:14:06 +02:00
dgw
27cd2e7d15
PushoverAgent: Rewrite to handle boolean true for html
...
For reasons that are not clear, String.try_convert(true) yields nil, not
a string. Go figure.
2018-04-20 16:10:44 -05:00
dgw
692db8f847
PushoverAgent: Match conventions in new html option
...
Per feedback on #2264
2018-04-20 04:11:32 -05:00
dgw
284e2dccc7
PushoverAgent: HTML message support
...
Pushover has supported displaying the `message` as HTML in its apps for
about three years. https://updates.pushover.net/post/117525190347/html-message-support
2018-04-20 03:18:09 -05:00
Antoine Meicler
fc2cb71c54
preventing payload to be an array when content_type is
2018-04-02 17:00:39 +02:00
Antoine Meicler
ec9fa2f947
factorize the negation
2018-03-31 16:21:01 +02:00
Antoine Meicler
396b65b5b2
Array
2018-03-30 12:40:22 +02:00
Antoine Meicler
a879eeaf7e
line indentation
2018-03-30 11:16:04 +02:00
Antoine Meicler
fd2ee6f460
change payload type condition
2018-03-30 11:13:53 +02:00
bobbysteel
d7c69d1ea0
Fix per requests
2018-02-12 10:29:59 +00:00
bobbysteel
00d0a46cfb
Clarify xpath usage with example
2018-02-10 18:20:17 +00:00
James Hu
908f0b6b3d
Escape \ in JSON string literal in WebsiteAgent code example
2018-02-02 08:27:02 -08:00
James Hu
d38cfdd70d
Fix syntax error in Website Agent description
2018-02-01 10:34:36 -08:00
Akinori MUSHA
1c1e3eebe1
Merge pull request #2171 from aserpi/telegram-split-message
...
Split long Telegram messages
2018-01-29 22:55:19 +09:00
Alessandro Serpi
bdb887bbe2
Explicit Telegram Agent default behaviour
2018-01-29 13:18:55 +01:00
Alessandro Serpi
29471df4eb
Fix split regex
2018-01-14 15:34:09 +01:00
Alessandro Serpi
4848716948
Improve Telegram Agent description
2018-01-14 15:33:40 +01:00
Alessandro Serpi
00e3119994
Split long Telegram messages
2018-01-14 15:32:51 +01:00
Stefan Siegl
4aaeb16d24
Rescue ZeroDivisionError on validation, closes #2188
2018-01-05 12:38:46 +01:00
Dominik Sander
7c1ec33d64
Fix Liquid interpolation in TwilioAgent helper methods
...
The Agent did not use `interpolate_with` in it's `receive` method,
which lead to `interpolated[...]` calls in `send_message` and
`make_call` always returning empty strings.
The new `interpolate_with_each` helper iterates over an array of
objects and yields each object in a `interpolated_with(object)`
context.
Fixes #2186
2018-01-04 10:45:03 +01:00
Dominik Sander
1e286bce0f
Merge pull request #2170 from dsander/add-websiteagent-array-extract-option
...
Add `array` extraction option to WebsiteAgent in HTML/XML mode
2017-12-01 10:49:19 +01:00
Alessandro Serpi
d45edcde7b
Refactor Telegram Agent
2017-12-01 10:44:18 +01:00
Dominik Sander
a04faa8245
Add array
extraction option to WebsiteAgent in HTML/XML mode
...
Setting `array` to `true` for an extractor allows the extraction of list
elements into an array or when working with websites that have varying
amount of elements matching a specific selector:
Response A:
```html
<h1>header</h1>
<div id="content">
<div></div>
<div></div>
<div class="bogus"></div>
<div>
```
Response B:
```html
<h1>header</h1>
<div id="content">
<div></div>
<div></div>
<div class="bogus"></div>
<div></div>
<div>
```
The goal is to extract the header and all `div`s inside `#content` that
are not `.bogus` into one Event. Having the `array` option makes this
possible with `css: '#content div:not(.bogus) ', array: true` which
would otherwise fail with an uneven amount of matches exception.
Currently the work around would be the extract the header and `#content`
in one WebsiteAgent and extract the `div`s in a second Agent. This does
not work in my use case because the HTML inside `#content` is
malformatted and leads to Nokogiri paring errors.
2017-11-29 14:56:59 +01:00
aserpi
1c8ef93873
Add options to Telegram Agent
2017-11-23 23:03:40 +01:00
Dominik Sander
ecf5a97da9
Merge pull request #2146 from dsander/dropbox-agents
...
Upgrade Dropbox Agents to new v2 API
2017-11-11 10:05:18 +01:00
Akinori MUSHA
23299f5fb2
Merge pull request #2157 from douniwan5788/web_request_proxy
...
add proxy support for WebRequestConcern
2017-11-11 15:01:02 +09:00
Dominik Sander
0ef06a389c
Allow usage of custom Liquid tags in LiquidOutputAgent
...
By using the `interpolated` helper method our custom tags like
`credential` can be used in the LiquidOutputAgent.
Fixes #2042
2017-11-10 22:06:17 +01:00
douniwan5788
9afb62a605
add proxy support for WebRequestConcern
2017-11-06 21:39:08 +08:00
Akinori MUSHA
d937934daf
Add a workaround for broken AlreadyRetweeted error detection
...
https://github.com/sferik/twitter/pull/875
2017-10-29 23:09:00 +09:00
Dominik Sander
eb79f8da1f
Upgrade Dropbox Agents to new v2 API
2017-10-16 21:12:47 +02:00