tracker_api 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +11 -2
  4. data/lib/tracker_api/client.rb +26 -1
  5. data/lib/tracker_api/endpoints/activity.rb +38 -0
  6. data/lib/tracker_api/endpoints/epic.rb +1 -1
  7. data/lib/tracker_api/endpoints/epics.rb +1 -1
  8. data/lib/tracker_api/endpoints/me.rb +1 -1
  9. data/lib/tracker_api/endpoints/memberships.rb +1 -1
  10. data/lib/tracker_api/endpoints/notifications.rb +20 -0
  11. data/lib/tracker_api/endpoints/story.rb +8 -0
  12. data/lib/tracker_api/endpoints/tasks.rb +1 -1
  13. data/lib/tracker_api/resources/activity.rb +24 -0
  14. data/lib/tracker_api/resources/base.rb +71 -0
  15. data/lib/tracker_api/resources/change.rb +15 -0
  16. data/lib/tracker_api/resources/epic.rb +0 -2
  17. data/lib/tracker_api/resources/iteration.rb +4 -0
  18. data/lib/tracker_api/resources/me.rb +0 -2
  19. data/lib/tracker_api/resources/membership_summary.rb +0 -2
  20. data/lib/tracker_api/resources/notification.rb +26 -0
  21. data/lib/tracker_api/resources/person.rb +0 -2
  22. data/lib/tracker_api/resources/primary_resource.rb +13 -0
  23. data/lib/tracker_api/resources/project.rb +26 -3
  24. data/lib/tracker_api/resources/project_membership.rb +0 -2
  25. data/lib/tracker_api/resources/story.rb +21 -2
  26. data/lib/tracker_api/resources/task.rb +0 -2
  27. data/lib/tracker_api/version.rb +1 -1
  28. data/lib/tracker_api.rb +7 -0
  29. data/test/client_test.rb +45 -1
  30. data/test/project_test.rb +50 -0
  31. data/test/story_test.rb +50 -1
  32. data/test/vcr/cassettes/client_done_iterations_with_pagination.json +1 -1
  33. data/test/vcr/cassettes/client_get_limited_stories_with_no_pagination.json +1 -0
  34. data/test/vcr/cassettes/create_story.json +1 -0
  35. data/test/vcr/cassettes/get_activity.json +148 -0
  36. data/test/vcr/cassettes/get_all_notifications.json +50 -0
  37. data/test/vcr/cassettes/get_done_iterations.json +1 -1
  38. data/test/vcr/cassettes/get_iteration_by_number.json +1 -0
  39. data/test/vcr/cassettes/get_my_activities.json +1 -0
  40. data/test/vcr/cassettes/get_project_activity.json +1 -0
  41. data/test/vcr/cassettes/get_story.json +1 -0
  42. data/test/vcr/cassettes/get_story_activity.json +1 -0
  43. data/test/vcr/cassettes/get_tasks_when_stories_filtered.json +1 -0
  44. data/test/vcr/cassettes/get_unscheduled_story.json +1 -0
  45. data/test/vcr/cassettes/save_story.json +1 -0
  46. data/test/vcr/cassettes/save_story_with_multiple_changes.json +1 -0
  47. data/test/vcr/cassettes/update_story_to_create_activity.json +1 -0
  48. data/tracker_api.gemspec +3 -2
  49. metadata +101 -38
metadata CHANGED
@@ -1,167 +1,195 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracker_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Forest Carlisle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-08 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: awesome_print
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: vcr
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: excon
84
+ name: multi_json
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: multi_json
98
+ name: addressable
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
- type: :development
104
+ type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: addressable
112
+ name: virtus
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: virtus
126
+ name: faraday
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.9.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.9.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: faraday_middleware
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - '>='
143
+ - - ">="
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - '>='
150
+ - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
- name: faraday
154
+ name: excon
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
- - - ~>
157
+ - - ">="
144
158
  - !ruby/object:Gem::Version
