github_api 0.3.4 → 0.3.5

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.
Files changed (138) hide show
  1. metadata +4 -140
  2. data/LICENSE.txt +0 -20
  3. data/README.rdoc +0 -228
  4. data/Rakefile +0 -52
  5. data/features/github_api.feature +0 -50
  6. data/features/step_definitions/github_api_steps.rb +0 -11
  7. data/features/support/env.rb +0 -13
  8. data/lib/github_api.rb +0 -73
  9. data/lib/github_api/api.rb +0 -175
  10. data/lib/github_api/api/utils.rb +0 -9
  11. data/lib/github_api/authorization.rb +0 -73
  12. data/lib/github_api/authorizations.rb +0 -119
  13. data/lib/github_api/cache_control.rb +0 -19
  14. data/lib/github_api/client.rb +0 -55
  15. data/lib/github_api/compatibility.rb +0 -23
  16. data/lib/github_api/configuration.rb +0 -96
  17. data/lib/github_api/connection.rb +0 -81
  18. data/lib/github_api/core_ext/array.rb +0 -14
  19. data/lib/github_api/core_ext/hash.rb +0 -42
  20. data/lib/github_api/error.rb +0 -35
  21. data/lib/github_api/events.rb +0 -202
  22. data/lib/github_api/gists.rb +0 -200
  23. data/lib/github_api/gists/comments.rb +0 -86
  24. data/lib/github_api/git_data.rb +0 -26
  25. data/lib/github_api/git_data/blobs.rb +0 -51
  26. data/lib/github_api/git_data/commits.rb +0 -78
  27. data/lib/github_api/git_data/references.rb +0 -113
  28. data/lib/github_api/git_data/tags.rb +0 -78
  29. data/lib/github_api/git_data/trees.rb +0 -89
  30. data/lib/github_api/issues.rb +0 -215
  31. data/lib/github_api/issues/comments.rb +0 -110
  32. data/lib/github_api/issues/events.rb +0 -50
  33. data/lib/github_api/issues/labels.rb +0 -191
  34. data/lib/github_api/issues/milestones.rb +0 -119
  35. data/lib/github_api/mime_type.rb +0 -55
  36. data/lib/github_api/orgs.rb +0 -95
  37. data/lib/github_api/orgs/members.rb +0 -120
  38. data/lib/github_api/orgs/teams.rb +0 -245
  39. data/lib/github_api/pull_requests.rb +0 -224
  40. data/lib/github_api/pull_requests/comments.rb +0 -144
  41. data/lib/github_api/repos.rb +0 -286
  42. data/lib/github_api/repos/collaborators.rb +0 -81
  43. data/lib/github_api/repos/commits.rb +0 -180
  44. data/lib/github_api/repos/downloads.rb +0 -155
  45. data/lib/github_api/repos/forks.rb +0 -48
  46. data/lib/github_api/repos/hooks.rb +0 -173
  47. data/lib/github_api/repos/keys.rb +0 -104
  48. data/lib/github_api/repos/pub_sub_hubbub.rb +0 -102
  49. data/lib/github_api/repos/watching.rb +0 -94
  50. data/lib/github_api/request.rb +0 -84
  51. data/lib/github_api/request/basic_auth.rb +0 -31
  52. data/lib/github_api/request/caching.rb +0 -33
  53. data/lib/github_api/request/oauth2.rb +0 -33
  54. data/lib/github_api/response.rb +0 -28
  55. data/lib/github_api/response/helpers.rb +0 -14
  56. data/lib/github_api/response/jsonize.rb +0 -26
  57. data/lib/github_api/response/mashify.rb +0 -24
  58. data/lib/github_api/response/raise_error.rb +0 -33
  59. data/lib/github_api/result.rb +0 -42
  60. data/lib/github_api/users.rb +0 -84
  61. data/lib/github_api/users/emails.rb +0 -49
  62. data/lib/github_api/users/followers.rb +0 -98
  63. data/lib/github_api/users/keys.rb +0 -84
  64. data/lib/github_api/version.rb +0 -12
  65. data/spec/README.rdoc +0 -22
  66. data/spec/coverage_adapter.rb +0 -14
  67. data/spec/fixtures/auths/authorization.json +0 -14
  68. data/spec/fixtures/auths/authorizations.json +0 -16
  69. data/spec/fixtures/events/events.json +0 -29
  70. data/spec/fixtures/issues/issue.json +0 -56
  71. data/spec/fixtures/issues/issues.json +0 -58
  72. data/spec/fixtures/orgs/members.json +0 -9
  73. data/spec/fixtures/orgs/org.json +0 -18
  74. data/spec/fixtures/orgs/orgs.json +0 -8
  75. data/spec/fixtures/orgs/team.json +0 -8
  76. data/spec/fixtures/orgs/team_repos.json +0 -29
  77. data/spec/fixtures/orgs/teams.json +0 -7
  78. data/spec/fixtures/repos/branches.json +0 -9
  79. data/spec/fixtures/repos/collaborators.json +0 -8
  80. data/spec/fixtures/repos/commit.json +0 -53
  81. data/spec/fixtures/repos/commit_comment.json +0 -16
  82. data/spec/fixtures/repos/commit_comments.json +0 -18
  83. data/spec/fixtures/repos/commits.json +0 -27
  84. data/spec/fixtures/repos/contributors.json +0 -8
  85. data/spec/fixtures/repos/download.json +0 -10
  86. data/spec/fixtures/repos/download_s3.json +0 -21
  87. data/spec/fixtures/repos/downloads.json +0 -12
  88. data/spec/fixtures/repos/fork.json +0 -27
  89. data/spec/fixtures/repos/forks.json +0 -29
  90. data/spec/fixtures/repos/hook.json +0 -15
  91. data/spec/fixtures/repos/hooks.json +0 -10
  92. data/spec/fixtures/repos/key.json +0 -6
  93. data/spec/fixtures/repos/keys.json +0 -8
  94. data/spec/fixtures/repos/languages.json +0 -4
  95. data/spec/fixtures/repos/repo.json +0 -90
  96. data/spec/fixtures/repos/repo_comments.json +0 -18
  97. data/spec/fixtures/repos/repos.json +0 -29
  98. data/spec/fixtures/repos/tags.json +0 -11
  99. data/spec/fixtures/repos/teams.json +0 -7
  100. data/spec/fixtures/repos/watched.json +0 -29
  101. data/spec/fixtures/repos/watchers.json +0 -8
  102. data/spec/fixtures/users/user.json +0 -32
  103. data/spec/github/api_spec.rb +0 -25
  104. data/spec/github/authorization_spec.rb +0 -176
  105. data/spec/github/authorizations_spec.rb +0 -242
  106. data/spec/github/client_spec.rb +0 -50
  107. data/spec/github/core_ext/hash_spec.rb +0 -44
  108. data/spec/github/events_spec.rb +0 -491
  109. data/spec/github/gists/comments_spec.rb +0 -5
  110. data/spec/github/gists_spec.rb +0 -5
  111. data/spec/github/git_data/blobs_spec.rb +0 -5
  112. data/spec/github/git_data/commits_spec.rb +0 -5
  113. data/spec/github/git_data/references_spec.rb +0 -5
  114. data/spec/github/git_data/tags_spec.rb +0 -5
  115. data/spec/github/git_data/trees_spec.rb +0 -5
  116. data/spec/github/git_data_spec.rb +0 -5
  117. data/spec/github/issues/comments_spec.rb +0 -5
  118. data/spec/github/issues/events_spec.rb +0 -5
  119. data/spec/github/issues/labels_spec.rb +0 -5
  120. data/spec/github/issues/milestones_spec.rb +0 -5
  121. data/spec/github/issues_spec.rb +0 -287
  122. data/spec/github/mime_type_spec.rb +0 -70
  123. data/spec/github/orgs/members_spec.rb +0 -275
  124. data/spec/github/orgs/teams_spec.rb +0 -563
  125. data/spec/github/orgs_spec.rb +0 -160
  126. data/spec/github/repos/collaborators_spec.rb +0 -169
  127. data/spec/github/repos/commits_spec.rb +0 -424
  128. data/spec/github/repos/downloads_spec.rb +0 -236
  129. data/spec/github/repos/forks_spec.rb +0 -103
  130. data/spec/github/repos/hooks_spec.rb +0 -307
  131. data/spec/github/repos/keys_spec.rb +0 -216
  132. data/spec/github/repos/pub_sub_hubbub_spec.rb +0 -83
  133. data/spec/github/repos/watching_spec.rb +0 -222
  134. data/spec/github/repos_spec.rb +0 -571
  135. data/spec/github/result_spec.rb +0 -43
  136. data/spec/github/users_spec.rb +0 -140
  137. data/spec/github_spec.rb +0 -109
  138. data/spec/spec_helper.rb +0 -86
