peterosullivan-highrise 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
1
+ module Highrise
2
+ class SubjectData < Base
3
+
4
+ module Mixin
5
+
6
+ def subject_data_fields
7
+ if attributes.has_key?(:subject_datas)
8
+ Hash[subject_datas.map(&:attributes).map {|attrs| [attrs[:subject_field_label].to_s.underscore, attrs[:value]] }]
9
+ else
10
+ {}
11
+ end
12
+ end
13
+
14
+ def field(field_name)
15
+ (attributes["subject_datas"] || []).detect do |sd|
16
+ sd.subject_field_label == field_name.to_s
17
+ end
18
+ end
19
+
20
+ end
21
+
22
+ end
23
+ end
@@ -1,3 +1,3 @@
1
1
  module Highrise
2
- VERSION = "3.0.5"
2
+ VERSION = "3.0.6"
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: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 5
10
- version: 3.0.5
9
+ - 6
10
+ version: 3.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Marcos Tapaj\xC3\xB3s"
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-09-22 00:00:00 +10:00
20
+ date: 2011-09-23 00:00:00 +10:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -110,6 +110,7 @@ files:
110
110
  - lib/highrise/rfc822.rb
111
111
  - lib/highrise/searchable.rb
112
112
  - lib/highrise/subject.rb
113
+ - lib/highrise/subject_data.rb
113
114
  - lib/highrise/tag.rb
114
115
  - lib/highrise/taggable.rb
115
116
  - lib/highrise/task.rb