xcake 0.5.1 → 0.5.2

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: b2626e1c4dc1c4f27c43f513d75c76c98e7d44c1
4
- data.tar.gz: f71680ac7a2ed10d8e07b96e5deed14581c4f3e9
3
+ metadata.gz: a3b9cd3cf90299ce246e605f6e9289c1b16fdda6
4
+ data.tar.gz: 0d3a2e2bb61de9a9c3d70df9e79176ebd9bc4668
5
5
  SHA512:
6
- metadata.gz: 7ebc8800a74819fec101a996352864877873d16809f7394aa4f04b99a2632ac40bf89561e966d50c5dcbb9dd8b3f6cf80f333240b0991c92ad40a9455c67727d
7
- data.tar.gz: 7cf207cb8f47db5c8ee599cc855eda9257d6749ae18c3f139a84311c5e69070bbb1a113b5730e53e5432b83554fc2782483bf9a49951e11b567baa61aee32c34
6
+ metadata.gz: f248e196864be1d32f4a7fcaea3eb9851e9c62a828287fe4d8d81b2bcfff8c8cad6fcdb965da98a898e86da8c2b7101d7a6e2bfd59a48460c18defc0ac2bba58
7
+ data.tar.gz: d35c7b9f40a373785e831a6cabee223e6f8061bb25318f2ada019f7e4eb2313dc64218cd9c294a3f7deeb977cd29279e83a3f6cfb8d893284b2e1401ea44fef8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ v0.5.2
2
+ ======
3
+ - Updates `xcake init` for new project syntax.
4
+ - Adds shorthand build configuration syntax for projects which only contain one debug or release configuration.
5
+
1
6
  v0.5.1
2
7
  ======
3
8
  - Tweaks DSL so it is easier to access the project properties via the `project` method.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xcake (0.5.1)
4
+ xcake (0.5.2)
5
5
  claide (~> 0.9.1)
6
6
  hooks (~> 0.4.1)
7
7
  tty (~> 0.3.2)
@@ -86,7 +86,7 @@ module Xcake
86
86
  #
87
87
  # @return [Configuration] the new or existing debug configuration
88
88
  #
89
- def debug_configuration(name, &block)
89
+ def debug_configuration(name = nil, &block)
90
90
  build_configuration(:debug, name, &block)
91
91
  end
92
92
 
@@ -95,7 +95,7 @@ module Xcake
95
95
  #
96
96
  # @return [Configuration] the new or existing release configuration
97
97
  #
98
- def release_configuration(name, &block)
98
+ def release_configuration(name = nil, &block)
99
99
  build_configuration(:release, name, &block)
100
100
  end
101
101
 
@@ -103,8 +103,12 @@ module Xcake
103
103
 
104
104
  def build_configuration(method, name, &block)
105
105
  configuration_name = send("#{method}_configurations")
106
- configuration = configuration_name.detect do |c|
107
- c.name == name.to_s
106
+ if name.nil?
107
+ configuration = configuration_name.first
108
+ else
109
+ configuration = configuration_name.detect do |c|
110
+ c.name == name.to_s
111
+ end
108
112
  end
109
113
 
110
114
  if configuration.nil?
@@ -1,5 +1,8 @@
1
+ # Change this to set a different Project file name
2
+ #project.project_name = "Project"
3
+
1
4
  # Replace this with your class prefix for Objective-C files.
2
- class_prefix = "APP"
5
+ project.class_prefix = "APP"
3
6
 
4
7
  # By default Xcake defaults to creating the standard Debug and Release
5
8
  # configurations, uncomment these lines to add your own.
data/lib/xcake/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xcake
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Campbell
@@ -218,7 +218,6 @@ files:
218
218
  - lib/xcake/xcode/scheme.rb
219
219
  - lib/xcake/xcode/scheme_list.rb
220
220
  - xcake.gemspec
221
- - xcuserdata/jamescampbell.xcuserdatad/xcschemes/xcschememanagement.plist
222
221
  homepage: https://github.com/jcampbell05/xcake/
223
222
  licenses:
224
223
  - MIT
@@ -1,37 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>SchemeUserState</key>
6
- <dict>
7
- <key>Sup-Beta.xcscheme_^#shared#^_</key>
8
- <dict>
9
- <key>isShown</key>
10
- <true/>
11
- </dict>
12
- <key>Sup-Debug.xcscheme_^#shared#^_</key>
13
- <dict>
14
- <key>isShown</key>
15
- <true/>
16
- </dict>
17
- <key>Sup-Release.xcscheme_^#shared#^_</key>
18
- <dict>
19
- <key>isShown</key>
20
- <true/>
21
- </dict>
22
- </dict>
23
- <key>SuppressBuildableAutocreation</key>
24
- <dict>
25
- <key>1C5627D08EFDBB8B65806BB3</key>
26
- <dict>
27
- <key>primary</key>
28
- <true/>
29
- </dict>
30
- <key>BF53B81F8B27AD76D19D9271</key>
31
- <dict>
32
- <key>primary</key>
33
- <true/>
34
- </dict>
35
- </dict>
36
- </dict>
37
- </plist>