145
- version: 0.9.0
159
+ version: '0'
146
160
  type: :runtime
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - ~>
164
+ - - ">="
151
165
  - !ruby/object:Gem::Version
152
- version: 0.9.0
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
- name: faraday_middleware
168
+ name: activesupport
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: activemodel
155
183
  requirement: !ruby/object:Gem::Requirement
156
184
  requirements:
157
- - - '>='
185
+ - - ">="
158
186
  - !ruby/object:Gem::Version
159
187
  version: '0'
160
188
  type: :runtime
161
189
  prerelease: false
162
190
  version_requirements: !ruby/object:Gem::Requirement
163
191
  requirements:
164
- - - '>='
192
+ - - ">="
165
193
  - !ruby/object:Gem::Version
166
194
  version: '0'
167
195
  description: This gem allows you to easily use the Pivotal Tracker v5 API.
@@ -171,8 +199,8 @@ executables: []
171
199
  extensions: []
172
200
  extra_rdoc_files: []
173
201
  files:
174
- - .gitignore
175
- - .travis.yml
202
+ - ".gitignore"
203
+ - ".travis.yml"
176
204
  - CHANGELOG.md
177
205
  - Gemfile
178
206
  - LICENSE.txt
@@ -180,11 +208,13 @@ files:
180
208
  - Rakefile
181
209
  - lib/tracker_api.rb
182
210
  - lib/tracker_api/client.rb
211
+ - lib/tracker_api/endpoints/activity.rb
183
212
  - lib/tracker_api/endpoints/epic.rb
184
213
  - lib/tracker_api/endpoints/epics.rb
185
214
  - lib/tracker_api/endpoints/iterations.rb
186
215
  - lib/tracker_api/endpoints/me.rb
187
216
  - lib/tracker_api/endpoints/memberships.rb
217
+ - lib/tracker_api/endpoints/notifications.rb
188
218
  - lib/tracker_api/endpoints/project.rb
189
219
  - lib/tracker_api/endpoints/projects.rb
190
220
  - lib/tracker_api/endpoints/stories.rb
@@ -193,12 +223,17 @@ files:
193
223
  - lib/tracker_api/error.rb
194
224
  - lib/tracker_api/logger.rb
195
225
  - lib/tracker_api/resources/account.rb
226
+ - lib/tracker_api/resources/activity.rb
227
+ - lib/tracker_api/resources/base.rb
228
+ - lib/tracker_api/resources/change.rb
196
229
  - lib/tracker_api/resources/epic.rb
197
230
  - lib/tracker_api/resources/iteration.rb
198
231
  - lib/tracker_api/resources/label.rb
199
232
  - lib/tracker_api/resources/me.rb
200
233
  - lib/tracker_api/resources/membership_summary.rb
234
+ - lib/tracker_api/resources/notification.rb
201
235
  - lib/tracker_api/resources/person.rb
236
+ - lib/tracker_api/resources/primary_resource.rb
202
237
  - lib/tracker_api/resources/project.rb
203
238
  - lib/tracker_api/resources/project_membership.rb
204
239
  - lib/tracker_api/resources/story.rb
@@ -211,16 +246,30 @@ files:
211
246
  - test/story_test.rb
212
247
  - test/vcr/cassettes/client_done_iterations_with_pagination.json
213
248
  - test/vcr/cassettes/client_get_all_stories_with_pagination.json
249
+ - test/vcr/cassettes/client_get_limited_stories_with_no_pagination.json
214
250
  - test/vcr/cassettes/client_get_single_story_by_story_id.json
251
+ - test/vcr/cassettes/create_story.json
252
+ - test/vcr/cassettes/get_activity.json
253
+ - test/vcr/cassettes/get_all_notifications.json
215
254
  - test/vcr/cassettes/get_all_projects.json
216
255
  - test/vcr/cassettes/get_current_iteration.json
217
256
  - test/vcr/cassettes/get_done_iterations.json
