fastlane-plugin-stream_actions 0.4.9 → 0.4.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1cd47c9cf9078fdada6a7022e053bfcd562f02d4c1a75cc2ede14a018c8f769
4
- data.tar.gz: 9b044e1fe97cf5bf7bdcda612592e54eba35ffe9041779562858e07e71aefb46
3
+ metadata.gz: 2401c759c842685fbbb27e25fba273091eff05627873dc3f245a2692ac729986
4
+ data.tar.gz: 535b9fdb380ecae53c5ca3c39f69ad5f70ee481d0c8c65f088b3992914e53efa
5
5
  SHA512:
6
- metadata.gz: 56517c6f3dd4534e62c7112b8873b41efb3b1134e9d150773745c9c36438e5ec963c0a9394ef6d6e9da6394bc18afa3705c177e1494a074640263578e1b53870
7
- data.tar.gz: af2df2c639cc922e2fdadb265243017be271201b2e4c592acd64bf1b96157697c2150abbbaa1c83aec6653525da30a148ced86139ce89dc5702e2f96f109b93f
6
+ metadata.gz: a2b45995454c839f0451745d3ca98da00f96ac09f862bc20669b96cf2c4ebf87973041bc2fbf4b8f16cd417d3db8b6abbbc61e6d75a88e4440f8b008804bff75
7
+ data.tar.gz: e1a9de8fdf353ff9138031d5ee066004942e86de5da07d6a159496919c4d34592a0b7a0f73d5bfb7b43caabf9971cd6a8428358a2e676c3365fa0af26bc85960
@@ -25,17 +25,17 @@ module Fastlane
25
25
  if body =~ /\brevision:/ || body.include?('.revision(')
26
26
  violations << violation(dependency, 'revision-pinned dependency — pin it with `from:` or `exact:` instead')
27
27
  end
28
- if body.include?('..<') || body =~ /"\s*\.\.\.\s*"/ || body.include?('.upToNextMinor(')
29
- violations << violation(dependency, 'version-range dependency — pin it with `from:` or `exact:` instead')
30
- end
31
28
  if body =~ /\bpath:/
32
29
  violations << violation(dependency, 'local path dependency — it will not resolve for package consumers')
33
30
  end
34
31
  if dependency[:url] && dependency[:url] !~ %r{\Ahttps://}
35
32
  violations << violation(dependency, 'insecure or non-https url — use `https://`')
36
33
  end
37
- if violations.empty? && body !~ /\b(from|exact):/ && !body.include?('.exact(') && !body.include?('.upToNextMajor(')
38
- violations << violation(dependency, 'missing version requirement — pin it with `from:` or `exact:`')
34
+ if violations.empty? && !version_requirement?(body)
35
+ violations << violation(
36
+ dependency,
37
+ 'missing version requirement — pin it with `from:`, `exact:`, or a version range'
38
+ )
39
39
  end
40
40
  violations
41
41
  end
@@ -52,6 +52,15 @@ module Fastlane
52
52
  end
53
53
  end
54
54
 
55
+ def self.version_requirement?(body)
56
+ body =~ /\b(from|exact):/ ||
57
+ body.include?('.exact(') ||
58
+ body.include?('.upToNextMajor(') ||
59
+ body.include?('.upToNextMinor(') ||
60
+ body.include?('..<') ||
61
+ body =~ /"\s*\.\.\.\s*"/
62
+ end
63
+
55
64
  def self.violation(dependency, message)
56
65
  location = dependency[:url] ? "#{dependency[:url]} (line #{dependency[:line]})" : "line #{dependency[:line]}"
57
66
  "- #{location}: #{message}"
@@ -98,8 +107,9 @@ module Fastlane
98
107
  end
99
108
 
100
109
  def self.details
101
- 'Fails if any dependency is declared via branch, revision, version range, local path, ' \
102
- 'insecure url, or is duplicated. All dependencies should be pinned with `from:` or `exact:`.'
110
+ 'Fails if any dependency is declared via branch, revision, local path, ' \
111
+ 'insecure url, or is duplicated. Dependencies should be pinned with `from:`, `exact:`, ' \
112
+ 'or a closed version range.'
103
113
  end
104
114
 
105
115
  def self.available_options
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.4.9'
3
+ VERSION = '0.4.10'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-14 00:00:00.000000000 Z
11
+ date: 2026-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list