Commit graph

3070 commits

Author SHA1 Message Date
Dominik Sander
39413e9cc0
Merge pull request #2428 from huginn/update-rails-to-5.2.1.1
Update Rails to 5.2.1.1 for CVE-2018-16476
2018-12-02 11:13:05 +01:00
Andrew Cantino
03233fd730
Merge branch 'master' into update-rails-to-5.2.1.1 2018-11-30 11:03:53 -08:00
Andrew Cantino
647d1864ad Update Rails to 5.2.1.1 for CVE-2018-16476 2018-11-30 10:42:40 -08:00
Dominik Sander
44bdc07eda
Merge pull request #2425 from huginn/security-fixes
Bump rack and nokogiri
2018-11-23 00:31:11 +01:00
Andrew Cantino
2ae7548170 Bump rack and nokogiri 2018-11-22 14:28:21 -05:00
Akinori MUSHA
055425470d
Merge pull request #2422 from sfischer13/fix5
Improve usability of delay_agent.rb
2018-11-21 20:13:23 +09:00
Stefan Fischer
76e2c6cf70 Add checks for 'max_emitted_events' 2018-11-19 23:26:57 +01:00
Stefan Fischer
c38eb0b2ff Make max_emitted_events interpolated 2018-11-19 23:26:11 +01:00
Stefan Fischer
d80a61fc0f Make max_events interpolated 2018-11-19 23:25:29 +01:00
Stefan Fischer
a3162eb974 Make use of options/interpolated consistent 2018-11-19 23:24:15 +01:00
Stefan Fischer
c6e4a6a563 Use form_configurable 2018-11-19 23:23:34 +01:00
Stefan Fischer
9511d354d4 Change quotes and explicit default for 'max_emitted_events' 2018-11-19 23:23:03 +01:00
Dominik Sander
dfcb6a4993
Merge pull request #2413 from baip/patch-1
Bug fix: restrict IFS to only the read builtin
2018-11-15 10:00:44 +01:00
Dominik Sander
d8da1a8a9c
Merge pull request #2414 from dscottboggs/master
Added better validations for the weather agent.
2018-11-14 10:35:53 +01:00
Scott Boggs
211ff5a2bf
fixed intentation 2018-11-13 09:36:36 -05:00
D. Scott Boggs
7ebc1aebdd renamed dark_sky_location to coordinates 2018-11-11 21:33:13 -05:00
D. Scott Boggs
c7c4d98283 Added better validations and parsing of the location when using the darksky provider for the weather agent. 2018-11-11 21:00:44 -05:00
baip
5487310f14 Bug fix: restrict IFS to only the read builtin 2018-11-11 10:15:33 -06:00
Dominik Sander
62a627c89c
Merge pull request #2406 from Rohlik/patch-1
Updated link to Kitematic
2018-11-03 11:41:32 +01:00
Thomas Rohlik
c615b59eca
Updated link to Kitematic 2018-10-31 18:21:38 +01:00
Dominik Sander
1557199834
Merge pull request #2402 from sfischer13/fix4
Move method "is_positive_integer?" to "agent.rb"
2018-10-29 09:35:45 +01:00
Stefan Fischer
c5e264d3cd Move method "is_positive_integer?" to "agent.rb" 2018-10-26 22:49:17 +02:00
Akinori MUSHA
efc090d43a
Merge pull request #2386 from dsander/do-not-seed
Do not seed when a user exists
2018-10-12 18:12:46 +09:00
Dominik Sander
efd459d29b
Merge pull request #2388 from huginn/minor-fix-on-twitter-user-agent
Fix name of Twitter event field in TwitterUserAgent
2018-10-12 09:49:33 +02:00
Andrew Cantino
923d876acc The field is actually called full_text 2018-10-11 08:37:53 -07:00
Akinori MUSHA
26630c491a
Merge pull request #2384 from dsander/upgrade-database-gems
Upgrade mysql and pg gems
2018-10-03 23:29:32 +09:00
Dominik Sander
e47685719d
Merge pull request #2385 from dsander/cleanup-dj-pid
Delete stale delayed_job pid file when starting docker containers
2018-10-03 12:06:39 +02:00
Dominik Sander
2cd37e2ab4 Do not seed when a user exists
Previously the seed logic ran when `SEED_EMAIL` was unset and the `admin`
users email address was changed, or if `SEED_EMAIL` did not match it
anymore.

We run `db:seed` on every docker container start to make it easy to get
started with Huginn. That could lead to situations in which the
container did not start if the admin users email address was changed (the
Seeder failed due to the uniqueness constraint on `username`).

Since we "seed" the database I think it is best to bail out of the
seeding logic as long as at least one user exists.

Fixes #2362
2018-10-03 12:03:31 +02:00
Dominik Sander
4e95725814
Merge pull request #2383 from Skarlso/update_jsonpath_to_094
Update jsonpath to 0.9.4
2018-10-03 11:34:20 +02:00
Dominik Sander
1a87133b1f Delete stale delayed_job pid file when starting docker containers
When a (single-process) docker container is not shut down cleanly
delayed_job does not have a chance to delete it's PID. When restarting
this container delayed_job refused to boot because it found the old PID.

Since we always start from a clean state in docker containers we can
remove the PID.

Fixes #2269
2018-10-03 11:29:34 +02:00
Dominik Sander
d5ab031059 Upgrade mysql and pg gems
The new `mysql` version adds support for MySQL 8 and MariaDB 10.x,
support for MySQL 5.0 and 5.1 was dropped, but those have been EOL for
years now.

The new `pg` gem has some compatibility updates for PostgreSQL 10 (which
worked before) and dropped support for PostgreSQL 9.1 which hit its EOL
in 2016.

Fixes #2347
2018-10-03 11:00:35 +02:00
Gergely Brautigam
c472965226
Updated properly. 2018-10-03 10:23:31 +02:00
Gergely Brautigam
631ff8bb1b
Update jsonpath to 0.9.4 2018-10-03 09:54:20 +02:00
Dominik Sander
6773dcf31e Set Heroku stack to heroku-16 in app.json
The graphviz buildpack does not support the new default `heroku-18`
stack yet. Until it does we have to fall back to the older stack.

 #2377
2018-09-22 11:37:40 +02:00
Akinori MUSHA
e81ae4a65c
Merge pull request #2353 from whtsky/mergeJSONParse
Support merge mode in JsonParseAgent
2018-08-30 16:28:22 +09:00
Dominik Sander
7c90b83734
Merge pull request #2298 from baip/master
Docker: extract heredocs from multi-process init and update docker-compose files
2018-08-27 11:13:30 +02:00
Wu Haotian
753af61df9
Support merge mode in JsonParseAgent 2018-08-25 14:35:57 +08:00
Peng Bai
46e7a675c7 Extract database vars and source them via env_file 2018-08-23 09:53:31 -05:00
Peng Bai
a7c8ee141c Extract heredocs from multi-process init script 2018-08-20 21:57:35 -05:00
Peng Bai
3cf248cf15 No regex matching for location 2018-08-20 21:57:35 -05:00
Dominik Sander
9cd2f565ec
Merge pull request #2351 from a10kiloham/patch-1
Remove GoogleFlightsAgent because the API has been shut down

https://developers.google.com/qpx-express/
2018-08-18 09:49:45 +02:00
a10kiloham
0f4cabf86e
Deprecated api 2018-08-17 11:02:14 +01: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
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