synx 0.0.5 → 0.0.51

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjVjZDBiOTVjYmRmNmFhODI0ZmJlNDliMDM5ZTQwM2JjMDI3ODY0YQ==
4
+ MGExZTMxYzAxZDFiODY4YzNhYTc4YTM0OTczOGIwMTM5Mjg5NWI4MQ==
5
5
  data.tar.gz: !binary |-
6
- ODcxNGFiZDQ1YjM1NjNkYTBhZGVmMGU2ZWFmYTUxOWVmMmYzMTA3Mg==
6
+ NDA0MDNlMzMzMjNkZGY4OThjMTYwOGViMDRjMDViOTEzNGY0MWM1YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDZjM2E0NjNhZTIzNjEyODgyY2UwZWVlYTc3Y2MxOWFlOGU2YWJkNWYxMDJl
10
- MmNhMDUwNzEzOGU1MGY3NmEzMTVmZDc0OGNkZmNkNDcyNGFlNzI5Zjc1NDg5
11
- Y2NmMDJiNzM2YjgyNzM5N2NhY2Y0Y2Y0ODcxOTU0NzMxNDEwMDQ=
9
+ OWZkMTBmNDVlNmU5N2E1MmY3ZWFmNzVkYjk1M2ZmMWJhZWE0YzQ2NjAxYTFm
10
+ ZDJlMThjNWVjOTZlMjE3NzNmNjMzNTBiYWFlZTIyYzdlYTQyNzdmYTYyMmMz
11
+ MjNkYzI4MjcwYWFiYTE3MTM1M2Y2ODJlYWQwYWE2YTM0MGZmNGY=
12
12
  data.tar.gz: !binary |-
13
- MTdjN2NiMjMzODYzMGI2ZTVjNjRhMDk2NTJmYzIzZDg2OTQyMmUxNzJlNmQ3
14
- M2MyMzMzYzY0YTcxNDZlMThkZjJhZGI3ZDE5MGZiMmUyOWRhNGJhZTg4OGRi
15
- NWYwY2ViNTExNDVkZjBlODg3M2E3MzJhNzU3M2NkN2I3ZDg3NzA=
13
+ ZDkxYjA5M2U1MWM5ZWNmNjRkZmQ5ZDMyYTgxMzRmNGI2MTQ3NjI4MmY1MjJk
14
+ ODNhNjY0MjEzNmExNDkyMjZmNDY3ZGNiNDdmZGM3Zjk4MjIzNGQ3MWNlOTcw
15
+ YTVmODE2YTc4NWVlYzU5Yjc5YWUxNTEzYzdlODNiZmMyMjAwNDI=
@@ -33,7 +33,7 @@ module Xcodeproj
33
33
  else
34
34
  Synx::Tabber.puts "#{basename}/".green
35
35
  Synx::Tabber.increase
36
- Dir[real_path.to_s + "/*"].each do |entry|
36
+ Dir[real_path.to_s + "/{*,.*}"].each do |entry|
37
37
  entry_pathname = real_path + entry
38
38
  unless has_entry?(entry_pathname)
39
39
  handle_unused_entry(entry_pathname)
@@ -67,19 +67,22 @@ module Xcodeproj
67
67
  private :variant_groups
68
68
 
69
69
  def handle_unused_entry(entry_pathname)
70
- if entry_pathname.directory?
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?
76
- # recurse
77
- Synx::Tabber.puts entry_pathname.basename.to_s.green
78
- Synx::Tabber.increase
79
- entry_pathname.children.each { |child| handle_unused_entry(child) }
80
- Synx::Tabber.decrease
81
- elsif entry_pathname.file?
82
- handle_unused_file(entry_pathname)
70
+ entries_to_ignore = %W(.DS_Store)
71
+ unless entries_to_ignore.include?(entry_pathname.basename.to_s)
72
+ if entry_pathname.directory?
73
+ work_entry_pathname = project.pathname_to_work_pathname(entry_pathname)
74
+ # The directory may have already been created for one of two reasons
75
+ # 1. It was created as a piece of another path, ie, /this/middle/directory.mkdir got called.
76
+ # 2. OS X has case insensitive folder names, so has_entry may have failed to notice it had the folder.
77
+ work_entry_pathname.mkdir unless work_entry_pathname.exist?
78
+ # recurse
79
+ Synx::Tabber.puts entry_pathname.basename.to_s.green
80
+ Synx::Tabber.increase
81
+ entry_pathname.children.each { |child| handle_unused_entry(child) }
82
+ Synx::Tabber.decrease
83
+ elsif entry_pathname.file?
84
+ handle_unused_file(entry_pathname)
85
+ end
83
86
  end
84
87
  end
85
88
  private :handle_unused_entry
data/lib/synx/project.rb CHANGED
@@ -87,7 +87,7 @@ module Synx
87
87
  end
88
88
 
89
89
  def pathname_is_inside_root_pathname?(grandchild_pathname)
90
- grandchild_pathname.realpath.to_s =~ /^#{root_pathname.realpath.to_s}/
90
+ grandchild_pathname.realpath.to_s.start_with?(root_pathname.realpath.to_s)
91
91
  end
92
92
 
93
93
  def group_exclusions=(new_exclusions)
data/lib/synx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Synx
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.51"
3
3
  end
@@ -7,6 +7,7 @@ dummy:
7
7
  image-not-in-xcodeproj.png:
8
8
  AlreadySynced:
9
9
  Core Data.xcdatamodeld:
10
+ .xccurrentversion:
10
11
  Core Data.xcdatamodel:
11
12
  contents:
12
13
  Core Data 2.xcdatamodel:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-02 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -239,3 +239,4 @@ test_files:
239
239
  - spec/synx/pbx_group_spec.rb
240
240
  - spec/synx/project_spec.rb
241
241
  - spec/synx/tabber_spec.rb
242
+ has_rdoc: