peterosullivan-highrise 3.0.3 → 3.0.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.
data/README.md CHANGED
@@ -2,15 +2,18 @@
2
2
 
3
3
  This fork is very close to the orginal gem. I have added a few features and shortcut methods;
4
4
 
5
-
6
- Highrise::Tag.delete_by_name('tag_name')
7
-
8
5
  Highrise::Person.url_for(123)
6
+ Highrise::Person.find(123).phone_number
7
+
8
+ ###Tag methods
9
+ Highrise::Tag.delete_by_name('tag_name')
9
10
  Highrise::Person.find(123).tagged?('tag_name')
10
11
  Highrise::Person.find(123).tagged_with_name('tag_name')
12
+
13
+ ###Email methods
11
14
  Highrise::Person.find(123).email_address
15
+ Highrise::Person.find(123).email #alias for email_address
12
16
  Highrise::Person.find(123).email_valid?
13
- Highrise::Person.find(123).phone_number
14
17
 
15
18
  ###Highrise Custom Fields read only (called "subject_datas" in the Highrise API)
16
19
 
@@ -42,6 +42,7 @@ module Highrise
42
42
  def email_address
43
43
  contact_data.email_addresses.first.address rescue nil
44
44
  end
45
+ alias :email :email_address
45
46
 
46
47
  def tagged? name
47
48
  tags.any?{ | tag | tag['name'].to_s == name}
@@ -1,3 +1,3 @@
1
1
  module Highrise
2
- VERSION = "3.0.3"
2
+ VERSION = "3.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peterosullivan-highrise
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 3
10
- version: 3.0.3
9
+ - 4
10
+ version: 3.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Marcos Tapaj\xC3\xB3s"