Commit Graph

145 Commits

Author SHA1 Message Date
Bertocq
b79df113cd Switch all Time.curren.to_date for Date.current, same result but better syntax 2017-06-11 10:41:09 +02:00
Bertocq
e14a5b2eaf Avoid using Date.today, better to use Date.current that takes timezone into account 2017-06-11 10:41:06 +02:00
Bertocq
02524b164a Rubocop autocorrections (indentations, revers unless to if, extra spaces) 2017-06-08 12:14:35 +02:00
Bertocq
20d57d4d46 Create rake task to migrate Setting key from per_page_code to per_page_code_head 2017-06-07 20:56:49 +02:00
rgarcia
792b15b224 Merges annotations 2017-06-07 14:58:34 +02:00
Juanjo Bazán
26b186a740 Merge pull request #1557 from bertocq/feature/newsletter_users_emails_zip
Allow admins to download Newsletter's users emails list in zip
2017-05-24 13:13:34 +02:00
Bertocq
9e74249b02 Always use Time.current (aliases internally to Time.zone.now)
Some specs where breaking close to midnight because 30.years.ago uses zone.now and Time.now.utc.to_date doesn't.
Also this will make all codebase consistent in the way time is deal with
2017-05-24 07:54:57 +02:00
rgarcia
a05a20b2b6 creates zip file in tmp folder 2017-05-23 16:49:27 +02:00
rgarcia
80be0c6b65 refactors zip file creation 2017-05-23 16:46:10 +02:00
rgarcia
712e576e75 adds email delivery of selected and unselected investments 2017-05-12 13:57:31 +02:00
Juanjo Bazán
fce4b75a9f Merge pull request #1520 from consul/cleanup
Cleanup
2017-05-05 10:39:18 +02:00
rgarcia
229f9cfefc renames class to migrate spending proposals to investments 2017-05-04 20:37:28 +02:00
rgarcia
deffc7f885 removes obsolete rake tasks 2017-05-04 20:34:39 +02:00
rgarcia
d80303395b extracts census document parser to a module 2017-05-04 03:39:38 +02:00
rgarcia
012d5297ed removes capistrano template configuration 2017-05-04 01:21:08 +02:00
Raimond Garcia
ead9b58d07 Merge branch 'master' into iss-1192-test 2017-04-12 11:51:48 +02:00
Alberto Miedes Garcés
468b88da6f Merge branch 'master' into iss-1192-test 2017-03-09 13:12:43 +01:00
kikito
ba87eaa47c Moves Age calculation to a module instead of monkeypatching Date 2017-02-03 15:35:41 +01:00
kikito
3535cfc0d6 implements Date#age_in_years extension method 2017-02-03 12:46:07 +01:00
Juanjo Bazán
113f9b32d7 Merge branch 'master' into polls 2017-01-19 16:51:19 +01:00
Alberto Miedes Garcés
98db33f623 Track email digests 2017-01-05 23:31:11 +01:00
Juanjo Bazán
5ec12e4b5b Merge branch 'master' into redux-polling 2016-12-27 18:22:06 +01:00
kikito
9d97421b0e Merge branch 'master' into budgets 2016-12-27 14:02:12 +01:00
rgarcia
398206c375 updates census api with invalid stubbed response 2016-12-20 12:21:35 +01:00
kikito
2a2179d0f3 Merge branch 'master' into budget 2016-11-28 11:41:49 +01:00
kikito
f0b8cfd4a2 Time.now -> Time.current 2016-11-23 19:19:19 +01:00
rgarcia
bb3c4c6399 adds consistency to ruby code style
Keep a blank line before and after private
Keep a blank line before and after protected
Remove extra empty line at class body end
Remove extra blank line
Add final newline
Use 2 (not 3) spaces for indentation
Use 2 (not 4) spaces for indentation
Remove space before comma
Add space after comma
Remove trailing whitespaces
Remove unnecessary spacing
Use snake_case for variable names
Do not use then for multi-line if
Remove unused block argument - i
Use the new Ruby 1.9 hash syntax
Remove unused assignment to variable
Indent when as deep as case
Align attributes
Align end with def
2016-11-15 11:18:43 +01:00
rgarcia
b54aee5702 displays voter name if already voted 2016-11-14 13:52:38 +01:00
rgarcia
44df91346a validates voter in census 2016-11-14 13:51:59 +01:00
Marcia
680c0636ed expired password last 2016-10-06 14:19:48 +02:00
Marcia
78c6a30424 optimize code 2016-09-27 13:07:06 +02:00
kikito
857a4ba42b Adds comment to the final part of spending_proposals_importer 2016-09-07 18:08:33 +02:00
kikito
b4c7675c31 imports votes 2016-09-07 15:58:39 +02:00
kikito
c1bf89a09e adds more functionality to spending proposal importer 2016-09-07 13:02:26 +02:00
kikito
bdfd326907 implements some parts of the spending proposals importer 2016-09-07 11:53:24 +02:00
rgarcia
63274dfe08 marks notifications as emailed after rake 2016-08-03 19:48:43 +02:00
rgarcia
b087fe8fb7 refactors email digest 2016-08-03 19:33:37 +02:00
Alberto Garcia Cabeza
42722080fc Changes references to Madrid 2016-07-05 13:47:14 +02:00
rgarcia
6e800c5120 adds email digest for proposal notifications 2016-06-14 17:53:36 +02:00
kikito
8569e4f22e adds rake task to destroy identities from erased users 2016-04-19 13:33:52 +02:00
kikito
581253219b adds rake task to mark some users with duplicated usernames so they change them 2016-04-19 13:33:52 +02:00
kikito
edb56b24ce removes lying comment 2016-04-13 14:30:58 +02:00
kikito
1b1f2bc2c9 renames genre to gender in code 2016-04-13 14:27:27 +02:00
kikito
3880ef9e24 aligns document verification with census API 2016-04-12 18:35:23 +02:00
kikito
708b77721c aligns rake task with Census API response 2016-04-12 18:22:38 +02:00
kikito
7987a3410b Updates residence to handle CensusAPI's new response 2016-04-12 18:19:05 +02:00
kikito
4f724ef3bf Modifies census_api to parse genre and dob 2016-04-12 18:18:25 +02:00
kikito
0ae97eada8 adds rake task to assign demographic info to users 2016-04-12 17:06:50 +02:00
kikito
6229097032 Fixes typo 2016-04-12 13:38:01 +02:00
kikito
9cc831bbc1 adds genre to the census api response 2016-04-11 18:41:33 +02:00