@@ -1,84 +0,0 @@
1
- # encoding: utf-8
2
-
3
- module Github
4
- class Users
5
- module Keys
6
-
7
- VALID_KEY_PARAM_NAMES = %w[ title key ].freeze
8
-
9
- # List public keys for the authenticated user
10
- #
11
- # = Examples
12
- # @github = Github.new :oauth_token => '...'
13
- # @github.users.public_keys
14
- # @github.users.public_keys { |key| ... }
15
- #
16
- def public_keys(params={})
17
- _normalize_params_keys(params)
18
- response = get("/user/keys", params)
19
- return response unless block_given?
20
- response.each { |el| yield el }
21
- end
22
-
23
- # Get a single pulic key for the authenticated user
24
- #
25
- # = Examples
26
- # @github = Github.new :oauth_token => '...'
27
- # @github.users.public_key 'key-id'
28
- #
29
- def public_key(key_id, params={})
30
- _validate_presence_of key_id
31
- _normalize_params_keys(params)
32
- get("/user/keys/#{key_id}", params)
33
- end
34
-
35
- # Create a public key for the authenticated user
36
- #
37
- # = Inputs
38
- # * <tt>:title</tt> - Required string
39
- # * <tt>:key</tt> - Required string. sha key
40
- #
41
- # = Examples
42
- # @github = Github.new :oauth_token => '...'
43
- # @github.users.create_key "title" => "octocat@octomac",
44
- # "key" => "ssh-rsa AAA..."
45
- #
46
- def create_key(params={})
47
- _normalize_params_keys(params)
48
- _filter_params_keys(VALID_KEY_PARAM_NAMES, params)
49
- post("/user/keys", params)
50
- end
51
-
52
- # Update a public key for the authenticated user
53
- #
54
- # = Inputs
55
- # * <tt>:title</tt> - Required string
56
- # * <tt>:key</tt> - Required string. sha key
57
- #
58
- # = Examples
59
- # @github = Github.new :oauth_token => '...'
60
- # @github.users.update_key 'key-id', "title" => "octocat@octomac",
61
- # "key" => "ssh-rsa AAA..."
62
- #
63
- def update_key(key_id, params={})
64
- _validate_presence_of key_id
65
- _normalize_params_keys(params)
66
- _filter_params_keys(VALID_KEY_PARAM_NAMES, params)
67
- patch("/user/keys/#{key_id}", params)
68
- end
69
-
70
- # Delete a public key for the authenticated user
71
- #
72
- # = Examples
73
- # @github = Github.new :oauth_token => '...'
74
- # @github.users.delete_key 'key-id'
75
- #
76
- def delete_key(key_id, params={})
77
- _validate_presence_of key_id
78
- _normalize_params_keys(params)
79
- delete("/user/keys/#{key_id}", params)
80
- end
81
-
82
- end # Keys
83
- end # Users
84
- end # Github
@@ -1,12 +0,0 @@
1
- # encoding: utf-8
2
-
3
- module Github
4
- module VERSION
5
- MAJOR = 0
6
- MINOR = 3
7
- PATCH = 4
8
- BUILD = nil
9
-
10
- STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.');
11
- end
12
- end
data/spec/README.rdoc DELETED
@@ -1,22 +0,0 @@
1
- = GithubAPI
2
-
3
- == Running the specs and features
4
-
5
- To run the specs first run the +bundle+ command to install the necessary gems and then +rake+ command to run the specs.
6
-
7
- bundle
8
- rake
9
-
10
- The specs currently require Ruby 1.9.x.
11
-
12
- == Coverage
13
-
14
- GithubAPI will run coverage only on demand and to run it do
15
-
16
- COVERAGE=true rake
17
-
18
- == Automation
19
-
20
- You can also run specs and features when you do file modifications by typing
21
-
22
- COVERAGE=true guard
@@ -1,14 +0,0 @@
1
- require 'simplecov'
2
-
3
- SimpleCov.adapters.define 'github_api' do
4
- add_filter "/spec/"
5
- add_filter "/features/"
6
-
7
- add_group 'Repos', 'lib/github_api/repos'
8
- add_group 'Orgs', 'lib/github_api/orgs'
9
- add_group 'Users', 'lib/github_api/users'
10
- add_group 'Issues', 'lib/github_api/issues'
11
- add_group 'Gists', 'lib/github_api/gists'
12
- add_group 'Git Data','lib/github_api/git_data'
13
- add_group 'Pull Requests','lib/github_api/pull_requests'
14
- end # SimpleCov
@@ -1,14 +0,0 @@
1
- {
2
- "id": 1,
3
- "url": "https://api.github.com/authorizations/1",
4
- "scopes": [
5
- "public_repo"
6
- ],
7
- "token": "abc123",
8
- "app": {
9
- "url": "http://my-github-app.com",
10
- "name": "my github app"
11
- },
12
- "updated_at": "2011-09-06T20:39:23Z",
13
- "created_at": "2011-09-06T17:26:27Z"
14
- }
@@ -1,16 +0,0 @@
1
- [
2
- {
3
- "id": 1,
4
- "url": "https://api.github.com/authorizations/1",
5
- "scopes": [
6
- "public_repo"
7
- ],
8
- "token": "abc123",
9
- "app": {
10
- "url": "http://my-github-app.com",
11
- "name": "my github app"
12
- },
13
- "updated_at": "2011-09-06T20:39:23Z",
14
- "created_at": "2011-09-06T17:26:27Z"
15
- }
16
- ]
@@ -1,29 +0,0 @@
1
- [
2
- {
3
- "type": "Event",
4
- "public": true,
5
- "payload": {
6
-
7
- },
8
- "repo": {
9
- "id": 3,
10
- "name": "octocat/Hello-World",
11
- "url": "https://api.github.com/repos/octocat/Hello-World"
12
- },
13
- "actor": {
14
- "login": "octocat",
15
- "id": 1,
16
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
17
- "gravatar_id": "somehexcode",
18
- "url": "https://api.github.com/users/octocat"
19
- },
20
- "org": {
21
- "login": "octocat",
22
- "id": 1,
23
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
24
- "gravatar_id": "somehexcode",
25
- "url": "https://api.github.com/users/octocat"
26
- },
27
- "created_at": "2011-09-06T17:26:27Z"
28
- }
29
- ]
@@ -1,56 +0,0 @@
1
- {
2
- "url": "https://api.github.com/repos/octocat/Hello-World/issues/1",
3
- "html_url": "https://github.com/octocat/Hello-World/issues/1",
4
- "number": 1347,
5
- "state": "open",
6
- "title": "Found a bug",
7
- "body": "I'm having a problem with this.",
8
- "user": {
9
- "login": "octocat",
10
- "id": 1,
11
- "avatar_url": "https://github.com/images/error/octocat",
12
- "gravatar_id": "somehexcode",
13
- "url": "https://api.github.com/users/octocat"
14
- },
15
- "labels": [
16
- {
17
- "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
18
- "name": "bug",
19
- "color": "f29513"
20
- }
21
- ],
22
- "assignee": {
23
- "login": "octocat",
24
- "id": 1,
25
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
26
- "gravatar_id": "somehexcode",
27
- "url": "https://api.github.com/users/octocat"
28
- },
29
- "milestone": {
30
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
31
- "number": 1,
32
- "state": "open",
33
- "title": "v1.0",
34
- "description": "",
35
- "creator": {
36
- "login": "octocat",
37
- "id": 1,
38
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
39
- "gravatar_id": "somehexcode",
40
- "url": "https://api.github.com/users/octocat"
41
- },
42
- "open_issues": 4,
43
- "closed_issues": 8,
44
- "created_at": "2011-04-10T20:09:31Z",
45
- "due_on": null
46
- },
47
- "comments": 0,
48
- "pull_request": {
49
- "html_url": "https://github.com/octocat/Hello-World/issues/1",
50
- "diff_url": "https://github.com/octocat/Hello-World/issues/1.diff",
51
- "patch_url": "https://github.com/octocat/Hello-World/issues/1.patch"
52
- },
53
- "closed_at": null,
54
- "created_at": "2011-04-22T13:33:48Z",
55
- "updated_at": "2011-04-22T13:33:48Z"
56
- }
@@ -1,58 +0,0 @@
1
- [
2
- {
3
- "url": "https://api.github.com/repos/octocat/Hello-World/issues/1",
4
- "html_url": "https://github.com/octocat/Hello-World/issues/1",
5
- "number": 1347,
6
- "state": "open",
7
- "title": "Found a bug",
8
- "body": "I'm having a problem with this.",
9
- "user": {
10
- "login": "octocat",
11
- "id": 1,
12
- "avatar_url": "https://github.com/images/error/octocat",
13
- "gravatar_id": "somehexcode",
14
- "url": "https://api.github.com/users/octocat"
15
- },
16
- "labels": [
17
- {
18
- "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
19
- "name": "bug",
20
- "color": "f29513"
21
- }
22
- ],
23
- "assignee": {
24
- "login": "octocat",
25
- "id": 1,
26
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
27
- "gravatar_id": "somehexcode",
28
- "url": "https://api.github.com/users/octocat"
29
- },
30
- "milestone": {
31
- "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
32
- "number": 1,
33
- "state": "open",
34
- "title": "v1.0",
35
- "description": "",
36
- "creator": {
37
- "login": "octocat",
38
- "id": 1,
39
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
40
- "gravatar_id": "somehexcode",
41
- "url": "https://api.github.com/users/octocat"
42
- },
43
- "open_issues": 4,
44
- "closed_issues": 8,
45
- "created_at": "2011-04-10T20:09:31Z",
46
- "due_on": null
47
- },
48
- "comments": 0,
49
- "pull_request": {
50
- "html_url": "https://github.com/octocat/Hello-World/issues/1",
51
- "diff_url": "https://github.com/octocat/Hello-World/issues/1.diff",
52
- "patch_url": "https://github.com/octocat/Hello-World/issues/1.patch"
53
- },
54
- "closed_at": null,
55
- "created_at": "2011-04-22T13:33:48Z",
56
- "updated_at": "2011-04-22T13:33:48Z"
57
- }
58
- ]
@@ -1,9 +0,0 @@
1
- [
2
- {
3
- "login": "octocat",
4
- "id": 1,
5
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
6
- "gravatar_id": "somehexcode",
7
- "url": "https://api.github.com/users/octocat"
8
- }
9
- ]
@@ -1,18 +0,0 @@
1
- {
2
- "login": "github",
3
- "id": 1,
4
- "url": "https://api.github.com/orgs/1",
5
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
6
- "name": "github",
7
- "company": "GitHub",
8
- "blog": "https://github.com/blog",
9
- "location": "San Francisco",
10
- "email": "octocat@github.com",
11
- "public_repos": 2,
12
- "public_gists": 1,
13
- "followers": 20,
14
- "following": 0,
15
- "html_url": "https://github.com/octocat",
16
- "created_at": "2008-01-14T04:33:35Z",
17
- "type": "Organization"
18
- }
@@ -1,8 +0,0 @@
1
- [
2
- {
3
- "login": "github",
4
- "id": 1,
5
- "url": "https://api.github.com/orgs/1",
6
- "avatar_url": "https://github.com/images/error/octocat_happy.gif"
7
- }
8
- ]
@@ -1,8 +0,0 @@
1
- {
2
- "url": "https://api.github.com/teams/1",
3
- "name": "Owners",
4
- "id": 1,
5
- "permission": "admin",
6
- "members_count": 3,
7
- "repos_count": 10
8
- }
@@ -1,29 +0,0 @@
1
- [
2
- {
3
- "url": "https://api.github.com/repos/octocat/Hello-World",
4
- "html_url": "https://github.com/octocat/Hello-World",
5
- "clone_url": "https://github.com/octocat/Hello-World.git",
6
- "git_url": "git://github.com/octocat/Hello-World.git",
7
- "ssh_url": "git@github.com:octocat/Hello-World.git",
8
- "owner": {
9
- "login": "octocat",
10
- "id": 1,
11
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
12
- "gravatar_id": "somehexcode",
13
- "url": "https://api.github.com/users/octocat"
14
- },
15
- "name": "github",
16
- "description": "This your first repo!",
17
- "homepage": "https://github.com",
18
- "language": null,
19
- "private": false,
20
- "fork": false,
21
- "forks": 9,
22
- "watchers": 80,
23
- "size": 108,
24
- "master_branch": "master",
25
- "open_issues": 0,
26
- "pushed_at": "2011-01-26T19:06:43Z",
27
- "created_at": "2011-01-26T19:01:12Z"
28
- }
29
- ]
@@ -1,7 +0,0 @@
1
- [
2
- {
3
- "url": "https://api.github.com/teams/1",
4
- "name": "Owners",
5
- "id": 1
6
- }
7
- ]
@@ -1,9 +0,0 @@
1
- [
2
- {
3
- "name": "master",
4
- "commit": {
5
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
6
- "url": "https://api.github.com/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc"
7
- }
8
- }
9
- ]
@@ -1,8 +0,0 @@
1
- [
2
- {
3
- "login": "octocat",
4
- "id": 1,
5
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
6
- "url": "https://api.github.com/users/octocat"
7
- }
8
- ]
@@ -1,53 +0,0 @@
1
- {
2
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
3
- "commit": {
4
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
5
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
6
- "author": {
7
- "name": "Monalisa Octocat",
8
- "email": "support@github.com",
9
- "date": "2011-04-14T16:00:49Z"
10
- },
11
- "committer": {
12
- "name": "Monalisa Octocat",
13
- "email": "support@github.com",
14
- "date": "2011-04-14T16:00:49Z"
15
- },
16
- "message": "Fix all the bugs",
17
- "tree": {
18
- "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e",
19
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
20
- }
21
- },
22
- "author": {
23
- "login": "octocat",
24
- "id": 1,
25
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
26
- "url": "https://api.github.com/users/octocat"
27
- },
28
- "committer": {
29
- "login": "octocat",
30
- "id": 1,
31
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
32
- "url": "https://api.github.com/users/octocat"
33
- },
34
- "parents": [
35
- {
36
- "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e",
37
- "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
38
- }
39
- ],
40
- "stats": {
41
- "additions": 104,
42
- "deletions": 4,
43
- "total": 108
44
- },
45
- "files": [
46
- {
47
- "filename": "file1.txt",
48
- "additions": 10,
49
- "deletions": 2,
50
- "total": 12
51
- }
52
- ]
53
- }