xcake 0.6.23 → 0.6.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cd5d71c3ac6a1f9f2c04fd05d10c70c14194f98
4
- data.tar.gz: 1955097615457d19444a8d39c2012f69e8401875
3
+ metadata.gz: 9cad5e364fd8796956e7f5c702ecf6cecd9529d6
4
+ data.tar.gz: f53b54c60cc0702763a4f6af3bffaf13e53f5b65
5
5
  SHA512:
6
- metadata.gz: a562a1e293bebe3b982ed04203de827bf998d937d1d8d9762e88c0d93c90981cafafb875e8979956f5e639020d27bb6f89d69ac75a98f2f0d203866419da3d78
7
- data.tar.gz: f05d12ca029db9a1911bc5dbcac92ec1b464e7e658554b65b27169a54075d15ac8c6b66625064cc231705b5035aaaeaef92f87e0fa8e5cb1f48a9581ac4b7211
6
+ metadata.gz: f5ca8ef563ceeaf851fca749ba9347eb65298e83d97739c6dc0db35ccb86f63abcbe9c8a6a9ee69f8a7ab306ad6d8fa2734821e941d746f6906cfe9a140cf6a2
7
+ data.tar.gz: 2c6b1a9ad42bb0c550095cfdbfec8376b3af7ff7c95afd692925a5975a2706357444f5ea79653737abbb45145560ae6562fb151d727942ff126498064501f777
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ v0.6.24
2
+ =======
3
+ - Fixed bug where Localized Files would show up multiple times in Xcode for each language.
4
+
1
5
  v0.6.23
2
6
  =======
3
7
  - Adds support for Localized Files.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xcake (0.6.23)
4
+ xcake (0.6.24)
5
5
  activesupport (< 5)
6
6
  claide (>= 0.9.1, < 2.0)
7
7
  cork
@@ -56,14 +56,13 @@ module Xcake
56
56
  # the first non-variatn group
57
57
  #
58
58
  # Otherwise normal behaviour
59
- native_group = @context.native_object_for(node.parent)
59
+ native_group = @context.native_object_for(node)
60
60
 
61
61
  # Make sure this is the correct parent in variant groups
62
62
  #
63
63
  # TODO: Remove this duplication of the .lproj and node path code.
64
64
  # Also remove need for the name hack.
65
65
  if node.parent.component.include?(".lproj")
66
- native_group.name = node.component
67
66
  group_path = Pathname.new node.parent.parent.path
68
67
  else
69
68
  group_path = Pathname.new node.parent.path
data/lib/xcake/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xcake
2
- VERSION = '0.6.23'.freeze
2
+ VERSION = '0.6.24'.freeze
3
3
  end
@@ -129,23 +129,29 @@ module Xcake
129
129
  #
130
130
  def new_group(node)
131
131
 
132
- return main_group unless node
132
+ parent = node.parent
133
+ return main_group unless parent
133
134
 
134
- if node.component.include?(".lproj")
135
+ if parent.component.include?(".lproj")
135
136
 
136
- group = main_group.find_subpath(node.parent.path, true) unless group
137
+ group = main_group.find_subpath(parent.parent.path, true) unless group
137
138
 
138
- variant_group = group.project.new(PBXVariantGroup)
139
- variant_group.set_source_tree(:group)
140
- group.children << variant_group
139
+ variant_group = group[node.component]
140
+
141
+ unless variant_group
142
+ variant_group = group.project.new(PBXVariantGroup)
143
+ variant_group.name = node.component
144
+ variant_group.set_source_tree(:group)
145
+ group.children << variant_group
146
+ end
141
147
 
142
148
  group = variant_group
143
149
  else
144
- group = main_group.find_subpath(node.path, true) unless group
150
+ group = main_group.find_subpath(parent.path, true) unless group
145
151
  end
146
152
 
147
153
  #TODO: Does this work with this new system
148
- ensure_parent_path(group, node)
154
+ ensure_parent_path(group, parent)
149
155
 
150
156
  group
151
157
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.23
4
+ version: 0.6.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Campbell