218
257
  - test/vcr/cassettes/get_epics.json
258
+ - test/vcr/cassettes/get_iteration_by_number.json
219
259
  - test/vcr/cassettes/get_me.json
260
+ - test/vcr/cassettes/get_my_activities.json
220
261
  - test/vcr/cassettes/get_project.json
262
+ - test/vcr/cassettes/get_project_activity.json
221
263
  - test/vcr/cassettes/get_project_with_epics.json
264
+ - test/vcr/cassettes/get_story.json
265
+ - test/vcr/cassettes/get_story_activity.json
222
266
  - test/vcr/cassettes/get_tasks.json
267
+ - test/vcr/cassettes/get_tasks_when_stories_filtered.json
223
268
  - test/vcr/cassettes/get_unscheduled_stories.json
269
+ - test/vcr/cassettes/get_unscheduled_story.json
270
+ - test/vcr/cassettes/save_story.json
271
+ - test/vcr/cassettes/save_story_with_multiple_changes.json
272
+ - test/vcr/cassettes/update_story_to_create_activity.json
224
273
  - tracker_api.gemspec
225
274
  homepage: https://github.com/dashofcode/tracker_api
226
275
  licenses:
@@ -232,17 +281,17 @@ require_paths:
232
281
  - lib
233
282
  required_ruby_version: !ruby/object:Gem::Requirement
234
283
  requirements:
235
- - - '>='
284
+ - - ">="
236
285
  - !ruby/object:Gem::Version
237
286
  version: '0'
238
287
  required_rubygems_version: !ruby/object:Gem::Requirement
239
288
  requirements:
240
- - - '>='
289
+ - - ">="
241
290
  - !ruby/object:Gem::Version
242
291
  version: '0'
243
292
  requirements: []
244
293
  rubyforge_project:
245
- rubygems_version: 2.0.14
294
+ rubygems_version: 2.2.2
246
295
  signing_key:
247
296
  specification_version: 4
248
297
  summary: API client for the Pivotal Tracker v5 API
@@ -253,13 +302,27 @@ test_files:
253
302
  - test/story_test.rb
254
303
  - test/vcr/cassettes/client_done_iterations_with_pagination.json
255
304
  - test/vcr/cassettes/client_get_all_stories_with_pagination.json
305
+ - test/vcr/cassettes/client_get_limited_stories_with_no_pagination.json
256
306
  - test/vcr/cassettes/client_get_single_story_by_story_id.json
307
+ - test/vcr/cassettes/create_story.json
308
+ - test/vcr/cassettes/get_activity.json
309
+ - test/vcr/cassettes/get_all_notifications.json
257
310
  - test/vcr/cassettes/get_all_projects.json
258
311
  - test/vcr/cassettes/get_current_iteration.json
259
312
  - test/vcr/cassettes/get_done_iterations.json
260
313
  - test/vcr/cassettes/get_epics.json
314
+ - test/vcr/cassettes/get_iteration_by_number.json
261
315
  - test/vcr/cassettes/get_me.json
316
+ - test/vcr/cassettes/get_my_activities.json
262
317
  - test/vcr/cassettes/get_project.json
318
+ - test/vcr/cassettes/get_project_activity.json
263
319
  - test/vcr/cassettes/get_project_with_epics.json
320
+ - test/vcr/cassettes/get_story.json
321
+ - test/vcr/cassettes/get_story_activity.json
264
322
  - test/vcr/cassettes/get_tasks.json
323
+ - test/vcr/cassettes/get_tasks_when_stories_filtered.json
265
324
  - test/vcr/cassettes/get_unscheduled_stories.json
325
+ - test/vcr/cassettes/get_unscheduled_story.json
326
+ - test/vcr/cassettes/save_story.json
327
+ - test/vcr/cassettes/save_story_with_multiple_changes.json
328
+ - test/vcr/cassettes/update_story_to_create_activity.json