Commit graph

2813 commits

Author SHA1 Message Date
Akinori MUSHA
7dd9e518d4 Apply a cosmetic change 2017-07-10 12:28:35 +09:00
Akinori MUSHA
8645323dfe Expose target to CommanderAgent in templating
This allows a CommanderAgent to control only some of the targets
depending on the agent attributes.  For example, you can update the
threshold value of a target agent only if the current value is
lower (or higher) than the suggested new value.
2017-07-09 03:34:05 +09:00
Sebastian Kippe
a7f3a75277 Improve Capistrano configuration (#2045)
* Support custom SSH port for Capistrano deploys

This allows cap deploy to connect to servers using a non-standard SSH
port.

* Unify Capistrano environment variables

BRANCH is the only variable that is used for Capistrano, but not
prefixed with `CAPISTRANO_DEPLOY`. This adds the prefix, so that all
cap deploy configuration uses the same naming scheme.

* Fall back to old BRANCH env var if new one doesn't exist

* Update Capistrano doc

Use new branch configuration variable name
2017-07-01 16:13:03 -04:00
Dominik Sander
154c058729 Merge pull request #2017 from Skarlso/eliminated_eval_from_jsonpath
Update JsonPath to latest version.
2017-06-06 19:21:07 +02:00
Akinori MUSHA
fe36ce1166 Merge pull request #2014 from huginn/fix_1940
Protect the latest event from automatic deletion when using MySQL
2017-06-06 11:01:28 +09:00
Zak Ainsworth
f7ddee68b8 Updated letter_opener_web version to 1.3.1 to support Rails 5. (#2026) 2017-06-01 16:39:38 -07:00
Dominik Sander
62fea5f94f Merge pull request #2024 from dsander/downgrade-ruby
Downgrade ruby in Gemfile.lock to Heroku supported version
2017-05-31 17:26:41 +02:00
Michael Andrews
47bd9ecfa3 Build and publish huginn/huginn-test (#2016)
Build and publish huginn/huginn-test after huginn/huginn-single-process
2017-05-31 11:22:26 +02:00
Dominik Sander
ea06fd8429 Downgrade ruby in Gemfile.lock to Heroku supported version
Fixes #2023
2017-05-31 11:11:56 +02:00
Gergely Brautigam
4e37fdb743
fixed merge 2017-05-30 07:08:16 +02:00
Gergely Brautigam
9a191333ae
Adding patch version. 2017-05-29 20:48:50 +02:00
Gergely Brautigam
073ae10332
Removing obsolete test and environment property. 2017-05-29 20:48:50 +02:00
Gergely Brautigam
3885d96440
Update JsonPath to latest version. 2017-05-29 20:48:49 +02:00
Akinori MUSHA
d7339a7572 Merge pull request #1876 from huginn/support_ruby2.4
Support Ruby >=2.4
2017-05-30 02:03:45 +09:00
Akinori MUSHA
5fadd12be6 Protect the latest event from automatic deletion when using MySQL
Detecting the database type by the name this time, because
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter is defined only
if the mysql2 gem is loaded.

This works around #1940 for the most typical cases.
2017-05-28 01:41:59 +09:00
Akinori MUSHA
6839bb6d85 Update the basic auth mocking for webmock 2 2017-05-28 01:08:28 +09:00
Akinori MUSHA
94c24286ea Update json to 1.8.6 2017-05-28 01:08:28 +09:00
Akinori MUSHA
baa4001dc1 Update ruby 2.3.3 to 2.3.4 and 2.4.0 to 2.4.1 2017-05-28 01:08:26 +09:00
Akinori MUSHA
98e7181b94 Docker: update ruby to 2.4 2017-05-28 01:07:54 +09:00
Akinori MUSHA
98e80c57b0 Fix a test for escaped double-quotes for ruby >=2.4 2017-05-28 01:07:54 +09:00
Akinori MUSHA
d2d557dc7b Enable liberal_parsing for ruby >=2.4 2017-05-28 01:07:54 +09:00
Akinori MUSHA
0f5edc9051 2.class is Integer (instead of Fixnum) in ruby >=2.4 2017-05-28 01:07:54 +09:00
Akinori MUSHA
7ea7cca804 Webmock 2 does not support userinfo in URL 2017-05-28 01:07:53 +09:00
Akinori MUSHA
c1b786018f The twitter gem now requires a proper Content-Type 2017-05-28 01:07:53 +09:00
Akinori MUSHA
7663698673 Webmock 2 does not support matching body for multipart/form-data
https://github.com/bblimke/webmock/issues/623
2017-05-28 01:07:53 +09:00
Akinori MUSHA
5428a8d5b3 Update vcr to 3.0.3 for webmock >=2 2017-05-28 01:07:53 +09:00
Akinori MUSHA
ee98091742 Update webmock to 2.3.2 for ruby >=2.4 2017-05-28 01:07:53 +09:00
Akinori MUSHA
3c972886c0 Update twitter to master on GitHub which no longer depends on old json 2017-05-28 01:07:53 +09:00
Akinori MUSHA
f39c7f18b2 Update omniauth-twitter to 1.3.0 2017-05-28 01:07:53 +09:00
Akinori MUSHA
3d3cb28a96 Update therubyracer to 0.12.3, which supports ruby 2.4+ 2017-05-28 01:07:52 +09:00
Akinori MUSHA
c008ecc2bb Update httparty to 0.14.0 which no longer depends on old json 2017-05-28 01:07:52 +09:00
Akinori MUSHA
15190b9423 Add ruby 2.4.0 to .travis.yml 2017-05-28 01:07:38 +09:00
Akinori MUSHA
58882dee83 Upgrade ruby 2.3.1 to 2.3.3 2017-05-28 01:01:30 +09:00
Akinori MUSHA
53a046e843 Merge branch 'configurable_search_url' 2017-05-25 07:05:13 +09:00
Akinori MUSHA
6a7221a9da Use URI Template (RFC 6570) for interpolating search_url 2017-05-25 06:40:54 +09:00
Dominik Sander
f19998cc3d Merge pull request #2002 from mandrews/add-test-docker-image-2
Add test docker image
2017-05-24 22:23:00 +02:00
Akinori MUSHA
41ab9e36fe Merge branch 'movstox-huginn-1552' into configurable_search_url 2017-05-25 01:17:32 +09:00
Michael Andrews
63389f41b7 Fix spec expectation when USE_GRAPHVIZ_DOT is defined 2017-05-23 14:53:15 -07:00
Michael Andrews
e74bb73f77 Add docker/test image 2017-05-23 14:53:00 -07:00
Michael Andrews
ba16f80c2e Encapsulate .env setup commands 2017-05-23 14:52:33 -07:00
Michael Andrews
2ecd090356 Allow specs to be run against non local database 2017-05-23 14:50:46 -07:00
Aleksey Ivanov
0e9c24ab54 Falling back to default 'search_url' and docs 2017-05-23 12:21:31 +03:00
Aleksey Ivanov
a4b7f1b1f5 Fallback to default value for existing agents 2017-05-23 03:47:51 +03:00
Akinori MUSHA
6088eaf24e Merge branch 'bobbysteel-patch-6' 2017-05-23 09:37:47 +09:00
bobbysteel
e81926902f Clarify env file passing 2017-05-23 09:37:25 +09:00
Aleksey Ivanov
eccb449dfd Add configurable search_url #1552 2017-05-22 22:34:20 +03:00
Dominik Sander
13e5ebc3ef Merge pull request #2007 from bobbysteel/patch-5
Clarify env file passing
2017-05-19 13:06:11 +02:00
Dominik Sander
625e8c7dde Merge pull request #1912 from dsander/rails51
Upgrade to Rails 5.1.1
2017-05-19 09:49:32 +02:00
Dominik Sander
1d3d3ebf16 Utilize strong parameter API to pass arbitrary hashes
By passing an empty hash to `permit` strong parameters permits
the complete hash.

e86524c0c5

Refactor ApplicationController#agent_params
2017-05-19 09:24:48 +02:00
Dominik Sander
df6fa9f9d4 Remove database_cleaner gem
In Rails 5.1 transactional tests share the same connection id between
the webserver and test runner. This removes the need for special cleanup
strategies.

This speeds up the tests significantly, before:
```
Finished in 3 minutes 30.3 seconds (files took 5.46 seconds to load)
```

After:
```
Finished in 1 minute 41.61 seconds (files took 5.45 seconds to load)
```

https://github.com/rails/rails/pull/28083
2017-05-19 09:24:48 +02:00