decidim-core 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a44a608e2104f1c2957a934c2940245631472e7b
4
- data.tar.gz: f55a0b7a343b75d25b86748edb2e609fa5fa5dd5
3
+ metadata.gz: d80fe762ec162c82de9c6fd8e97ab88970a77b97
4
+ data.tar.gz: 75fadaa52d85186d759f2f57cde1afca545d078b
5
5
  SHA512:
6
- metadata.gz: 7b91649a0423ac242042cc8b9c6e48c15a79ba1fb4314938a5534e51fd0c835ffc0eed7cee2d52332adafe9961d257241f168ce6f5a20f493d3ddd8362c63c49
7
- data.tar.gz: 3d28ef9ad8d03ba09921d9cacd07c1375d010478200d816ed3422545b10577148085cfa6c6d0d9d8fadaa1a88d6dd447ded49a89b4aaabf92f830f96bc28def6
6
+ metadata.gz: 13ccdfce7e28219323f2f7282c93353d5c1a0d4484bc16724ca6ab392bf85c7b8425e7caa943bf77f57abaaf89e63e91e3ef50b0cfbbdd1ea4dc267b62519522
7
+ data.tar.gz: 2a99f19a7a9148b6d70f74843c209b8f6a29b9e565501b0aaf5f09b4d715149930ca1e38f57b2edb695a40daacdacbea4ea6a7c5e07754fcdc786df3327a5015
@@ -64,9 +64,11 @@ module Decidim
64
64
  field_label = label_tag(name, options[:label])
65
65
 
66
66
  if locales.count == 1
67
+ field_name = "#{name}_#{locales.first.to_s.gsub("-", "__")}"
67
68
  field_input = send(
68
69
  type,
69
- "#{name}_#{locales.first.to_s.gsub("-", "__")}"
70
+ "#{object_name}[#{field_name}]",
71
+ value[locales.first.to_s]
70
72
  )
71
73
 
72
74
  return safe_join [field_label, field_input]
@@ -3,6 +3,6 @@
3
3
  class AddPublishedAtToDecidimFeatures < ActiveRecord::Migration[5.0]
4
4
  def change
5
5
  add_column :decidim_features, :published_at, :datetime
6
- execute "UPDATE decidim_features SET published_at=#{ActiveRecord::Base.connection.quote(Time.current)}"
6
+ execute "UPDATE decidim_features SET published_at=#{quote(Time.current)}"
7
7
  end
8
8
  end
@@ -1,12 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MigrateUserRolesToParticipatoryProcessRoles < ActiveRecord::Migration[5.1]
4
+ class ParticipatoryProcess < ApplicationRecord
5
+ self.table_name = :decidim_participatory_processes
6
+ end
7
+
4
8
  class User < ApplicationRecord
5
9
  self.table_name = :decidim_users
6
10
  end
7
11
 
8
12
  def up
9
- participatory_processes = Decidim::ParticipatoryProcess.includes(:organization).all
13
+ participatory_processes = ParticipatoryProcess.includes(:organization).all
10
14
  User.find_each do |user|
11
15
  next if user.roles.empty? || user.roles.include?("admin")
12
16
 
@@ -3,7 +3,7 @@
3
3
  # This holds Decidim's version and the Rails version on which it depends.
4
4
  module Decidim
5
5
  def self.version
6
- "0.6.5"
6
+ "0.6.6"
7
7
  end
8
8
 
9
9
  def self.rails_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-09-28 00:00:00.000000000 Z
13
+ date: 2017-10-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -466,84 +466,84 @@ dependencies:
466
466
  requirements:
467
467
  - - '='
468
468
  - !ruby/object:Gem::Version
469
- version: 0.6.5
469
+ version: 0.6.6
470
470
  type: :runtime
471
471
  prerelease: false
472
472
  version_requirements: !ruby/object:Gem::Requirement
473
473
  requirements:
474
474
  - - '='
475
475
  - !ruby/object:Gem::Version
476
- version: 0.6.5
476
+ version: 0.6.6
477
477
  - !ruby/object:Gem::Dependency
478
478
  name: decidim-dev
479
479
  requirement: !ruby/object:Gem::Requirement
480
480
  requirements:
481
481
  - - '='
482
482
  - !ruby/object:Gem::Version
483
- version: 0.6.5
483
+ version: 0.6.6
484
484
  type: :development
485
485
  prerelease: false
486
486
  version_requirements: !ruby/object:Gem::Requirement
487
487
  requirements:
488
488
  - - '='
489
489
  - !ruby/object:Gem::Version
490
- version: 0.6.5
490
+ version: 0.6.6
491
491
  - !ruby/object:Gem::Dependency
492
492
  name: decidim-participatory_processes
493
493
  requirement: !ruby/object:Gem::Requirement
494
494
  requirements:
495
495
  - - '='
496
496
  - !ruby/object:Gem::Version
497
- version: 0.6.5
497
+ version: 0.6.6
498
498
  type: :development
499
499
  prerelease: false
500
500
  version_requirements: !ruby/object:Gem::Requirement
501
501
  requirements:
502
502
  - - '='
503
503
  - !ruby/object:Gem::Version
504
- version: 0.6.5
504
+ version: 0.6.6
505
505
  - !ruby/object:Gem::Dependency
506
506
  name: decidim-proposals
507
507
  requirement: !ruby/object:Gem::Requirement
508
508
  requirements:
509
509
  - - '='
510
510
  - !ruby/object:Gem::Version
511
- version: 0.6.5
511
+ version: 0.6.6
512
512
  type: :development
513
513
  prerelease: false
514
514
  version_requirements: !ruby/object:Gem::Requirement
515
515
  requirements:
516
516
  - - '='
517
517
  - !ruby/object:Gem::Version
518
- version: 0.6.5
518
+ version: 0.6.6
519
519
  - !ruby/object:Gem::Dependency
520
520
  name: decidim-meetings
521
521
  requirement: !ruby/object:Gem::Requirement
522
522
  requirements:
523
523
  - - '='
524
524
  - !ruby/object:Gem::Version
525
- version: 0.6.5
525
+ version: 0.6.6
526
526
  type: :development
527
527
  prerelease: false
528
528
  version_requirements: !ruby/object:Gem::Requirement
529
529
  requirements:
530
530
  - - '='
531
531
  - !ruby/object:Gem::Version
532
- version: 0.6.5
532
+ version: 0.6.6
533
533
  - !ruby/object:Gem::Dependency
534
534
  name: decidim-results
535
535
  requirement: !ruby/object:Gem::Requirement
536
536
  requirements:
537
537
  - - '='
538
538
  - !ruby/object:Gem::Version
539
- version: 0.6.5
539
+ version: 0.6.6
540
540
  type: :development
541
541
  prerelease: false
542
542
  version_requirements: !ruby/object:Gem::Requirement
543
543
  requirements:
544
544
  - - '='
545
545
  - !ruby/object:Gem::Version
546
- version: 0.6.5
546
+ version: 0.6.6
547
547
  description: Adds core features so other engines can hook into the framework.
548
548
  email:
549
549
  - josepjaume@gmail.com