insightly 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,6 +39,12 @@ module Insightly
39
39
  def self.custom_fields_for_opportunities(*args)
40
40
  Insightly::Opportunity.custom_fields(*args)
41
41
  end
42
+ def self.custom_fields_for_organisations(*args)
43
+ Insightly::Organisation.custom_fields(*args)
44
+ end
45
+ def self.custom_fields_for_contacts(*args)
46
+ Insightly::Contact.custom_fields(*args)
47
+ end
42
48
 
43
49
  def self.logger
44
50
  @logger ||= _default_logger
@@ -4,7 +4,7 @@ module Insightly
4
4
  module Version
5
5
  Major = 0
6
6
  Minor = 2
7
- Tiny = 3
7
+ Tiny = 4
8
8
  String = "#{Major}.#{Minor}.#{Tiny}"
9
9
  end
10
10
  end
@@ -47,4 +47,16 @@ describe Insightly::Configuration do
47
47
  Insightly::Configuration.custom_fields_for_opportunities(:rank, :branch_of_service)
48
48
 
49
49
  end
50
+ it "should be able to set custom fields for contacts" do
51
+ Insightly::Contact.should_receive(:custom_fields).with(:rank, :branch_of_service)
52
+
53
+ Insightly::Configuration.custom_fields_for_contacts(:rank, :branch_of_service)
54
+
55
+ end
56
+ it "should be able to set custom fields for organisations" do
57
+ Insightly::Organisation.should_receive(:custom_fields).with(:rank, :branch_of_service)
58
+
59
+ Insightly::Configuration.custom_fields_for_organisations(:rank, :branch_of_service)
60
+
61
+ end
50
62
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insightly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Elmendorf
@@ -16,10 +16,11 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-09-14 00:00:00 Z
19
+ date: 2012-09-15 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :runtime
22
+ name: builder
23
+ prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
24
25
  none: false
25
26
  requirements:
@@ -31,11 +32,11 @@ dependencies:
31
32
  - 0
32
33
  - 0
33
34
  version: 2.0.0
35
+ type: :runtime
34
36
  version_requirements: *id001
35
- prerelease: false
36
- name: builder
37
37
  - !ruby/object:Gem::Dependency
38
- type: :runtime
38
+ name: json
39
+ prerelease: false
39
40
  requirement: &id002 !ruby/object:Gem::Requirement
40
41
  none: false
41
42
  requirements:
@@ -47,11 +48,11 @@ dependencies:
47
48
  - 7
48
49
  - 5
49
50
  version: 1.7.5
51
+ type: :runtime
50
52
  version_requirements: *id002
51
- prerelease: false
52
- name: json
53
53
  - !ruby/object:Gem::Dependency
54
- type: :runtime
54
+ name: rest-client
55
+ prerelease: false
55
56
  requirement: &id003 !ruby/object:Gem::Requirement
56
57
  none: false
57
58
  requirements:
@@ -63,11 +64,11 @@ dependencies:
63
64
  - 6
64
65
  - 7
65
66
  version: 1.6.7
67
+ type: :runtime
66
68
  version_requirements: *id003
67
- prerelease: false
68
- name: rest-client
69
69
  - !ruby/object:Gem::Dependency
70
- type: :runtime
70
+ name: logger
71
+ prerelease: false
71
72
  requirement: &id004 !ruby/object:Gem::Requirement
72
73
  none: false
73
74
  requirements:
@@ -79,11 +80,11 @@ dependencies:
79
80
  - 2
80
81
  - 8
81
82
  version: 1.2.8
83
+ type: :runtime
82
84
  version_requirements: *id004
83
- prerelease: false
84
- name: logger
85
85
  - !ruby/object:Gem::Dependency
86
- type: :runtime
86
+ name: activesupport
87
+ prerelease: false
87
88
  requirement: &id005 !ruby/object:Gem::Requirement
88
89
  none: false
89
90
  requirements:
@@ -93,11 +94,11 @@ dependencies:
93
94
  segments:
94
95
  - 3
95
96
  version: "3"
97
+ type: :runtime
96
98
  version_requirements: *id005
97
- prerelease: false
98
- name: activesupport
99
99
  - !ruby/object:Gem::Dependency
100
- type: :runtime
100
+ name: i18n
101
+ prerelease: false
101
102
  requirement: &id006 !ruby/object:Gem::Requirement
102
103
  none: false
103
104
  requirements:
@@ -107,9 +108,8 @@ dependencies:
107
108
  segments:
108
109
  - 0
109
110
  version: "0"
111
+ type: :runtime
110
112
  version_requirements: *id006
111
- prerelease: false
112
- name: i18n
113
113
  description: Ruby library for integrating with http://Insight.ly . This gem makes it easy to talk to their recently released REST API.
114
114
  email: code@r26d.com
115
115
  executables: []
@@ -121,58 +121,58 @@ extra_rdoc_files: []
121
121
  files:
