xsort 1.4.0 → 1.4.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e4a632e4cfec9aa36b26078e8a5530dc8b9db93bb34057fcc6107fe8ccdc75e
|
|
4
|
+
data.tar.gz: cecda77fb39f7fe19f0feb299d4e27e469325a75733d4c5ba7363531ef29c9fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 729cc0543c8f7e5a1fc00aa3754a1ce7e38986f19892183bcca432e31fc6d7c595a1b125bc8c3b14557c59c04e99fcaf5cb64bf69e513e6650b3a21a06aec80f
|
|
7
|
+
data.tar.gz: 447046017fa4824ea03925f22a69e459e80a1c868eca588f2105d6847bbb80d621614f7b5de490706fc3c9d908385b2dc819d7a9d34d8a9cc03dbc4e94ad70b1
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -56,16 +56,16 @@ $ git clone https://github.com/keisukeYamagishi/xsort.git
|
|
|
56
56
|
## Usage
|
|
57
57
|
|
|
58
58
|
```
|
|
59
|
-
|
|
59
|
+
xsort version: 1.4.0
|
|
60
|
+
xsort sort an Xcode file tree
|
|
60
61
|
Usage: xsort [-v] [<path>] [-o]
|
|
61
|
-
|
|
62
|
-
xsort version: 1.2.5
|
|
62
|
+
The following options can be used with Xsort.
|
|
63
63
|
option:
|
|
64
64
|
-v: display xsort version number
|
|
65
65
|
-o: output result
|
|
66
|
-
-r: Just extracting output.pbxproj will not write to pbxproj of Xcode project
|
|
66
|
+
-r: Just only extracting output.pbxproj will not write to pbxproj of Xcode project so safty
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
King Regards!
|
|
69
69
|
|
|
70
70
|
```
|
|
71
71
|
|
|
@@ -165,7 +165,7 @@ xsort ../App/App.xcodeproj -r
|
|
|
165
165
|
```
|
|
166
166
|
->> ./xsort -v
|
|
167
167
|
|
|
168
|
-
Version: 1.
|
|
168
|
+
Version: 1.4.0
|
|
169
169
|
```
|
|
170
170
|
|
|
171
171
|
## Contributing
|
data/lib/xsort/version.rb
CHANGED
|
@@ -24,18 +24,6 @@ module Xcodeproj
|
|
|
24
24
|
productPbx = ""
|
|
25
25
|
|
|
26
26
|
@pbxs.each{ |pbx|
|
|
27
|
-
# puts "parent PBX"
|
|
28
|
-
# puts pbx.parentName
|
|
29
|
-
# puts pbx.parentUUID
|
|
30
|
-
# puts pbx.parentPbx
|
|
31
|
-
# puts pbx.parentPbx
|
|
32
|
-
# puts pbx.parentName
|
|
33
|
-
# puts pbx.parentUUID
|
|
34
|
-
# ->> puts pbx.pbxBase
|
|
35
|
-
# puts "children"
|
|
36
|
-
# pbx.children.each { |pbxC|
|
|
37
|
-
# puts pbxC.name
|
|
38
|
-
# }
|
|
39
27
|
sort = pbx.children.sort{|pbx1, pbx2|
|
|
40
28
|
pbx1.name <=> pbx2.name
|
|
41
29
|
}
|
|
@@ -48,10 +36,6 @@ module Xcodeproj
|
|
|
48
36
|
else
|
|
49
37
|
child.push(pbx.childPbx)
|
|
50
38
|
end
|
|
51
|
-
# child.push(pbx.childPbx)
|
|
52
|
-
# puts pbx.uuid
|
|
53
|
-
# puts pbx.name
|
|
54
|
-
# ->> puts pbx.childPbx
|
|
55
39
|
}
|
|
56
40
|
|
|
57
41
|
if productPbx.length != 0
|
|
@@ -15,41 +15,14 @@ module Xcodeproj
|
|
|
15
15
|
class PbxGroup
|
|
16
16
|
|
|
17
17
|
def initialize
|
|
18
|
-
@parentPbx = ""
|
|
19
|
-
@parentName = ""
|
|
20
|
-
@parentUUID = ""
|
|
21
18
|
@pbxBase = ""
|
|
22
19
|
@children = Array.new
|
|
23
20
|
end
|
|
24
21
|
|
|
25
|
-
def parentPbx
|
|
26
|
-
@parentPbx
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
def parentName
|
|
30
|
-
@parentName
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def parentUUID
|
|
34
|
-
@parentUUID
|
|
35
|
-
end
|
|
36
|
-
|
|
37
22
|
def pbxBase
|
|
38
23
|
@pbxBase
|
|
39
24
|
end
|
|
40
25
|
|
|
41
|
-
def setParentName(name)
|
|
42
|
-
@parentName = name
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
def setParentUUID(uuid)
|
|
46
|
-
@parentUUID = uuid
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def setParentPbx(pbx)
|
|
50
|
-
@parentPbx = pbx
|
|
51
|
-
end
|
|
52
|
-
|
|
53
26
|
def setPbxBase(base)
|
|
54
27
|
@pbxBase = base
|
|
55
28
|
end
|
|
@@ -70,16 +43,11 @@ module Xcodeproj
|
|
|
70
43
|
module PbxObject
|
|
71
44
|
class PbxChild
|
|
72
45
|
|
|
73
|
-
def initialize(
|
|
74
|
-
@uuid = uuid
|
|
46
|
+
def initialize(name, childPbx)
|
|
75
47
|
@name = name
|
|
76
48
|
@childPbx = childPbx
|
|
77
49
|
end
|
|
78
50
|
|
|
79
|
-
def uuid
|
|
80
|
-
@uuid
|
|
81
|
-
end
|
|
82
|
-
|
|
83
51
|
def name
|
|
84
52
|
@name
|
|
85
53
|
end
|
|
@@ -132,8 +100,7 @@ module Xcodeproj
|
|
|
132
100
|
|
|
133
101
|
if isPbxChild == true
|
|
134
102
|
name = Emurate.emurates(pbx_line)
|
|
135
|
-
|
|
136
|
-
@child = Xcodeproj::Pbxproj::PbxObject::PbxChild.new(uuid,name,pbx_line)
|
|
103
|
+
@child = Xcodeproj::Pbxproj::PbxObject::PbxChild.new(name,pbx_line)
|
|
137
104
|
@group.setChildren(@child)
|
|
138
105
|
end
|
|
139
106
|
|
|
@@ -145,11 +112,7 @@ module Xcodeproj
|
|
|
145
112
|
if pbx_line.index(" = {")
|
|
146
113
|
isPbxOneValue = true
|
|
147
114
|
name = Emurate.emurates(pbx_line)
|
|
148
|
-
|
|
149
|
-
@group = Xcodeproj::Pbxproj::PbxObject::PbxGroup.new
|
|
150
|
-
@group.setParentName(name)
|
|
151
|
-
@group.setParentUUID(uuid)
|
|
152
|
-
@group.setParentPbx(pbx_line)
|
|
115
|
+
@group = Xcodeproj::Pbxproj::PbxObject::PbxGroup.new
|
|
153
116
|
end
|
|
154
117
|
|
|
155
118
|
if isPbxOneValue == true
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xsort
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- keisuke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-02-
|
|
11
|
+
date: 2020-02-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|