synx 0.0.5 → 0.0.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/synx/pbx_group.rb +17 -14
- data/lib/synx/project.rb +1 -1
- data/lib/synx/version.rb +1 -1
- data/spec/synx/expected_file_structure.yml +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGExZTMxYzAxZDFiODY4YzNhYTc4YTM0OTczOGIwMTM5Mjg5NWI4MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDA0MDNlMzMzMjNkZGY4OThjMTYwOGViMDRjMDViOTEzNGY0MWM1YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWZkMTBmNDVlNmU5N2E1MmY3ZWFmNzVkYjk1M2ZmMWJhZWE0YzQ2NjAxYTFm
|
10
|
+
ZDJlMThjNWVjOTZlMjE3NzNmNjMzNTBiYWFlZTIyYzdlYTQyNzdmYTYyMmMz
|
11
|
+
MjNkYzI4MjcwYWFiYTE3MTM1M2Y2ODJlYWQwYWE2YTM0MGZmNGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDkxYjA5M2U1MWM5ZWNmNjRkZmQ5ZDMyYTgxMzRmNGI2MTQ3NjI4MmY1MjJk
|
14
|
+
ODNhNjY0MjEzNmExNDkyMjZmNDY3ZGNiNDdmZGM3Zjk4MjIzNGQ3MWNlOTcw
|
15
|
+
YTVmODE2YTc4NWVlYzU5Yjc5YWUxNTEzYzdlODNiZmMyMjAwNDI=
|
data/lib/synx/pbx_group.rb
CHANGED
@@ -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 + "
|
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
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
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
|
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
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.
|
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-
|
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:
|