122
122
  - README.md
123
123
  - LICENSE
124
- - lib/insightly.rb
125
- - lib/insightly/base.rb
126
- - lib/insightly/organisation.rb
127
- - lib/insightly/contact_info_helper.rb
124
+ - lib/insightly/tag_helper.rb
125
+ - lib/insightly/opportunity_category.rb
126
+ - lib/insightly/read_write.rb
127
+ - lib/insightly/task.rb
128
+ - lib/insightly/team_member.rb
129
+ - lib/insightly/link_helper.rb
130
+ - lib/insightly/country.rb
131
+ - lib/insightly/opportunity.rb
128
132
  - lib/insightly/contact_info.rb
129
- - lib/insightly/comment.rb
130
- - lib/insightly/base_data.rb
133
+ - lib/insightly/read_only.rb
134
+ - lib/insightly/currency.rb
135
+ - lib/insightly/contact_info_helper.rb
131
136
  - lib/insightly/task_category.rb
137
+ - lib/insightly/task_link_helper.rb
132
138
  - lib/insightly/configuration.rb
133
- - lib/insightly/team_member.rb
139
+ - lib/insightly/version.rb
134
140
  - lib/insightly/link.rb
135
- - lib/insightly/relationship.rb
136
- - lib/insightly/tag.rb
137
141
  - lib/insightly/task_link.rb
138
- - lib/insightly/opportunity_category.rb
139
- - lib/insightly/tag_helper.rb
142
+ - lib/insightly/comment.rb
143
+ - lib/insightly/organisation.rb
140
144
  - lib/insightly/contact.rb
141
- - lib/insightly/user.rb
142
- - lib/insightly/currency.rb
143
- - lib/insightly/custom_field.rb
144
- - lib/insightly/read_only.rb
145
- - lib/insightly/read_write.rb
146
145
  - lib/insightly/address_helper.rb
147
- - lib/insightly/version.rb
148
- - lib/insightly/opportunity.rb
149
- - lib/insightly/link_helper.rb
150
- - lib/insightly/task.rb
151
- - lib/insightly/task_link_helper.rb
152
- - lib/insightly/country.rb
153
- - lib/insightly/address.rb
146
+ - lib/insightly/base_data.rb
154
147
  - lib/insightly/opportunity_state_reason.rb
155
- - spec/unit/user_spec.rb
148
+ - lib/insightly/tag.rb
149
+ - lib/insightly/custom_field.rb
150
+ - lib/insightly/base.rb
151
+ - lib/insightly/relationship.rb
152
+ - lib/insightly/address.rb
153
+ - lib/insightly/user.rb
154
+ - lib/insightly.rb
156
155
  - spec/unit/task_link_spec.rb
157
- - spec/unit/country_spec.rb
158
- - spec/unit/configuration_spec.rb
159
- - spec/unit/task_spec.rb
160
- - spec/unit/currency_spec.rb
161
- - spec/unit/comment_spec.rb
162
- - spec/unit/base_spec.rb
163
- - spec/unit/tag_spec.rb
164
- - spec/unit/organisation_spec.rb
165
- - spec/unit/custom_field_spec.rb
166
- - spec/unit/opportunity_spec.rb
167
156
  - spec/unit/task_category_spec.rb
168
- - spec/unit/opportunity_category_spec.rb
157
+ - spec/unit/organisation_spec.rb
169
158
  - spec/unit/team_member_spec.rb
170
159
  - spec/unit/contact_info_spec.rb
160
+ - spec/unit/base_spec.rb
161
+ - spec/unit/comment_spec.rb
162
+ - spec/unit/opportunity_spec.rb
171
163
  - spec/unit/opportunity_state_reason_spec.rb
172
- - spec/unit/address_spec.rb
173
- - spec/unit/relationship_spec.rb
174
- - spec/unit/link_spec.rb
175
164
  - spec/unit/contact_spec.rb
165
+ - spec/unit/country_spec.rb
166
+ - spec/unit/tag_spec.rb
167
+ - spec/unit/currency_spec.rb
168
+ - spec/unit/link_spec.rb
169
+ - spec/unit/configuration_spec.rb
170
+ - spec/unit/custom_field_spec.rb
171
+ - spec/unit/opportunity_category_spec.rb
172
+ - spec/unit/relationship_spec.rb
173
+ - spec/unit/user_spec.rb
174
+ - spec/unit/task_spec.rb
175
+ - spec/unit/address_spec.rb
176
176
  - spec/spec_helper.rb
177
177
  - insightly.gemspec
178
178
  homepage: https://github.com/r26D/insightly
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  requirements: []
205
205
 
206
206
  rubyforge_project:
207
- rubygems_version: 1.8.24
207
+ rubygems_version: 1.8.17
208
208
  signing_key:
209
209
  specification_version: 3
210
210
  summary: Insight.ly Ruby Client Library