synx 0.0.2 → 0.0.3
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 +8 -13
- data/lib/synx/pbx_group.rb +5 -1
- data/lib/synx/version.rb +1 -1
- data/spec/dummy/dummy.xcodeproj/project.pbxproj +10 -0
- data/spec/dummy/dummy/folderWithGroupNotLinked/data.json +0 -0
- data/spec/synx/expected_file_structure.yml +2 -0
- data/spec/synx/expected_group_structure.yml +2 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 595d22890b8896c7ff98ff6119cb7b6447b2e777
|
4
|
+
data.tar.gz: 82c3e9308a23c4c3dd6fb7716f78f9b54b7b4e33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31c660e75c389b8a461eff66a8fddebbd58163774d44cd32947a1bdc874dabfbcdf7e4b84c9f8e29410b7ec315c6aaab0cbc58a84be8c3eed2038a77098ad2b4
|
7
|
+
data.tar.gz: a552e674fee0cdffc2e0607075125066789a239d27adb910701905e3b9f6d7b92d0875bdb251876061d1eb3a54ebb8fd85f8fc6805fdbd25d4500ef121fe689d
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[](http://badge.fury.io/rb/synx)
|
2
|
-
](https://travis-ci.org/venmo/synx)
|
3
3
|
|
4
4
|

|
5
5
|
|
@@ -17,16 +17,6 @@ A command-line tool that automagically reorganizes your Xcode project folder.
|
|
17
17
|
|
18
18
|
## Installation
|
19
19
|
|
20
|
-
Add this line to your application's Gemfile:
|
21
|
-
|
22
|
-
gem 'synx'
|
23
|
-
|
24
|
-
And then execute:
|
25
|
-
|
26
|
-
$ bundle
|
27
|
-
|
28
|
-
Or install it yourself as:
|
29
|
-
|
30
20
|
$ gem install synx
|
31
21
|
|
32
22
|
## Usage
|
@@ -41,7 +31,7 @@ Execute the command on your project to have it reorganize the files on the file
|
|
41
31
|
|
42
32
|
It may have confused cocoapods. Pod install, if you use them:
|
43
33
|
|
44
|
-
$ pod
|
34
|
+
$ pod install
|
45
35
|
|
46
36
|
You're good to go!
|
47
37
|
|
@@ -59,7 +49,7 @@ OCMock, for example, could have done:
|
|
59
49
|
|
60
50
|
$ synx -p -e=OCMock/Core -e=OCKMockTests Source/OCMock.xcodeproj
|
61
51
|
|
62
|
-
if they wanted to not sync the `OCMock/Core` and `OCMockTests` groups, and also remove (`-p`) any image/source files found by
|
52
|
+
if they wanted to not sync the `OCMock/Core` and `OCMockTests` groups, and also remove (`-p`) any image/source files found by synx that weren't ever referenced by any groups in Xcode.
|
63
53
|
|
64
54
|
## Contributing
|
65
55
|
|
@@ -68,3 +58,8 @@ if they wanted to not sync the `OCMock/Core` and `OCMockTests` groups, and also
|
|
68
58
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
69
59
|
4. Push to the branch (`git push origin my-new-feature`)
|
70
60
|
5. Create a new Pull Request
|
61
|
+
|
62
|
+
## Contributors
|
63
|
+
|
64
|
+
* @vrjbndr, awesome logo!
|
65
|
+
* @ayanonagon and @benzguo, feedback.
|
data/lib/synx/pbx_group.rb
CHANGED
@@ -68,7 +68,11 @@ module Xcodeproj
|
|
68
68
|
|
69
69
|
def handle_unused_entry(entry_pathname)
|
70
70
|
if entry_pathname.directory?
|
71
|
-
project.pathname_to_work_pathname(entry_pathname)
|
71
|
+
work_entry_pathname = project.pathname_to_work_pathname(entry_pathname)
|
72
|
+
# The directory may have already been created for one of two reasons
|
73
|
+
# 1. It was created as a piece of another path, ie, /this/middle/directory.mkdir got called.
|
74
|
+
# 2. OS X has case insensitive folder names, so has_entry may have failed to notice it had the folder.
|
75
|
+
work_entry_pathname.mkdir unless work_entry_pathname.exist?
|
72
76
|
# recurse
|
73
77
|
Synx::Tabber.puts entry_pathname.basename.to_s.green
|
74
78
|
Synx::Tabber.increase
|
data/lib/synx/version.rb
CHANGED
@@ -76,6 +76,7 @@
|
|
76
76
|
8C848C65190DB9B300E9727B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
77
77
|
8C848C67190DB9B300E9727B /* dummyTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = dummyTests.m; sourceTree = "<group>"; };
|
78
78
|
8CADDD3A19354F120076033B /* image.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image.png; sourceTree = "<group>"; };
|
79
|
+
8CDA046319374F35004435A1 /* data.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = data.json; path = FolderWithGroupNotLinked/data.json; sourceTree = "<group>"; };
|
79
80
|
8CE2DA1D19220F7B00D06F5E /* dummyTests-prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "dummyTests-prefix.pch"; sourceTree = "<group>"; };
|
80
81
|
/* End PBXFileReference section */
|
81
82
|
|
@@ -177,6 +178,7 @@
|
|
177
178
|
8C848C4D190DB9B300E9727B /* dummy */ = {
|
178
179
|
isa = PBXGroup;
|
179
180
|
children = (
|
181
|
+
8CDA046219374F15004435A1 /* FolderWithGroupNotLinked */,
|
180
182
|
8CADDD3919354F060076033B /* Resources */,
|
181
183
|
8C2DEB84191D402E003A1F44 /* AlreadySynced */,
|
182
184
|
8C2DEB83191D3F9E003A1F44 /* GroupThatDoubleReferencesFile */,
|
@@ -232,6 +234,14 @@
|
|
232
234
|
name = Resources;
|
233
235
|
sourceTree = "<group>";
|
234
236
|
};
|
237
|
+
8CDA046219374F15004435A1 /* FolderWithGroupNotLinked */ = {
|
238
|
+
isa = PBXGroup;
|
239
|
+
children = (
|
240
|
+
8CDA046319374F35004435A1 /* data.json */,
|
241
|
+
);
|
242
|
+
name = FolderWithGroupNotLinked;
|
243
|
+
sourceTree = "<group>";
|
244
|
+
};
|
235
245
|
/* End PBXGroup section */
|
236
246
|
|
237
247
|
/* Begin PBXNativeTarget section */
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Larsen
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- spec/dummy/dummy/dummy-Prefix.pch
|
175
175
|
- spec/dummy/dummy/dummy.h
|
176
176
|
- spec/dummy/dummy/dummy.m
|
177
|
+
- spec/dummy/dummy/folderWithGroupNotLinked/data.json
|
177
178
|
- spec/dummy/dummy/image-not-in-xcodeproj.png
|
178
179
|
- spec/dummy/dummy/image.png
|
179
180
|
- spec/dummy/dummyTests/dummyTests-Info.plist
|
@@ -238,6 +239,7 @@ test_files:
|
|
238
239
|
- spec/dummy/dummy/dummy-Prefix.pch
|
239
240
|
- spec/dummy/dummy/dummy.h
|
240
241
|
- spec/dummy/dummy/dummy.m
|
242
|
+
- spec/dummy/dummy/folderWithGroupNotLinked/data.json
|
241
243
|
- spec/dummy/dummy/image-not-in-xcodeproj.png
|
242
244
|
- spec/dummy/dummy/image.png
|
243
245
|
- spec/dummy/dummyTests/dummyTests-Info.plist
|