decidim-core 0.9.0 → 0.9.1

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: 805692ed2a7af317223e63403b6d86f95a050669fdef7c4d314b5e4b89c2bd27
4
- data.tar.gz: c66bfe177feb3f77ee4fe92a1f2968d4e8bccb19fdc426f4115064ead19a3162
3
+ metadata.gz: eb2b0e3257f7a6c0ab3d3a8eb02f0fa5c49a57075953824f328d876a9f521f20
4
+ data.tar.gz: cc200d0b43f4993b741ecc7aafc45a36a99adca937ba64c70f70917fc3607c0a
5
5
  SHA512:
6
- metadata.gz: 6179a494542e34d8662c98ed65bba5960b0641de0f104a1fa1e44576b6ad9c33ba854c8368d53fdb484430d33807c5fa94806c652c729055239e65ae0ce11cdf
7
- data.tar.gz: db9335b2ed20100ded1417784c281fc627e0805dc3c175ebdd0da91b52655c17c010b82100897037c2dce7f56941850d5bc2f24463071aa2c3263676aef58ebc
6
+ metadata.gz: fb136b0d4d19b4d7b00620e22f715b79daf48b05ae3a47c27a944e96da902798b1c4bc70532b78f330792bea75033c1590a155b4fd3df84781e358011aa4fe68
7
+ data.tar.gz: 837f324df30d6678db895f173990f7db5394c947073bd0538fd23fa9cc89bff369df2e3769baca89802c728b4d4fa0a80cd7291bc8a4465126b139500496d586
@@ -6,8 +6,6 @@ module Decidim
6
6
 
7
7
  delegate :profile_path, :profile_url, :nickname, :name, to: :updated_user
8
8
 
9
- private
10
-
11
9
  def resource_path
12
10
  profile_path
13
11
  end
@@ -20,6 +18,8 @@ module Decidim
20
18
  profile_url
21
19
  end
22
20
 
21
+ private
22
+
23
23
  def updated_user
24
24
  @updated_user ||= Decidim::UserPresenter.new(resource)
25
25
  end
@@ -8,7 +8,7 @@ module Decidim
8
8
 
9
9
  def event_received(event, event_class_name, resource, user, extra)
10
10
  with_user(user) do
11
- @organization = resource.organization
11
+ @organization = user.organization
12
12
  event_class = event_class_name.constantize
13
13
  @event_instance = event_class.new(resource: resource, event_name: event, user: user, extra: extra)
14
14
  subject = @event_instance.email_subject
@@ -70,4 +70,17 @@ shared_examples_for "an simple event" do
70
70
  expect(subject.notification_title).to be_kind_of(String)
71
71
  end
72
72
  end
73
+
74
+ describe "resource_path" do
75
+ it "is generated correctly" do
76
+ expect(subject.resource_path).to be_kind_of(String)
77
+ end
78
+ end
79
+
80
+ describe "resource_url" do
81
+ it "is generated correctly" do
82
+ expect(subject.resource_url).to be_kind_of(String)
83
+ expect(subject.resource_url).to start_with("http")
84
+ end
85
+ end
73
86
  end
@@ -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.0"
7
+ "0.9.1"
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.0
4
+ version: 0.9.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: 2018-02-05 00:00:00.000000000 Z
13
+ date: 2018-02-08 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.0
509
+ version: 0.9.1
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.0
516
+ version: 0.9.1
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.0
523
+ version: 0.9.1
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.0
530
+ version: 0.9.1
531
531
  description: Adds core features so other engines can hook into the framework.
532
532
  email:
533
533
  - josepjaume@gmail.com