decidim 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd96ed69d75b000384c9fcceaf3f462f0c6f64da
4
- data.tar.gz: 7a5093de2ee56fa3fd6714d12be5839005de300e
3
+ metadata.gz: 3f2b6d5a6867950c34211b62f3dee07a05597c9d
4
+ data.tar.gz: b549e61e603f587d351437c12edc9c93a53b6a74
5
5
  SHA512:
6
- metadata.gz: d929379c7c01c7c1027055d8082f8a8fe6f6f050b57a6d41326d8bd73c305ed2cc102df24e123303f5c8c25bec2d5f96d1664035f3197cb13120f28e9847fc73
7
- data.tar.gz: 1ec08060daefc332d10dceaf382ce109b3e0688cec6677517acc62872979255c6de489fb22a34818504c83132348fc99ea27104d876d6ba5cad3213161ff3688
6
+ metadata.gz: ae66be486fe55a9e40b7a74631802dad3bd417f72621de192a2e414362742a9025df93893ba64a112972f4dc8ffeac440c2cea192f4833c6125cb89601a9a254
7
+ data.tar.gz: dd4a40ab55b651d724d7af1f32b37ffd89c0199c11a5c5b642df4cd756c8c3c1742fb90e9a65a2342529ce680e61cc61b2da9e81171baa0b19322f3944781aaa
data/CHANGELOG.md CHANGED
@@ -1,9 +1,20 @@
1
1
  # Change Log
2
2
 
3
3
  ## [Unreleased](https://github.com/decidim/decidim/tree/HEAD)
