decidim-core 0.9.1 → 0.9.2

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
  SHA256:
3
- metadata.gz: eb2b0e3257f7a6c0ab3d3a8eb02f0fa5c49a57075953824f328d876a9f521f20
4
- data.tar.gz: cc200d0b43f4993b741ecc7aafc45a36a99adca937ba64c70f70917fc3607c0a
3
+ metadata.gz: f989779c4209adbf2b018283befc02b9c1982630d4136de2a54b5d3b18177884
4
+ data.tar.gz: b58475aa61559da81c33914954679d2db50e2d1b8f91d3cb7e235ef8beb1513d
5
5
  SHA512:
6
- metadata.gz: fb136b0d4d19b4d7b00620e22f715b79daf48b05ae3a47c27a944e96da902798b1c4bc70532b78f330792bea75033c1590a155b4fd3df84781e358011aa4fe68
7
- data.tar.gz: 837f324df30d6678db895f173990f7db5394c947073bd0538fd23fa9cc89bff369df2e3769baca89802c728b4d4fa0a80cd7291bc8a4465126b139500496d586
6
+ metadata.gz: 447f6cefe4f3c989be9fad58e509cc9aadc03260b97418a8ea3f025f8dffb4dd6756c7204d129311f05aeeb98bf96f3b9ad76f9e948a5b6de15e122ceb2243fb
7
+ data.tar.gz: d2a569060ec1f2697cf872b265509a2b2582f936e77f6d8a298ef8fbce76976efd0448a9e8f0640f530dd7036aa4658788e7f0f078b2ff8fdfe17444722d48c8
@@ -40,8 +40,12 @@ module Decidim
40
40
  def resource_icon(resource, options = {})
41
41
  if resource.respond_to?(:feature)
42
42
  feature_icon(resource.feature, options)
43
- else
43
+ elsif resource.respond_to?(:manifest)
44
44
  manifest_icon(resource.manifest, options)
45
+ elsif resource.is_a?(Decidim::User)
46
+ icon "person", options
47
+ else
48
+ icon "bell", options
45
49
  end
46
50
  end
47
51
  end
@@ -10,7 +10,7 @@ module Decidim
10
10
  # @see BaseRenderer Examples of how to use a content renderer
11
11
  class UserRenderer < BaseRenderer
12
12
  # Matches a global id representing a Decidim::User
13
- GLOBAL_ID_REGEX = %r{gid://.*/Decidim::User/\d+}
13
+ GLOBAL_ID_REGEX = %r{gid://\S+/Decidim::User/\d+}
14
14
 
15
15
  # Replaces found Global IDs matching an existing user with
16
16
  # a link to their profile. The Global IDs representing an
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-core version.
5
5
  module Core
6
6
  def self.version
7
- "0.9.1"
7
+ "0.9.2"
8
8
  end
9
9
  end
10
10
  end
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.9.1
4
+ version: 0.9.2
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: 2018-02-08 00:00:00.000000000 Z
13
+ date: 2018-02-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: active_link_to
@@ -506,28 +506,28 @@ dependencies:
506
506
  requirements:
507
507
  - - '='
508
508
  - !ruby/object:Gem::Version
509
- version: 0.9.1
509
+ version: 0.9.2
510
510
  type: :runtime
511
511
  prerelease: false
512
512
  version_requirements: !ruby/object:Gem::Requirement
513
513
  requirements:
514
514
  - - '='
515
515
  - !ruby/object:Gem::Version
516
- version: 0.9.1
516
+ version: 0.9.2
517
517
  - !ruby/object:Gem::Dependency
518
518
  name: decidim-dev
519
519
  requirement: !ruby/object:Gem::Requirement
520
520
  requirements:
521
521
  - - '='
522
522
  - !ruby/object:Gem::Version
523
- version: 0.9.1
523
+ version: 0.9.2
524
524
  type: :development
525
525
  prerelease: false
526
526
  version_requirements: !ruby/object:Gem::Requirement
527
527
  requirements:
528
528
  - - '='
529
529
  - !ruby/object:Gem::Version
530
- version: 0.9.1
530
+ version: 0.9.2
531
531
  description: Adds core features so other engines can hook into the framework.
532
532
  email:
533
533
  - josepjaume@gmail.com