danger-spm_version_updates 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +1 -1
  4. data/danger-spm_version_updates.gemspec +1 -1
  5. data/lib/spm_version_updates/gem_version.rb +1 -1
  6. data/lib/spm_version_updates/git.rb +56 -0
  7. data/lib/spm_version_updates/plugin.rb +14 -102
  8. data/lib/spm_version_updates/xcode.rb +71 -0
  9. metadata +4 -29
  10. data/.editorconfig +0 -15
  11. data/.github/workflows/docs.yml +0 -43
  12. data/.github/workflows/lint_and_test.yml +0 -32
  13. data/.github/workflows/push_gem.yml +0 -26
  14. data/.github/workflows/readme.yml +0 -21
  15. data/.gitignore +0 -136
  16. data/.idea/.gitignore +0 -8
  17. data/.idea/danger-plugin-spm-version-updates.iml +0 -130
  18. data/.idea/misc.xml +0 -4
  19. data/.idea/modules.xml +0 -8
  20. data/.idea/vcs.xml +0 -6
  21. data/.markdownlint.jsonc +0 -6
  22. data/.reek.yml +0 -129
  23. data/.rubocop.yml +0 -508
  24. data/spec/spec_helper.rb +0 -61
  25. data/spec/spm_version_updates_spec.rb +0 -194
  26. data/spec/support/fixtures/Branch.xcodeproj/project.pbxproj +0 -80
  27. data/spec/support/fixtures/Branch.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +0 -265
  28. data/spec/support/fixtures/ExactVersion.xcodeproj/project.pbxproj +0 -80
  29. data/spec/support/fixtures/ExactVersion.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +0 -265
  30. data/spec/support/fixtures/NoResolvedVersion.xcodeproj/project.pbxproj +0 -80
  31. data/spec/support/fixtures/NoResolvedVersion.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +0 -256
  32. data/spec/support/fixtures/UpToNextMajor.xcodeproj/project.pbxproj +0 -80
  33. data/spec/support/fixtures/UpToNextMajor.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +0 -265
  34. data/spec/support/fixtures/VersionRange.xcodeproj/project.pbxproj +0 -81
  35. data/spec/support/fixtures/VersionRange.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +0 -265
  36. data/spec/support/fixtures/github_pr.json +0 -268