4
- [Full Changelog](https://github.com/decidim/decidim/compare/v0.5.0...HEAD)
4
+ [Full Changelog](https://github.com/decidim/decidim/compare/v0.5.1...HEAD)
5
5
 
6
- ## [v0.5.0](https://github.com/decidim/decidim/tree/HEAD)
6
+ ## [v0.5.1](https://github.com/decidim/decidim/tree/v0.5.1) (2017-08-21)
7
+ [Full Changelog](https://github.com/decidim/decidim/compare/v0.5.0...v0.5.1)
8
+
9
+ **Changed**
10
+
11
+ - **decidim-core**: Prevent creation of a `Organization` with a `default_locale` not present in `available_locales`. [\#1754](https://github.com/decidim/decidim/pull/1754)
12
+
13
+ **Fixed**
14
+
15
+ - **decidim**: Fixed `decidim` generator to include the `Decidim.default_locale` in the decidim initializer file. [\#1754](https://github.com/decidim/decidim/pull/1754)
16
+
17
+ ## [v0.5.0](https://github.com/decidim/decidim/tree/v0.5.0) (2017-08-17)
7
18
  [Full Changelog](https://github.com/decidim/decidim/compare/v0.4.4...v0.5.0)
8
19
 
9
20
  **Fixed**
data/Gemfile.lock CHANGED
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decidim (0.5.0)
5
- decidim-admin (= 0.5.0)
6
- decidim-api (= 0.5.0)
7
- decidim-budgets (= 0.5.0)
8
- decidim-comments (= 0.5.0)
9
- decidim-core (= 0.5.0)
10
- decidim-meetings (= 0.5.0)
11
- decidim-pages (= 0.5.0)
12
- decidim-proposals (= 0.5.0)
13
- decidim-results (= 0.5.0)
14
- decidim-surveys (= 0.5.0)
15
- decidim-system (= 0.5.0)
16
- decidim-admin (0.5.0)
4
+ decidim (0.5.1)
5
+ decidim-admin (= 0.5.1)
6
+ decidim-api (= 0.5.1)
7
+ decidim-budgets (= 0.5.1)
8
+ decidim-comments (= 0.5.1)
9
+ decidim-core (= 0.5.1)
10
+ decidim-meetings (= 0.5.1)
11
+ decidim-pages (= 0.5.1)
12
+ decidim-proposals (= 0.5.1)
13
+ decidim-results (= 0.5.1)
14
+ decidim-surveys (= 0.5.1)
15
+ decidim-system (= 0.5.1)
16
+ decidim-admin (0.5.1)
17
17
  active_link_to (~> 1.0.0)
18
- decidim-core (= 0.5.0)
18
+ decidim-core (= 0.5.1)
19
19
  devise (~> 4.2)
20
20
  devise-i18n (~> 1.1.0)
21
21
  devise_invitable (~> 1.7.0)
@@ -25,29 +25,29 @@ PATH
25
25
  rectify (~> 0.9.1)
26
26
  sassc-rails (~> 1.3.0)
27
27
  select2-rails (~> 4.0.3)
28
- decidim-api (0.5.0)
28
+ decidim-api (0.5.1)
29
29
  graphiql-rails (~> 1.4.2)
30
30
  graphql (~> 1.6.0)
31
31
  rack-cors (~> 0.4.0)
32
32
  rails (~> 5.1.3)
33
33
  sprockets-es6 (~> 0.9.2)
34
- decidim-budgets (0.5.0)
35
- decidim-comments (= 0.5.0)
36
- decidim-core (= 0.5.0)
34
+ decidim-budgets (0.5.1)
35
+ decidim-comments (= 0.5.1)
36
+ decidim-core (= 0.5.1)
37
37
  kaminari (~> 1.0.1)
38
38
  rectify (~> 0.9.1)
39
39
  searchlight (~> 4.1.0)
40
- decidim-comments (0.5.0)
41
- decidim-core (= 0.5.0)
40
+ decidim-comments (0.5.1)
41
+ decidim-core (= 0.5.1)
42
42
  jquery-rails (~> 4.0)
43
43
  rails (~> 5.1.3)
44
- decidim-core (0.5.0)
44
+ decidim-core (0.5.1)
45
45
  active_link_to (~> 1.0.4)
46
46
  autoprefixer-rails (~> 7.1.1)
47
47
  cancancan (~> 2.0.0)
48
48
  carrierwave (~> 1.1.0)
49
49
  date_validator (~> 0.9.0)
50
- decidim-api (= 0.5.0)
50
+ decidim-api (= 0.5.1)
51
51
  devise (~> 4.3)
52
52
  devise-i18n (~> 1.1.0)
53
53
  file_validators (~> 2.1.0)
@@ -75,36 +75,36 @@ PATH
75
75
  sprockets-es6 (~> 0.9.2)
76
76
  truncato (~> 0.7.9)
77
77
  wisper (~> 2.0.0)
78
- decidim-meetings (0.5.0)
78
+ decidim-meetings (0.5.1)
79
79
  date_validator (~> 0.9)
80
- decidim-core (= 0.5.0)
80
+ decidim-core (= 0.5.1)
81
81
  httparty (~> 0.15.0)
82
82
  jquery-tmpl-rails (~> 1.1.0)
83
83
  kaminari (~> 1.0.1)
84
84
  rectify (~> 0.8)
85
85
  searchlight (~> 4.1.0)
86
- decidim-pages (0.5.0)
87
- decidim-comments (= 0.5.0)
88
- decidim-core (= 0.5.0)
86
+ decidim-pages (0.5.1)
87
+ decidim-comments (= 0.5.1)
88
+ decidim-core (= 0.5.1)
89
89
  rectify (~> 0.9.1)
90
- decidim-proposals (0.5.0)
91
- decidim-comments (= 0.5.0)
92
- decidim-core (= 0.5.0)
90
+ decidim-proposals (0.5.1)
91
+ decidim-comments (= 0.5.1)
92
+ decidim-core (= 0.5.1)
93
93
  kaminari (~> 1.0.1)
94
94
  rectify (~> 0.9.1)
95
95
  social-share-button (~> 0.10.0)
96
- decidim-results (0.5.0)
97
- decidim-comments (= 0.5.0)
98
- decidim-core (= 0.5.0)
96
+ decidim-results (0.5.1)
97
+ decidim-comments (= 0.5.1)
98
+ decidim-core (= 0.5.1)
99
99
  kaminari (~> 1.0.1)
100
100
  rectify (~> 0.9.1)
101
101
  searchlight (~> 4.1.0)
102
- decidim-surveys (0.5.0)
103
- decidim-core (= 0.5.0)
102
+ decidim-surveys (0.5.1)
103
+ decidim-core (= 0.5.1)
104
104
  jquery-tmpl-rails (~> 1.1.0)
105
- decidim-system (0.5.0)
105
+ decidim-system (0.5.1)
106
106
  active_link_to (~> 1.0.0)
107
- decidim-core (= 0.5.0)
107
+ decidim-core (= 0.5.1)
108
108
  devise (~> 4.2)
109
109
  devise-i18n (~> 1.1.0)
110
110
  devise_invitable (~> 1.7.1)
@@ -117,14 +117,14 @@ PATH
117
117
  PATH
118
118
  remote: decidim-dev
119
119
  specs:
120
- decidim-dev (0.5.0)
120
+ decidim-dev (0.5.1)
121
121
  byebug
122
122
  capybara (~> 2.14.0)
123
123
  capybara-screenshot (~> 1.0.14)
124
124
  codecov (~> 0.1.9)
125
125
  database_cleaner (~> 1.6.0)
126
126
  db-query-matchers (~> 0.9.0)
127
- decidim (= 0.5.0)
127
+ decidim (= 0.5.1)
128
128
  factory_girl_rails
129
129
  faker (~> 1.8.4)
130
130
  i18n-tasks (= 0.9.15)
data/README.md CHANGED
@@ -6,6 +6,8 @@ The participatory democracy framework.
6
6
 
7
7
  Decidim is a participatory democracy framework written on Ruby on Rails originally developed for the Barcelona City government online and offline participation website. Installing this libraries you'll get a generator and gems to help you develop web applications like the ones found on [example applications](#example-applications) or like [our demo application](http://staging.decidim.codegram.com).
8
8
 
9
+ All members of the Decidim community agree with [Decidim Social Contract or Code of Democratic Guarantees](http://www.decidim.org/contract/).
10
+
9
11
  ---
10
12
 
11
13
  [![Gem](https://img.shields.io/gem/v/decidim.svg)](https://rubygems.org/gems/decidim)
@@ -16,6 +16,7 @@ module Decidim
16
16
 
17
17
  validates :name, :host, uniqueness: true
18
18
  validates :reference_prefix, presence: true
19
+ validates :default_locale, inclusion: { in: :available_locales }
19
20
 
20
21
  mount_uploader :homepage_image, Decidim::HomepageImageUploader
21
22
  mount_uploader :official_img_header, Decidim::OfficialImageHeaderUploader
@@ -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.5.0"
6
+ "0.5.1"
7
7
  end
8
8
 
9
9
  def self.rails_version
@@ -34,6 +34,12 @@ module Decidim
34
34
 
35
35
  it { is_expected.not_to be_valid }
36
36
  end
37
+
38
+ it "default locale should be included in available locales" do
39
+ subject.available_locales = [:ca, :es]
40
+ subject.default_locale = :en
41
+ expect(subject).not_to be_valid
42
+ end
37
43
  end
38
44
  end
39
45
  end
@@ -5,7 +5,8 @@ Decidim.configure do |config|
5
5
  config.mailer_sender = "change-me@domain.org"
6
6
  config.authorization_handlers = [ExampleAuthorizationHandler]
7
7
 
8
- # Change this line to set your preferred locales
8
+ # Change these lines to set your preferred locales
9
+ config.default_locale = :en
9
10
  config.available_locales = [:en, :ca, :es]
10
11
 
11
12
  # Geocoder configuration
data/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decidim",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decidim",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "repository": {
5
5
  "url": "git@github.com:decidim/decidim.git",
6
6
  "type": "git"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
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-08-17 00:00:00.000000000 Z
13
+ date: 2017-08-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,154 +18,154 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.5.0
21
+ version: 0.5.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.5.0
28
+ version: 0.5.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-system
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.5.0
35
+ version: 0.5.1
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.5.0
42
+ version: 0.5.1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-admin
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.5.0
49
+ version: 0.5.1
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.5.0
56
+ version: 0.5.1
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: decidim-api
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.5.0
63
+ version: 0.5.1
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.5.0
70
+ version: 0.5.1
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-pages
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.5.0
77
+ version: 0.5.1
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.5.0
84
+ version: 0.5.1
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-comments
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.5.0
91
+ version: 0.5.1
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.5.0
98
+ version: 0.5.1
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-meetings
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.5.0
105
+ version: 0.5.1
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.5.0
112
+ version: 0.5.1
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-proposals
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.5.0
119
+ version: 0.5.1
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: 0.5.0
126
+ version: 0.5.1
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-results
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.5.0
133
+ version: 0.5.1
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.5.0
140
+ version: 0.5.1
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: decidim-budgets
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - '='
146
146
  - !ruby/object:Gem::Version
147
- version: 0.5.0
147
+ version: 0.5.1
148
148
  type: :runtime
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - '='
153
153
  - !ruby/object:Gem::Version
154
- version: 0.5.0
154
+ version: 0.5.1
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: decidim-surveys
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - '='
160
160
  - !ruby/object:Gem::Version
161
- version: 0.5.0
161
+ version: 0.5.1
162
162
  type: :runtime
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - '='
167
167
  - !ruby/object:Gem::Version
168
- version: 0.5.0
168
+ version: 0.5.1
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: bundler
171
171
  requirement: !ruby/object:Gem::Requirement