dependabot[bot]
dfa7142afb
Bump ancestry from 4.2.0 to 4.3.3
...
Bumps [ancestry](https://github.com/stefankroes/ancestry ) from 4.2.0 to 4.3.3.
- [Changelog](https://github.com/stefankroes/ancestry/blob/master/CHANGELOG.md )
- [Commits](https://github.com/stefankroes/ancestry/compare/v4.2.0...v4.3.3 )
---
updated-dependencies:
- dependency-name: ancestry
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 17:19:47 +00:00
Javi Martín
1cb5b704f8
Merge pull request #5208 from consuldemocracy/dependabot/bundler/redcarpet-3.6.0
...
Bump redcarpet from 3.5.1 to 3.6.0
2023-08-30 19:18:29 +02:00
Javi Martín
3d4c6c0e86
Merge pull request #5207 from consuldemocracy/dependabot/bundler/mini_magick-4.12.0
...
Bump mini_magick from 4.11.0 to 4.12.0
2023-08-30 19:17:29 +02:00
dependabot[bot]
6c4ac95ee8
Bump redcarpet from 3.5.1 to 3.6.0
...
Bumps [redcarpet](https://github.com/vmg/redcarpet ) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/vmg/redcarpet/releases )
- [Changelog](https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vmg/redcarpet/compare/v3.5.1...v3.6.0 )
---
updated-dependencies:
- dependency-name: redcarpet
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 19:00:25 +02:00
dependabot[bot]
c91c659874
Bump mini_magick from 4.11.0 to 4.12.0
...
Bumps [mini_magick](https://github.com/minimagick/minimagick ) from 4.11.0 to 4.12.0.
- [Release notes](https://github.com/minimagick/minimagick/releases )
- [Commits](https://github.com/minimagick/minimagick/compare/v4.11.0...v4.12.0 )
---
updated-dependencies:
- dependency-name: mini_magick
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 18:58:51 +02:00
Javi Martín
a4c81bfa6b
Merge pull request #5205 from consuldemocracy/dependabot/bundler/simplecov-0.22.0
...
Bump simplecov from 0.21.2 to 0.22.0
2023-08-30 18:50:29 +02:00
dependabot[bot]
e9d339c897
Bump simplecov from 0.21.2 to 0.22.0
...
Bumps [simplecov](https://github.com/simplecov-ruby/simplecov ) from 0.21.2 to 0.22.0.
- [Release notes](https://github.com/simplecov-ruby/simplecov/releases )
- [Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md )
- [Commits](https://github.com/simplecov-ruby/simplecov/compare/v0.21.2...v0.22.0 )
---
updated-dependencies:
- dependency-name: simplecov
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 16:25:26 +00:00
Javi Martín
b2eb653ca9
Merge pull request #5202 from consuldemocracy/dependabot/bundler/cancancan-3.5.0
...
Bump cancancan from 3.4.0 to 3.5.0
2023-08-30 18:18:18 +02:00
dependabot[bot]
1120039c0a
Bump cancancan from 3.4.0 to 3.5.0
...
Bumps [cancancan](https://github.com/CanCanCommunity/cancancan ) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/CanCanCommunity/cancancan/releases )
- [Changelog](https://github.com/CanCanCommunity/cancancan/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/CanCanCommunity/cancancan/compare/3.4.0...3.5.0 )
---
updated-dependencies:
- dependency-name: cancancan
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 17:58:50 +02:00
Javi Martín
a6a2142bc5
Merge pull request #5200 from consuldemocracy/dependabot/bundler/devise-4.9.2
...
Bump devise from 4.8.1 to 4.9.2
2023-08-30 17:25:54 +02:00
dependabot[bot]
3dd05c9068
Bump devise from 4.8.1 to 4.9.2
...
Bumps [devise](https://github.com/heartcombo/devise ) from 4.8.1 to 4.9.2.
- [Release notes](https://github.com/heartcombo/devise/releases )
- [Changelog](https://github.com/heartcombo/devise/blob/main/CHANGELOG.md )
- [Commits](https://github.com/heartcombo/devise/compare/v4.8.1...v4.9.2 )
---
updated-dependencies:
- dependency-name: devise
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 14:57:16 +00:00
Javi Martín
7b4e9b2123
Merge pull request #5190 from consuldemocracy/dependabot/bundler/devise-security-0.18.0
...
Bump devise-security from 0.17.0 to 0.18.0
2023-08-30 16:55:45 +02:00
dependabot[bot]
718ade60b0
Bump devise-security from 0.17.0 to 0.18.0
...
Bumps [devise-security](https://github.com/devise-security/devise-security ) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/devise-security/devise-security/releases )
- [Commits](https://github.com/devise-security/devise-security/compare/v0.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: devise-security
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 14:29:55 +00:00
Javi Martín
e2c710b4f1
Merge pull request #5198 from consuldemocracy/dependabot/bundler/savon-2.14.0
...
Bump savon from 2.13.0 to 2.14.0
2023-08-30 16:11:27 +02:00
dependabot[bot]
1037428474
Bump savon from 2.13.0 to 2.14.0
...
Bumps [savon](https://github.com/savonrb/savon ) from 2.13.0 to 2.14.0.
- [Release notes](https://github.com/savonrb/savon/releases )
- [Changelog](https://github.com/savonrb/savon/blob/master/CHANGELOG.md )
- [Commits](https://github.com/savonrb/savon/compare/v2.13.0...v2.14.0 )
---
updated-dependencies:
- dependency-name: savon
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-30 15:51:06 +02:00
Javi Martín
d8953cef6e
Merge pull request #5161 from consuldemocracy/line_length
...
Apply Layout/LineLength rubocop rule
2023-08-30 15:06:04 +02:00
Javi Martín
588c8cc87f
Merge pull request #5197 from consuldemocracy/dependabot/bundler/caxlsx-3.4.1
...
Bump caxlsx from 3.2.0 to 3.4.1
2023-08-30 15:02:10 +02:00
Javi Martín
a1439d0790
Apply Layout/LineLength rubocop rule
...
Note we're excluding a few files:
* Configuration files that weren't generated by us
* Migration files that weren't generated by us
* The Gemfile, since it includes an important comment that must be on
the same line as the gem declaration
* The Budget::Stats class, since the heading statistics are a mess and
having shorter lines would require a lot of refactoring
2023-08-30 14:46:35 +02:00
Javi Martín
75d2782061
Make investment votes abilities tests consistent
...
Now both the tests to create and destroy use the `user.votes`
association.
2023-08-30 14:46:35 +02:00
Javi Martín
3fe292dfe2
Move relationable expectations to controller tests
...
Having expectations related to database operations in system tests after
the process running the browser has started might result in exceptions
while running our test suite.
2023-08-30 14:46:35 +02:00
Javi Martín
2113c00db8
Simplify tests for total anonymous votes
...
Since we added a `total_anonymous_votes` method, we might as well use
it.
2023-08-30 14:46:35 +02:00
Javi Martín
9abc7cd410
Simplify investment valuation scopes
2023-08-30 14:46:35 +02:00
Javi Martín
c4dbd94e48
Group related investment scopes together
2023-08-30 14:46:35 +02:00
Javi Martín
2db45c4719
Group related investment filters together
2023-08-30 14:46:35 +02:00
Javi Martín
8589adaf3e
Simplify verification scopes
...
The code was hard to read with so many nested conditions.
2023-08-30 14:46:35 +02:00
Javi Martín
58575374b1
Simplify condition in direct upload validation
2023-08-30 14:46:35 +02:00
Javi Martín
30767fa44e
Use Ruby 1.9 hash notation in assignment scopes
2023-08-30 14:46:35 +02:00
Javi Martín
a2cc414887
Remove unnecessary code in proposal scope
...
The `id:` condition works with a list of proposals that might include
nil items, so there's no need to compact it and manually get the IDs.
Note this scope is probably inefficient, since it instantiates proposal
objects (with the `find_voted_items` method) for something that could be
done with a database query. We might change it in he future.
2023-08-30 14:46:35 +02:00
Javi Martín
bff3331ba7
Group related proposal scopes together
2023-08-30 14:46:35 +02:00
Javi Martín
243d55ec82
Add method to get the archived proposals date limit
2023-08-30 14:46:35 +02:00
Javi Martín
8898c30f55
Rename AvailableLocales.available_locales method
...
I'm not sure whether we should rename the class instead. I'm renaming
the method because renaming the class would require more changes.
2023-08-30 14:46:35 +02:00
Javi Martín
36c3ba6601
Extract variable in manager authenticator method
2023-08-30 14:46:35 +02:00
Javi Martín
4b374151be
Extract variable in GraphQL test
2023-08-30 14:46:35 +02:00
Javi Martín
cdc166e830
Make it easier to distinguish counts and prices
...
With so many similar numbers, the tests were hard to follow. Besides,
we're now making these lines slightly shorter :).
2023-08-30 14:46:35 +02:00
Javi Martín
018ef2e483
Simplify stubbing age responses in residence tests
2023-08-30 14:46:35 +02:00
Javi Martín
332e3a296a
Simplify expectations in related content tests
2023-08-30 14:46:35 +02:00
Javi Martín
016595fd80
Simplify setting up poll geozones in test/dev data
2023-08-30 14:46:35 +02:00
Javi Martín
025f3ad210
Simplify variable names in remote translations tests
2023-08-30 14:46:35 +02:00
Javi Martín
03fa5fc8d6
Simplify long test titles
2023-08-30 14:46:35 +02:00
Javi Martín
07e1f92dd5
Make moderation tests easier to read
2023-08-30 14:46:35 +02:00
Javi Martín
316db607fe
Use polymorphic path in annotation tests
...
Invoking legislation_process_draft_version_annotation_path makes the
code harder to read.
2023-08-30 14:46:35 +02:00
Javi Martín
cd559e6361
Simplify legislation variable names
...
Since we're in the context of the legislation section, we don't need the
`legislation_` prefix.
2023-08-30 14:46:35 +02:00
Javi Martín
bb79274ffe
Simplify creating investments with the same heading
2023-08-30 14:46:35 +02:00
Javi Martín
cebd6ddb30
Simplify code testing investment ids
2023-08-30 14:46:34 +02:00
Javi Martín
b8ed81c5b8
Simplify setting up admin component tests
2023-08-30 14:46:34 +02:00
Javi Martín
62304b50e0
Remove non-existent action in management routes
2023-08-30 14:46:34 +02:00
Javi Martín
1d7a269408
Use a transaction when registering a vote
...
Otherwise it would be possible to increment the votes counter without
actually introducing the vote.
2023-08-30 14:46:34 +02:00
Javi Martín
9491b20314
Extract method to get vote counts by votable type
2023-08-30 14:46:34 +02:00
Javi Martín
0d35bddf9e
Simplify finding the booth assignment for a voter
2023-08-30 14:46:34 +02:00
Javi Martín
28a90f05f8
Make installation details code easier to follow
2023-08-30 14:46:34 +02:00