Commit graph

3027 commits

Author SHA1 Message Date
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
9b63ae2d7a
Merge pull request #2345 from huginn/update_eventmachine
Update twitter-stream and its dependency, eventmachine
2018-08-08 00:06:51 +09:00
Akinori MUSHA
745738ded0
Merge pull request #2346 from huginn/fix_imap_encoding
Fix IMAP encoding issues
2018-08-07 23:48:43 +09:00
Dominik Sander
4932ee66bc
Merge pull request #2267 from dsander/upgrade-rubies
Upgrade rubies to their latest patch release
2018-08-07 11:20:51 +02:00
Dominik Sander
73fdc51061 Compare ruby versions in Gemfile using Gem::Version 2018-08-07 09:51:02 +02:00
Dominik Sander
c817198cfb Apparently we have to join the travisci rubygems workaround bandwagon
https://github.com/travis-ci/travis-ci/issues/8969
2018-08-07 09:51:02 +02:00
Dominik Sander
c4c5e94d6a Upgrade rubies to their latest patch release
We use Ruby 2.5.1 for the manual installation guide and the docker
containers and run the specs on the latest 2.5,2.4,2.3 and 2.2 patch
releases.

Fixes #2210
2018-08-07 09:51:02 +02: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
0d5b42c4b3 Update twitter-stream and its dependency, eventmachine 2018-08-06 12:47:28 +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
Dominik Sander
dd3136d391
Merge pull request #2342 from whtsky/patch-1
respect WEB_CONCURRENCY env in unicorn.rb.example
2018-08-01 10:23:07 +02:00
Wu Haotian
3506faad51
respect WEB_CONCURRENCY env in unicorn.rb.example
...like the example unicorn config for heroku does: 5868c7b4b2/deployment/heroku/unicorn.rb (L3)
2018-07-31 23:33:38 +08: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
fb0222b8a7
Merge pull request #2321 from dsander/bump-sprockets
Bump sprockets version
2018-06-22 10:18:27 +02:00
Dominik Sander
2f2b36e60c Bump sprockets version
This ensures all users are protected against [CVE-2018-3760][1]. Per
default Huginn was not affected by this vulnerability, but users could
have changed `config.assets.compile` to `true` manually.

The new sprockets version fixes the CVE.

[1]: http://seclists.org/oss-sec/2018/q2/210
2018-06-22 09:27:11 +02:00
Dominik Sander
9ef1df36a4 Not not initialize bootsnap when running as root
Fixes the bootsnap cache not being readable and writeable by the huginn
user afterwards.

In situations where during the manual installation upgrade process `sudo
bundle exec rake:production:*` was run before running a rake task as the
huginn user the bootsnap cache directory was propagated by the root user
which then causes exceptions when running any command as the huginn
user.

 #2315
2018-06-19 17:47:36 +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
Dominik Sander
d369c96e22
Merge pull request #2313 from kendocode/add_darksky_link
Add link for darksky api key since wunderground no longer free
2018-06-17 11:43:32 +02:00
kendocode
14c60c5997 Add link for darksky api key since wunderground no longer free 2018-06-13 18:02:32 -05:00
Dominik Sander
2342b9b74c
Merge pull request #2309 from malagebidi/master
Update google_translation_agent.rb
2018-06-08 09:58:23 +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
Akinori MUSHA
fba26e951a
Merge pull request #2285 from Cameri/master
Pass URLs to Telegram API directly
2018-05-18 09:42:24 +09: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
49f9cb45f1
Fix unit tests for payloads with media 2018-05-09 08:58:04 -04:00
Ricardo Arturo Cabral
6c8bc39ac4
Pass URLs to Telegram API directly 2018-05-09 08:38:45 -04:00
Dominik Sander
1147e75c6b Use not_found replacement for deprecated missing matcher 2018-05-05 10:15:40 +02:00
Dominik Sander
3c1bffcb38 Add bootsnap 2018-05-05 10:15:39 +02:00
Dominik Sander
90013de455 Bump delayed_job_active_record to fix incompatibility with bootsnap 2018-05-05 10:14:06 +02: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
Dominik Sander
1b3563682b
Merge pull request #2276 from huginn/bump-binding-of-caller
Bump binding of caller to fix incompatibility with ruby 2.5
2018-05-02 10:27:27 +02:00
Dominik Sander
cd933accbf Bump binding of caller to fix incompatibility with ruby 2.5
A change in ruby 2.5.0 broke the binding-of-caller gem, which lead empty
exception backtraces, as a result out appliction would not even boot
with spring enabled and never show backtraces in development (where
binding-of-caller is activated).

 #2275

https://github.com/rails/spring/pull/551
https://github.com/charliesome/better_errors/issues/411
https://github.com/banister/binding_of_caller/pull/69
2018-05-01 13:53:45 +02:00
Dominik Sander
fa607224fe
Merge pull request #2274 from dsander/bump-html-sanitizer
Bump rails-html-sanitizer to 1.0.4 to address CVE
2018-04-30 11:31:28 +02:00
Dominik Sander
edd068232a Bump rails-html-sanitizer to 1.0.4 to address CVE
Versions below 1.0.4 had a XSS vulnerability:

https://nvd.nist.gov/vuln/detail/CVE-2018-3741
2018-04-30 10:27:36 +02:00
Dominik Sander
32956c91a7
Merge pull request #2270 from douniwan5788/stmp_tls
add ssl support for mail config
2018-04-28 09:52:27 +02:00
douniwan5788
83c3962b04 add ssl support for mail config 2018-04-26 13:02:46 +08:00
Akinori MUSHA
fdf4b0794a
Merge pull request #2264 from dgw/pushover_html
PushoverAgent: HTML message support
2018-04-21 14:14:16 +09: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
Akinori MUSHA
3e508310ac
Merge pull request #2216 from dsander/ruby2.5
Allow to run on ruby 2.5 and fix warnings
2018-04-04 20:20:48 +09:00
Akinori MUSHA
4288a0dc55
Merge pull request #2249 from ameicler/ability_to_post_array
[#2248] Ability to post array
2018-04-04 20:17:03 +09:00