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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38ba9b910838a673bb8e0199f562abae2e140126
4
- data.tar.gz: f9a300779af02f69433fa27e033cad0d293d97a6
3
+ metadata.gz: 595d22890b8896c7ff98ff6119cb7b6447b2e777
4
+ data.tar.gz: 82c3e9308a23c4c3dd6fb7716f78f9b54b7b4e33
5
5
  SHA512:
6
- metadata.gz: 4d9fe16a2d37b84481703837be549b1c5a0ba4156d9968675d00ed69dc98917cbaef6ea5ec04db1076f6bb21555c03abf14e27fa99fd28024379fd2dbf4ce63d
7
- data.tar.gz: c7ce4e21c6e7768e3ff765aa7a9332169593477a761ffa1d2234b0d8df69c6276752ba712a898e8d5f89fb525be7c92c8a86ee62ad0accfbfd61effce33d8e2f
6
+ metadata.gz: 31c660e75c389b8a461eff66a8fddebbd58163774d44cd32947a1bdc874dabfbcdf7e4b84c9f8e29410b7ec315c6aaab0cbc58a84be8c3eed2038a77098ad2b4
7
+ data.tar.gz: a552e674fee0cdffc2e0607075125066789a239d27adb910701905e3b9f6d7b92d0875bdb251876061d1eb3a54ebb8fd85f8fc6805fdbd25d4500ef121fe689d
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/synx.svg)](http://badge.fury.io/rb/synx)
2
- ![Travis](https://travis-ci.org/venmo/synx.svg?branch=master)
2
+ [![Build Status](https://travis-ci.org/venmo/synx.svg?branch=master)](https://travis-ci.org/venmo/synx)
3
3
 
4
4
  ![synx logo](https://raw.githubusercontent.com/venmo/synx/marklarr/dev/docs/images/synx-logo.png?token=760261__eyJzY29wZSI6IlJhd0Jsb2I6dmVubW8vc3lueC9tYXJrbGFyci9kZXYvZG9jcy9pbWFnZXMvc3lueC1sb2dvLnBuZyIsImV4cGlyZXMiOjE0MDE5MzExNDF9--6c8a22318eaafed2185cb16d39189dcadb75c742)
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 Synx that weren't ever referenced by any groups in Xcode.
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.
@@ -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).mkdir
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
@@ -1,3 +1,3 @@
1
1
  module Synx
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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 */
@@ -1,4 +1,6 @@
1
1
  dummy:
2
+ FolderWithGroupNotLinked:
3
+ data.json:
2
4
  Resources:
3
5
  image.png:
4
6
  data.json:
@@ -1,4 +1,6 @@
1
1
  dummy:
2
+ FolderWithGroupNotLinked:
3
+ data.json:
2
4
  Resources:
3
5
  image.png:
4
6
  AlreadySynced:
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.2
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