spinjector 1.0.0 → 1.1.0
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +7 -7
- data/Makefile +5 -0
- data/README.md +4 -0
- data/lib/spinjector/entity/script.rb +4 -2
- data/lib/spinjector/project_service.rb +7 -0
- data/lib/spinjector/script_mapper.rb +2 -1
- data/spinjector.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0cd466c3d290434256b26cc672325061d0b9a529894bd7671eef6a7eddab120
|
4
|
+
data.tar.gz: 2979598888819c94cb8ab209b61109f45ac18f20e4606dcafba36ba7dee12357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85bc4a6d44242543bf71c9c1aaffc26e49dfd8fec2640e7d930414a061c3429fc5852134a6eeac5e95b45a4d6ac73f1397d786444b61171b71caa3712a63929d
|
7
|
+
data.tar.gz: 70aea91005b4afa5a571b91f7607611e98bdbf4e8d553796090858ec9ee923be9e35c60b2a5fe5605cce7b563efc867c00d72dfd5d4c7c5b172e32b3267b7c2c
|
data/CHANGELOG.md
CHANGED
@@ -10,10 +10,17 @@ All notable changes to this project will be documented in this file.
|
|
10
10
|
|
11
11
|
### Removed
|
12
12
|
|
13
|
+
## [1.1.0] - 2023-12-05
|
14
|
+
|
15
|
+
### Created
|
16
|
+
|
17
|
+
- Added `always_out_of_date` option to script to make Xcode always run them without dependency analysis.
|
18
|
+
|
13
19
|
## [1.0.0] - 2022-12-19
|
14
20
|
|
15
21
|
### Created
|
16
22
|
|
23
|
+
- Added an after_all option for the script position
|
17
24
|
- Make the script idempotent. Successive calls to configure don’t modify the pbxproj file anymore
|
18
25
|
- Added tests
|
19
26
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
spinjector (
|
4
|
+
spinjector (1.1.0)
|
5
5
|
optparse (~> 0.1)
|
6
6
|
xcodeproj (~> 1.21)
|
7
7
|
yaml (~> 0.2)
|
@@ -9,7 +9,7 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
CFPropertyList (3.0.
|
12
|
+
CFPropertyList (3.0.6)
|
13
13
|
rexml
|
14
14
|
ansi (1.5.0)
|
15
15
|
atomos (0.1.3)
|
@@ -25,21 +25,21 @@ GEM
|
|
25
25
|
minitest (>= 5.0)
|
26
26
|
ruby-progressbar
|
27
27
|
nanaimo (0.3.0)
|
28
|
-
optparse (0.
|
28
|
+
optparse (0.4.0)
|
29
29
|
rake (12.3.3)
|
30
|
-
rexml (3.2.
|
30
|
+
rexml (3.2.6)
|
31
31
|
ruby-progressbar (1.11.0)
|
32
|
-
xcodeproj (1.
|
32
|
+
xcodeproj (1.23.0)
|
33
33
|
CFPropertyList (>= 2.3.3, < 4.0)
|
34
34
|
atomos (~> 0.1.3)
|
35
35
|
claide (>= 1.0.2, < 2.0)
|
36
36
|
colored2 (~> 3.1)
|
37
37
|
nanaimo (~> 0.3.0)
|
38
38
|
rexml (~> 3.2.4)
|
39
|
-
yaml (0.
|
39
|
+
yaml (0.3.0)
|
40
40
|
|
41
41
|
PLATFORMS
|
42
|
-
|
42
|
+
ruby
|
43
43
|
|
44
44
|
DEPENDENCIES
|
45
45
|
bundler (>= 1.12.0, < 3.0.0)
|
data/Makefile
CHANGED
data/README.md
CHANGED
@@ -66,6 +66,10 @@ output_file_list_paths: # optional.
|
|
66
66
|
dependency_file: # optional.
|
67
67
|
|
68
68
|
execution_position: # optional. [:before_compile | :after_compile | :before_headers | :after_headers | :after_all].
|
69
|
+
|
70
|
+
show_env_vars_in_log: # optional. Set to '0' if you want to hide environment variables, any other values will allow them.
|
71
|
+
|
72
|
+
always_out_of_date: # optional. Set to '1' if the script should always run without dependency analysis.
|
69
73
|
```
|
70
74
|
|
71
75
|
- If you use the `script_path option`, create the script file
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
class Script
|
3
3
|
|
4
|
-
attr_reader :name, :source_code, :shell_path, :input_paths, :output_paths, :input_file_list_paths, :output_file_list_paths, :dependency_file, :execution_position, :show_env_vars_in_log
|
4
|
+
attr_reader :name, :source_code, :shell_path, :input_paths, :output_paths, :input_file_list_paths, :output_file_list_paths, :dependency_file, :execution_position, :show_env_vars_in_log, :always_out_of_date
|
5
5
|
|
6
6
|
def initialize(
|
7
7
|
name,
|
@@ -13,7 +13,8 @@ class Script
|
|
13
13
|
output_file_list_paths,
|
14
14
|
dependency_file,
|
15
15
|
execution_position,
|
16
|
-
show_env_vars_in_log
|
16
|
+
show_env_vars_in_log,
|
17
|
+
always_out_of_date
|
17
18
|
)
|
18
19
|
@name = name
|
19
20
|
@source_code = source_code
|
@@ -25,6 +26,7 @@ class Script
|
|
25
26
|
@dependency_file = dependency_file
|
26
27
|
@execution_position = execution_position
|
27
28
|
@show_env_vars_in_log = show_env_vars_in_log
|
29
|
+
@always_out_of_date = always_out_of_date
|
28
30
|
verify()
|
29
31
|
end
|
30
32
|
|
@@ -137,6 +137,13 @@ class ProjectService
|
|
137
137
|
# gets set to '0' if the user has explicitly disabled this.
|
138
138
|
if script_configuration.show_env_vars_in_log == '0'
|
139
139
|
existing_phase.show_env_vars_in_log = script_configuration.show_env_vars_in_log
|
140
|
+
else
|
141
|
+
existing_phase.show_env_vars_in_log = nil
|
142
|
+
end
|
143
|
+
if script_configuration.always_out_of_date == '1'
|
144
|
+
existing_phase.always_out_of_date = script_configuration.always_out_of_date
|
145
|
+
else
|
146
|
+
existing_phase.always_out_of_date = nil
|
140
147
|
end
|
141
148
|
end
|
142
149
|
|
@@ -19,7 +19,8 @@ class ScriptMapper
|
|
19
19
|
@script_hash["output_file_list_paths"] || [],
|
20
20
|
@script_hash["dependency_file"],
|
21
21
|
@script_hash["execution_position"] || :before_compile,
|
22
|
-
@script_hash["show_env_vars_in_log"]
|
22
|
+
@script_hash["show_env_vars_in_log"],
|
23
|
+
@script_hash["always_out_of_date"]
|
23
24
|
)
|
24
25
|
end
|
25
26
|
|
data/spinjector.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spinjector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Berthier, Fabernovel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: optparse
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.
|
183
|
+
rubygems_version: 3.4.10
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Inject script phases into your Xcode project
|