Commit Graph

17194 Commits

Author SHA1 Message Date
dependabot[bot]
2644d4915e Bump social-share-button from 1.2.3 to 1.2.4
Bumps [social-share-button](https://github.com/huacnlee/social-share-button) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/huacnlee/social-share-button/releases)
- [Changelog](https://github.com/huacnlee/social-share-button/blob/master/CHANGELOG.md)
- [Commits](https://github.com/huacnlee/social-share-button/compare/v1.2.3...v1.2.4)

---
updated-dependencies:
- dependency-name: social-share-button
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 01:19:29 +00:00
Javi Martín
e53dc7b20c Merge pull request #4420 from consul/dependabot/bundler/globalize-accessors-0.3.0
Bump globalize-accessors from 0.2.1 to 0.3.0
2021-08-11 03:17:50 +02:00
dependabot[bot]
92b493df0b Bump capybara-webmock from 0.5.5 to 0.6.0
Bumps [capybara-webmock](https://github.com/hashrocket/capybara-webmock) from 0.5.5 to 0.6.0.
- [Release notes](https://github.com/hashrocket/capybara-webmock/releases)
- [Commits](https://github.com/hashrocket/capybara-webmock/commits/v0.6.0)

---
updated-dependencies:
- dependency-name: capybara-webmock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 01:11:25 +00:00
dependabot[bot]
1274d9302b Bump acts-as-taggable-on from 6.5.0 to 8.1.0
Bumps [acts-as-taggable-on](https://github.com/mbleigh/acts-as-taggable-on) from 6.5.0 to 8.1.0.
- [Release notes](https://github.com/mbleigh/acts-as-taggable-on/releases)
- [Changelog](https://github.com/mbleigh/acts-as-taggable-on/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mbleigh/acts-as-taggable-on/compare/v6.5.0...v8.1.0)

---
updated-dependencies:
- dependency-name: acts-as-taggable-on
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 01:08:59 +00:00
dependabot[bot]
7728c719c5 Bump globalize-accessors from 0.2.1 to 0.3.0
Bumps [globalize-accessors](http://rubygems.org/gems/globalize-accessors) from 0.2.1 to 0.3.0.

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 00:52:54 +00:00
dependabot[bot]
614ebb7888 Bump delayed_job_active_record from 4.1.4 to 4.1.5
Bumps [delayed_job_active_record](https://github.com/collectiveidea/delayed_job_active_record) from 4.1.4 to 4.1.5.
- [Release notes](https://github.com/collectiveidea/delayed_job_active_record/releases)
- [Commits](https://github.com/collectiveidea/delayed_job_active_record/compare/v4.1.4...v4.1.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 00:51:31 +00:00
Javi Martín
03513fc352 Merge pull request #4418 from consul/dependabot/bundler/capistrano3-puma-5.0.4
Bump capistrano3-puma from 4.0.0 to 5.0.4
2021-08-11 02:50:06 +02:00
Javi Martín
8942e9baf8 Configure Capistrano to use Puma as a daemon
Since Puma 5.x will remove support for running Puma as a daemon,
capistrano-puma requires defining whether we want to run Puma as a
daemon (as we've been doing so far with Puma 4.x) or to uses systemd.

We'll change this code to uses systemd when upgrading to Puma 5.x.
2021-08-11 02:36:41 +02:00
Javi Martín
0a53f438c0 Update Capfile to use the current capistrano
We forgot to do so when updating Capistrano in commit c1491a7ce.
2021-08-11 02:32:34 +02:00
Javi Martín
4058bd191b Merge pull request #4429 from consul/dependabot/bundler/rspec-rails-5.0.1
Bump rspec-rails from 4.0.1 to 5.0.1
2021-08-11 02:08:07 +02:00
dependabot[bot]
7a38ede33f Bump capistrano3-puma from 4.0.0 to 5.0.4
Bumps [capistrano3-puma](https://github.com/seuros/capistrano-puma) from 4.0.0 to 5.0.4.
- [Release notes](https://github.com/seuros/capistrano-puma/releases)
- [Changelog](https://github.com/seuros/capistrano-puma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seuros/capistrano-puma/compare/v4.0.0...v5.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 23:54:14 +00:00
Javi Martín
3bb9275469 Merge pull request #4427 from consul/dependabot/bundler/capybara-3.35.3
Bump capybara from 3.33.0 to 3.35.3
2021-08-11 01:52:54 +02:00
Javi Martín
0f02116117 Merge pull request #4423 from consul/dependabot/bundler/erb_lint-0.0.37
Bump erb_lint from 0.0.35 to 0.0.37
2021-08-11 01:39:53 +02:00
dependabot[bot]
8467c9f113 Bump rspec-rails from 4.0.1 to 5.0.1
Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 4.0.1 to 5.0.1.
- [Release notes](https://github.com/rspec/rspec-rails/releases)
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md)
- [Commits](https://github.com/rspec/rspec-rails/compare/v4.0.1...v5.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 23:37:06 +00:00
Javi Martín
a1b4eae7d9 Merge pull request #4414 from consul/dependabot/bundler/webdrivers-4.6.0
Bump webdrivers from 4.4.1 to 4.6.0
2021-08-11 01:35:32 +02:00
dependabot[bot]
1bd6da4fe7 Bump erb_lint from 0.0.35 to 0.0.37
Bumps [erb_lint](https://github.com/Shopify/erb-lint) from 0.0.35 to 0.0.37.
- [Release notes](https://github.com/Shopify/erb-lint/releases)
- [Commits](https://github.com/Shopify/erb-lint/compare/v0.0.35...v0.0.37)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 23:11:50 +00:00
dependabot[bot]
e2f0e6d22f Bump capybara from 3.33.0 to 3.35.3
Bumps [capybara](https://github.com/teamcapybara/capybara) from 3.33.0 to 3.35.3.
- [Release notes](https://github.com/teamcapybara/capybara/releases)
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md)
- [Commits](https://github.com/teamcapybara/capybara/compare/3.33.0...3.35.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 23:11:49 +00:00
dependabot[bot]
f6ec007ecd Bump webdrivers from 4.4.1 to 4.6.0
Bumps [webdrivers](https://github.com/titusfortner/webdrivers) from 4.4.1 to 4.6.0.
- [Release notes](https://github.com/titusfortner/webdrivers/releases)
- [Changelog](https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md)
- [Commits](https://github.com/titusfortner/webdrivers/compare/v4.4.1...v4.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 23:11:33 +00:00
Javi Martín
eed6697056 Merge pull request #4410 from consul/dependabot/bundler/invisible_captcha-2.0.0
Bump invisible_captcha from 1.1.0 to 2.0.0
2021-08-11 01:09:58 +02:00
Javi Martín
5ccf49b641 Merge pull request #4415 from consul/dependabot/bundler/audited-4.10.0
Bump audited from 4.9.0 to 4.10.0
2021-08-11 01:08:40 +02:00
Javi Martín
ddc2b0bfe8 Disable invisible captcha spinner
The spinner was added in version 2.0.0, so by disabling it we're keeping
the behavior we've got in existing CONSUL installations.

The problem with the spinner is installations need to add a secret token
and share it across instances (when they've got more than one), and if
they don't, invisible captcha might report false positives.

I guess we could use `Rails.application.secrets.secret_key_base` as
secret token, but since we haven't tested this feature at all, it's
better to disable it for now.
2021-08-11 00:53:05 +02:00
dependabot[bot]
ad17532107 Bump audited from 4.9.0 to 4.10.0
Bumps [audited](https://github.com/collectiveidea/audited) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/collectiveidea/audited/releases)
- [Changelog](https://github.com/collectiveidea/audited/blob/master/CHANGELOG.md)
- [Commits](https://github.com/collectiveidea/audited/compare/v4.9.0...v4.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 22:47:50 +00:00
dependabot[bot]
5fc927b313 Bump invisible_captcha from 1.1.0 to 2.0.0
Bumps [invisible_captcha](https://github.com/markets/invisible_captcha) from 1.1.0 to 2.0.0.
- [Release notes](https://github.com/markets/invisible_captcha/releases)
- [Changelog](https://github.com/markets/invisible_captcha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markets/invisible_captcha/compare/v1.1.0...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 22:46:18 +00:00
Javi Martín
cdef030f15 Add a consistent order in system email previews
Since PostgreSQL doesn't guarantee the order of the records unless an
`ORDER BY` clause is used, the records sometimes had a different order.
This might cause records being present in more than one page.

One test was failing sometimes (when the record created first was
rendered after the record created last) because there seems to be a bug
in chrome/chromedriver 83 and later which causes links not to be clicked
when they're right at the edge of the screen (which was the case for the
notification appearing in the last place):

```
  1) System Emails Preview Pending #moderate_pending
     Failure/Error: click_on "Moderate notification send"

     Selenium::WebDriver::Error::ElementNotInteractableError:
       element not interactable: element has zero size
         (Session info: headless chrome=91.0.4472.114)
```
2021-08-10 22:07:47 +02:00
Javi Martín
caa37975cf Merge pull request #4409 from consul/dependabot/bundler/database_cleaner-2.0.1
Bump database_cleaner from 1.8.5 to 2.0.1
2021-08-10 22:03:19 +02:00
Javi Martín
d472b46f3e Fix duplicate HTML ID in system emails preview
The ID was the same for every proposal notification.
2021-08-10 21:56:47 +02:00
dependabot[bot]
6470a8dbd0 Bump database_cleaner from 1.8.5 to 2.0.1
Bumps [database_cleaner](https://github.com/DatabaseCleaner/database_cleaner) from 1.8.5 to 2.0.1.
- [Release notes](https://github.com/DatabaseCleaner/database_cleaner/releases)
- [Changelog](https://github.com/DatabaseCleaner/database_cleaner/blob/main/History.rdoc)
- [Commits](https://github.com/DatabaseCleaner/database_cleaner/compare/v1.8.5...v2.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 19:39:41 +00:00
Javi Martín
4e6fc194cb Merge pull request #4400 from consul/dependabot/bundler/view_component-2.28.0
Bump view_component from 2.19.1 to 2.28.0
2021-08-10 21:19:35 +02:00
Javi Martín
405b6c80af Merge pull request #4407 from consul/dependabot/bundler/recipient_interceptor-0.3.0
Bump recipient_interceptor from 0.2.0 to 0.3.0
2021-08-10 15:29:46 +02:00
Javi Martín
b4bfe440bd Use with_controller_class in component tests
This feature was introduced in view_component 2.27.0.
2021-08-10 15:02:01 +02:00
Javi Martín
6df7f7d052 Simplify changing controllers in component tests 2021-08-10 15:00:26 +02:00
dependabot[bot]
ec7ed5496f Bump recipient_interceptor from 0.2.0 to 0.3.0
Bumps [recipient_interceptor](https://github.com/croaky/recipient_interceptor) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/croaky/recipient_interceptor/releases)
- [Commits](https://github.com/croaky/recipient_interceptor/commits/v0.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 12:46:06 +00:00
dependabot-preview[bot]
403bf87744 Bump view_component from 2.19.1 to 2.28.0
Bumps [view_component](https://github.com/github/view_component) from 2.19.1 to 2.28.0.
- [Release notes](https://github.com/github/view_component/releases)
- [Changelog](https://github.com/github/view_component/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/view_component/compare/v2.19.1...v2.28.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-08-10 14:08:09 +02:00
Javi Martín
c2d16f3027 Merge pull request #4384 from consul/dependabot/bundler/rubocop-performance-1.10.1
Bump rubocop-performance from 1.7.1 to 1.10.1
2021-08-10 13:47:44 +02:00
Javi Martín
db4451c7c2 Add Performance/BlockGivenWithExplicitBlock rule
We don't need to use `block_given?` since we specifically pass the block
parameter, particularly since we added the Style/ExplicitBlockArgument
rule in commit a102f3f0a.
2021-08-10 13:31:37 +02:00
Javi Martín
e619ca992c Add and apply Performance/Sum rubocop rule
We're not adding it for performance reasons but because it simplifies
the code.
2021-08-10 13:30:07 +02:00
dependabot-preview[bot]
ffc8ed738d Bump rubocop-performance from 1.7.1 to 1.10.1
Bumps [rubocop-performance](https://github.com/rubocop/rubocop-performance) from 1.7.1 to 1.10.1.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.7.1...v1.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-08-10 13:29:42 +02:00
Javi Martín
ab9e99f45c Merge pull request #4288 from consul/dependabot/bundler/rubocop-rails-2.9.1
Bump rubocop-rails from 2.6.0 to 2.9.1
2021-08-10 13:23:32 +02:00
Javi Martín
bab5cbf03a Merge pull request #4215 from consul/dependabot/bundler/rubocop-0.93.1
Bump rubocop from 0.91.1 to 0.93.1
2021-08-10 13:15:52 +02:00
Sebastia
dabe07c1c3 Merge pull request #4594 from consul/unify-budget-views
Render investments list when budget has multiple headings
2021-08-10 09:44:52 +02:00
Javi Martín
815de7fb37 Merge pull request #4354 from consul/dependabot/bundler/rollbar-3.1.2
Bump rollbar from 3.0.1 to 3.1.2
2021-08-09 23:57:15 +02:00
Javi Martín
3865225e98 Make migrations using remove_index reversible
These issues were detected after upgrading to rubocop-rails >= 2.8.0.
2021-08-09 23:53:21 +02:00
Javi Martín
884fd2b27b Add and apply Rails/WhereEquals rubocop rule
We were already following this style in most places.
2021-08-09 23:52:47 +02:00
Javi Martín
8ae138aa19 Add and apply Rails/WhereNot rubocop rule
We simplify the code a little bit, and make it more consistent since we
were already using `where.not` in most places.
2021-08-09 23:52:47 +02:00
Javi Martín
69dda19af7 Add and apply Rails/PluckId rubocop rule 2021-08-09 23:52:47 +02:00
Javi Martín
8d47acc12b Add and apply Rails/ActiveRecordCallbacksOrder rule
We were already following it most of the time.
2021-08-09 23:52:34 +02:00
dependabot-preview[bot]
33c962c63c Bump rubocop-rails from 2.6.0 to 2.9.1
Bumps [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails) from 2.6.0 to 2.9.1.
- [Release notes](https://github.com/rubocop-hq/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-rails/compare/v2.6.0...v2.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-08-09 22:41:26 +02:00
decabeza
4a9aae9806 Add groups index page
When render the investment list component with the link "see all
investments", now we redirect to groups index page when a budget has
multiple headings.
2021-08-09 21:45:29 +02:00
Javi Martín
469b39ffa3 Add and apply Style/RedundantInterpolation rule
Somehow I thought we already had this rule; must have forgotten to
actually add it.
2021-08-09 21:37:04 +02:00
Javi Martín
3cd2529791 Fix huge header in participatory budgets
The budget header was supposed to be huge, but only in the participatory
budgets index or show actions. It was still huge, with plenty of empty
space, when there was no budget, or in the "submit my ballot" and
"select a heading" pages.
2021-08-09 20:07:51 +02:00