insightly 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/insightly.gemspec +1 -1
- data/lib/insightly/base.rb +6 -0
- data/lib/insightly/task.rb +2 -0
- data/lib/insightly/version.rb +1 -1
- metadata +64 -64
data/insightly.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.has_rdoc = false
|
13
13
|
s.files = Dir.glob ["README.md", "LICENSE", "{lib,spec}/**/*.rb", "lib/**/*.crt", "*.gemspec"]
|
14
14
|
s.add_dependency "builder", ">= 2.0.0"
|
15
|
-
s.add_dependency "json", ">= 1.
|
15
|
+
s.add_dependency "json", ">= 1.6.5"
|
16
16
|
s.add_dependency "rest-client", ">= 1.6.7"
|
17
17
|
s.add_dependency "logger", ">= 1.2.8"
|
18
18
|
s.add_dependency "activesupport", "> 3"
|
data/lib/insightly/base.rb
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
#METODO contacts allow you to set special dates to remember - can we access that via api?
|
2
|
+
#METODO It should have a method for converting date/time to the Insightly format
|
3
|
+
#METODO custom fields expect text,drop down, or date - add better handling (text should cast to_s)
|
4
|
+
#METODO contact infos should auto filter out duplicate entries
|
5
|
+
#METODO all the helpers should auto filter out duplicates (links,contact info,address etc)
|
2
6
|
#METODO only allow build to set fields that are part of the API fields
|
7
|
+
#METODO Fix all tests so they don't require the existence of certain object ids
|
8
|
+
|
3
9
|
#METODO make a distinction between fields that you can set and save and ones you can only read - like DATE_UPDATED_UTC
|
4
10
|
module Insightly
|
5
11
|
class Base
|
data/lib/insightly/task.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
#METODO make it so you can just say task.add_contact(contact/contact_id) (for opportunity and organisation as well)
|
2
|
+
#METODO warn them about how you have to save a task before you can link it up
|
1
3
|
module Insightly
|
2
4
|
class Task < ReadWrite
|
3
5
|
include Insightly::TaskLinkHelper
|
data/lib/insightly/version.rb
CHANGED
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dirk Elmendorf
|
@@ -16,11 +16,10 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-09-
|
19
|
+
date: 2012-09-20 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
prerelease: false
|
22
|
+
type: :runtime
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
@@ -32,27 +31,27 @@ dependencies:
|
|
32
31
|
- 0
|
33
32
|
- 0
|
34
33
|
version: 2.0.0
|
35
|
-
type: :runtime
|
36
34
|
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: json
|
39
35
|
prerelease: false
|
36
|
+
name: builder
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
type: :runtime
|
40
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
40
|
none: false
|
42
41
|
requirements:
|
43
42
|
- - ">="
|
44
43
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
44
|
+
hash: 5
|
46
45
|
segments:
|
47
46
|
- 1
|
48
|
-
-
|
47
|
+
- 6
|
49
48
|
- 5
|
50
|
-
version: 1.
|
51
|
-
type: :runtime
|
49
|
+
version: 1.6.5
|
52
50
|
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: rest-client
|
55
51
|
prerelease: false
|
52
|
+
name: json
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
type: :runtime
|
56
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
56
|
none: false
|
58
57
|
requirements:
|
@@ -64,11 +63,11 @@ dependencies:
|
|
64
63
|
- 6
|
65
64
|
- 7
|
66
65
|
version: 1.6.7
|
67
|
-
type: :runtime
|
68
66
|
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: logger
|
71
67
|
prerelease: false
|
68
|
+
name: rest-client
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
type: :runtime
|
72
71
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
72
|
none: false
|
74
73
|
requirements:
|
@@ -80,11 +79,11 @@ dependencies:
|
|
80
79
|
- 2
|
81
80
|
- 8
|
82
81
|
version: 1.2.8
|
83
|
-
type: :runtime
|
84
82
|
version_requirements: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: activesupport
|
87
83
|
prerelease: false
|
84
|
+
name: logger
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
type: :runtime
|
88
87
|
requirement: &id005 !ruby/object:Gem::Requirement
|
89
88
|
none: false
|
90
89
|
requirements:
|
@@ -94,11 +93,11 @@ dependencies:
|
|
94
93
|
segments:
|
95
94
|
- 3
|
96
95
|
version: "3"
|
97
|
-
type: :runtime
|
98
96
|
version_requirements: *id005
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
name: i18n
|
101
97
|
prerelease: false
|
98
|
+
name: activesupport
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
type: :runtime
|
102
101
|
requirement: &id006 !ruby/object:Gem::Requirement
|
103
102
|
none: false
|
104
103
|
requirements:
|
@@ -108,8 +107,9 @@ dependencies:
|
|
108
107
|
segments:
|
109
108
|
- 0
|
110
109
|
version: "0"
|
111
|
-
type: :runtime
|
112
110
|
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
|
125
|
-
- lib/insightly/
|
126
|
-
- lib/insightly/
|
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
|
132
|
-
- lib/insightly/contact_info.rb
|
133
|
-
- lib/insightly/read_only.rb
|
134
|
-
- lib/insightly/currency.rb
|
124
|
+
- lib/insightly.rb
|
125
|
+
- lib/insightly/base.rb
|
126
|
+
- lib/insightly/organisation.rb
|
135
127
|
- lib/insightly/contact_info_helper.rb
|
128
|
+
- lib/insightly/contact_info.rb
|
129
|
+
- lib/insightly/comment.rb
|
130
|
+
- lib/insightly/base_data.rb
|
136
131
|
- lib/insightly/task_category.rb
|
137
|
-
- lib/insightly/task_link_helper.rb
|
138
132
|
- lib/insightly/configuration.rb
|
139
|
-
- lib/insightly/
|
133
|
+
- lib/insightly/team_member.rb
|
140
134
|
- lib/insightly/link.rb
|
135
|
+
- lib/insightly/relationship.rb
|
136
|
+
- lib/insightly/tag.rb
|
141
137
|
- lib/insightly/task_link.rb
|
142
|
-
- lib/insightly/
|
143
|
-
- lib/insightly/
|
138
|
+
- lib/insightly/opportunity_category.rb
|
139
|
+
- lib/insightly/tag_helper.rb
|
144
140
|
- lib/insightly/contact.rb
|
145
|
-
- lib/insightly/
|
146
|
-
- lib/insightly/
|
147
|
-
- lib/insightly/opportunity_state_reason.rb
|
148
|
-
- lib/insightly/tag.rb
|
141
|
+
- lib/insightly/user.rb
|
142
|
+
- lib/insightly/currency.rb
|
149
143
|
- lib/insightly/custom_field.rb
|
150
|
-
- lib/insightly/
|
151
|
-
- lib/insightly/
|
144
|
+
- lib/insightly/read_only.rb
|
145
|
+
- lib/insightly/read_write.rb
|
146
|
+
- 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
|
152
153
|
- lib/insightly/address.rb
|
153
|
-
- lib/insightly/
|
154
|
-
-
|
154
|
+
- lib/insightly/opportunity_state_reason.rb
|
155
|
+
- spec/unit/user_spec.rb
|
155
156
|
- spec/unit/task_link_spec.rb
|
156
|
-
- spec/unit/task_category_spec.rb
|
157
|
-
- spec/unit/organisation_spec.rb
|
158
|
-
- spec/unit/team_member_spec.rb
|
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
|
163
|
-
- spec/unit/opportunity_state_reason_spec.rb
|
164
|
-
- spec/unit/contact_spec.rb
|
165
157
|
- spec/unit/country_spec.rb
|
166
|
-
- spec/unit/tag_spec.rb
|
167
|
-
- spec/unit/currency_spec.rb
|
168
|
-
- spec/unit/link_spec.rb
|
169
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
|
170
165
|
- spec/unit/custom_field_spec.rb
|
166
|
+
- spec/unit/opportunity_spec.rb
|
167
|
+
- spec/unit/task_category_spec.rb
|
171
168
|
- spec/unit/opportunity_category_spec.rb
|
172
|
-
- spec/unit/
|
173
|
-
- spec/unit/
|
174
|
-
- spec/unit/
|
169
|
+
- spec/unit/team_member_spec.rb
|
170
|
+
- spec/unit/contact_info_spec.rb
|
171
|
+
- spec/unit/opportunity_state_reason_spec.rb
|
175
172
|
- spec/unit/address_spec.rb
|
173
|
+
- spec/unit/relationship_spec.rb
|
174
|
+
- spec/unit/link_spec.rb
|
175
|
+
- spec/unit/contact_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.
|
207
|
+
rubygems_version: 1.8.24
|
208
208
|
signing_key:
|
209
209
|
specification_version: 3
|
210
210
|
summary: Insight.ly Ruby Client Library
|