Raimond Garcia
787657e07e
Merge pull request #2510 from consul/valuator-groups
...
Add valuator groups
2018-04-05 00:21:04 +02:00
Raimond Garcia
b9a1e19cbb
Merge pull request #2568 from consul/gems
...
Update rails-html-sanitizer gem version to 1.0.4
2018-04-05 00:20:49 +02:00
Bertocq
9a21734805
Update rubocop gem from 0.53.0 to 0.54.0
2018-04-05 00:08:13 +02:00
Alberto Calderón Queimadelos
288ec75fcd
Merge pull request #2524 from consul/rubocop_update
...
Rubocop & rubocop-rspec gem & config updates
2018-04-04 20:10:39 +02:00
Alberto Calderón Queimadelos
86d5fe3700
Merge pull request #2572 from consul/i18n_master
...
New Crowdin translations
2018-04-04 20:10:26 +02:00
Alberto Calderón Queimadelos
cb7e9f32f1
Merge pull request #2560 from consul/fix_route_deprecation_warning
...
Fix routes deprecation warning for `to:` usage
2018-04-04 20:10:11 +02:00
Alberto Calderón Queimadelos
d7d9f587da
Merge pull request #2559 from consul/fix_date_new_to_use_timezone
...
Fix date parsing to take the TimeZone in account
2018-04-04 19:45:15 +02:00
Bertocq
746fef60da
Add indonesian translations
2018-04-04 19:39:54 +02:00
Bertocq
3aaf466939
Update galician translations
2018-04-04 19:39:12 +02:00
Bertocq
3ef955101b
Add german translations
2018-04-04 19:38:20 +02:00
Bertocq
16bf8bcdd0
Update nl translation
2018-04-04 19:37:07 +02:00
Bertocq
c863b0724a
Update catalan translation
2018-04-04 19:36:42 +02:00
Bertocq
db02dd26ab
Update french translations
2018-04-04 19:36:26 +02:00
Bertocq
c1bfd99be5
Update hebrew translations
2018-04-04 19:35:16 +02:00
Bertocq
988e7d44ed
Update Valencian translations
2018-04-04 19:34:31 +02:00
Bertocq
2bf019f08b
Disable DynamicAttributeDefinedStatically cop
...
rubocop-rspec includes a FactoryBot cop DynamicAttributeDefinedStatically
that enforces declaring dynamic attribute values in a block. It was
decided not to follow this convention. Explicitly disabling it gives
more insight about current rubocop rules.
http://www.rubydoc.info/gems/rubocop-rspec/1.24.0/RuboCop/Cop/RSpec/FactoryBot/DynamicAttributeDefinedStatically
2018-04-04 19:28:15 +02:00
Bertocq
e2c42a3c63
Enable StaticAttributeDefinedDynamically cop & fix
...
rubocop-rspec gem includes cops for FactoryBot like the new
FactoryBot/StaticAttributeDefinedDynamically to enforce declaring
static attribute values without a block.
* http://www.rubydoc.info/gems/rubocop-rspec/1.24.0/RuboCop/Cop/RSpec/FactoryBot/StaticAttributeDefinedDynamically
2018-04-04 19:28:15 +02:00
Bertocq
d3d9573086
Enable new Rails/HttpStatus cop without issues
...
rubocop-rspec 1.23.0 release introduced the cop RSpec/Rails/HttpStatus
to enforce consistent usage of the status format (numeric or symbolic).
* https://github.com/rubocop-rspec/rubocop-rspec/pull/553
* https://github.com/rubocop-rspec/rubocop-rspec/releases/tag/v1.23.0
2018-04-04 19:28:15 +02:00
Bertocq
1d0bf77cca
Update rubocop-rspec gem to 1.24.0 from 1.22.1
2018-04-04 19:28:14 +02:00
Bertocq
b0c0578cbe
Remove deprecated Performance/HashEachMethods cop
...
At release https://github.com/bbatsov/rubocop/releases/tag/v0.53.0 it
has been removed with https://github.com/bbatsov/rubocop/issues/5589
2018-04-04 19:26:31 +02:00
Bertocq
b2951b120a
Update Rubocop gem to 0.53.0
2018-04-04 19:26:29 +02:00
rgarcia
c4b6ad9ee6
Use strings instead of method calls in expectations
2018-04-04 14:38:36 +02:00
rgarcia
71bb5b3dcf
Fix display of unfeasibility explanation
...
We were missing a check to make sure valuation had finished before
displaying the unfeasibility explanation
2018-04-04 14:38:31 +02:00
Bertocq
633cc1283b
Fix Date & DateTime parsings to use default timezone
...
Date.new(...) does not take into account the current timezone, while other
parts of the application do. By default always parsing any date with the
default timezone and converting the resulting Time to Date would prevent
this kind of issues
DateTime.parse(...).in_time_zone gives an unexpected result, as the
DateTime.parse(...) will create a DateTime with +0000 time zone and the
`in_time_zone` will modify the DateTime to adjust to the default zone.
Maybe its better explained with an example, using 'Lima' as timezone:
DateTime.parse("2015-01-01")
> Thu, 01 Jan 2015 00:00:00 +0000
DateTime.parse("2015-01-01").in_time_zone
> Wed, 31 Dec 2014 19:00:00 -05 -05:00
And that's not the desired date but the previous day!
2018-04-04 14:21:39 +02:00
rgarcia
5a041e89c4
Fix change email address
...
Not sure how this error creeped in 😕 probably a new gem version or
other conflicting code
The problem was we were getting an `unpermitted param email` when
updating a user’s email address
This stackoverflow solution seems to work nicely 😌
https://stackoverflow.com/questions/17384289/unpermitted-parameters-addi
ng-new-fields-to-devise-in-rails-4-0#answer-19036427
2018-04-04 14:01:51 +02:00
rgarcia
7386a39f2d
Fix specs
2018-04-04 13:21:21 +02:00
rgarcia
8bb4dde6ac
Fix conflicts with fork
2018-04-04 13:19:07 +02:00
rgarcia
00c965b715
Clean up
2018-04-04 13:19:01 +02:00
rgarcia
a9a4ae8867
Update rails-html-sanitizer gem version
...
Security fix
https://gemnasium.com/gems/rails-html-sanitizer/versions/1.0.4
2018-04-04 01:20:57 +02:00
rgarcia
2d3c4e1fbd
Add group member count
2018-04-03 20:58:35 +02:00
rgarcia
7a01745188
Add valuation permissions to groups
2018-04-03 20:58:35 +02:00
rgarcia
1152f95965
Display valuator group assignments
2018-04-03 20:56:31 +02:00
rgarcia
fcb377c9e5
Remove description when creating valuator from index
2018-04-03 20:56:31 +02:00
rgarcia
7e839e7815
Filter by valuator group
2018-04-03 20:56:31 +02:00
rgarcia
bb82d533a3
Display valuators on valuator group's show
2018-04-03 20:56:31 +02:00
decabeza
6c68e9f8e7
Fixes specs
2018-04-03 20:56:31 +02:00
decabeza
573a272ff9
Changes redirect path on create valuator group
2018-04-03 20:56:31 +02:00
decabeza
d7c822c61a
Adds missing i18n to valuator groups notices
2018-04-03 20:56:31 +02:00
decabeza
3163293626
Improves valuator groups index count
2018-04-03 20:56:31 +02:00
decabeza
13d0b08cb4
Adds styles and missing i18n for valuator groups 👨🏻🎨
2018-04-03 20:56:31 +02:00
rgarcia
ab498d6d93
Assign groups to investments
2018-04-03 20:55:44 +02:00
rgarcia
1dbbe331c9
Assign valuators to groups
2018-04-03 20:55:44 +02:00
rgarcia
cddfdf4b84
Add valuator groups
2018-04-03 20:55:44 +02:00
Bertocq
0e61d49800
Fix english phone note translation
2018-04-03 12:35:07 +02:00
decabeza
c4dc7bc831
Adds view mode on debates
2018-04-02 17:28:39 +02:00
decabeza
bdedb023d1
Adds view mode on proposals
2018-04-02 17:27:52 +02:00
decabeza
2f5561bf03
Adds view mode on budget investments
2018-04-02 17:26:12 +02:00
decabeza
74ed61d159
Adds missing i18n
2018-04-02 17:25:23 +02:00
decabeza
a966a5b4a1
Adds view mode i18n, styles and new icon
2018-04-02 17:24:52 +02:00
decabeza
92157e1b47
Removes custom i18n on budgets yml
2018-04-02 17:24:42 +02:00