tracker_api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.travis.yml +12 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +57 -0
- data/Rakefile +18 -0
- data/lib/tracker_api.rb +39 -0
- data/lib/tracker_api/client.rb +71 -0
- data/lib/tracker_api/endpoints/epic.rb +20 -0
- data/lib/tracker_api/endpoints/epics.rb +22 -0
- data/lib/tracker_api/endpoints/iterations.rb +22 -0
- data/lib/tracker_api/endpoints/project.rb +21 -0
- data/lib/tracker_api/endpoints/projects.rb +22 -0
- data/lib/tracker_api/endpoints/stories.rb +22 -0
- data/lib/tracker_api/endpoints/story.rb +20 -0
- data/lib/tracker_api/error.rb +18 -0
- data/lib/tracker_api/logger.rb +31 -0
- data/lib/tracker_api/resources/account.rb +18 -0
- data/lib/tracker_api/resources/epic.rb +19 -0
- data/lib/tracker_api/resources/iteration.rb +23 -0
- data/lib/tracker_api/resources/label.rb +14 -0
- data/lib/tracker_api/resources/project.rb +85 -0
- data/lib/tracker_api/resources/story.rb +33 -0
- data/lib/tracker_api/resources/time_zone.rb +13 -0
- data/lib/tracker_api/version.rb +3 -0
- data/test/client_test.rb +61 -0
- data/test/minitest_helper.rb +30 -0
- data/test/project_test.rb +81 -0
- data/test/vcr/cassettes/get_all_projects.json +1 -0
- data/test/vcr/cassettes/get_current_iteration.json +1 -0
- data/test/vcr/cassettes/get_done_iterations.json +1 -0
- data/test/vcr/cassettes/get_epics.json +1 -0
- data/test/vcr/cassettes/get_project.json +1 -0
- data/test/vcr/cassettes/get_project_with_epics.json +1 -0
- data/test/vcr/cassettes/get_unscheduled_stories.json +1 -0
- data/tracker_api.gemspec +36 -0
- metadata +273 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"http_interactions":[{"request":{"method":"get","uri":"https://www.pivotaltracker.com/services/v5/projects/1027488/stories?with_state=unscheduled","body":{"encoding":"US-ASCII","string":""},"headers":{"User-Agent":["Ruby/2.0.0 (x86_64-darwin13.0.2; ruby) TrackerApi/0.0.1 Faraday/0.8.9"],"X-TrackerToken":["0de3ac29f13082f0c16ed76f3f3f6895"]}},"response":{"status":{"code":200,"message":null},"headers":{"content-type":["application/json; charset=utf-8"],"transfer-encoding":["chunked"],"connection":["close"],"status":["200"],"x-powered-by":["Phusion Passenger (mod_rails/mod_rack) 3.0.14"],"x-tracker-project-version":["1"],"cache-control":["private, max-age=0, must-revalidate"],"x-tracker-pagination-offset":["0"],"etag":["\"a514b80d7c48f36d9ab4109709ca7e31\""],"x-runtime":["22"],"x-tracker-pagination-returned":["4"],"x-tracker-pagination-total":["4"],"x-tracker-pagination-limit":["100"],"server":["nginx/1.2.2 + Phusion Passenger 3.0.14 (mod_rails/mod_rack)"],"access-control-allow-origin":["*"],"access-control-allow-credentials":["false"],"access-control-allow-methods":["GET, POST, PUT, DELETE, OPTIONS"],"access-control-allow-headers":["X-TrackerToken,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Tracker-Warn-Unless-Project-Version-Is"]},"body":{"encoding":"UTF-8","string":"[\n {\n \"name\": \"Product browsing pagination not working in IE6\",\n \"kind\": \"story\",\n \"project_id\": 1027488,\n \"id\": 66728084,\n \"owner_ids\": [\n\n ],\n \"current_state\": \"unscheduled\",\n \"updated_at\": \"2014-03-02T07:11:07Z\",\n \"created_at\": \"2014-02-17T00:00:00Z\",\n \"requested_by_id\": 1266314,\n \"labels\": [\n {\n \"name\": \"ie6\",\n \"kind\": \"label\",\n \"project_id\": 1027488,\n \"id\": 7849110,\n \"updated_at\": \"2014-03-02T07:11:07Z\",\n \"created_at\": \"2014-03-02T07:11:07Z\"\n }\n ],\n \"url\": \"https://www.pivotaltracker.com/story/show/66728084\",\n \"story_type\": \"bug\"\n },\n {\n \"name\": \"Integrate with automated order fullfillment system\",\n \"kind\": \"story\",\n \"project_id\": 1027488,\n \"id\": 66728086,\n \"owner_ids\": [\n\n ],\n \"current_state\": \"unscheduled\",\n \"updated_at\": \"2014-03-02T07:11:07Z\",\n \"created_at\": \"2014-02-17T00:00:00Z\",\n \"requested_by_id\": 1266314,\n \"labels\": [\n\n ],\n \"url\": \"https://www.pivotaltracker.com/story/show/66728086\",\n \"story_type\": \"feature\"\n },\n {\n \"name\": \"native iPhone app to allow product browsing and checkout\",\n \"kind\": \"story\",\n \"project_id\": 1027488,\n \"id\": 66728088,\n \"owner_ids\": [\n\n ],\n \"current_state\": \"unscheduled\",\n \"updated_at\": \"2014-03-02T07:11:07Z\",\n \"created_at\": \"2014-02-17T00:00:00Z\",\n \"requested_by_id\": 1266314,\n \"labels\": [\n {\n \"name\": \"epic\",\n \"kind\": \"label\",\n \"project_id\": 1027488,\n \"id\": 7849112,\n \"updated_at\": \"2014-03-02T07:11:07Z\",\n \"created_at\": \"2014-03-02T07:11:07Z\"\n }\n ],\n \"url\": \"https://www.pivotaltracker.com/story/show/66728088\",\n \"story_type\": \"feature\"\n },\n {\n \"name\": \"Facebook app, allowing users to share favorite products\",\n \"kind\": \"story\",\n \"project_id\": 1027488,\n \"id\": 66728090,\n \"owner_ids\": [\n\n ],\n \"current_state\": \"unscheduled\",\n \"updated_at\": \"2014-03-02T07:11:07Z\",\n \"created_at\": \"2014-02-17T00:00:00Z\",\n \"requested_by_id\": 1266314,\n \"labels\": [\n\n ],\n \"url\": \"https://www.pivotaltracker.com/story/show/66728090\",\n \"story_type\": \"feature\"\n }\n]"},"http_version":null},"recorded_at":"Sun, 23 Mar 2014 06:28:30 GMT"}],"recorded_with":"VCR 2.8.0"}
|
data/tracker_api.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'tracker_api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'tracker_api'
|
8
|
+
spec.version = TrackerApi::VERSION
|
9
|
+
spec.authors = ['Forest Carlisle']
|
10
|
+
spec.email = ['forestcarlisle@gmail.com']
|
11
|
+
spec.summary = %q{API client for the Pivotal Tracker v5 API}
|
12
|
+
spec.description = %q{This gem allows you to easily use the Pivotal Tracker v5 API.}
|
13
|
+
spec.homepage = ''
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
|
+
spec.add_development_dependency 'minitest'
|
24
|
+
spec.add_development_dependency 'awesome_print'
|
25
|
+
spec.add_development_dependency 'vcr'
|
26
|
+
spec.add_development_dependency 'multi_json'
|
27
|
+
spec.add_development_dependency 'byebug'
|
28
|
+
spec.add_development_dependency 'pry-byebug'
|
29
|
+
spec.add_development_dependency 'minitest-byebug'
|
30
|
+
|
31
|
+
spec.add_dependency 'addressable'
|
32
|
+
spec.add_dependency 'virtus'
|
33
|
+
spec.add_dependency 'faraday'
|
34
|
+
spec.add_dependency 'faraday_middleware'
|
35
|
+
# spec.add_dependency 'excon'
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,273 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tracker_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Forest Carlisle
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: awesome_print
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: multi_json
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: byebug
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry-byebug
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: minitest-byebug
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: addressable
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: virtus
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: faraday
|
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: faraday_middleware
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
description: This gem allows you to easily use the Pivotal Tracker v5 API.
|
196
|
+
email:
|
197
|
+
- forestcarlisle@gmail.com
|
198
|
+
executables: []
|
199
|
+
extensions: []
|
200
|
+
extra_rdoc_files: []
|
201
|
+
files:
|
202
|
+
- .gitignore
|
203
|
+
- .travis.yml
|
204
|
+
- CHANGELOG.md
|
205
|
+
- Gemfile
|
206
|
+
- LICENSE.txt
|
207
|
+
- README.md
|
208
|
+
- Rakefile
|
209
|
+
- lib/tracker_api.rb
|
210
|
+
- lib/tracker_api/client.rb
|
211
|
+
- lib/tracker_api/endpoints/epic.rb
|
212
|
+
- lib/tracker_api/endpoints/epics.rb
|
213
|
+
- lib/tracker_api/endpoints/iterations.rb
|
214
|
+
- lib/tracker_api/endpoints/project.rb
|
215
|
+
- lib/tracker_api/endpoints/projects.rb
|
216
|
+
- lib/tracker_api/endpoints/stories.rb
|
217
|
+
- lib/tracker_api/endpoints/story.rb
|
218
|
+
- lib/tracker_api/error.rb
|
219
|
+
- lib/tracker_api/logger.rb
|
220
|
+
- lib/tracker_api/resources/account.rb
|
221
|
+
- lib/tracker_api/resources/epic.rb
|
222
|
+
- lib/tracker_api/resources/iteration.rb
|
223
|
+
- lib/tracker_api/resources/label.rb
|
224
|
+
- lib/tracker_api/resources/project.rb
|
225
|
+
- lib/tracker_api/resources/story.rb
|
226
|
+
- lib/tracker_api/resources/time_zone.rb
|
227
|
+
- lib/tracker_api/version.rb
|
228
|
+
- test/client_test.rb
|
229
|
+
- test/minitest_helper.rb
|
230
|
+
- test/project_test.rb
|
231
|
+
- test/vcr/cassettes/get_all_projects.json
|
232
|
+
- test/vcr/cassettes/get_current_iteration.json
|
233
|
+
- test/vcr/cassettes/get_done_iterations.json
|
234
|
+
- test/vcr/cassettes/get_epics.json
|
235
|
+
- test/vcr/cassettes/get_project.json
|
236
|
+
- test/vcr/cassettes/get_project_with_epics.json
|
237
|
+
- test/vcr/cassettes/get_unscheduled_stories.json
|
238
|
+
- tracker_api.gemspec
|
239
|
+
homepage: ''
|
240
|
+
licenses:
|
241
|
+
- MIT
|
242
|
+
metadata: {}
|
243
|
+
post_install_message:
|
244
|
+
rdoc_options: []
|
245
|
+
require_paths:
|
246
|
+
- lib
|
247
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
248
|
+
requirements:
|
249
|
+
- - '>='
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
version: '0'
|
252
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
253
|
+
requirements:
|
254
|
+
- - '>='
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: '0'
|
257
|
+
requirements: []
|
258
|
+
rubyforge_project:
|
259
|
+
rubygems_version: 2.2.2
|
260
|
+
signing_key:
|
261
|
+
specification_version: 4
|
262
|
+
summary: API client for the Pivotal Tracker v5 API
|
263
|
+
test_files:
|
264
|
+
- test/client_test.rb
|
265
|
+
- test/minitest_helper.rb
|
266
|
+
- test/project_test.rb
|
267
|
+
- test/vcr/cassettes/get_all_projects.json
|
268
|
+
- test/vcr/cassettes/get_current_iteration.json
|
269
|
+
- test/vcr/cassettes/get_done_iterations.json
|
270
|
+
- test/vcr/cassettes/get_epics.json
|
271
|
+
- test/vcr/cassettes/get_project.json
|
272
|
+
- test/vcr/cassettes/get_project_with_epics.json
|
273
|
+
- test/vcr/cassettes/get_unscheduled_stories.json
|