danger-spm_version_updates 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -0
- data/Gemfile.lock +6 -6
- data/README.md +6 -3
- data/lib/spm_version_updates/gem_version.rb +1 -1
- data/lib/spm_version_updates/plugin.rb +33 -27
- data/spec/spm_version_updates_spec.rb +98 -37
- data/spec/support/fixtures/UpToNextMajor.xcodeproj/project.pbxproj +80 -0
- metadata +10 -10
- data/spec/support/fixtures/Example.xcodeproj/project.pbxproj +0 -152
- /data/spec/support/fixtures/{HasPreRelease.xcodeproj → ExactVersion.xcodeproj}/project.pbxproj +0 -0
- /data/spec/support/fixtures/{Example.xcodeproj → ExactVersion.xcodeproj}/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +0 -0
- /data/spec/support/fixtures/{HasPreRelease.xcodeproj → UpToNextMajor.xcodeproj}/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e6dccc893b317809724b8935dc9525513b583af660f44f93cbd02517c35b331
|
4
|
+
data.tar.gz: 67999aeedfae8d6531efbfe451690aaad3d1007a79f6ce9c066c2337085c13e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83b0cb80c5c3b131ea30e1d03d80fb52afe57d17d6ceea0c90ebb5d6cd0dafe52ab94c4db4dcc6c499af8539fede623f8764a3b2c62fdf890ed782008653ea7b
|
7
|
+
data.tar.gz: 7f414ae36bcce2ecb8aad51ecec3a5c47eeee6e9c7430609132a4818d9158f6d2f3d5250b0492334ef5c0b986c2a5bab84e8944ab291af0f08c2ef5d49af04cc
|
data/.rubocop.yml
CHANGED
@@ -18,12 +18,20 @@ Style/TrailingCommaInArrayLiteral:
|
|
18
18
|
RSpec/ExampleLength:
|
19
19
|
Enabled: false
|
20
20
|
|
21
|
+
RSpec/RepeatedExample:
|
22
|
+
Enabled: false
|
23
|
+
|
21
24
|
Style/BlockDelimiters:
|
22
25
|
Enabled: true
|
23
26
|
EnforcedStyle: always_braces
|
24
27
|
Exclude:
|
25
28
|
- spec/*.rb
|
26
29
|
|
30
|
+
Metrics/ModuleLength:
|
31
|
+
Enabled: true
|
32
|
+
Exclude:
|
33
|
+
- spec/*.rb
|
34
|
+
|
27
35
|
Layout/ClassStructure:
|
28
36
|
Enabled: true
|
29
37
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-spm_version_updates (0.0
|
4
|
+
danger-spm_version_updates (0.1.0)
|
5
5
|
danger-plugin-api (~> 1.0)
|
6
6
|
semantic (~> 1.6)
|
7
7
|
xcodeproj (~> 1.23)
|
@@ -15,7 +15,7 @@ GEM
|
|
15
15
|
public_suffix (>= 2.0.2, < 6.0)
|
16
16
|
ast (2.4.2)
|
17
17
|
atomos (0.1.3)
|
18
|
-
base64 (0.
|
18
|
+
base64 (0.2.0)
|
19
19
|
claide (1.1.0)
|
20
20
|
claide-plugins (0.9.2)
|
21
21
|
cork
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
colored2 (3.1.2)
|
26
26
|
cork (0.3.0)
|
27
27
|
colored2 (~> 3.1)
|
28
|
-
danger (9.
|
28
|
+
danger (9.4.0)
|
29
29
|
claide (~> 1.0)
|
30
30
|
claide-plugins (>= 0.9.2)
|
31
31
|
colored2 (~> 3.1)
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
kramdown (~> 2.3)
|
37
37
|
kramdown-parser-gfm (~> 1.0)
|
38
38
|
no_proxy_fix
|
39
|
-
octokit (
|
39
|
+
octokit (>= 6.0, < 8.0)
|
40
40
|
terminal-table (>= 1, < 4)
|
41
41
|
danger-plugin-api (1.0.0)
|
42
42
|
danger (> 2.0)
|
@@ -77,7 +77,7 @@ GEM
|
|
77
77
|
listen (3.0.7)
|
78
78
|
rb-fsevent (>= 0.9.3)
|
79
79
|
rb-inotify (>= 0.9.7)
|
80
|
-
lumberjack (1.2.
|
80
|
+
lumberjack (1.2.10)
|
81
81
|
method_source (1.0.0)
|
82
82
|
nanaimo (0.3.0)
|
83
83
|
nap (1.1.0)
|
@@ -86,7 +86,7 @@ GEM
|
|
86
86
|
notiffany (0.1.3)
|
87
87
|
nenv (~> 0.1)
|
88
88
|
shellany (~> 0.0)
|
89
|
-
octokit (
|
89
|
+
octokit (7.2.0)
|
90
90
|
faraday (>= 1, < 3)
|
91
91
|
sawyer (~> 0.9)
|
92
92
|
open4 (1.3.4)
|
data/README.md
CHANGED
@@ -35,11 +35,14 @@ You can also configure custom behaviors:
|
|
35
35
|
# Whether to check when dependencies are exact versions or commits, default false
|
36
36
|
spm_version_updates.check_when_exact = true
|
37
37
|
|
38
|
-
# Whether to
|
39
|
-
spm_version_updates.
|
38
|
+
# Whether to report versions above the maximum version range, default false
|
39
|
+
spm_version_updates.report_above_maximum = true
|
40
|
+
|
41
|
+
# Whether to report pre-release versions, default false
|
42
|
+
spm_version_updates.report_pre_releases = true
|
40
43
|
|
41
44
|
# A list of repositories to ignore entirely, must exactly match the URL as configured in the Xcode project
|
42
|
-
spm_version_updates.
|
45
|
+
spm_version_updates.ignore_repos = ["https://github.com/pointfreeco/swift-snapshot-testing"]
|
43
46
|
```
|
44
47
|
|
45
48
|
## Development
|
@@ -6,7 +6,7 @@ require "xcodeproj"
|
|
6
6
|
module Danger
|
7
7
|
# A plugin for checking if there are versions upgrades available for SPM packages
|
8
8
|
#
|
9
|
-
# @example
|
9
|
+
# @example Check if MyApp's SPM dependencies are up to date
|
10
10
|
#
|
11
11
|
# spm_version_updates.check_for_updates("MyApp.xcodeproj")
|
12
12
|
#
|
@@ -18,9 +18,9 @@ module Danger
|
|
18
18
|
# @return [Boolean]
|
19
19
|
attr_accessor :check_when_exact
|
20
20
|
|
21
|
-
# Whether to
|
21
|
+
# Whether to report versions above the maximum version range, default false
|
22
22
|
# @return [Boolean]
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :report_above_maximum
|
24
24
|
|
25
25
|
# Whether to report pre-release versions, default false
|
26
26
|
# @return [Boolean]
|
@@ -65,14 +65,7 @@ module Danger
|
|
65
65
|
next if available_versions.first.to_s == resolved_version
|
66
66
|
|
67
67
|
if kind == "exactVersion" && @check_when_exact
|
68
|
-
|
69
|
-
report_pre_releases ? true : version.pre.nil?
|
70
|
-
}
|
71
|
-
warn(
|
72
|
-
<<-TEXT
|
73
|
-
Newer version of #{name}: #{newestVersion} (but this package is set to exact version #{resolved_version})
|
74
|
-
TEXT
|
75
|
-
) unless newestVersion.to_s == resolved_version
|
68
|
+
warn_for_new_versions_exact(available_versions, name, resolved_version)
|
76
69
|
elsif kind == "upToNextMajorVersion"
|
77
70
|
warn_for_new_versions(:major, available_versions, name, resolved_version)
|
78
71
|
elsif kind == "upToNextMinorVersion"
|
@@ -117,42 +110,55 @@ Newer version of #{name}: #{newestVersion} (but this package is set to exact ver
|
|
117
110
|
|
118
111
|
private
|
119
112
|
|
113
|
+
def warn_for_new_versions_exact(available_versions, name, resolved_version)
|
114
|
+
newest_version = available_versions.find { |version|
|
115
|
+
report_pre_releases ? true : version.pre.nil?
|
116
|
+
}
|
117
|
+
warn(
|
118
|
+
<<-TEXT
|
119
|
+
Newer version of #{name}: #{newest_version} (but this package is set to exact version #{resolved_version})
|
120
|
+
TEXT
|
121
|
+
) unless newest_version.to_s == resolved_version
|
122
|
+
end
|
123
|
+
|
120
124
|
def warn_for_new_versions_range(available_versions, name, requirement, resolved_version)
|
121
125
|
max_version = Semantic::Version.new(requirement["maximumVersion"])
|
122
126
|
if available_versions.first < max_version
|
123
127
|
warn("Newer version of #{name}: #{available_versions.first}")
|
124
128
|
else
|
125
129
|
newest_meeting_reqs = available_versions.find { |version|
|
126
|
-
version < max_version && report_pre_releases ? true : version.pre.nil?
|
130
|
+
version < max_version && (report_pre_releases ? true : version.pre.nil?)
|
127
131
|
}
|
128
132
|
warn("Newer version of #{name}: #{newest_meeting_reqs} ") unless newest_meeting_reqs.to_s == resolved_version
|
129
133
|
warn(
|
130
134
|
<<-TEXT
|
131
135
|
Newest version of #{name}: #{available_versions.first} (but this package is configured up to the next #{max_version} version)
|
132
136
|
TEXT
|
133
|
-
)
|
137
|
+
) if report_above_maximum
|
134
138
|
end
|
135
139
|
end
|
136
140
|
|
137
141
|
def warn_for_new_versions(major_or_minor, available_versions, name, resolved_version_string)
|
138
142
|
resolved_version = Semantic::Version.new(resolved_version_string)
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
143
|
+
newest_meeting_reqs = available_versions.find { |version|
|
144
|
+
(version.send(major_or_minor) == resolved_version.send(major_or_minor)) && (report_pre_releases ? true : version.pre.nil?)
|
145
|
+
}
|
146
|
+
|
147
|
+
warn("Newer version of #{name}: #{newest_meeting_reqs}") unless newest_meeting_reqs == resolved_version
|
148
|
+
return unless report_above_maximum
|
149
|
+
|
150
|
+
newest_above_reqs = available_versions.find { |version|
|
151
|
+
report_pre_releases ? true : version.pre.nil?
|
152
|
+
}
|
153
|
+
warn(
|
154
|
+
<<-TEXT
|
150
155
|
Newest version of #{name}: #{available_versions.first} (but this package is configured up to the next #{major_or_minor} version)
|
151
|
-
|
152
|
-
|
153
|
-
end
|
156
|
+
TEXT
|
157
|
+
) unless newest_above_reqs == newest_meeting_reqs || newest_meeting_reqs.to_s == resolved_version
|
154
158
|
end
|
155
159
|
|
160
|
+
# Remove git call to list tags
|
161
|
+
# @return [Array<Semantic::Version>]
|
156
162
|
def git_versions(repo_url)
|
157
163
|
`git ls-remote -t #{repo_url}`
|
158
164
|
.split("\n")
|
@@ -8,9 +8,6 @@ module Danger
|
|
8
8
|
expect(described_class.new(nil)).to be_a Danger::Plugin
|
9
9
|
end
|
10
10
|
|
11
|
-
#
|
12
|
-
# You should test your custom attributes and methods here
|
13
|
-
#
|
14
11
|
describe "with Dangerfile" do
|
15
12
|
before do
|
16
13
|
@dangerfile = testing_dangerfile
|
@@ -22,55 +19,47 @@ module Danger
|
|
22
19
|
allow(@my_plugin.github).to receive(:pr_json).and_return(json)
|
23
20
|
end
|
24
21
|
|
25
|
-
it "
|
26
|
-
allow(@my_plugin).to receive(:git_versions)
|
22
|
+
it "Does not report pre-release versions by default" do
|
23
|
+
allow(@my_plugin).to receive(:git_versions)
|
24
|
+
.and_return [
|
25
|
+
Semantic::Version.new("12.1.6"),
|
26
|
+
Semantic::Version.new("12.2.0-beta.1"),
|
27
|
+
Semantic::Version.new("12.2.0-beta.2"),
|
28
|
+
].sort.reverse
|
27
29
|
|
28
|
-
@my_plugin.
|
30
|
+
@my_plugin.check_when_exact = true
|
31
|
+
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/ExactVersion.xcodeproj")
|
29
32
|
|
30
33
|
expect(@dangerfile.status_report[:warnings]).to eq([])
|
31
34
|
end
|
32
35
|
|
33
|
-
it "
|
34
|
-
|
35
|
-
|
36
|
+
it "Does report new versions for exact versions when configured" do
|
37
|
+
allow(@my_plugin).to receive(:git_versions)
|
38
|
+
.and_return [
|
39
|
+
Semantic::Version.new("12.1.6"),
|
40
|
+
Semantic::Version.new("12.1.7"),
|
41
|
+
].sort.reverse
|
36
42
|
|
37
43
|
@my_plugin.check_when_exact = true
|
38
|
-
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/
|
44
|
+
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/ExactVersion.xcodeproj")
|
39
45
|
|
40
46
|
expect(@dangerfile.status_report[:warnings]).to eq(
|
41
47
|
[
|
42
|
-
"Newer version of
|
43
|
-
"Newer version of kean/Nuke: 12.2.0-beta.2 (but this package is set to exact version 12.1.6)\n",
|
44
|
-
"Newer version of pointfreeco/swiftui-navigation: 1.0.3 (but this package is set to exact version 1.0.2)\n",
|
45
|
-
"Newer version of getsentry/sentry-cocoa: 8.15.0 (but this package is set to exact version 8.12.0)\n",
|
46
|
-
"Newer version of firebase/firebase-ios-sdk: 10.17.0 (but this package is set to exact version 10.15.0)\n",
|
48
|
+
"Newer version of kean/Nuke: 12.1.7 (but this package is set to exact version 12.1.6)\n",
|
47
49
|
]
|
48
50
|
)
|
49
51
|
end
|
50
52
|
|
51
|
-
it "Does
|
52
|
-
allow(@my_plugin).to receive(:git_versions)
|
53
|
-
|
54
|
-
Semantic::Version.new("12.
|
55
|
-
Semantic::Version.new("12.
|
56
|
-
|
57
|
-
|
58
|
-
Semantic::Version.new("12.0.0-beta.5"),
|
59
|
-
Semantic::Version.new("12.0.0-rc.1"),
|
60
|
-
Semantic::Version.new("12.1.0"),
|
61
|
-
Semantic::Version.new("12.1.1"),
|
62
|
-
Semantic::Version.new("12.1.2"),
|
63
|
-
Semantic::Version.new("12.1.3"),
|
64
|
-
Semantic::Version.new("12.1.4"),
|
65
|
-
Semantic::Version.new("12.1.5"),
|
66
|
-
Semantic::Version.new("12.1.6"),
|
67
|
-
Semantic::Version.new("12.2.0-beta.1"),
|
68
|
-
Semantic::Version.new("12.2.0-beta.2"),
|
69
|
-
]
|
70
|
-
.sort
|
71
|
-
.reverse
|
53
|
+
it "Does report pre-release versions for exact versions when configured" do
|
54
|
+
allow(@my_plugin).to receive(:git_versions)
|
55
|
+
.and_return [
|
56
|
+
Semantic::Version.new("12.1.6"),
|
57
|
+
Semantic::Version.new("12.2.0-beta.2"),
|
58
|
+
].sort.reverse
|
59
|
+
|
72
60
|
@my_plugin.check_when_exact = true
|
73
|
-
@my_plugin.
|
61
|
+
@my_plugin.report_pre_releases = true
|
62
|
+
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/ExactVersion.xcodeproj")
|
74
63
|
|
75
64
|
expect(@dangerfile.status_report[:warnings]).to eq(
|
76
65
|
[
|
@@ -78,6 +67,78 @@ Semantic::Version.new("12.2.0-beta.2"),
|
|
78
67
|
]
|
79
68
|
)
|
80
69
|
end
|
70
|
+
|
71
|
+
it "Does report new versions for up to next major" do
|
72
|
+
allow(@my_plugin).to receive(:git_versions)
|
73
|
+
.and_return [
|
74
|
+
Semantic::Version.new("12.1.6"),
|
75
|
+
Semantic::Version.new("12.1.7"),
|
76
|
+
].sort.reverse
|
77
|
+
|
78
|
+
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/UpToNextMajor.xcodeproj")
|
79
|
+
|
80
|
+
expect(@dangerfile.status_report[:warnings]).to eq(
|
81
|
+
[
|
82
|
+
"Newer version of kean/Nuke: 12.1.7",
|
83
|
+
]
|
84
|
+
)
|
85
|
+
end
|
86
|
+
|
87
|
+
it "Reports pre-release versions for up to next major when configured" do
|
88
|
+
allow(@my_plugin).to receive(:git_versions)
|
89
|
+
.and_return [
|
90
|
+
Semantic::Version.new("12.1.6"),
|
91
|
+
Semantic::Version.new("12.2.0-beta.2"),
|
92
|
+
].sort.reverse
|
93
|
+
|
94
|
+
@my_plugin.check_when_exact = true
|
95
|
+
@my_plugin.report_pre_releases = true
|
96
|
+
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/UpToNextMajor.xcodeproj")
|
97
|
+
|
98
|
+
expect(@dangerfile.status_report[:warnings]).to eq(
|
99
|
+
[
|
100
|
+
"Newer version of kean/Nuke: 12.2.0-beta.2",
|
101
|
+
]
|
102
|
+
)
|
103
|
+
end
|
104
|
+
|
105
|
+
it "Does not report pre-release versions for up to next major" do
|
106
|
+
allow(@my_plugin).to receive(:git_versions)
|
107
|
+
.and_return [
|
108
|
+
Semantic::Version.new("12.1.6"),
|
109
|
+
Semantic::Version.new("12.2.0-beta.2"),
|
110
|
+
Semantic::Version.new("13.0.0"),
|
111
|
+
].sort.reverse
|
112
|
+
|
113
|
+
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/UpToNextMajor.xcodeproj")
|
114
|
+
|
115
|
+
expect(@dangerfile.status_report[:warnings]).to eq([])
|
116
|
+
end
|
117
|
+
|
118
|
+
it "Does not report new versions for up to next major when next version is major" do
|
119
|
+
allow(@my_plugin).to receive(:git_versions)
|
120
|
+
.and_return [
|
121
|
+
Semantic::Version.new("12.1.6"),
|
122
|
+
Semantic::Version.new("13.0.0"),
|
123
|
+
].sort.reverse
|
124
|
+
|
125
|
+
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/UpToNextMajor.xcodeproj")
|
126
|
+
|
127
|
+
expect(@dangerfile.status_report[:warnings]).to eq([])
|
128
|
+
end
|
129
|
+
|
130
|
+
it "Does report new versions for up to next major when next version is major and configured" do
|
131
|
+
allow(@my_plugin).to receive(:git_versions)
|
132
|
+
.and_return [
|
133
|
+
Semantic::Version.new("12.1.6"),
|
134
|
+
Semantic::Version.new("13.0.0"),
|
135
|
+
].sort.reverse
|
136
|
+
|
137
|
+
@my_plugin.report_above_maximum = true
|
138
|
+
@my_plugin.check_for_updates("#{File.dirname(__FILE__)}/support/fixtures/UpToNextMajor.xcodeproj")
|
139
|
+
|
140
|
+
expect(@dangerfile.status_report[:warnings]).to eq(["Newest version of kean/Nuke: 13.0.0 (but this package is configured up to the next major version)\n"])
|
141
|
+
end
|
81
142
|
end
|
82
143
|
end
|
83
144
|
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
// !$*UTF8*$!
|
2
|
+
{
|
3
|
+
archiveVersion = 1;
|
4
|
+
classes = {
|
5
|
+
};
|
6
|
+
objectVersion = 54;
|
7
|
+
objects = {
|
8
|
+
/* Begin PBXGroup section */
|
9
|
+
F1465EF423AA94BF0055F7C3 = {
|
10
|
+
isa = PBXGroup;
|
11
|
+
children = (
|
12
|
+
F1465EFF23AA94BF0055F7C3 /* Demo */,
|
13
|
+
);
|
14
|
+
sourceTree = "<group>";
|
15
|
+
};
|
16
|
+
F1465EFF23AA94BF0055F7C3 /* Demo */ = {
|
17
|
+
isa = PBXGroup;
|
18
|
+
children = ();
|
19
|
+
path = Demo;
|
20
|
+
sourceTree = "<group>";
|
21
|
+
};
|
22
|
+
/* End PBXGroup section */
|
23
|
+
|
24
|
+
/* Begin PBXProject section */
|
25
|
+
F1465EF523AA94BF0055F7C3 /* Project object */ = {
|
26
|
+
isa = PBXProject;
|
27
|
+
attributes = {
|
28
|
+
BuildIndependentTargetsInParallel = YES;
|
29
|
+
LastSwiftUpdateCheck = 1420;
|
30
|
+
LastUpgradeCheck = 1420;
|
31
|
+
TargetAttributes = {
|
32
|
+
F1465EFC23AA94BF0055F7C3 = {
|
33
|
+
CreatedOnToolsVersion = 11.2.1;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
buildConfigurationList = F1465EF823AA94BF0055F7C3 /* Build configuration list for PBXProject "Demo" */;
|
38
|
+
compatibilityVersion = "Xcode 9.3";
|
39
|
+
developmentRegion = en;
|
40
|
+
hasScannedForEncodings = 0;
|
41
|
+
knownRegions = (
|
42
|
+
en,
|
43
|
+
Base,
|
44
|
+
es,
|
45
|
+
"zh-Hans",
|
46
|
+
fr,
|
47
|
+
);
|
48
|
+
mainGroup = F1465EF423AA94BF0055F7C3;
|
49
|
+
packageReferences = (
|
50
|
+
11BBD37629C1571400F7A968 /* XCRemoteSwiftPackageReference "Nuke" */,
|
51
|
+
);
|
52
|
+
productRefGroup = F1465EFE23AA94BF0055F7C3 /* Products */;
|
53
|
+
projectDirPath = "";
|
54
|
+
projectRoot = "";
|
55
|
+
targets = ();
|
56
|
+
};
|
57
|
+
/* End PBXProject section */
|
58
|
+
|
59
|
+
/* Begin XCConfigurationList section */
|
60
|
+
F1465EF823AA94BF0055F7C3 /* Build configuration list for PBXNativeTarget "Demo" */ = {
|
61
|
+
isa = XCConfigurationList;
|
62
|
+
buildConfigurations = ();
|
63
|
+
defaultConfigurationIsVisible = 0;
|
64
|
+
defaultConfigurationName = Release;
|
65
|
+
};
|
66
|
+
/* End XCConfigurationList section */
|
67
|
+
|
68
|
+
/* Begin XCRemoteSwiftPackageReference section */
|
69
|
+
11BBD37629C1571400F7A968 /* XCRemoteSwiftPackageReference "Nuke" */ = {
|
70
|
+
isa = XCRemoteSwiftPackageReference;
|
71
|
+
repositoryURL = "https://github.com/kean/Nuke";
|
72
|
+
requirement = {
|
73
|
+
kind = upToNextMajorVersion;
|
74
|
+
minimumVersion = 12.1.6;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
/* End XCRemoteSwiftPackageReference section */
|
78
|
+
};
|
79
|
+
rootObject = F1465EF523AA94BF0055F7C3 /* Project object */;
|
80
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-spm_version_updates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harold Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|
@@ -246,10 +246,10 @@ files:
|
|
246
246
|
- lib/spm_version_updates/plugin.rb
|
247
247
|
- spec/spec_helper.rb
|
248
248
|
- spec/spm_version_updates_spec.rb
|
249
|
-
- spec/support/fixtures/
|
250
|
-
- spec/support/fixtures/
|
251
|
-
- spec/support/fixtures/
|
252
|
-
- spec/support/fixtures/
|
249
|
+
- spec/support/fixtures/ExactVersion.xcodeproj/project.pbxproj
|
250
|
+
- spec/support/fixtures/ExactVersion.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
|
251
|
+
- spec/support/fixtures/UpToNextMajor.xcodeproj/project.pbxproj
|
252
|
+
- spec/support/fixtures/UpToNextMajor.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
|
253
253
|
- spec/support/fixtures/github_pr.json
|
254
254
|
homepage: https://github.com/hbmartin/danger-spm_version_updates
|
255
255
|
licenses:
|
@@ -278,8 +278,8 @@ summary: A Danger plugin to detect if there are any updates to your Swift Packag
|
|
278
278
|
test_files:
|
279
279
|
- spec/spec_helper.rb
|
280
280
|
- spec/spm_version_updates_spec.rb
|
281
|
-
- spec/support/fixtures/
|
282
|
-
- spec/support/fixtures/
|
283
|
-
- spec/support/fixtures/
|
284
|
-
- spec/support/fixtures/
|
281
|
+
- spec/support/fixtures/ExactVersion.xcodeproj/project.pbxproj
|
282
|
+
- spec/support/fixtures/ExactVersion.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
|
283
|
+
- spec/support/fixtures/UpToNextMajor.xcodeproj/project.pbxproj
|
284
|
+
- spec/support/fixtures/UpToNextMajor.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
|
285
285
|
- spec/support/fixtures/github_pr.json
|
@@ -1,152 +0,0 @@
|
|
1
|
-
// !$*UTF8*$!
|
2
|
-
{
|
3
|
-
archiveVersion = 1;
|
4
|
-
classes = {
|
5
|
-
};
|
6
|
-
objectVersion = 54;
|
7
|
-
objects = {
|
8
|
-
/* Begin PBXGroup section */
|
9
|
-
F1465EF423AA94BF0055F7C3 = {
|
10
|
-
isa = PBXGroup;
|
11
|
-
children = (
|
12
|
-
F1465EFF23AA94BF0055F7C3 /* Demo */,
|
13
|
-
);
|
14
|
-
sourceTree = "<group>";
|
15
|
-
};
|
16
|
-
F1465EFF23AA94BF0055F7C3 /* Demo */ = {
|
17
|
-
isa = PBXGroup;
|
18
|
-
children = ();
|
19
|
-
path = Demo;
|
20
|
-
sourceTree = "<group>";
|
21
|
-
};
|
22
|
-
/* End PBXGroup section */
|
23
|
-
|
24
|
-
/* Begin PBXProject section */
|
25
|
-
F1465EF523AA94BF0055F7C3 /* Project object */ = {
|
26
|
-
isa = PBXProject;
|
27
|
-
attributes = {
|
28
|
-
BuildIndependentTargetsInParallel = YES;
|
29
|
-
LastSwiftUpdateCheck = 1420;
|
30
|
-
LastUpgradeCheck = 1420;
|
31
|
-
TargetAttributes = {
|
32
|
-
F1465EFC23AA94BF0055F7C3 = {
|
33
|
-
CreatedOnToolsVersion = 11.2.1;
|
34
|
-
};
|
35
|
-
};
|
36
|
-
};
|
37
|
-
buildConfigurationList = F1465EF823AA94BF0055F7C3 /* Build configuration list for PBXProject "Demo" */;
|
38
|
-
compatibilityVersion = "Xcode 9.3";
|
39
|
-
developmentRegion = en;
|
40
|
-
hasScannedForEncodings = 0;
|
41
|
-
knownRegions = (
|
42
|
-
en,
|
43
|
-
Base,
|
44
|
-
es,
|
45
|
-
"zh-Hans",
|
46
|
-
fr,
|
47
|
-
);
|
48
|
-
mainGroup = F1465EF423AA94BF0055F7C3;
|
49
|
-
packageReferences = (
|
50
|
-
115E40CB29B6D0EC00887A45 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */,
|
51
|
-
11BBD37629C1571400F7A968 /* XCRemoteSwiftPackageReference "Nuke" */,
|
52
|
-
11B8EE072A01A5AA00201115 /* XCRemoteSwiftPackageReference "maplibre-gl-native-distribution" */,
|
53
|
-
116B05982A66192400EB92A4 /* XCRemoteSwiftPackageReference "swiftui-navigation" */,
|
54
|
-
F21242692A88338C005407A6 /* XCRemoteSwiftPackageReference "sentry-cocoa" */,
|
55
|
-
1179CA742AAF97DB006EF58C /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
|
56
|
-
112F9EF52ABD298C003D2CE6 /* XCRemoteSwiftPackageReference "LookingGlassUI" */,
|
57
|
-
CA7732012ADDBF49009F6B1B /* XCRemoteSwiftPackageReference "PhoneNumberKit" */,
|
58
|
-
F2C780582AEDB44700588969 /* XCRemoteSwiftPackageReference "analytics-swift" */,
|
59
|
-
);
|
60
|
-
productRefGroup = F1465EFE23AA94BF0055F7C3 /* Products */;
|
61
|
-
projectDirPath = "";
|
62
|
-
projectRoot = "";
|
63
|
-
targets = ();
|
64
|
-
};
|
65
|
-
/* End PBXProject section */
|
66
|
-
|
67
|
-
/* Begin XCConfigurationList section */
|
68
|
-
F1465EF823AA94BF0055F7C3 /* Build configuration list for PBXNativeTarget "Demo" */ = {
|
69
|
-
isa = XCConfigurationList;
|
70
|
-
buildConfigurations = ();
|
71
|
-
defaultConfigurationIsVisible = 0;
|
72
|
-
defaultConfigurationName = Release;
|
73
|
-
};
|
74
|
-
/* End XCConfigurationList section */
|
75
|
-
|
76
|
-
/* Begin XCRemoteSwiftPackageReference section */
|
77
|
-
112F9EF52ABD298C003D2CE6 /* XCRemoteSwiftPackageReference "LookingGlassUI" */ = {
|
78
|
-
isa = XCRemoteSwiftPackageReference;
|
79
|
-
repositoryURL = "https://github.com/ryanlintott/LookingGlassUI";
|
80
|
-
requirement = {
|
81
|
-
kind = upToNextMajorVersion;
|
82
|
-
minimumVersion = 0.3.1;
|
83
|
-
};
|
84
|
-
};
|
85
|
-
115E40CB29B6D0EC00887A45 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */ = {
|
86
|
-
isa = XCRemoteSwiftPackageReference;
|
87
|
-
repositoryURL = "https://github.com/pointfreeco/swift-snapshot-testing";
|
88
|
-
requirement = {
|
89
|
-
kind = exactVersion;
|
90
|
-
version = 1.13.0;
|
91
|
-
};
|
92
|
-
};
|
93
|
-
116B05982A66192400EB92A4 /* XCRemoteSwiftPackageReference "swiftui-navigation" */ = {
|
94
|
-
isa = XCRemoteSwiftPackageReference;
|
95
|
-
repositoryURL = "https://github.com/pointfreeco/swiftui-navigation";
|
96
|
-
requirement = {
|
97
|
-
kind = exactVersion;
|
98
|
-
version = 1.0.2;
|
99
|
-
};
|
100
|
-
};
|
101
|
-
1179CA742AAF97DB006EF58C /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
|
102
|
-
isa = XCRemoteSwiftPackageReference;
|
103
|
-
repositoryURL = "https://github.com/firebase/firebase-ios-sdk";
|
104
|
-
requirement = {
|
105
|
-
kind = exactVersion;
|
106
|
-
version = 10.15.0;
|
107
|
-
};
|
108
|
-
};
|
109
|
-
11B8EE072A01A5AA00201115 /* XCRemoteSwiftPackageReference "maplibre-gl-native-distribution" */ = {
|
110
|
-
isa = XCRemoteSwiftPackageReference;
|
111
|
-
repositoryURL = "https://github.com/maplibre/maplibre-gl-native-distribution";
|
112
|
-
requirement = {
|
113
|
-
kind = exactVersion;
|
114
|
-
version = 5.13.0;
|
115
|
-
};
|
116
|
-
};
|
117
|
-
11BBD37629C1571400F7A968 /* XCRemoteSwiftPackageReference "Nuke" */ = {
|
118
|
-
isa = XCRemoteSwiftPackageReference;
|
119
|
-
repositoryURL = "https://github.com/kean/Nuke";
|
120
|
-
requirement = {
|
121
|
-
kind = exactVersion;
|
122
|
-
version = 12.1.6;
|
123
|
-
};
|
124
|
-
};
|
125
|
-
CA7732012ADDBF49009F6B1B /* XCRemoteSwiftPackageReference "PhoneNumberKit" */ = {
|
126
|
-
isa = XCRemoteSwiftPackageReference;
|
127
|
-
repositoryURL = "https://github.com/marmelroy/PhoneNumberKit.git";
|
128
|
-
requirement = {
|
129
|
-
kind = upToNextMajorVersion;
|
130
|
-
minimumVersion = 3.7.4;
|
131
|
-
};
|
132
|
-
};
|
133
|
-
F21242692A88338C005407A6 /* XCRemoteSwiftPackageReference "sentry-cocoa" */ = {
|
134
|
-
isa = XCRemoteSwiftPackageReference;
|
135
|
-
repositoryURL = "https://github.com/getsentry/sentry-cocoa.git";
|
136
|
-
requirement = {
|
137
|
-
kind = exactVersion;
|
138
|
-
version = 8.12.0;
|
139
|
-
};
|
140
|
-
};
|
141
|
-
F2C780582AEDB44700588969 /* XCRemoteSwiftPackageReference "analytics-swift" */ = {
|
142
|
-
isa = XCRemoteSwiftPackageReference;
|
143
|
-
repositoryURL = "git@github.com:hbmartin/analytics-swift.git";
|
144
|
-
requirement = {
|
145
|
-
branch = main;
|
146
|
-
kind = branch;
|
147
|
-
};
|
148
|
-
};
|
149
|
-
/* End XCRemoteSwiftPackageReference section */
|
150
|
-
};
|
151
|
-
rootObject = F1465EF523AA94BF0055F7C3 /* Project object */;
|
152
|
-
}
|
/data/spec/support/fixtures/{HasPreRelease.xcodeproj → ExactVersion.xcodeproj}/project.pbxproj
RENAMED
File without changes
|
File without changes
|