zohoProjects 0.0.6 → 0.0.7
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/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/projects/api/BugsAPI.rb +2 -2
- data/lib/projects/model/Category.rb +1 -1
- data/lib/projects/model/Portal.rb +25 -2
- data/lib/projects/model/Project.rb +32 -7
- data/lib/projects/model/Task.rb +25 -1
- data/lib/projects/model/Tasklist.rb +26 -2
- data/lib/projects/parser/PortalParser.rb +4 -1
- data/lib/projects/parser/ProjectParser.rb +4 -1
- data/lib/projects/parser/TaskParser.rb +3 -0
- data/lib/projects/parser/TasklistParser.rb +4 -1
- data/lib/projects/util/ZohoHTTPClient.rb +1 -1
- data/lib/zohoProjects/version.rb +1 -1
- metadata +6 -6
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -168,7 +168,7 @@ If there is any error encountered while calling the Ruby Wrappers of Zoho Projec
|
|
168
168
|
end
|
169
169
|
|
170
170
|
|
171
|
-
For a full set of examples, click [here](
|
171
|
+
For a full set of examples, click [here](https://github.com/zoho/projects-ruby-wrappers/tree/master/test).
|
172
172
|
|
173
173
|
## Contributing
|
174
174
|
|
data/lib/projects/api/BugsAPI.rb
CHANGED
@@ -145,7 +145,7 @@ module Projects
|
|
145
145
|
|
146
146
|
def getDefaultfields(projectId)
|
147
147
|
|
148
|
-
url = getBaseURL+"projects/"+String(projectId)+"/defaultfields/"
|
148
|
+
url = getBaseURL+"projects/"+String(projectId)+"/bugs/defaultfields/"
|
149
149
|
|
150
150
|
response = ZohoHTTPClient.get(url, getQueryMap)
|
151
151
|
|
@@ -167,7 +167,7 @@ module Projects
|
|
167
167
|
|
168
168
|
def getCustomfields(projectId)
|
169
169
|
|
170
|
-
url = getBaseURL+"projects/"+String(projectId)+"/customfields/"
|
170
|
+
url = getBaseURL+"projects/"+String(projectId)+"/bugs/customfields/"
|
171
171
|
|
172
172
|
response = ZohoHTTPClient.get(url, getQueryMap)
|
173
173
|
|
@@ -5,7 +5,7 @@ module Projects
|
|
5
5
|
|
6
6
|
class Portal
|
7
7
|
private
|
8
|
-
attr_accessor :id, :name, :default, :gmtTimeZone, :role, :companyName, :websiteURL, :timeZone, :dateFormat, :code, :language, :country, :projectURL
|
8
|
+
attr_accessor :id, :idString, :name, :default, :gmtTimeZone, :role, :companyName, :websiteURL, :timeZone, :dateFormat, :code, :language, :country, :projectURL
|
9
9
|
|
10
10
|
public
|
11
11
|
|
@@ -28,6 +28,29 @@ module Projects
|
|
28
28
|
def getId
|
29
29
|
return @id
|
30
30
|
end
|
31
|
+
|
32
|
+
# * Set the portal id string.
|
33
|
+
#
|
34
|
+
# ==== Parameters
|
35
|
+
#
|
36
|
+
# * idString:: - Portal id string.
|
37
|
+
|
38
|
+
def setIdString(idString)
|
39
|
+
@idString = idString
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
# * Get the portal id string.
|
44
|
+
#
|
45
|
+
# ==== Returns
|
46
|
+
#
|
47
|
+
# * Returns the portal id string.
|
48
|
+
|
49
|
+
def getIdString
|
50
|
+
|
51
|
+
return @idString
|
52
|
+
|
53
|
+
end
|
31
54
|
|
32
55
|
# * Set the portal name.
|
33
56
|
#
|
@@ -270,4 +293,4 @@ module Projects
|
|
270
293
|
end
|
271
294
|
end
|
272
295
|
end
|
273
|
-
end
|
296
|
+
end
|
@@ -5,28 +5,53 @@ module Projects
|
|
5
5
|
|
6
6
|
class Project
|
7
7
|
private
|
8
|
-
attr_accessor :id, :name, :templateId, :status, :createdDate, :createdDateFormat, :createdDateLong, :description, :ownerName, :ownerId, :openTaskCount, :closedTaskCount, :openMilestoneCount, :closedMilestoneCount, :openBugCount, :closedBugCount, :URL, :activityURL, :milestoneURL, :tasklistURL, :taskURL, :bugURL, :timesheetURL, :statusURL, :eventURL, :documentURL, :folderURL, :forumURL, :userURL;
|
8
|
+
attr_accessor :id, :idString, :name, :templateId, :status, :createdDate, :createdDateFormat, :createdDateLong, :description, :ownerName, :ownerId, :openTaskCount, :closedTaskCount, :openMilestoneCount, :closedMilestoneCount, :openBugCount, :closedBugCount, :URL, :activityURL, :milestoneURL, :tasklistURL, :taskURL, :bugURL, :timesheetURL, :statusURL, :eventURL, :documentURL, :folderURL, :forumURL, :userURL;
|
9
9
|
|
10
10
|
public
|
11
|
-
|
11
|
+
|
12
|
+
|
12
13
|
# * Set the project id.
|
13
14
|
#
|
14
15
|
# ==== Parameters
|
15
16
|
#
|
16
17
|
# * id:: - ID of the project.
|
17
18
|
|
18
|
-
def
|
19
|
-
|
19
|
+
def setId(id)
|
20
|
+
@id = id
|
20
21
|
end
|
21
|
-
|
22
|
+
|
22
23
|
# * Get the project id.
|
23
24
|
#
|
24
25
|
# ==== Returns
|
25
26
|
#
|
26
27
|
# * Project id.
|
27
28
|
|
28
|
-
def
|
29
|
-
@id
|
29
|
+
def getId
|
30
|
+
return @id
|
31
|
+
end
|
32
|
+
|
33
|
+
# * Set the project id string.
|
34
|
+
#
|
35
|
+
# ==== Parameters
|
36
|
+
#
|
37
|
+
# * idString:: - Project id string.
|
38
|
+
|
39
|
+
def setIdString(idString)
|
40
|
+
|
41
|
+
@idString = idString
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
# * Get the project id string.
|
46
|
+
#
|
47
|
+
# ==== Returns
|
48
|
+
#
|
49
|
+
# * Returns the project id string.
|
50
|
+
|
51
|
+
def getIdString
|
52
|
+
|
53
|
+
return @idString = idString
|
54
|
+
|
30
55
|
end
|
31
56
|
|
32
57
|
# * Set the project name.
|
data/lib/projects/model/Task.rb
CHANGED
@@ -6,7 +6,7 @@ module Projects
|
|
6
6
|
class Task
|
7
7
|
|
8
8
|
private
|
9
|
-
attr_accessor :id, :name, :completed, :createdBy, :createdPerson, :priority, :percentComplete, :startDate, :startDateFormat, :startDateLong, :endDate, :endDateFormat, :endDateLong, :duration, :url, :subtaskUrl, :timesheetUrl, :owners, :comments, :associateDocumentIds, :associateForumIds, :tasks, :tasklist
|
9
|
+
attr_accessor :id, :idString :name, :completed, :createdBy, :createdPerson, :priority, :percentComplete, :startDate, :startDateFormat, :startDateLong, :endDate, :endDateFormat, :endDateLong, :duration, :url, :subtaskUrl, :timesheetUrl, :owners, :comments, :associateDocumentIds, :associateForumIds, :tasks, :tasklist
|
10
10
|
|
11
11
|
public
|
12
12
|
|
@@ -29,6 +29,30 @@ module Projects
|
|
29
29
|
def getId
|
30
30
|
return @id
|
31
31
|
end
|
32
|
+
|
33
|
+
# * Set the task id string.
|
34
|
+
#
|
35
|
+
# ==== Parameters
|
36
|
+
#
|
37
|
+
# * idString:: - Task id string.
|
38
|
+
|
39
|
+
def setIdString(idString)
|
40
|
+
|
41
|
+
@idString = idString
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
# * Get the task id string.
|
46
|
+
#
|
47
|
+
# ==== Returns
|
48
|
+
#
|
49
|
+
# * Returns the task id string.
|
50
|
+
|
51
|
+
def getIdString
|
52
|
+
|
53
|
+
return @idString
|
54
|
+
|
55
|
+
end
|
32
56
|
|
33
57
|
# * Set the task name.
|
34
58
|
#
|
@@ -6,7 +6,7 @@ module Projects
|
|
6
6
|
class Tasklist
|
7
7
|
|
8
8
|
private
|
9
|
-
attr_accessor :id, :name, :completed, :createdTime, :createdTimeFormat, :createdTimeLong, :rolled, :sequence, :url, :taskUrl, :flag, :status, :milestone
|
9
|
+
attr_accessor :id, :idString, :name, :completed, :createdTime, :createdTimeFormat, :createdTimeLong, :rolled, :sequence, :url, :taskUrl, :flag, :status, :milestone
|
10
10
|
|
11
11
|
public
|
12
12
|
|
@@ -29,6 +29,30 @@ module Projects
|
|
29
29
|
def getId
|
30
30
|
return @id
|
31
31
|
end
|
32
|
+
|
33
|
+
# * Set the tasklist id string.
|
34
|
+
#
|
35
|
+
# ==== Parameters
|
36
|
+
#
|
37
|
+
# * idString::- Tasklist id string.
|
38
|
+
|
39
|
+
def setIdString(idString)
|
40
|
+
|
41
|
+
@idString = idString
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
# * Get the tasklist id string.
|
46
|
+
#
|
47
|
+
# ==== Returns
|
48
|
+
#
|
49
|
+
# * Returns the tasklist id string.
|
50
|
+
|
51
|
+
def getIdString
|
52
|
+
|
53
|
+
return @idString
|
54
|
+
|
55
|
+
end
|
32
56
|
|
33
57
|
# * Set the task list name.
|
34
58
|
#
|
@@ -297,4 +321,4 @@ module Projects
|
|
297
321
|
|
298
322
|
end
|
299
323
|
end
|
300
|
-
end
|
324
|
+
end
|
@@ -44,6 +44,9 @@ module Projects
|
|
44
44
|
if jsonObject.has_key?("id")
|
45
45
|
portal.setId(jsonObject["id"])
|
46
46
|
end
|
47
|
+
if jsonObject.has_key?("id_string")
|
48
|
+
portal.setIdString(jsonObject["id_string"])
|
49
|
+
end
|
47
50
|
if jsonObject.has_key?("name")
|
48
51
|
portal.setName(jsonObject["name"])
|
49
52
|
end
|
@@ -100,4 +103,4 @@ module Projects
|
|
100
103
|
end
|
101
104
|
end
|
102
105
|
end
|
103
|
-
end
|
106
|
+
end
|
@@ -63,6 +63,9 @@ module Projects
|
|
63
63
|
if jsonObject.has_key?("id")
|
64
64
|
project.setId(jsonObject["id"])
|
65
65
|
end
|
66
|
+
if jsonObject.has_key?("id_string")
|
67
|
+
project.setIdString(jsonObject["id_string"])
|
68
|
+
end
|
66
69
|
if jsonObject.has_key?("name")
|
67
70
|
project.setName(jsonObject["name"])
|
68
71
|
end
|
@@ -315,4 +318,4 @@ module Projects
|
|
315
318
|
|
316
319
|
end
|
317
320
|
end
|
318
|
-
end
|
321
|
+
end
|
@@ -62,6 +62,9 @@ module Projects
|
|
62
62
|
if jsonObject.has_key?("id")
|
63
63
|
tasklist.setId(jsonObject["id"])
|
64
64
|
end
|
65
|
+
if jsonObject.has_key?("id_string")
|
66
|
+
tasklist.setIdString(jsonObject["id_string"])
|
67
|
+
end
|
65
68
|
if jsonObject.has_key?("name")
|
66
69
|
tasklist.setName(jsonObject["name"])
|
67
70
|
end
|
@@ -124,4 +127,4 @@ module Projects
|
|
124
127
|
end
|
125
128
|
end
|
126
129
|
end
|
127
|
-
end
|
130
|
+
end
|
@@ -77,7 +77,7 @@ module Projects
|
|
77
77
|
header["Accept"] = "application/json"
|
78
78
|
header["Content-Type"] = "application/x-www-form-urlencoded"
|
79
79
|
header["Accept-Charset"] = "UTF-8"
|
80
|
-
header["User-Agent"] = "ZohoProjects-Ruby-Wrappers/0.0.
|
80
|
+
header["User-Agent"] = "ZohoProjects-Ruby-Wrappers/0.0.7"
|
81
81
|
return header
|
82
82
|
end
|
83
83
|
|
data/lib/zohoProjects/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zohoProjects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &21597960 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.6'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *21597960
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &21596580 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *21596580
|
36
36
|
description: ! 'Zoho Projects API lets, users/developers extend their web applications
|
37
37
|
to push or pull data into or from Zoho Projects for application mashups. - See more
|
38
38
|
at: https://www.zoho.com/projects/help/rest-api/zohoprojectsapi.html'
|