change_manager 0.0.8 → 0.0.9

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: 89fcbee464ce68f6f115ee1134eb968a84ade330
4
- data.tar.gz: 9fe4b73d9fad2eacba45017c4e448ee069b3e925
3
+ metadata.gz: d4ca1041a7bb2a56d9bceadd454a18b83e0d0fd4
4
+ data.tar.gz: 4dc9837a22a92693261502741f0bf76833714d9d
5
5
  SHA512:
6
- metadata.gz: bd0449e134cfc9fabd5dbd23caac178cf4293a70d6ef81b614a3cab884cfb50a6190f4f719a88793ccc482359e273366b8673d5d1fa2e0c770cbc3d71c9cedc8
7
- data.tar.gz: 6ffc1c3dd5dd098c159f03d617aeaaf503870bdf5740d1ad8a2b127ed169fcf3ec341796e368d146175fe4ca02da07c9bbb9442213ea533878f0526c6cf2529d
6
+ metadata.gz: 7bea8aab90f80a84d067382bd8060fa8374954538b573130746f834ae20755bcd3c904bcbd0b81e6a56a2be6daaea154b9d59604adef11128e5979f35961c901
7
+ data.tar.gz: eda5f73b570a79bb90da2bf9d6abc3da6283dab1cc4544106a8b00ee47941c69f7dfe599e9b10e5ccdb3b3cc38b3e843fb019423063d2b7dbb79c850253f9826
@@ -13,7 +13,8 @@ module ChangeManager
13
13
  change_type: change_type,
14
14
  context: context,
15
15
  target: target,
16
- cancelled: cancelled
16
+ cancelled: cancelled,
17
+ notified: false
17
18
  })
18
19
  foo.id
19
20
  end
@@ -23,17 +24,26 @@ module ChangeManager
23
24
  self.save
24
25
  end
25
26
 
27
+ def notify
28
+ self.notified = true
29
+ self.save
30
+ end
31
+
26
32
  def cancelled?
27
33
  self.cancelled
28
34
  end
29
35
 
36
+ def notified?
37
+ self.notified
38
+ end
39
+
30
40
  def inverse_of?(possible_inverse_change)
31
- is_inverse = false
32
41
  @change_types ||= YAML.load_file(File.join(ChangeManager::Engine.root, 'config/change_types.yaml'))
33
- if self.change_type == @change_types[possible_inverse_change.change_type]['inverse']
34
- is_inverse = true
42
+ if self.context == possible_inverse_change.context
43
+ self.change_type == @change_types[possible_inverse_change.change_type]['inverse']
44
+ else
45
+ false
35
46
  end
36
- return is_inverse
37
47
  end
38
48
  end
39
49
  end
@@ -49,8 +49,13 @@ module ChangeManager
49
49
 
50
50
  def self.notify_users(changes)
51
51
  mailer = ChangeManager::NotificationMailer
52
- mailer.send_email(mailer.construct_email(changes))
52
+ if mailer.send_email(mailer.construct_email(changes))
53
+ changes.each do |change|
54
+ change.notify
55
+ end
56
+ return true
57
+ end
58
+ false
53
59
  end
54
-
55
60
  end
56
61
  end
@@ -1,3 +1,3 @@
1
1
  module ChangeManager
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -499,3 +499,176 @@ The Scholar@UC team
499
499
  SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Wed, 18 May 2016 16:09:24 UTC +00:00]]
500
500
   (0.0ms) RELEASE SAVEPOINT active_record_1
501
501
   (0.7ms) rollback transaction
