teamforge 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/teamforge/services/categorizationapp.rb +17 -73
- data/lib/teamforge/services/collabnet.rb +109 -473
- data/lib/teamforge/services/discussionapp.rb +24 -84
- data/lib/teamforge/services/documentapp.rb +26 -102
- data/lib/teamforge/services/frsapp.rb +24 -92
- data/lib/teamforge/services/integrationdataapp.rb +9 -41
- data/lib/teamforge/services/newsapp.rb +8 -32
- data/lib/teamforge/services/pageapp.rb +23 -95
- data/lib/teamforge/services/planningapp.rb +32 -112
- data/lib/teamforge/services/pluggableapp.rb +33 -133
- data/lib/teamforge/services/rbacapp.rb +51 -215
- data/lib/teamforge/services/scmapp.rb +28 -104
- data/lib/teamforge/services/simplefilestorageapp.rb +5 -25
- data/lib/teamforge/services/taskapp.rb +24 -100
- data/lib/teamforge/services/trackerapp.rb +59 -223
- data/lib/teamforge/services/wikiapp.rb +12 -48
- data/lib/teamforge/tfsoaprequest.rb +14 -0
- data/lib/teamforge/tftype.rb +12 -0
- data/lib/teamforge/version.rb +1 -1
- data/lib/teamforge.rb +4 -1
- metadata +8 -6
@@ -5,235 +5,71 @@ module TeamForge
|
|
5
5
|
######################
|
6
6
|
# TrackerApp Messages
|
7
7
|
######################
|
8
|
-
AddDateField =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
def send (server=nil, proxy=nil)
|
50
|
-
TeamForge.request(self, server, proxy)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
CreateArtifactDependency = Struct.new(:session_id, :origin_id, :target_id, :desc) do
|
54
|
-
def send (server=nil, proxy=nil)
|
55
|
-
TeamForge.request(self, server, proxy)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
CreateArtifact = Struct.new(:session_id, :tracker_id, :title, :description, :group, :category, :status, :customer, :priority, :estimated_effort, :remaining_effort, :autosumming, :points, :assigned_username, :release_id, :planning_folder_id, :flex_fields, :attachment_file_name, :attachment_mime_type, :attachment_file_id) do
|
59
|
-
def send (server=nil, proxy=nil)
|
60
|
-
TeamForge.request(self, server, proxy)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
CreateTracker2 = Struct.new(:session_id, :project_id, :tracker_name, :tracker_title, :tracker_description, :icon, :tracker_unit_id) do
|
64
|
-
def send (server=nil, proxy=nil)
|
65
|
-
TeamForge.request(self, server, proxy)
|
66
|
-
end
|
67
|
-
end
|
68
|
-
CreateTracker = Struct.new(:session_id, :project_id, :tracker_name, :tracker_title, :tracker_description, :icon) do
|
69
|
-
def send (server=nil, proxy=nil)
|
70
|
-
TeamForge.request(self, server, proxy)
|
71
|
-
end
|
72
|
-
end
|
73
|
-
DeleteArtifact = Struct.new(:session_id, :artifact_id) do
|
74
|
-
def send (server=nil, proxy=nil)
|
75
|
-
TeamForge.request(self, server, proxy)
|
76
|
-
end
|
77
|
-
end
|
78
|
-
DeleteField = Struct.new(:session_id, :object_id, :field_id) do
|
79
|
-
def send (server=nil, proxy=nil)
|
80
|
-
TeamForge.request(self, server, proxy)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
DeleteSeparator = Struct.new(:session_id, :tracker_id, :layout_id) do
|
84
|
-
def send (server=nil, proxy=nil)
|
85
|
-
TeamForge.request(self, server, proxy)
|
86
|
-
end
|
87
|
-
end
|
88
|
-
FindArtifacts = Struct.new(:session_id, :query_string, :project_id, :search_attachments) do
|
89
|
-
def send (server=nil, proxy=nil)
|
90
|
-
TeamForge.request(self, server, proxy)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
GetAllowedWorkflowTransitionList = Struct.new(:session_id, :tracker_id) do
|
94
|
-
def send (server=nil, proxy=nil)
|
95
|
-
TeamForge.request(self, server, proxy)
|
96
|
-
end
|
97
|
-
end
|
98
|
-
GetArtifactData = Struct.new(:session_id, :artifact_id) do
|
99
|
-
def send (server=nil, proxy=nil)
|
100
|
-
TeamForge.request(self, server, proxy)
|
101
|
-
end
|
102
|
-
end
|
103
|
-
GetArtifactDetailList = Struct.new(:session_id, :tracker_id, :selected_columns, :filters, :sort_keys, :start_index, :max_rows, :exception_if_expired_cache, :force_new_query) do
|
104
|
-
def send (server=nil, proxy=nil)
|
105
|
-
TeamForge.request(self, server, proxy)
|
106
|
-
end
|
107
|
-
end
|
108
|
-
GetArtifactList = Struct.new(:session_id, :container_id, :filters) do
|
109
|
-
def send (server=nil, proxy=nil)
|
110
|
-
TeamForge.request(self, server, proxy)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
GetChildDependencyList = Struct.new(:session_id, :artifact_id) do
|
114
|
-
def send (server=nil, proxy=nil)
|
115
|
-
TeamForge.request(self, server, proxy)
|
116
|
-
end
|
117
|
-
end
|
118
|
-
GetCrossTrackerArtifactList = Struct.new(:session_id, :container_id, :filters, :selected_columns) do
|
119
|
-
def send (server=nil, proxy=nil)
|
120
|
-
TeamForge.request(self, server, proxy)
|
121
|
-
end
|
122
|
-
end
|
123
|
-
GetFields = Struct.new(:session_id, :tracker_id) do
|
124
|
-
def send (server=nil, proxy=nil)
|
125
|
-
TeamForge.request(self, server, proxy)
|
126
|
-
end
|
127
|
-
end
|
128
|
-
GetOrderedTrackerFields = Struct.new(:session_id, :tracker_id) do
|
129
|
-
def send (server=nil, proxy=nil)
|
130
|
-
TeamForge.request(self, server, proxy)
|
131
|
-
end
|
132
|
-
end
|
133
|
-
GetParentDependencyList = Struct.new(:session_id, :artifact_id) do
|
134
|
-
def send (server=nil, proxy=nil)
|
135
|
-
TeamForge.request(self, server, proxy)
|
136
|
-
end
|
137
|
-
end
|
138
|
-
GetTracker2Data = Struct.new(:session_id, :tracker_id) do
|
139
|
-
def send (server=nil, proxy=nil)
|
140
|
-
TeamForge.request(self, server, proxy)
|
141
|
-
end
|
142
|
-
end
|
143
|
-
GetTracker2List = Struct.new(:session_id, :project_id) do
|
144
|
-
def send (server=nil, proxy=nil)
|
145
|
-
TeamForge.request(self, server, proxy)
|
146
|
-
end
|
147
|
-
end
|
148
|
-
GetTrackerData = Struct.new(:session_id, :tracker_id) do
|
149
|
-
def send (server=nil, proxy=nil)
|
150
|
-
TeamForge.request(self, server, proxy)
|
151
|
-
end
|
152
|
-
end
|
153
|
-
GetTrackerList = Struct.new(:session_id, :project_id) do
|
154
|
-
def send (server=nil, proxy=nil)
|
155
|
-
TeamForge.request(self, server, proxy)
|
156
|
-
end
|
157
|
-
end
|
158
|
-
GetUnitsByProject = Struct.new(:session_id, :project_id) do
|
159
|
-
def send (server=nil, proxy=nil)
|
160
|
-
TeamForge.request(self, server, proxy)
|
161
|
-
end
|
162
|
-
end
|
163
|
-
MoveArtifact = Struct.new(:session_id, :artifact_id, :target_folder_id, :new_assignee) do
|
164
|
-
def send (server=nil, proxy=nil)
|
165
|
-
TeamForge.request(self, server, proxy)
|
166
|
-
end
|
167
|
-
end
|
168
|
-
RemoveArtifactDependency = Struct.new(:session_id, :origin_id, :target_id) do
|
169
|
-
def send (server=nil, proxy=nil)
|
170
|
-
TeamForge.request(self, server, proxy)
|
171
|
-
end
|
172
|
-
end
|
173
|
-
ReorderTrackerFields = Struct.new(:session_id, :tracker_id, :layout_ids) do
|
174
|
-
def send (server=nil, proxy=nil)
|
175
|
-
TeamForge.request(self, server, proxy)
|
176
|
-
end
|
177
|
-
end
|
178
|
-
ReorderTrackers = Struct.new(:session_id, :tracker_ids) do
|
179
|
-
def send (server=nil, proxy=nil)
|
180
|
-
TeamForge.request(self, server, proxy)
|
181
|
-
end
|
182
|
-
end
|
183
|
-
SetArtifactData2 = Struct.new(:session_id, :artifact_data, :comment, :attachments) do
|
184
|
-
def send (server=nil, proxy=nil)
|
185
|
-
TeamForge.request(self, server, proxy)
|
186
|
-
end
|
187
|
-
end
|
188
|
-
SetArtifactData = Struct.new(:session_id, :artifact_data, :comment, :attachment_file_name, :attachment_mime_type, :attachment_file_id) do
|
189
|
-
def send (server=nil, proxy=nil)
|
190
|
-
TeamForge.request(self, server, proxy)
|
191
|
-
end
|
192
|
-
end
|
193
|
-
SetArtifactRank = Struct.new(:session_id, :planning_folder_id, :artf_to_rank_id, :artf_before_id, :artf_after_id) do
|
194
|
-
def send (server=nil, proxy=nil)
|
195
|
-
TeamForge.request(self, server, proxy)
|
196
|
-
end
|
197
|
-
end
|
198
|
-
SetField = Struct.new(:session_id, :object_id, :field_data) do
|
199
|
-
def send (server=nil, proxy=nil)
|
200
|
-
TeamForge.request(self, server, proxy)
|
201
|
-
end
|
202
|
-
end
|
203
|
-
SetTracker2Data = Struct.new(:session_id, :tracker_data) do
|
204
|
-
def send (server=nil, proxy=nil)
|
205
|
-
TeamForge.request(self, server, proxy)
|
206
|
-
end
|
207
|
-
end
|
208
|
-
SetTrackerData = Struct.new(:session_id, :tracker_data) do
|
209
|
-
def send (server=nil, proxy=nil)
|
210
|
-
TeamForge.request(self, server, proxy)
|
211
|
-
end
|
212
|
-
end
|
8
|
+
AddDateField = TFSoapRequest.new(:session_id, :tracker_id, :field_name, :is_required, :is_disabled, :is_hidden_on_create, :help_text)
|
9
|
+
AddMultiSelectField = TFSoapRequest.new(:session_id, :tracker_id, :field_name, :display_lines, :is_required, :is_disabled, :is_hidden_on_create, :field_values, :default_values, :help_text)
|
10
|
+
AddSeparator = TFSoapRequest.new(:session_id, :tracker_id, :separator_type, :separator_label)
|
11
|
+
AddSingleSelectChildField = TFSoapRequest.new(:session_id, :tracker_id, :field_name, :field_values, :parent_field_id, :parent_child_field_value_map, :help_text)
|
12
|
+
AddSingleSelectField = TFSoapRequest.new(:session_id, :tracker_id, :field_name, :is_required, :is_disabled, :is_hidden_on_create, :field_values, :default_value, :help_text)
|
13
|
+
AddTextField = TFSoapRequest.new(:session_id, :tracker_id, :field_name, :display_columns, :display_lines, :is_required, :is_disabled, :is_hidden_on_create, :default_value, :help_text, :pattern)
|
14
|
+
AddUserSelectField = TFSoapRequest.new(:session_id, :tracker_id, :field_name, :display_lines, :is_required, :is_disabled, :is_hidden_on_create, :default_values, :user_filter, :help_text)
|
15
|
+
CopyWorkflowTransitions = TFSoapRequest.new(:session_id, :src_tracker_id, :dst_tracker_id)
|
16
|
+
CreateArtifact2 = TFSoapRequest.new(:session_id, :tracker_id, :title, :description, :group, :category, :status, :customer, :priority, :estimated_effort, :remaining_effort, :autosumming, :points, :assigned_username, :release_id, :planning_folder_id, :flex_fields, :attachments)
|
17
|
+
CreateArtifactDependency = TFSoapRequest.new(:session_id, :origin_id, :target_id, :desc)
|
18
|
+
CreateArtifact = TFSoapRequest.new(:session_id, :tracker_id, :title, :description, :group, :category, :status, :customer, :priority, :estimated_effort, :remaining_effort, :autosumming, :points, :assigned_username, :release_id, :planning_folder_id, :flex_fields, :attachment_file_name, :attachment_mime_type, :attachment_file_id)
|
19
|
+
CreateTracker2 = TFSoapRequest.new(:session_id, :project_id, :tracker_name, :tracker_title, :tracker_description, :icon, :tracker_unit_id)
|
20
|
+
CreateTracker = TFSoapRequest.new(:session_id, :project_id, :tracker_name, :tracker_title, :tracker_description, :icon)
|
21
|
+
DeleteArtifact = TFSoapRequest.new(:session_id, :artifact_id)
|
22
|
+
DeleteField = TFSoapRequest.new(:session_id, :object_id, :field_id)
|
23
|
+
DeleteSeparator = TFSoapRequest.new(:session_id, :tracker_id, :layout_id)
|
24
|
+
FindArtifacts = TFSoapRequest.new(:session_id, :query_string, :project_id, :search_attachments)
|
25
|
+
GetAllowedWorkflowTransitionList = TFSoapRequest.new(:session_id, :tracker_id)
|
26
|
+
GetArtifactData = TFSoapRequest.new(:session_id, :artifact_id)
|
27
|
+
GetArtifactDetailList = TFSoapRequest.new(:session_id, :tracker_id, :selected_columns, :filters, :sort_keys, :start_index, :max_rows, :exception_if_expired_cache, :force_new_query)
|
28
|
+
GetArtifactList = TFSoapRequest.new(:session_id, :container_id, :filters)
|
29
|
+
GetChildDependencyList = TFSoapRequest.new(:session_id, :artifact_id)
|
30
|
+
GetCrossTrackerArtifactList = TFSoapRequest.new(:session_id, :container_id, :filters, :selected_columns)
|
31
|
+
GetFields = TFSoapRequest.new(:session_id, :tracker_id)
|
32
|
+
GetOrderedTrackerFields = TFSoapRequest.new(:session_id, :tracker_id)
|
33
|
+
GetParentDependencyList = TFSoapRequest.new(:session_id, :artifact_id)
|
34
|
+
GetTracker2Data = TFSoapRequest.new(:session_id, :tracker_id)
|
35
|
+
GetTracker2List = TFSoapRequest.new(:session_id, :project_id)
|
36
|
+
GetTrackerData = TFSoapRequest.new(:session_id, :tracker_id)
|
37
|
+
GetTrackerList = TFSoapRequest.new(:session_id, :project_id)
|
38
|
+
GetUnitsByProject = TFSoapRequest.new(:session_id, :project_id)
|
39
|
+
MoveArtifact = TFSoapRequest.new(:session_id, :artifact_id, :target_folder_id, :new_assignee)
|
40
|
+
RemoveArtifactDependency = TFSoapRequest.new(:session_id, :origin_id, :target_id)
|
41
|
+
ReorderTrackerFields = TFSoapRequest.new(:session_id, :tracker_id, :layout_ids)
|
42
|
+
ReorderTrackers = TFSoapRequest.new(:session_id, :tracker_ids)
|
43
|
+
SetArtifactData2 = TFSoapRequest.new(:session_id, :artifact_data, :comment, :attachments)
|
44
|
+
SetArtifactData = TFSoapRequest.new(:session_id, :artifact_data, :comment, :attachment_file_name, :attachment_mime_type, :attachment_file_id)
|
45
|
+
SetArtifactRank = TFSoapRequest.new(:session_id, :planning_folder_id, :artf_to_rank_id, :artf_before_id, :artf_after_id)
|
46
|
+
SetField = TFSoapRequest.new(:session_id, :object_id, :field_data)
|
47
|
+
SetTracker2Data = TFSoapRequest.new(:session_id, :tracker_data)
|
48
|
+
SetTrackerData = TFSoapRequest.new(:session_id, :tracker_data)
|
213
49
|
|
214
50
|
|
215
51
|
######################
|
216
52
|
# TrackerApp Types
|
217
53
|
######################
|
218
54
|
|
219
|
-
ArtifactDependencySoapRow =
|
220
|
-
ArtifactDetailSoapRow =
|
221
|
-
ArtifactSoapDO =
|
222
|
-
ArtifactSoapRow =
|
223
|
-
AttachmentSoapDO =
|
224
|
-
OrderedTrackerFieldSoapRow =
|
225
|
-
SoapFieldValues =
|
226
|
-
SoapFilter =
|
227
|
-
SoapNamedValues =
|
228
|
-
SoapSortKey =
|
229
|
-
Tracker2SoapDO =
|
230
|
-
Tracker2SoapRow =
|
231
|
-
TrackerFieldSoapDO =
|
232
|
-
TrackerFieldValueSoapDO =
|
233
|
-
TrackerSoapDO =
|
234
|
-
TrackerSoapRow =
|
235
|
-
TrackerUnitSoapRow =
|
236
|
-
WorkflowTransitionSoapRow =
|
55
|
+
ArtifactDependencySoapRow = TFType.new(:description,:has_view_permission,:origin_id,:origin_status,:origin_status_class,:origin_title,:target_id,:target_status,:target_status_class,:target_title,:tracker_icon, :attributes!)
|
56
|
+
ArtifactDetailSoapRow = TFType.new(:actual_effort,:artifact_group,:assigned_to_fullname,:assigned_to_username,:autosumming,:category,:close_date,:customer,:description,:estimated_effort,:flex_fields,:folder_id,:folder_path_string,:folder_title,:id,:last_modified_date,:planning_folder_id,:planning_folder_title,:points,:priority,:project_id,:project_path_string,:project_title,:remaining_effort,:reported_in_release_id,:reported_in_release_title,:resolved_in_release_id,:resolved_in_release_title,:status,:status_class,:submitted_by_fullname,:submitted_by_username,:submitted_date,:title,:tracker_icon,:version, :attributes!)
|
57
|
+
ArtifactSoapDO = TFType.new(:actual_effort,:assigned_to,:autosumming,:category,:close_date,:created_by,:created_date,:customer,:description,:estimated_effort,:flex_fields,:folder_id,:group,:id,:last_modified_by,:last_modified_date,:path,:planning_folder_id,:points,:priority,:remaining_effort,:reported_release_id,:resolved_release_id,:status,:status_class,:title,:version, :attributes!)
|
58
|
+
ArtifactSoapRow = TFType.new(:actual_effort,:artifact_group,:assigned_to_fullname,:assigned_to_username,:autosumming,:category,:close_date,:customer,:description,:estimated_effort,:folder_id,:folder_path_string,:folder_title,:id,:last_modified_date,:planning_folder_id,:points,:priority,:project_id,:project_path_string,:project_title,:remaining_effort,:status,:status_class,:submitted_by_fullname,:submitted_by_username,:submitted_date,:title,:version, :attributes!)
|
59
|
+
AttachmentSoapDO = TFType.new(:attachment_file_id,:attachment_file_name,:attachment_mime_type,:created_by,:created_date,:id,:last_modified_by,:last_modified_date,:version, :attributes!)
|
60
|
+
OrderedTrackerFieldSoapRow = TFType.new(:default_text_value,:default_usernames,:disabled,:display_lines,:display_order,:display_size,:field_display_type,:field_id,:field_name,:field_values,:folder_id,:help_text,:hidden_on_create,:label,:layout_id,:parent_childfield_value_map,:parent_field_id,:pattern,:required,:user_filter,:value_type, :attributes!)
|
61
|
+
SoapFieldValues = TFType.new(:names,:types,:values, :attributes!)
|
62
|
+
SoapFilter = TFType.new(:name,:value, :attributes!)
|
63
|
+
SoapNamedValues = TFType.new(:names,:values, :attributes!)
|
64
|
+
SoapSortKey = TFType.new(:ascending,:name, :attributes!)
|
65
|
+
Tracker2SoapDO = TFType.new(:assignments,:auto_assign_field,:created_by,:created_date,:description,:icon,:id,:last_modified_by,:last_modified_date,:parent_folder_id,:path,:project_id,:title,:tracker_unit_id,:version, :attributes!)
|
66
|
+
Tracker2SoapRow = TFType.new(:created_by,:created_on,:description,:icon,:id,:last_edited_by_fullname,:last_edited_by_username,:last_edited_date,:last_modified_by,:last_modified_on,:parent_folder_id,:path,:project_id,:title,:tracker_unit_id, :attributes!)
|
67
|
+
TrackerFieldSoapDO = TFType.new(:created_by,:created_date,:default_text_value,:default_usernames,:disabled,:display_lines,:display_size,:field_type,:field_values,:help_text,:hidden_on_create,:id,:last_modified_by,:last_modified_date,:name,:parent_child_field_value_map,:parent_field_id,:pattern,:required,:user_filter,:value_type,:version, :attributes!)
|
68
|
+
TrackerFieldValueSoapDO = TFType.new(:id,:is_default,:value,:value_class, :attributes!)
|
69
|
+
TrackerSoapDO = TFType.new(:assignments,:auto_assign_field,:created_by,:created_date,:description,:icon,:id,:last_modified_by,:last_modified_date,:parent_folder_id,:path,:project_id,:title,:version, :attributes!)
|
70
|
+
TrackerSoapRow = TFType.new(:created_by,:created_on,:description,:icon,:id,:last_edited_by_fullname,:last_edited_by_username,:last_edited_date,:last_modified_by,:last_modified_on,:parent_folder_id,:path,:project_id,:title, :attributes!)
|
71
|
+
TrackerUnitSoapRow = TFType.new(:base_unit_multiplier,:conversion_unit_id,:conversion_unit_multiplier,:display_order,:id,:last_edited_date,:name,:project_id,:version, :attributes!)
|
72
|
+
WorkflowTransitionSoapRow = TFType.new(:display_order,:from_status_name,:required_fields,:to_status_name, :attributes!)
|
237
73
|
|
238
74
|
end # module TrackerApp
|
239
75
|
|
@@ -5,60 +5,24 @@ module TeamForge
|
|
5
5
|
######################
|
6
6
|
# WikiApp Messages
|
7
7
|
######################
|
8
|
-
AddAttachment =
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
18
|
-
CreateWikiPage = Struct.new(:session_id, :project_id, :name, :wiki_text, :version_comment) do
|
19
|
-
def send (server=nil, proxy=nil)
|
20
|
-
TeamForge.request(self, server, proxy)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
DeleteWikiPage = Struct.new(:session_id, :wiki_page_id) do
|
24
|
-
def send (server=nil, proxy=nil)
|
25
|
-
TeamForge.request(self, server, proxy)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
GetFormattedWikiPageText = Struct.new(:session_id, :wiki_page_id) do
|
29
|
-
def send (server=nil, proxy=nil)
|
30
|
-
TeamForge.request(self, server, proxy)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
GetWikiPageDataByName = Struct.new(:session_id, :project_id, :wiki_page_name) do
|
34
|
-
def send (server=nil, proxy=nil)
|
35
|
-
TeamForge.request(self, server, proxy)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
GetWikiPageData = Struct.new(:session_id, :wiki_page_id) do
|
39
|
-
def send (server=nil, proxy=nil)
|
40
|
-
TeamForge.request(self, server, proxy)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
GetWikiPageList = Struct.new(:session_id, :project_id) do
|
44
|
-
def send (server=nil, proxy=nil)
|
45
|
-
TeamForge.request(self, server, proxy)
|
46
|
-
end
|
47
|
-
end
|
48
|
-
SetWikiPageData = Struct.new(:session_id, :wiki_page_data) do
|
49
|
-
def send (server=nil, proxy=nil)
|
50
|
-
TeamForge.request(self, server, proxy)
|
51
|
-
end
|
52
|
-
end
|
8
|
+
AddAttachment = TFSoapRequest.new(:session_id, :wiki_page_id, :file_id, :filename, :mimetype)
|
9
|
+
AddAttachments = TFSoapRequest.new(:session_id, :wiki_page_id, :attachments)
|
10
|
+
CreateWikiPage = TFSoapRequest.new(:session_id, :project_id, :name, :wiki_text, :version_comment)
|
11
|
+
DeleteWikiPage = TFSoapRequest.new(:session_id, :wiki_page_id)
|
12
|
+
GetFormattedWikiPageText = TFSoapRequest.new(:session_id, :wiki_page_id)
|
13
|
+
GetWikiPageDataByName = TFSoapRequest.new(:session_id, :project_id, :wiki_page_name)
|
14
|
+
GetWikiPageData = TFSoapRequest.new(:session_id, :wiki_page_id)
|
15
|
+
GetWikiPageList = TFSoapRequest.new(:session_id, :project_id)
|
16
|
+
SetWikiPageData = TFSoapRequest.new(:session_id, :wiki_page_data)
|
53
17
|
|
54
18
|
|
55
19
|
######################
|
56
20
|
# WikiApp Types
|
57
21
|
######################
|
58
22
|
|
59
|
-
AttachmentSoapDO =
|
60
|
-
WikiPageSoapDO =
|
61
|
-
WikiPageSoapRow =
|
23
|
+
AttachmentSoapDO = TFType.new(:attachment_file_id,:attachment_file_name,:attachment_mime_type,:created_by,:created_date,:id,:last_modified_by,:last_modified_date,:version, :attributes!)
|
24
|
+
WikiPageSoapDO = TFType.new(:created_by,:created_date,:date_version_created,:folder_id,:id,:last_modified_by,:last_modified_date,:path,:title,:version,:version_comment,:version_created_by,:wiki_page_version,:wiki_text, :attributes!)
|
25
|
+
WikiPageSoapRow = TFType.new(:date_version_created,:id,:version_created_by,:wiki_page_name,:wiki_page_version, :attributes!)
|
62
26
|
|
63
27
|
end # module WikiApp
|
64
28
|
|
data/lib/teamforge/version.rb
CHANGED
data/lib/teamforge.rb
CHANGED
@@ -2,9 +2,12 @@ require "savon"
|
|
2
2
|
require "time"
|
3
3
|
require "teamforge/ctfsoap"
|
4
4
|
require "teamforge/version"
|
5
|
+
require "teamforge/tfsoaprequest"
|
6
|
+
require "teamforge/tftype"
|
5
7
|
require "teamforge/services/collabnet"
|
6
8
|
|
7
9
|
|
10
|
+
|
8
11
|
module TeamForge
|
9
12
|
|
10
13
|
SERVICE_NAMESPACE="http://schema.open.collab.net/sfee50/soap60/service"
|
@@ -35,7 +38,7 @@ module TeamForge
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def self.server
|
38
|
-
@
|
41
|
+
@server
|
39
42
|
end
|
40
43
|
|
41
44
|
def self.server=(server)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamforge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,20 +9,20 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-10 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153451120 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
description: A SOAP wrapper to communicate with TeamForge WebServices
|
24
|
+
version_requirements: *2153451120
|
25
|
+
description: A Ruby SOAP wrapper to communicate with TeamForge WebServices
|
26
26
|
email: pwolf@collab.net
|
27
27
|
executables: []
|
28
28
|
extensions: []
|
@@ -46,6 +46,8 @@ files:
|
|
46
46
|
- lib/teamforge/services/taskapp.rb
|
47
47
|
- lib/teamforge/services/trackerapp.rb
|
48
48
|
- lib/teamforge/services/wikiapp.rb
|
49
|
+
- lib/teamforge/tfsoaprequest.rb
|
50
|
+
- lib/teamforge/tftype.rb
|
49
51
|
- lib/teamforge/version.rb
|
50
52
|
- lib/teamforge.rb
|
51
53
|
- MIT-LICENSE
|