censorius 0.1.0 → 0.1.1
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/README.md +4 -0
- data/lib/censorius.rb +11 -2
- data/lib/censorius/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a29b3fe7ae672bc0a51029e4dae7c337edf46907faa6b4abe0ea3706db9d7a9
|
4
|
+
data.tar.gz: d36489dfb8f7046baa30b834c8e3929ffa5f70025af7310de52f0a897fd4d8e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fd0717d4837d0b5ed89ac6c185529bd004481555575f5b3968ebedbe21d37fad658fff5349e047cff88b7f60b7cd62a5370600eacde2744b66e0f7cb589c0f1
|
7
|
+
data.tar.gz: 94dea2db18ccafb73e2cca9c2c9e8fb7b9aa891aaf4418953ad83ea670fa5e7057a8d3d3d294617aab15b9c615a7adc8ac1cd85092a14cb7393a67bd67b2539a
|
data/README.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
# Censorius
|
2
|
+
[](https://rubygems.org/gems/censorius)
|
3
|
+
[](https://twitter.com/igormaka)
|
4
|
+
[](./LICENSE.txt)
|
5
|
+
[](https://github.com/igor-makarov/censorius/actions)
|
2
6
|
|
3
7
|
Censorius is a small gem that generates deterministic and stable UUID paths for [Xcodeproj](https://github.com/CocoaPods/Xcodeproj). It's meant to be used either with [CocoaPods](https://github.com/CocoaPods/CocoaPods) or [Xcake](https://github.com/igor-makarov/xcake) to reduce meaningless Xcode project file differences, and therefore make Xcode incremental builds after project generation shorter.
|
4
8
|
|
data/lib/censorius.rb
CHANGED
@@ -98,9 +98,18 @@ module Censorius
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
def generate_paths_file_reference(file_reference)
|
101
|
+
def generate_paths_file_reference(file_reference) # rubocop:disable Metrics/AbcSize
|
102
102
|
project_path = @paths_by_object[file_reference.project.root_object]
|
103
|
-
|
103
|
+
params = []
|
104
|
+
if !file_reference.name.nil? &&
|
105
|
+
!file_reference.name.empty? &&
|
106
|
+
file_reference.name != File.basename(file_reference.full_path, '.*') &&
|
107
|
+
file_reference.name != File.basename(file_reference.full_path)
|
108
|
+
params << "name: #{file_reference.name}"
|
109
|
+
end
|
110
|
+
params << file_reference.full_path.to_s
|
111
|
+
|
112
|
+
@paths_by_object[file_reference] = "#{project_path}/PBXFileReference(#{params.join(', ')})"
|
104
113
|
end
|
105
114
|
|
106
115
|
def generate_paths_target_dependency(dependency, parent_path)
|
data/lib/censorius/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: censorius
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Makarov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|