aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Run the initialization scripts using docker-composefeature/es-7.3developMax Magorsch2019-09-057-12/+29
| | | | | | | | docker-compose can be used to deploy the application. The index will be initialized and updated. Furthermore a cron job will be registered for production environments to update the index every 10 minutes. ° Signed-off-by: Max Magorsch <max@magorsch.de>
* Use docker volumes for the portage treeMax Magorsch2019-09-052-1/+34
| | | | Signed-off-by: Max Magorsch <max@magorsch.de>
* Use ES 7.3 in the DockerfileMax Magorsch2019-09-052-3/+3
| | | | | | Furthermore dejavu 3.4.0 will be used. Signed-off-by: Max Magorsch <max@magorsch.de>
* Include a cron daemon into the dockerfileMax Magorsch2019-09-051-0/+1
| | | | Signed-off-by: Max Magorsch <max@magorsch.de>
* Include a kkuleomi_config into the docker image.Max Magorsch2019-09-051-0/+1
| | | | Signed-off-by: Max Magorsch <max@magorsch.de>
* Use bundler-1.17.3 in the Dockerfile nowMax Magorsch2019-09-051-1/+3
| | | | | | | The current Gemfile.lock has been bundled with bundler 1.17.3. That's why will use this version in the Dockerfile as well. Signed-off-by: Max Magorsch <max@magorsch.de>
* Update the runtime directory to /mnt/packages-treeMax Magorsch2019-09-051-1/+1
| | | | | | | | | So far /var/db/repos/gentoo has been used as PORT_DIR and as RUNTIME_PORTDIR. RUNTIME_PORTDIR will now by default point to /mnt/packages-tree/gentoo to match what is specified in the Dockerfile. Signed-off-by: Max Magorsch <max@magorsch.de>
* Migrate to ES 7.3 and the repository patternMax Magorsch2019-09-0544-505/+819
| | | | | | | | | | | | | | | | | | Elasticsearch-persistence is used as the persistence layer for Ruby domain objects in Elasticsearch in this application. So far, the ActiveRecord pattern has been used here. However, this pattern has been deprecated as of version 6 of the gem and was removed in version 7. That's why the application has been migrated to use the repository pattern instead. For further information, please see: https://www.elastic.co/blog/activerecord-to-repository-changing- persistence-patterns-with-the-elasticsearch-rails-gem Note: The old Elasticsearch index won't be compatible with this version anymore. That's why a fresh index should be populated. Signed-off-by: Max Magorsch <max@magorsch.de>
* Added docker-compose.override.yml for development purposesMax Magorsch2019-09-012-1/+95
| | | | | | | | | | | | | | | | | | | | | | | The newly added docker-compose.override.yml file overrides settings in docker-compose.yml for development purposes. In particular: - the source code will be mounted into the container for live reloading during the development - dejavu is used as gui for elasticsearch for debugging purposes - cors is enabled in elasticsearch for usage with dejavu These settings will automatically be used when executing: $ docker-compose up If you, however, don't want to use these settings (e.g. in production) use: $ docker-compose -f docker-compose.yml up For further information please refer to: https://docs.docker.com/compose/extends/#multiple-compose-files Signed-off-by: Max Magorsch <max@magorsch.de>
* Ensure that the rake version bundled in Gemfile.lock is usedMax Magorsch2019-08-311-1/+1
| | | | Signed-off-by: Max Magorsch <max@magorsch.de>
* Migrate gentoo portage location to default /var/db/repos/gentooMax Magorsch2019-08-312-3/+3
| | | | | | | | | | The default portage location has changed: https://wiki.gentoo.org/wiki//usr/portage and so has the location in the portage container: https://github.com/gentoo/gentoo-docker-images/commit/7c0dfcc Signed-off-by: Max Magorsch <max@magorsch.de>
* Fix eager loading in productionv6.0.25Hans de Graaff2019-07-251-0/+1
| | | | | | | | | Rails 5 no longer falls back to autoloading in the production environment by default, so all code needs to be eagerly loaded. Specificy that code in lib should also be included here, similar to autoload_paths. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Use sassc-rails instead of sass-railsHans de Graaff2019-07-242-13/+11
| | | | | | | sass is no longer maintained and is now deprecated. sassc is the recommended replacement and sassc-rails provides that to rails. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Run tests in script on travis and add rubocopv6.0.24Hans de Graaff2019-07-221-0/+3
| | | | | | | Run the tests in the script phase instead of before_script and include a rubocop step. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Update rubocop configurationHans de Graaff2019-07-224-6/+853
| | | | | | | | Include the new performance and rails cops. Add a rubocop todo file so that running rubocop now results in a clean run. Specific issues from the todo file can be removed at a later stage. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Use Ruby 2.4 as the lowest versionHans de Graaff2019-07-222-0/+4
| | | | | | | Include this in travis tests and add this as the lower boundary for rubocop. Ruby 2.4 is currently the stable ruby on Gentoo. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Update to Rails 5.2Hans de Graaff2019-07-2211-77/+99
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Update to Rails 5.1Hans de Graaff2019-07-229-56/+88
| | | | | | | | This also fixes a bug in the fresh_when handling for the changelog view, which was exposed by the update (due to ETag now taking the flash message, if any, into account). Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Add ETag and Last-Modified headers based on specific packageHans de Graaff2019-07-221-2/+2
| | | | | | https://guides.rubyonrails.org/caching_with_rails.html#conditional-get-support Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Set ETag and Last-Modified based on package infoHans de Graaff2019-07-221-0/+4
| | | | | | | This should avoid stale information being reported in the browser because an older, stale but cached, version is shown. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Fix deprecation of positional arguments in controller testsHans de Graaff2019-07-222-3/+3
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Run "rails app:update"Hans de Graaff2019-07-2211-58/+70
| | | | | | Merge all upstream changes for a new Rails 5.0 application. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Migrate to Rails 5.0Hans de Graaff2019-07-229-68/+87
| | | | | | | | | This commit contains all the recommended steps in the commit guide: https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-2-to-rails-5-0 It also updates the associated web-console dependency. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Pin jquery-rails and require new enough versionHans de Graaff2019-07-222-2/+2
| | | | | | | We need at least 4.3.5 to get jQuery 3.4.1 which fixes a security issue: https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/ Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Update sdoc to a more modern versionHans de Graaff2019-07-222-7/+5
| | | | | | sdoc 1.x supports rdoc 5.x and newer. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Remove unused git dependencyHans de Graaff2019-07-222-3/+0
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Remove unused sinatra dependencyHans de Graaff2019-07-222-7/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Remove unused ruby-progressbar dependencyHans de Graaff2019-07-222-3/+0
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Remove unused parallel package from GemfileHans de Graaff2019-07-222-3/+0
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Lock elasticsearch dependency to 5.xHans de Graaff2019-07-222-38/+36
| | | | | | | The 5.x series still supports the deprecated persistence pattern so we cannot update beyond that at the moment. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Use the fixture repo in the test environmentHans de Graaff2019-07-223-0/+5
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Add a package test fixture and fix USE flag testsHans de Graaff2019-07-227-3/+38
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Remove stubs for category search methodHans de Graaff2019-07-223-15/+2
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Provide a test fixture repo and use it for testsHans de Graaff2019-07-224-4/+16
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Remove category tests for unimplemented methodsHans de Graaff2019-07-221-27/+2
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Set up the test index since these are used for testsHans de Graaff2019-07-221-1/+1
| | | | | | | | The tests expect the indices to have a "-test" extension since that is the test environment, so make sure to set this up in travis as well so that the test indices exists. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Use ES 6.3.0 on travis CI to match productionHans de Graaff2019-07-221-0/+2
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Use bundler 1.x as per Travis docsHans de Graaff2019-07-221-0/+4
| | | | | | https://docs.travis-ci.com/user/languages/ruby/#bundler-20 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Update Gemfile.lock to latest bundler 1.x versionHans de Graaff2019-07-221-1/+1
| | | | | | This should re-enable travis runs again. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Update the copyright year in the footerHans de Graaff2019-07-221-1/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* Remove did-you-mean.Alec Warner2019-04-282-5/+0
| | | | Signed-off-by: Alec Warner <antarus@gentoo.org>
* Update to newer rails 4.2 series.Alec Warner2019-04-282-45/+44
| | | | Signed-off-by: Alec Warner <antarus@gentoo.org>
* Update Copyright yearBrian Evans2018-08-261-1/+1
| | | | Signed-off-by: Brian Evans <grknight@gentoo.org>
* False instead of strict, strict is for types.dynamic2Alec Warner2018-08-251-1/+1
|
* Turn off dynamic field detection.dynamicAlec Warner2018-08-251-1/+2
|
* Remove PFL links as they are longer working.Bruno Pinto2018-07-222-9/+0
| | | | | Closes: 653846 Signed-off-by: Alec Warner <antarus@gentoo.org>
* Go back to old changelog behavior for now.v6.0.23Alec Warner2018-07-171-3/+0
|
* Fix p.g.o versioning.v6.0.22Alec Warner2018-07-081-1/+1
| | | | Bug: https://bugs.gentoo.org/attachment.cgi?id=538714&action=edit
* Try to fix Build.Alec Warner2018-06-171-1/+1
| | | | | | | | CI said: Gem::LoadError: You have already activated did_you_mean 1.2.0, but your Gemfile requires did_you_mean 1.0.2. Prepending `bundle exec` to your command may solve this. So bumping to a versionless did_you_mean.
* Stop testing ruby-2.2.X.Alec Warner2018-06-171-1/+0
| | | | We require ruby-2.3 at least.