@@ -1,268 +0,0 @@
1
- {
2
- "url": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18",
3
- "id": 185317229,
4
- "node_id": "MDExOlB1bGxSZXF1ZXN0MTg1MzE3MjI5",
5
- "html_url": "https://github.com/danger/danger-plugin-template/pull/18",
6
- "diff_url": "https://github.com/danger/danger-plugin-template/pull/18.diff",
7
- "patch_url": "https://github.com/danger/danger-plugin-template/pull/18.patch",
8
- "issue_url": "https://api.github.com/repos/danger/danger-plugin-template/issues/18",
9
- "number": 18,
10
- "state": "closed",
11
- "locked": false,
12
- "title": "add example of how to mock PRs",
13
- "user": {
14
- "login": "wilrnh",
15
- "id": 555966,
16
- "node_id": "MDQ6VXNlcjU1NTk2Ng==",
17
- "avatar_url": "https://avatars.githubusercontent.com/u/555966?v=4",
18
- "gravatar_id": "",
19
- "url": "https://api.github.com/users/wilrnh",
20
- "html_url": "https://github.com/wilrnh",
21
- "followers_url": "https://api.github.com/users/wilrnh/followers",
22
- "following_url": "https://api.github.com/users/wilrnh/following{/other_user}",
23
- "gists_url": "https://api.github.com/users/wilrnh/gists{/gist_id}",
24
- "starred_url": "https://api.github.com/users/wilrnh/starred{/owner}{/repo}",
25
- "subscriptions_url": "https://api.github.com/users/wilrnh/subscriptions",
26
- "organizations_url": "https://api.github.com/users/wilrnh/orgs",
27
- "repos_url": "https://api.github.com/users/wilrnh/repos",
28
- "events_url": "https://api.github.com/users/wilrnh/events{/privacy}",
29
- "received_events_url": "https://api.github.com/users/wilrnh/received_events",
30
- "type": "User",
31
- "site_admin": false
32
- },
33
- "body": "Fixes danger/danger#661\r\n\r\nadd example how to mock PRs",
34
- "created_at": "2018-05-02T01:52:26Z",
35
- "updated_at": "2018-05-02T10:37:04Z",
36
- "closed_at": "2018-05-02T10:37:04Z",
37
- "merged_at": "2018-05-02T10:37:04Z",
38
- "merge_commit_sha": "39eacac22d52a2b70fc49bd8aba19eb7d2864717",
39
- "assignee": null,
40
- "assignees": [],
41
- "requested_reviewers": [],
42
- "requested_teams": [],
43
- "labels": [],
44
- "milestone": null,
45
- "draft": false,
46
- "commits_url": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18/commits",
47
- "review_comments_url": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18/comments",
48
- "review_comment_url": "https://api.github.com/repos/danger/danger-plugin-template/pulls/comments{/number}",
49
- "comments_url": "https://api.github.com/repos/danger/danger-plugin-template/issues/18/comments",
50
- "statuses_url": "https://api.github.com/repos/danger/danger-plugin-template/statuses/abe89bee0cdc5f45b1dee62c60e74c70f3fcb5d5",
51
- "head": {
52
- "label": "wilrnh:661-mocking-prs",
53
- "ref": "661-mocking-prs",
54
- "sha": "abe89bee0cdc5f45b1dee62c60e74c70f3fcb5d5",
55
- "user": {
56
- "login": "wilrnh",
57
- "id": 555966,
58
- "node_id": "MDQ6VXNlcjU1NTk2Ng==",
59
- "avatar_url": "https://avatars.githubusercontent.com/u/555966?v=4",
60
- "gravatar_id": "",
61
- "url": "https://api.github.com/users/wilrnh",
62
- "html_url": "https://github.com/wilrnh",
63
- "followers_url": "https://api.github.com/users/wilrnh/followers",
64
- "following_url": "https://api.github.com/users/wilrnh/following{/other_user}",
65
- "gists_url": "https://api.github.com/users/wilrnh/gists{/gist_id}",
66
- "starred_url": "https://api.github.com/users/wilrnh/starred{/owner}{/repo}",
67
- "subscriptions_url": "https://api.github.com/users/wilrnh/subscriptions",
68
- "organizations_url": "https://api.github.com/users/wilrnh/orgs",
69
- "repos_url": "https://api.github.com/users/wilrnh/repos",
70
- "events_url": "https://api.github.com/users/wilrnh/events{/privacy}",
71
- "received_events_url": "https://api.github.com/users/wilrnh/received_events",
72
- "type": "User",
73
- "site_admin": false
74
- },
75
- "repo": null
76
- },
77
- "base": {
78
- "label": "danger:master",
79
- "ref": "master",
80
- "sha": "30bd69c1c09d927abde0695fcb39dd70d4cc0f81",
81
- "user": {
82
- "login": "danger",
83
- "id": 17147106,
84
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE3MTQ3MTA2",
85
- "avatar_url": "https://avatars.githubusercontent.com/u/17147106?v=4",
86
- "gravatar_id": "",
87
- "url": "https://api.github.com/users/danger",
88
- "html_url": "https://github.com/danger",
89
- "followers_url": "https://api.github.com/users/danger/followers",
90
- "following_url": "https://api.github.com/users/danger/following{/other_user}",
91
- "gists_url": "https://api.github.com/users/danger/gists{/gist_id}",
92
- "starred_url": "https://api.github.com/users/danger/starred{/owner}{/repo}",
93
- "subscriptions_url": "https://api.github.com/users/danger/subscriptions",
94
- "organizations_url": "https://api.github.com/users/danger/orgs",
95
- "repos_url": "https://api.github.com/users/danger/repos",
96
- "events_url": "https://api.github.com/users/danger/events{/privacy}",
97
- "received_events_url": "https://api.github.com/users/danger/received_events",
98
- "type": "Organization",
99
- "site_admin": false
100
- },
101
- "repo": {
102
- "id": 60424063,
103
- "node_id": "MDEwOlJlcG9zaXRvcnk2MDQyNDA2Mw==",
104
- "name": "danger-plugin-template",
105
- "full_name": "danger/danger-plugin-template",
106
- "private": false,
107
- "owner": {
108
- "login": "danger",
109
- "id": 17147106,
110
- "node_id": "MDEyOk9yZ2FuaXphdGlvbjE3MTQ3MTA2",
111
- "avatar_url": "https://avatars.githubusercontent.com/u/17147106?v=4",
112
- "gravatar_id": "",
113
- "url": "https://api.github.com/users/danger",
114
- "html_url": "https://github.com/danger",
115
- "followers_url": "https://api.github.com/users/danger/followers",
116
- "following_url": "https://api.github.com/users/danger/following{/other_user}",
117
- "gists_url": "https://api.github.com/users/danger/gists{/gist_id}",
118
- "starred_url": "https://api.github.com/users/danger/starred{/owner}{/repo}",
119
- "subscriptions_url": "https://api.github.com/users/danger/subscriptions",
120
- "organizations_url": "https://api.github.com/users/danger/orgs",
121
- "repos_url": "https://api.github.com/users/danger/repos",
122
- "events_url": "https://api.github.com/users/danger/events{/privacy}",
123
- "received_events_url": "https://api.github.com/users/danger/received_events",
124
- "type": "Organization",
125
- "site_admin": false
126
- },
127
- "html_url": "https://github.com/danger/danger-plugin-template",
128
- "description": "An opinionated template for creating a Danger plugin",
129
- "fork": false,
130
- "url": "https://api.github.com/repos/danger/danger-plugin-template",
131
- "forks_url": "https://api.github.com/repos/danger/danger-plugin-template/forks",
132
- "keys_url": "https://api.github.com/repos/danger/danger-plugin-template/keys{/key_id}",
133
- "collaborators_url": "https://api.github.com/repos/danger/danger-plugin-template/collaborators{/collaborator}",
134
- "teams_url": "https://api.github.com/repos/danger/danger-plugin-template/teams",
135
- "hooks_url": "https://api.github.com/repos/danger/danger-plugin-template/hooks",
136
- "issue_events_url": "https://api.github.com/repos/danger/danger-plugin-template/issues/events{/number}",
137
- "events_url": "https://api.github.com/repos/danger/danger-plugin-template/events",
138
- "assignees_url": "https://api.github.com/repos/danger/danger-plugin-template/assignees{/user}",
139
- "branches_url": "https://api.github.com/repos/danger/danger-plugin-template/branches{/branch}",
140
- "tags_url": "https://api.github.com/repos/danger/danger-plugin-template/tags",
141
- "blobs_url": "https://api.github.com/repos/danger/danger-plugin-template/git/blobs{/sha}",
142
- "git_tags_url": "https://api.github.com/repos/danger/danger-plugin-template/git/tags{/sha}",
143
- "git_refs_url": "https://api.github.com/repos/danger/danger-plugin-template/git/refs{/sha}",
144
- "trees_url": "https://api.github.com/repos/danger/danger-plugin-template/git/trees{/sha}",
145
- "statuses_url": "https://api.github.com/repos/danger/danger-plugin-template/statuses/{sha}",
146
- "languages_url": "https://api.github.com/repos/danger/danger-plugin-template/languages",
147
- "stargazers_url": "https://api.github.com/repos/danger/danger-plugin-template/stargazers",
148
- "contributors_url": "https://api.github.com/repos/danger/danger-plugin-template/contributors",
149
- "subscribers_url": "https://api.github.com/repos/danger/danger-plugin-template/subscribers",
150
- "subscription_url": "https://api.github.com/repos/danger/danger-plugin-template/subscription",
151
- "commits_url": "https://api.github.com/repos/danger/danger-plugin-template/commits{/sha}",
152
- "git_commits_url": "https://api.github.com/repos/danger/danger-plugin-template/git/commits{/sha}",
153
- "comments_url": "https://api.github.com/repos/danger/danger-plugin-template/comments{/number}",
154
- "issue_comment_url": "https://api.github.com/repos/danger/danger-plugin-template/issues/comments{/number}",
155
- "contents_url": "https://api.github.com/repos/danger/danger-plugin-template/contents/{+path}",
156
- "compare_url": "https://api.github.com/repos/danger/danger-plugin-template/compare/{base}...{head}",
157
- "merges_url": "https://api.github.com/repos/danger/danger-plugin-template/merges",
158
- "archive_url": "https://api.github.com/repos/danger/danger-plugin-template/{archive_format}{/ref}",
159
- "downloads_url": "https://api.github.com/repos/danger/danger-plugin-template/downloads",
160
- "issues_url": "https://api.github.com/repos/danger/danger-plugin-template/issues{/number}",
161
- "pulls_url": "https://api.github.com/repos/danger/danger-plugin-template/pulls{/number}",
162
- "milestones_url": "https://api.github.com/repos/danger/danger-plugin-template/milestones{/number}",
163
- "notifications_url": "https://api.github.com/repos/danger/danger-plugin-template/notifications{?since,all,participating}",
164
- "labels_url": "https://api.github.com/repos/danger/danger-plugin-template/labels{/name}",
165
- "releases_url": "https://api.github.com/repos/danger/danger-plugin-template/releases{/id}",
166
- "deployments_url": "https://api.github.com/repos/danger/danger-plugin-template/deployments",
167
- "created_at": "2016-06-04T18:17:02Z",
168
- "updated_at": "2021-10-27T08:26:48Z",
169
- "pushed_at": "2022-09-04T13:16:52Z",
170
- "git_url": "git://github.com/danger/danger-plugin-template.git",
171
- "ssh_url": "git@github.com:danger/danger-plugin-template.git",
172
- "clone_url": "https://github.com/danger/danger-plugin-template.git",
173
- "svn_url": "https://github.com/danger/danger-plugin-template",
174
- "homepage": null,
175
- "size": 42,
176
- "stargazers_count": 19,
177
- "watchers_count": 19,
178
- "language": "Ruby",
179
- "has_issues": true,
180
- "has_projects": true,
181
- "has_downloads": true,
182
- "has_wiki": true,
183
- "has_pages": false,
184
- "has_discussions": false,
185
- "forks_count": 12,
186
- "mirror_url": null,
187
- "archived": false,
188
- "disabled": false,
189
- "open_issues_count": 2,
190
- "license": {
191
- "key": "other",
192
- "name": "Other",
193
- "spdx_id": "NOASSERTION",
194
- "url": null,
195
- "node_id": "MDc6TGljZW5zZTA="
196
- },
197
- "allow_forking": true,
198
- "is_template": false,
199
- "web_commit_signoff_required": false,
200
- "topics": [],
201
- "visibility": "public",
202
- "forks": 12,
203
- "open_issues": 2,
204
- "watchers": 19,
205
- "default_branch": "master"
206
- }
207
- },
208
- "_links": {
209
- "self": {
210
- "href": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18"
211
- },
212
- "html": {
213
- "href": "https://github.com/danger/danger-plugin-template/pull/18"
214
- },
215
- "issue": {
216
- "href": "https://api.github.com/repos/danger/danger-plugin-template/issues/18"
217
- },
218
- "comments": {
219
- "href": "https://api.github.com/repos/danger/danger-plugin-template/issues/18/comments"
220
- },
221
- "review_comments": {
222
- "href": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18/comments"
223
- },
224
- "review_comment": {
225
- "href": "https://api.github.com/repos/danger/danger-plugin-template/pulls/comments{/number}"
226
- },
227
- "commits": {
228
- "href": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18/commits"
229
- },
230
- "statuses": {
231
- "href": "https://api.github.com/repos/danger/danger-plugin-template/statuses/abe89bee0cdc5f45b1dee62c60e74c70f3fcb5d5"
232
- }
233
- },
234
- "author_association": "CONTRIBUTOR",
235
- "auto_merge": null,
236
- "active_lock_reason": null,
237
- "merged": true,
238
- "mergeable": null,
239
- "rebaseable": null,
240
- "mergeable_state": "unknown",
241
- "merged_by": {
242
- "login": "orta",
243
- "id": 49038,
244
- "node_id": "MDQ6VXNlcjQ5MDM4",
245
- "avatar_url": "https://avatars.githubusercontent.com/u/49038?v=4",
246
- "gravatar_id": "",
247
- "url": "https://api.github.com/users/orta",
248
- "html_url": "https://github.com/orta",
249
- "followers_url": "https://api.github.com/users/orta/followers",
250
- "following_url": "https://api.github.com/users/orta/following{/other_user}",
251
- "gists_url": "https://api.github.com/users/orta/gists{/gist_id}",
252
- "starred_url": "https://api.github.com/users/orta/starred{/owner}{/repo}",
253
- "subscriptions_url": "https://api.github.com/users/orta/subscriptions",
254
- "organizations_url": "https://api.github.com/users/orta/orgs",
255
- "repos_url": "https://api.github.com/users/orta/repos",
256
- "events_url": "https://api.github.com/users/orta/events{/privacy}",
257
- "received_events_url": "https://api.github.com/users/orta/received_events",
258
- "type": "User",
259
- "site_admin": false
260
- },
261
- "comments": 2,
262
- "review_comments": 0,
263
- "maintainer_can_modify": false,
264
- "commits": 2,
265
- "additions": 5,
266
- "deletions": 0,
267
- "changed_files": 1
268
- }