502
+  (0.4ms) begin transaction
503
+  (0.1ms) SAVEPOINT active_record_1
504
+ SQL (53.9ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "test"], ["target", "testemail@gmail.com"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
506
+  (0.7ms) rollback transaction
507
+  (0.1ms) begin transaction
508
+  (0.1ms) SAVEPOINT active_record_1
509
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
511
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
512
+  (0.0ms) SAVEPOINT active_record_1
513
+ SQL (28.5ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
515
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
516
+  (0.1ms) SAVEPOINT active_record_1
517
+ SQL (0.2ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target2"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
519
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
520
+  (0.1ms) SAVEPOINT active_record_1
521
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id2"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner1"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
523
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
524
+ ChangeManager::Change Load (0.2ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
525
+  (1.4ms) rollback transaction
526
+  (0.1ms) begin transaction
527
+  (0.1ms) SAVEPOINT active_record_1
528
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
529
+  (0.1ms) RELEASE SAVEPOINT active_record_1
530
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
531
+  (0.1ms) SAVEPOINT active_record_1
532
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
534
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
535
+  (0.1ms) SAVEPOINT active_record_1
536
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
538
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
539
+  (0.1ms) SAVEPOINT active_record_1
540
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
542
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
543
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
544
+  (0.1ms) SAVEPOINT active_record_1
545
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
547
+  (0.0ms) SAVEPOINT active_record_1
548
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
550
+  (0.7ms) rollback transaction
551
+  (0.0ms) begin transaction
552
+  (0.0ms) SAVEPOINT active_record_1
553
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
555
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
556
+  (0.0ms) SAVEPOINT active_record_1
557
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
559
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
560
+  (0.0ms) SAVEPOINT active_record_1
561
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
563
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
564
+  (0.0ms) SAVEPOINT active_record_1
565
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "removed_as_delegate"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
567
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 4]]
568
+  (0.0ms) SAVEPOINT active_record_1
569
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
571
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 5]]
572
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
573
+  (0.0ms) SAVEPOINT active_record_1
574
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 3 [["cancelled", true], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
576
+  (0.0ms) SAVEPOINT active_record_1
577
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 4 [["cancelled", true], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
579
+  (0.7ms) rollback transaction
580
+  (0.0ms) begin transaction
581
+  (0.0ms) SAVEPOINT active_record_1
582
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_editor"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
584
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
585
+  (0.0ms) SAVEPOINT active_record_1
586
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_to_group"], ["context", "work_id4"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
588
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 2]]
589
+  (0.0ms) SAVEPOINT active_record_1
590
+ SQL (0.1ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "notified", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "work_id1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["notified", nil], ["owner", "owner"], ["target", "target"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
591
+  (0.0ms) RELEASE SAVEPOINT active_record_1
592
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 3]]
593
+  (0.0ms) SAVEPOINT active_record_1
594
+ SQL (0.1ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 2 [["cancelled", true], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
596
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'owner' AND "change_manager_changes"."target" = 'target' AND "change_manager_changes"."cancelled" = 'f'
597
+  (0.7ms) rollback transaction
598
+  (0.0ms) begin transaction
599
+  (0.0ms) SAVEPOINT active_record_1
600
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
601
+  (0.0ms) RELEASE SAVEPOINT active_record_1
602
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
603
+  (0.3ms) rollback transaction
604
+  (0.0ms) begin transaction
605
+  (0.0ms) SAVEPOINT active_record_1
606
+ SQL (0.3ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
608
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
609
+ ChangeManager::Change Load (0.0ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."id" = ? LIMIT 1 [["id", 1]]
610
+ ChangeManager::Change Load (0.1ms) SELECT "change_manager_changes".* FROM "change_manager_changes" WHERE "change_manager_changes"."owner" = 'email@test.com' AND "change_manager_changes"."target" = 'spec@test.com' AND "change_manager_changes"."cancelled" = 'f'
611
+  (0.0ms) SAVEPOINT active_record_1
612
+ SQL (0.3ms) UPDATE "change_manager_changes" SET "cancelled" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["cancelled", true], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
614
+ Rendered /Users/kyle/workspace/change_manager/app/views/change_manager/notification_mailer/construct_email.html.erb (1.9ms)
615
+
616
+ Sent mail to spec@test.com (33.1ms)
617
+ Date: Fri, 20 May 2016 16:30:42 -0400
618
+ From: email@test.com
619
+ To: spec@test.com
620
+ Message-ID: <573f73f2b8506_32913fedd5863be023087@kyles-mbp.lang.uc.edu.mail>
621
+ Subject: Updates from Scholar@UC
622
+ Mime-Version: 1.0
623
+ Content-Type: text/html;
624
+ charset=UTF-8
625
+ Content-Transfer-Encoding: 7bit
626
+
627
+ <!-- mailer template here -->
628
+ <div>
629
+ Dear Scholar@UC User,
630
+ </div>
631
+ <br>
632
+ This email is to inform you that the following changes have been made to your account:
633
+ <br><br>
634
+ <table><th><td>Change Owner</td><td>Change Context</td><td>Change</td><td>Time</td></th><tr><td>email@test.com</td><td>1</td><td>added_as_delegate</td><td>2016-05-20 20:30:42 UTC</td></tr></table>
635
+
636
+ Changes can include:
637
+ <br>
638
+ <ul>
639
+ <li>Being added/removed as another contributor's delegate</li>
640
+ <li>Being added/removed as an editor of a work</li>
641
+ <li>Being added/removed to a group</li>
642
+ </ul>
643
+
644
+
645
+ Thanks,
646
+ The Scholar@UC team
647
+  (0.1ms) SAVEPOINT active_record_1
648
+ SQL (0.2ms) UPDATE "change_manager_changes" SET "notified" = ?, "updated_at" = ? WHERE "change_manager_changes"."id" = 1 [["notified", nil], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
650
+  (0.8ms) rollback transaction
651
+  (0.1ms) begin transaction
652
+  (0.1ms) rollback transaction
653
+  (0.1ms) begin transaction
654
+  (0.1ms) rollback transaction
655
+  (0.1ms) begin transaction
656
+  (0.1ms) SAVEPOINT active_record_1
657
+ SQL (0.5ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", false], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
659
+  (0.7ms) rollback transaction
660
+  (0.1ms) begin transaction
661
+  (0.1ms) rollback transaction
662
+  (0.1ms) begin transaction
663
+  (0.1ms) rollback transaction
664
+  (0.1ms) begin transaction
665
+  (0.1ms) SAVEPOINT active_record_1
666
+ SQL (0.4ms) INSERT INTO "change_manager_changes" ("cancelled", "change_type", "context", "created_at", "owner", "target", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["cancelled", true], ["change_type", "added_as_delegate"], ["context", "1"], ["created_at", Fri, 20 May 2016 20:30:42 UTC +00:00], ["owner", "email@test.com"], ["target", "spec@test.com"], ["updated_at", Fri, 20 May 2016 20:30:42 UTC +00:00]]
667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
668
+  (0.5ms) rollback transaction
669
+  (0.1ms) begin transaction
670
+  (0.1ms) rollback transaction
671
+  (0.1ms) begin transaction
672
+  (0.1ms) rollback transaction
673
+  (0.1ms) begin transaction
674
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: change_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Lawhorn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-19 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails