osm 1.2.18.dev.3 → 1.2.18.dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/osm/member.rb +17 -11
- data/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjNiMTE0Mzc1NGY0Njk2M2RlODNhOTQzN2M1ZWQxZTZiYWYzYWY5Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGYzNzkyM2EwMmE0MzUyMTdjN2ExMjNhMDQyOTU2ZTI2ODZmOTJjOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmM5YzYwZThmZmIwMjNjOGJhNjk5YjUxMzExODYyNmQ3M2MyNzQ3YTRmNDUw
|
10
|
+
M2E4YjRkNGU1ZDMyZmQ0Y2E3YWYzMWI4OGZjMjA4Y2FmZWNhODM2YTIwOTQx
|
11
|
+
N2JjYmY5NTQ4ZTcxMGZlMDgxNzQ2YWY1ZTZmNTg3M2QxN2U2Y2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzFjYzc0MjBhY2JhNmQ1ZGZmMjUxMDU0YzI2ZmJjN2YyNGNkOWU4Y2JkYmI1
|
14
|
+
ZjRhNmVlNjIwNDg5NzM3MDE5ZWI3OGY3OTM1ZmUwZDBmY2VmZDBhYjI1ODQx
|
15
|
+
MjdkODlmNjlhODU5YThlYTdlYzA4N2Q2ZDM2ZmNiOGQxNjRlYzI=
|
data/lib/osm/member.rb
CHANGED
@@ -585,6 +585,17 @@ module Osm
|
|
585
585
|
[email_1, email_2].select{ |e| !e.blank? }
|
586
586
|
end
|
587
587
|
|
588
|
+
# Get an array of all emails for the contact in a format which includes their name
|
589
|
+
# @return [Array<String>]
|
590
|
+
def all_emails_with_name
|
591
|
+
[email_1, email_2].select{ |e| !e.blank? }.map{ |e| "\"#{name}\" <#{e}>" }
|
592
|
+
end
|
593
|
+
|
594
|
+
end
|
595
|
+
|
596
|
+
module EnableableEmailableContact
|
597
|
+
include EmailableContact
|
598
|
+
|
588
599
|
# Get an array of enabled emails for the contact
|
589
600
|
# @return [Array<String>]
|
590
601
|
def enabled_emails
|
@@ -594,12 +605,6 @@ module Osm
|
|
594
605
|
emails.select{ |e| !e.blank? }
|
595
606
|
end
|
596
607
|
|
597
|
-
# Get an array of all emails for the contact in a format which includes their name
|
598
|
-
# @return [Array<String>]
|
599
|
-
def all_emails_with_name
|
600
|
-
[email_1, email_2].select{ |e| !e.blank? }.map{ |e| "\"#{name}\" <#{e}>" }
|
601
|
-
end
|
602
|
-
|
603
608
|
# Get an array of enabled emails for the contact in a format which includes their name
|
604
609
|
# @return [Array<String>]
|
605
610
|
def enabled_emails_with_name
|
@@ -610,7 +615,7 @@ module Osm
|
|
610
615
|
end
|
611
616
|
end
|
612
617
|
|
613
|
-
module
|
618
|
+
module EnableablePhoneableContact
|
614
619
|
# Get an array of enabled phone numbers for the contact
|
615
620
|
def enabled_phones
|
616
621
|
phones = []
|
@@ -682,8 +687,8 @@ module Osm
|
|
682
687
|
|
683
688
|
|
684
689
|
class MemberContact < Osm::Member::Contact
|
685
|
-
include
|
686
|
-
include
|
690
|
+
include EnableableEmailableContact
|
691
|
+
include EnableablePhoneableContact
|
687
692
|
# @!attribute [rw] email_1
|
688
693
|
# @return [String] the primary email address for the member
|
689
694
|
# @!attribute [rw] email_2
|
@@ -717,8 +722,8 @@ module Osm
|
|
717
722
|
|
718
723
|
|
719
724
|
class PrimaryContact < Osm::Member::Contact
|
720
|
-
include
|
721
|
-
include
|
725
|
+
include EnableableEmailableContact
|
726
|
+
include EnableablePhoneableContact
|
722
727
|
# @!attribute [rw] email_1
|
723
728
|
# @return [String] the primary email address for the contact
|
724
729
|
# @!attribute [rw] email_2
|
@@ -752,6 +757,7 @@ module Osm
|
|
752
757
|
|
753
758
|
|
754
759
|
class EmergencyContact < Osm::Member::Contact
|
760
|
+
include EmailableContact
|
755
761
|
# @!attribute [rw] email_1
|
756
762
|
# @return [String] the primary email address for the contact
|
757
763
|
# @!attribute [rw] email_2
|
data/version.rb
CHANGED