txgh-server 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/txgh-server/application.rb +1 -2
- data/lib/txgh-server/triggers/pull_handler.rb +12 -0
- data/lib/txgh-server/triggers/push_handler.rb +12 -0
- data/lib/txgh-server/version.rb +1 -1
- data/lib/txgh-server/webhooks/github/delete_attributes.rb +5 -1
- data/lib/txgh-server/webhooks/github/push_attributes.rb +5 -3
- data/lib/txgh-server/webhooks/github/push_handler.rb +20 -6
- data/lib/txgh-server/webhooks/transifex/hook_handler.rb +16 -2
- data/spec/application_spec.rb +8 -6
- data/spec/integration/cassettes/pull.yml +243 -6
- data/spec/integration/cassettes/push.yml +303 -101
- data/spec/integration/cassettes/transifex_hook_endpoint.yml +218 -16
- data/spec/webhooks/github/push_handler_spec.rb +4 -0
- data/spec/webhooks/transifex/hook_handler_spec.rb +15 -3
- data/txgh-server.gemspec +2 -2
- metadata +5 -5
@@ -1,84 +1,5 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.github.com/repos/txgh-bot/txgh-test-resources/git/refs/heads/master
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- application/vnd.github.v3+json
|
12
|
-
User-Agent:
|
13
|
-
- Octokit Ruby Gem 4.3.0
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Authorization:
|
17
|
-
- token <GITHUB_TOKEN>
|
18
|
-
Accept-Encoding:
|
19
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Server:
|
26
|
-
- GitHub.com
|
27
|
-
Date:
|
28
|
-
- Wed, 28 Sep 2016 18:33:51 GMT
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
Transfer-Encoding:
|
32
|
-
- chunked
|
33
|
-
Status:
|
34
|
-
- 200 OK
|
35
|
-
X-Ratelimit-Limit:
|
36
|
-
- '5000'
|
37
|
-
X-Ratelimit-Remaining:
|
38
|
-
- '4995'
|
39
|
-
X-Ratelimit-Reset:
|
40
|
-
- '1475091178'
|
41
|
-
Cache-Control:
|
42
|
-
- private, max-age=60, s-maxage=60
|
43
|
-
Vary:
|
44
|
-
- Accept, Authorization, Cookie, X-GitHub-OTP
|
45
|
-
- Accept-Encoding
|
46
|
-
Etag:
|
47
|
-
- W/"a5fe675407899fa4460005cce07b9fe2"
|
48
|
-
Last-Modified:
|
49
|
-
- Mon, 11 Jan 2016 23:45:43 GMT
|
50
|
-
X-Poll-Interval:
|
51
|
-
- '300'
|
52
|
-
X-Oauth-Scopes:
|
53
|
-
- public_repo
|
54
|
-
X-Accepted-Oauth-Scopes:
|
55
|
-
- ''
|
56
|
-
X-Github-Media-Type:
|
57
|
-
- github.v3; format=json
|
58
|
-
Access-Control-Expose-Headers:
|
59
|
-
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
60
|
-
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
61
|
-
Access-Control-Allow-Origin:
|
62
|
-
- "*"
|
63
|
-
Content-Security-Policy:
|
64
|
-
- default-src 'none'
|
65
|
-
Strict-Transport-Security:
|
66
|
-
- max-age=31536000; includeSubdomains; preload
|
67
|
-
X-Content-Type-Options:
|
68
|
-
- nosniff
|
69
|
-
X-Frame-Options:
|
70
|
-
- deny
|
71
|
-
X-Xss-Protection:
|
72
|
-
- 1; mode=block
|
73
|
-
X-Served-By:
|
74
|
-
- edf23fdc48375d9066b698b8d98062e9
|
75
|
-
X-Github-Request-Id:
|
76
|
-
- 04358C36:65A5:5E2E121:57EC0D0F
|
77
|
-
body:
|
78
|
-
encoding: UTF-8
|
79
|
-
string: '{"ref":"refs/heads/master","url":"https://api.github.com/repos/txgh-bot/txgh-test-resources/git/refs/heads/master","object":{"sha":"f3edb21f027b70974750649ba29b0090e410ecde","type":"commit","url":"https://api.github.com/repos/txgh-bot/txgh-test-resources/git/commits/f3edb21f027b70974750649ba29b0090e410ecde"}}'
|
80
|
-
http_version:
|
81
|
-
recorded_at: Wed, 28 Sep 2016 18:33:51 GMT
|
82
3
|
- request:
|
83
4
|
method: get
|
84
5
|
uri: https://api.github.com/repos/txgh-bot/txgh-test-resources/contents/sample.po?ref=heads/master
|
@@ -104,7 +25,7 @@ http_interactions:
|
|
104
25
|
Server:
|
105
26
|
- GitHub.com
|
106
27
|
Date:
|
107
|
-
-
|
28
|
+
- Tue, 04 Oct 2016 21:42:32 GMT
|
108
29
|
Content-Type:
|
109
30
|
- application/json; charset=utf-8
|
110
31
|
Transfer-Encoding:
|
@@ -114,9 +35,9 @@ http_interactions:
|
|
114
35
|
X-Ratelimit-Limit:
|
115
36
|
- '5000'
|
116
37
|
X-Ratelimit-Remaining:
|
117
|
-
- '
|
38
|
+
- '4997'
|
118
39
|
X-Ratelimit-Reset:
|
119
|
-
- '
|
40
|
+
- '1475620950'
|
120
41
|
Cache-Control:
|
121
42
|
- private, max-age=60, s-maxage=60
|
122
43
|
Vary:
|
@@ -148,14 +69,14 @@ http_interactions:
|
|
148
69
|
X-Xss-Protection:
|
149
70
|
- 1; mode=block
|
150
71
|
X-Served-By:
|
151
|
-
-
|
72
|
+
- 065b43cd9674091fec48a221b420fbb3
|
152
73
|
X-Github-Request-Id:
|
153
|
-
- 04358C36:
|
74
|
+
- 04358C36:6823:3A08B17:57F42247
|
154
75
|
body:
|
155
76
|
encoding: UTF-8
|
156
77
|
string: '{"name":"sample.po","path":"sample.po","sha":"a93e31a00137e0bd23db5bc7720568f8e908b2b6","size":855,"url":"https://api.github.com/repos/txgh-bot/txgh-test-resources/contents/sample.po?ref=heads/master","html_url":"https://github.com/txgh-bot/txgh-test-resources/blob/heads/master/sample.po","git_url":"https://api.github.com/repos/txgh-bot/txgh-test-resources/git/blobs/a93e31a00137e0bd23db5bc7720568f8e908b2b6","download_url":"https://raw.githubusercontent.com/txgh-bot/txgh-test-resources/heads/master/sample.po","type":"file","content":"IyBUcmFuc2xhdGlvbiBmaWxlIGZvciBUcmFuc2lmZXguCiMgQ29weXJpZ2h0\nIChDKSAyMDA3LTIwMTAgSW5kaWZleCBMdGQuCiMgVGhpcyBmaWxlIGlzIGRp\nc3RyaWJ1dGVkIHVuZGVyIHRoZSBzYW1lIGxpY2Vuc2UgYXMgdGhlIFRyYW5z\naWZleCBwYWNrYWdlLgojCiMgVHJhbnNsYXRvcnM6Cm1zZ2lkICIiCm1zZ3N0\nciAiIgoiUHJvamVjdC1JZC1WZXJzaW9uOiBUcmFuc2lmZXhcbiIKIlJlcG9y\ndC1Nc2dpZC1CdWdzLVRvOiBcbiIKIlBPVC1DcmVhdGlvbi1EYXRlOiAyMDE1\nLTAyLTE3IDIwOjEwKzAwMDBcbiIKIlBPLVJldmlzaW9uLURhdGU6IDIwMTMt\nMTAtMjIgMTA6NTcrMDAwMFxuIgoiTGFzdC1UcmFuc2xhdG9yOiBJbGlhcy1E\naW1pdHJpb3MgVnJhY2huaXNcbiIKIkxhbmd1YWdlLVRlYW06IExBTkdVQUdF\nIDxMTEBsaS5vcmc+XG4iCiJMYW5ndWFnZTogZW5cbiIKIk1JTUUtVmVyc2lv\nbjogMS4wXG4iCiJDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9\nVVRGLThcbiIKIkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDhiaXRcbiIK\nIlBsdXJhbC1Gb3JtczogbnBsdXJhbHM9MjsgcGx1cmFsPShuICE9IDEpO1xu\nIgptc2dpZCAiT25lIgptc2dzdHIgIk9uZSIKbXNnaWQgIlR3byIKbXNnc3Ry\nICJUd28iCm1zZ2lkICJUaHJlZSIKbXNnc3RyICJUaHJlZSIKbXNnaWQgIkZv\ndXIiCm1zZ3N0ciAiRm91ciIKbXNnaWQgIkZpdmUiCm1zZ3N0ciAiRml2ZSIK\nbXNnaWQgIlNpeCIKbXNnc3RyICJTaXgiCm1zZ2lkICJTZXZlbiIKbXNnc3Ry\nICJTZXZlbiIKbXNnaWQgIkVpZ2h0Igptc2dzdHIgIkVpZ2h0Igptc2dpZCAi\nTmluZSIKbXNnc3RyICJOaW5lIgptc2dpZCAiVGVuIgptc2dzdHIgIlRlbiIK\n","encoding":"base64","_links":{"self":"https://api.github.com/repos/txgh-bot/txgh-test-resources/contents/sample.po?ref=heads/master","git":"https://api.github.com/repos/txgh-bot/txgh-test-resources/git/blobs/a93e31a00137e0bd23db5bc7720568f8e908b2b6","html":"https://github.com/txgh-bot/txgh-test-resources/blob/heads/master/sample.po"}}'
|
157
78
|
http_version:
|
158
|
-
recorded_at:
|
79
|
+
recorded_at: Tue, 04 Oct 2016 21:42:32 GMT
|
159
80
|
- request:
|
160
81
|
method: get
|
161
82
|
uri: https://txgh.bot:<TRANSIFEX_PASSWORD>@www.transifex.com/api/2/project/test-project-88/resource/samplepo-heads_master/
|
@@ -177,7 +98,7 @@ http_interactions:
|
|
177
98
|
Server:
|
178
99
|
- nginx
|
179
100
|
Date:
|
180
|
-
-
|
101
|
+
- Tue, 04 Oct 2016 21:42:32 GMT
|
181
102
|
Content-Type:
|
182
103
|
- application/json; charset=utf-8
|
183
104
|
Transfer-Encoding:
|
@@ -190,9 +111,9 @@ http_interactions:
|
|
190
111
|
Content-Language:
|
191
112
|
- en
|
192
113
|
Expires:
|
193
|
-
-
|
114
|
+
- Tue, 04 Oct 2016 21:42:32 GMT
|
194
115
|
Last-Modified:
|
195
|
-
-
|
116
|
+
- Tue, 04 Oct 2016 21:42:32 GMT
|
196
117
|
Cache-Control:
|
197
118
|
- max-age=0
|
198
119
|
X-Frame-Options:
|
@@ -205,7 +126,7 @@ http_interactions:
|
|
205
126
|
\n \"i18n_type\": \"PO\", \n \"priority\": \"1\", \n \"slug\": \"samplepo-heads_master\",
|
206
127
|
\n \"categories\": [\n \"\"\n ]\n}"
|
207
128
|
http_version:
|
208
|
-
recorded_at:
|
129
|
+
recorded_at: Tue, 04 Oct 2016 21:42:32 GMT
|
209
130
|
- request:
|
210
131
|
method: get
|
211
132
|
uri: https://txgh.bot:<TRANSIFEX_PASSWORD>@www.transifex.com/api/2/project/test-project-88/resource/samplepo-heads_master/
|
@@ -227,7 +148,7 @@ http_interactions:
|
|
227
148
|
Server:
|
228
149
|
- nginx
|
229
150
|
Date:
|
230
|
-
-
|
151
|
+
- Tue, 04 Oct 2016 21:42:33 GMT
|
231
152
|
Content-Type:
|
232
153
|
- application/json; charset=utf-8
|
233
154
|
Transfer-Encoding:
|
@@ -240,9 +161,9 @@ http_interactions:
|
|
240
161
|
Content-Language:
|
241
162
|
- en
|
242
163
|
Expires:
|
243
|
-
-
|
164
|
+
- Tue, 04 Oct 2016 21:42:33 GMT
|
244
165
|
Last-Modified:
|
245
|
-
-
|
166
|
+
- Tue, 04 Oct 2016 21:42:33 GMT
|
246
167
|
Cache-Control:
|
247
168
|
- max-age=0
|
248
169
|
X-Frame-Options:
|
@@ -255,7 +176,7 @@ http_interactions:
|
|
255
176
|
\n \"i18n_type\": \"PO\", \n \"priority\": \"1\", \n \"slug\": \"samplepo-heads_master\",
|
256
177
|
\n \"categories\": [\n \"\"\n ]\n}"
|
257
178
|
http_version:
|
258
|
-
recorded_at:
|
179
|
+
recorded_at: Tue, 04 Oct 2016 21:42:33 GMT
|
259
180
|
- request:
|
260
181
|
method: put
|
261
182
|
uri: https://txgh.bot:<TRANSIFEX_PASSWORD>@www.transifex.com/api/2/project/test-project-88/resource/samplepo-heads_master/
|
@@ -279,7 +200,7 @@ http_interactions:
|
|
279
200
|
Server:
|
280
201
|
- nginx
|
281
202
|
Date:
|
282
|
-
-
|
203
|
+
- Tue, 04 Oct 2016 21:42:34 GMT
|
283
204
|
Content-Type:
|
284
205
|
- text/plain
|
285
206
|
Transfer-Encoding:
|
@@ -292,9 +213,9 @@ http_interactions:
|
|
292
213
|
Content-Language:
|
293
214
|
- en
|
294
215
|
Expires:
|
295
|
-
-
|
216
|
+
- Tue, 04 Oct 2016 21:42:34 GMT
|
296
217
|
Last-Modified:
|
297
|
-
-
|
218
|
+
- Tue, 04 Oct 2016 21:42:34 GMT
|
298
219
|
Cache-Control:
|
299
220
|
- max-age=0
|
300
221
|
X-Frame-Options:
|
@@ -305,7 +226,7 @@ http_interactions:
|
|
305
226
|
encoding: UTF-8
|
306
227
|
string: OK
|
307
228
|
http_version:
|
308
|
-
recorded_at:
|
229
|
+
recorded_at: Tue, 04 Oct 2016 21:42:34 GMT
|
309
230
|
- request:
|
310
231
|
method: put
|
311
232
|
uri: https://txgh.bot:<TRANSIFEX_PASSWORD>@www.transifex.com/api/2/project/test-project-88/resource/samplepo-heads_master/content/
|
@@ -344,7 +265,7 @@ http_interactions:
|
|
344
265
|
Server:
|
345
266
|
- nginx
|
346
267
|
Date:
|
347
|
-
-
|
268
|
+
- Tue, 04 Oct 2016 21:42:35 GMT
|
348
269
|
Content-Type:
|
349
270
|
- application/json; charset=utf-8
|
350
271
|
Transfer-Encoding:
|
@@ -357,9 +278,9 @@ http_interactions:
|
|
357
278
|
Content-Language:
|
358
279
|
- en
|
359
280
|
Expires:
|
360
|
-
-
|
281
|
+
- Tue, 04 Oct 2016 21:42:35 GMT
|
361
282
|
Last-Modified:
|
362
|
-
-
|
283
|
+
- Tue, 04 Oct 2016 21:42:35 GMT
|
363
284
|
Cache-Control:
|
364
285
|
- max-age=0
|
365
286
|
X-Frame-Options:
|
@@ -371,5 +292,286 @@ http_interactions:
|
|
371
292
|
string: "{\n \"strings_added\": 0, \n \"strings_updated\": 0, \n \"strings_delete\":
|
372
293
|
0, \n \"redirect\": \"/txgh-test/test-project-88/samplepo-heads_master/\"\n}"
|
373
294
|
http_version:
|
374
|
-
recorded_at:
|
295
|
+
recorded_at: Tue, 04 Oct 2016 21:42:35 GMT
|
296
|
+
- request:
|
297
|
+
method: get
|
298
|
+
uri: https://txgh.bot:<TRANSIFEX_PASSWORD>@www.transifex.com/api/2/project/test-project-88/resources/
|
299
|
+
body:
|
300
|
+
encoding: US-ASCII
|
301
|
+
string: ''
|
302
|
+
headers:
|
303
|
+
User-Agent:
|
304
|
+
- Faraday v0.9.2
|
305
|
+
Accept:
|
306
|
+
- application/json
|
307
|
+
Accept-Encoding:
|
308
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
309
|
+
response:
|
310
|
+
status:
|
311
|
+
code: 200
|
312
|
+
message: OK
|
313
|
+
headers:
|
314
|
+
Server:
|
315
|
+
- nginx
|
316
|
+
Date:
|
317
|
+
- Tue, 04 Oct 2016 21:42:35 GMT
|
318
|
+
Content-Type:
|
319
|
+
- application/json; charset=utf-8
|
320
|
+
Transfer-Encoding:
|
321
|
+
- chunked
|
322
|
+
Connection:
|
323
|
+
- keep-alive
|
324
|
+
Vary:
|
325
|
+
- Accept-Encoding
|
326
|
+
- Authorization, Host, Accept-Language, Cookie
|
327
|
+
Content-Language:
|
328
|
+
- en
|
329
|
+
Expires:
|
330
|
+
- Tue, 04 Oct 2016 21:42:35 GMT
|
331
|
+
Last-Modified:
|
332
|
+
- Tue, 04 Oct 2016 21:42:35 GMT
|
333
|
+
Cache-Control:
|
334
|
+
- max-age=0
|
335
|
+
X-Frame-Options:
|
336
|
+
- SAMEORIGIN
|
337
|
+
X-Content-Type-Options:
|
338
|
+
- nosniff
|
339
|
+
body:
|
340
|
+
encoding: UTF-8
|
341
|
+
string: "[\n {\n \"source_language_code\": \"en\", \n \"name\":
|
342
|
+
\"sample.po\", \n \"i18n_type\": \"PO\", \n \"priority\": \"1\",
|
343
|
+
\n \"slug\": \"samplepo-heads_master\", \n \"categories\": [\n
|
344
|
+
\ \"\"\n ]\n }, \n {\n \"source_language_code\":
|
345
|
+
\"en\", \n \"name\": \"sample.po\", \n \"i18n_type\": \"PO\",
|
346
|
+
\n \"priority\": \"0\", \n \"slug\": \"samplepo\", \n \"categories\":
|
347
|
+
[\n \"branch:refs/tags/L10N\", \n \"author:Txgh Bot\"\n
|
348
|
+
\ ]\n }, \n {\n \"source_language_code\": \"en\", \n \"name\":
|
349
|
+
\"test.yml\", \n \"i18n_type\": \"YML\", \n \"priority\": \"1\",
|
350
|
+
\n \"slug\": \"testyml-heads_change_some_shizz\", \n \"categories\":
|
351
|
+
[\n \"author:Cameron_Dutro branch:heads/change_some_shizz\"\n ]\n
|
352
|
+
\ }, \n {\n \"source_language_code\": \"en\", \n \"name\":
|
353
|
+
\"test.yml\", \n \"i18n_type\": \"YML\", \n \"priority\": \"0\",
|
354
|
+
\n \"slug\": \"testyml-heads_master\", \n \"categories\": [\n
|
355
|
+
\ \"branch:heads/master\"\n ]\n }\n]"
|
356
|
+
http_version:
|
357
|
+
recorded_at: Tue, 04 Oct 2016 21:42:36 GMT
|
358
|
+
- request:
|
359
|
+
method: get
|
360
|
+
uri: https://api.github.com/repos/txgh-bot/txgh-test-resources/git/refs/heads/master
|
361
|
+
body:
|
362
|
+
encoding: US-ASCII
|
363
|
+
string: ''
|
364
|
+
headers:
|
365
|
+
Accept:
|
366
|
+
- application/vnd.github.v3+json
|
367
|
+
User-Agent:
|
368
|
+
- Octokit Ruby Gem 4.3.0
|
369
|
+
Content-Type:
|
370
|
+
- application/json
|
371
|
+
Authorization:
|
372
|
+
- token <GITHUB_TOKEN>
|
373
|
+
Accept-Encoding:
|
374
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
375
|
+
response:
|
376
|
+
status:
|
377
|
+
code: 200
|
378
|
+
message: OK
|
379
|
+
headers:
|
380
|
+
Server:
|
381
|
+
- GitHub.com
|
382
|
+
Date:
|
383
|
+
- Tue, 04 Oct 2016 21:42:36 GMT
|
384
|
+
Content-Type:
|
385
|
+
- application/json; charset=utf-8
|
386
|
+
Transfer-Encoding:
|
387
|
+
- chunked
|
388
|
+
Status:
|
389
|
+
- 200 OK
|
390
|
+
X-Ratelimit-Limit:
|
391
|
+
- '5000'
|
392
|
+
X-Ratelimit-Remaining:
|
393
|
+
- '4996'
|
394
|
+
X-Ratelimit-Reset:
|
395
|
+
- '1475620950'
|
396
|
+
Cache-Control:
|
397
|
+
- private, max-age=60, s-maxage=60
|
398
|
+
Vary:
|
399
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
400
|
+
- Accept-Encoding
|
401
|
+
Etag:
|
402
|
+
- W/"a5fe675407899fa4460005cce07b9fe2"
|
403
|
+
Last-Modified:
|
404
|
+
- Mon, 11 Jan 2016 23:45:43 GMT
|
405
|
+
X-Poll-Interval:
|
406
|
+
- '300'
|
407
|
+
X-Oauth-Scopes:
|
408
|
+
- public_repo
|
409
|
+
X-Accepted-Oauth-Scopes:
|
410
|
+
- ''
|
411
|
+
X-Github-Media-Type:
|
412
|
+
- github.v3; format=json
|
413
|
+
Access-Control-Expose-Headers:
|
414
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
415
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
416
|
+
Access-Control-Allow-Origin:
|
417
|
+
- "*"
|
418
|
+
Content-Security-Policy:
|
419
|
+
- default-src 'none'
|
420
|
+
Strict-Transport-Security:
|
421
|
+
- max-age=31536000; includeSubdomains; preload
|
422
|
+
X-Content-Type-Options:
|
423
|
+
- nosniff
|
424
|
+
X-Frame-Options:
|
425
|
+
- deny
|
426
|
+
X-Xss-Protection:
|
427
|
+
- 1; mode=block
|
428
|
+
X-Served-By:
|
429
|
+
- d0b3c2c33a23690498aa8e70a435a259
|
430
|
+
X-Github-Request-Id:
|
431
|
+
- 04358C36:681B:440871C:57F4224C
|
432
|
+
body:
|
433
|
+
encoding: UTF-8
|
434
|
+
string: '{"ref":"refs/heads/master","url":"https://api.github.com/repos/txgh-bot/txgh-test-resources/git/refs/heads/master","object":{"sha":"f3edb21f027b70974750649ba29b0090e410ecde","type":"commit","url":"https://api.github.com/repos/txgh-bot/txgh-test-resources/git/commits/f3edb21f027b70974750649ba29b0090e410ecde"}}'
|
435
|
+
http_version:
|
436
|
+
recorded_at: Tue, 04 Oct 2016 21:42:36 GMT
|
437
|
+
- request:
|
438
|
+
method: get
|
439
|
+
uri: https://txgh.bot:<TRANSIFEX_PASSWORD>@www.transifex.com/api/2/project/test-project-88/resource/samplepo/stats/
|
440
|
+
body:
|
441
|
+
encoding: US-ASCII
|
442
|
+
string: ''
|
443
|
+
headers:
|
444
|
+
User-Agent:
|
445
|
+
- Faraday v0.9.2
|
446
|
+
Accept:
|
447
|
+
- application/json
|
448
|
+
Accept-Encoding:
|
449
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
450
|
+
response:
|
451
|
+
status:
|
452
|
+
code: 200
|
453
|
+
message: OK
|
454
|
+
headers:
|
455
|
+
Server:
|
456
|
+
- nginx
|
457
|
+
Date:
|
458
|
+
- Tue, 04 Oct 2016 21:42:36 GMT
|
459
|
+
Content-Type:
|
460
|
+
- application/json; charset=utf-8
|
461
|
+
Transfer-Encoding:
|
462
|
+
- chunked
|
463
|
+
Connection:
|
464
|
+
- keep-alive
|
465
|
+
Vary:
|
466
|
+
- Accept-Encoding
|
467
|
+
- Authorization, Host, Accept-Language, Cookie
|
468
|
+
Content-Language:
|
469
|
+
- en
|
470
|
+
Expires:
|
471
|
+
- Tue, 04 Oct 2016 21:42:36 GMT
|
472
|
+
Last-Modified:
|
473
|
+
- Tue, 04 Oct 2016 21:42:36 GMT
|
474
|
+
Cache-Control:
|
475
|
+
- max-age=0
|
476
|
+
X-Frame-Options:
|
477
|
+
- SAMEORIGIN
|
478
|
+
X-Content-Type-Options:
|
479
|
+
- nosniff
|
480
|
+
body:
|
481
|
+
encoding: UTF-8
|
482
|
+
string: "{\n \"el_GR\": {\n \"reviewed_percentage\": \"0%\", \n \"completed\":
|
483
|
+
\"0%\", \n \"untranslated_words\": 10, \n \"last_commiter\":
|
484
|
+
\"\", \n \"reviewed\": 0, \n \"translated_entities\": 0, \n
|
485
|
+
\ \"translated_words\": 0, \n \"last_update\": \"2016-01-19 19:08:25\",
|
486
|
+
\n \"untranslated_entities\": 10\n }, \n \"ru\": {\n \"reviewed_percentage\":
|
487
|
+
\"0%\", \n \"completed\": \"0%\", \n \"untranslated_words\":
|
488
|
+
10, \n \"last_commiter\": \"txgh.bot\", \n \"reviewed\": 0,
|
489
|
+
\n \"translated_entities\": 0, \n \"translated_words\": 0, \n
|
490
|
+
\ \"last_update\": \"2016-04-01 05:36:37\", \n \"untranslated_entities\":
|
491
|
+
10\n }, \n \"en\": {\n \"reviewed_percentage\": \"0%\", \n \"completed\":
|
492
|
+
\"100%\", \n \"untranslated_words\": 0, \n \"last_commiter\":
|
493
|
+
\"txgh.bot\", \n \"reviewed\": 0, \n \"translated_entities\":
|
494
|
+
10, \n \"translated_words\": 10, \n \"last_update\": \"2016-01-19
|
495
|
+
19:08:25\", \n \"untranslated_entities\": 0\n }\n}"
|
496
|
+
http_version:
|
497
|
+
recorded_at: Tue, 04 Oct 2016 21:42:36 GMT
|
498
|
+
- request:
|
499
|
+
method: post
|
500
|
+
uri: https://api.github.com/repos/txgh-bot/txgh-test-resources/statuses/f3edb21f027b70974750649ba29b0090e410ecde
|
501
|
+
body:
|
502
|
+
encoding: UTF-8
|
503
|
+
string: '{"context":"continuous-localization/txgh","target_url":"https://www.transifex.com//test-project-88/content","description":"10/30
|
504
|
+
translations complete.","state":"pending"}'
|
505
|
+
headers:
|
506
|
+
Accept:
|
507
|
+
- application/vnd.github.v3+json
|
508
|
+
User-Agent:
|
509
|
+
- Octokit Ruby Gem 4.3.0
|
510
|
+
Content-Type:
|
511
|
+
- application/json
|
512
|
+
Authorization:
|
513
|
+
- token <GITHUB_TOKEN>
|
514
|
+
Accept-Encoding:
|
515
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
516
|
+
response:
|
517
|
+
status:
|
518
|
+
code: 201
|
519
|
+
message: Created
|
520
|
+
headers:
|
521
|
+
Server:
|
522
|
+
- GitHub.com
|
523
|
+
Date:
|
524
|
+
- Tue, 04 Oct 2016 21:42:37 GMT
|
525
|
+
Content-Type:
|
526
|
+
- application/json; charset=utf-8
|
527
|
+
Content-Length:
|
528
|
+
- '1259'
|
529
|
+
Status:
|
530
|
+
- 201 Created
|
531
|
+
X-Ratelimit-Limit:
|
532
|
+
- '5000'
|
533
|
+
X-Ratelimit-Remaining:
|
534
|
+
- '4995'
|
535
|
+
X-Ratelimit-Reset:
|
536
|
+
- '1475620950'
|
537
|
+
Cache-Control:
|
538
|
+
- private, max-age=60, s-maxage=60
|
539
|
+
Vary:
|
540
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
541
|
+
- Accept-Encoding
|
542
|
+
Etag:
|
543
|
+
- '"6483028daa3a954b7246a97a01b90f7f"'
|
544
|
+
X-Oauth-Scopes:
|
545
|
+
- public_repo
|
546
|
+
X-Accepted-Oauth-Scopes:
|
547
|
+
- ''
|
548
|
+
Location:
|
549
|
+
- https://api.github.com/repos/txgh-bot/txgh-test-resources/statuses/f3edb21f027b70974750649ba29b0090e410ecde
|
550
|
+
X-Github-Media-Type:
|
551
|
+
- github.v3; format=json
|
552
|
+
Access-Control-Expose-Headers:
|
553
|
+
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
|
554
|
+
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
555
|
+
Access-Control-Allow-Origin:
|
556
|
+
- "*"
|
557
|
+
Content-Security-Policy:
|
558
|
+
- default-src 'none'
|
559
|
+
Strict-Transport-Security:
|
560
|
+
- max-age=31536000; includeSubdomains; preload
|
561
|
+
X-Content-Type-Options:
|
562
|
+
- nosniff
|
563
|
+
X-Frame-Options:
|
564
|
+
- deny
|
565
|
+
X-Xss-Protection:
|
566
|
+
- 1; mode=block
|
567
|
+
X-Served-By:
|
568
|
+
- 7efb7ae49588ef0269c6a1c1bd3721d9
|
569
|
+
X-Github-Request-Id:
|
570
|
+
- 04358C36:6817:11C8CB2:57F4224D
|
571
|
+
body:
|
572
|
+
encoding: UTF-8
|
573
|
+
string: '{"url":"https://api.github.com/repos/txgh-bot/txgh-test-resources/statuses/f3edb21f027b70974750649ba29b0090e410ecde","id":785751589,"state":"pending","description":"10/30
|
574
|
+
translations complete.","target_url":"https://www.transifex.com//test-project-88/content","context":"continuous-localization/txgh","created_at":"2016-10-04T21:42:37Z","updated_at":"2016-10-04T21:42:37Z","creator":{"login":"txgh-bot","id":16723366,"avatar_url":"https://avatars.githubusercontent.com/u/16723366?v=3","gravatar_id":"","url":"https://api.github.com/users/txgh-bot","html_url":"https://github.com/txgh-bot","followers_url":"https://api.github.com/users/txgh-bot/followers","following_url":"https://api.github.com/users/txgh-bot/following{/other_user}","gists_url":"https://api.github.com/users/txgh-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/txgh-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/txgh-bot/subscriptions","organizations_url":"https://api.github.com/users/txgh-bot/orgs","repos_url":"https://api.github.com/users/txgh-bot/repos","events_url":"https://api.github.com/users/txgh-bot/events{/privacy}","received_events_url":"https://api.github.com/users/txgh-bot/received_events","type":"User","site_admin":false}}'
|
575
|
+
http_version:
|
576
|
+
recorded_at: Tue, 04 Oct 2016 21:42:37 GMT
|
375
577
|
recorded_with: VCR 3.0.3
|