makr 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/data/makr/Makefile.erb +4 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b0a24b3988ae1a18945c5a7d853aa555bc049f8
4
- data.tar.gz: a902b4c35cc9c9caf2eba009a4c5d3cb823b1acb
3
+ metadata.gz: 7b2436bfd6d7a87f77e8ce4ed19be812eeaf199d
4
+ data.tar.gz: 2b8df0108bc9b401847c15ca7a8a6bb9dd776cea
5
5
  SHA512:
6
- metadata.gz: 2f34ecb5a0f94e50fb1c0ec76b825ebde75f1f5807e924e8407554605509ce6f87871d99e229d57487ae6938bb4c80cce7cfaadbbe35864093f492b963bac77d
7
- data.tar.gz: ef20e19656db534e11efcc5a89293296ec1e6c82a20042a827861d896e429c5284e94a982e585ffcd7e1b156a9b0b9bd8c6a56cdde2368c5fd498e86fdce6f55
6
+ metadata.gz: ef44c8a5225a39d5692a2b352016e6a4e80f6312740b5a5b4d872c12b68ac7105a3b2bf50ba9863a3df269beaa4c70820fb830e38ff836c4f96f529820e3c624
7
+ data.tar.gz: 0b037a689613c96b8ee0c8d7419a31e8248c53277d11a3cde666cafdf6a095147c834042c384eb2bbb09c736220ade7e608df3e20c1ab349cd1a121131e089ec
@@ -54,7 +54,7 @@ update-version:
54
54
  agvtool new-version -all $(CURRENT_VERSION).$(BUILD_NUMBER)
55
55
  agvtool new-marketing-version $(CURRENT_VERSION)
56
56
 
57
- <% config["archives"].each do |archive| -%>
57
+ <% Array(config["archives"]).each do |archive| -%>
58
58
  # Create <%=archive["name"]%>.xcarchive
59
59
  $(ARCHIVES_PATH)/<%=archive["name"]%>.xcarchive:
60
60
  xcodebuild archive $(BUILD_ENV_OPTIONS) \
@@ -67,7 +67,7 @@ $(ARCHIVES_PATH)/<%=archive["name"]%>.xcarchive:
67
67
  -archivePath $@
68
68
  rm -rf $(TEMP_DIR)
69
69
 
70
- <% archive["ipas"].each do |ipa| -%>
70
+ <% Array(archive["ipas"]).each do |ipa| -%>
71
71
  # Create <%=ipa["name"]%>.ipa
72
72
  $(IPAS_PATH)/<%=ipa["name"]%>.ipa: $(IPAS_PATH) $(ARCHIVES_PATH)/<%=archive["name"]%>.xcarchive
73
73
  xcodebuild -exportArchive \
@@ -76,8 +76,7 @@ $(IPAS_PATH)/<%=ipa["name"]%>.ipa: $(IPAS_PATH) $(ARCHIVES_PATH)/<%=archive["nam
76
76
  -archivePath "$(ARCHIVES_PATH)/<%=archive["name"]%>.xcarchive" \
77
77
  -exportPath "$@"
78
78
 
79
- <% if ipa["distributions"] != nil -%>
80
- <% ipa["distributions"].each do |distribution| -%>
79
+ <% Array(ipa["distributions"]).each do |distribution| -%>
81
80
  <% if distribution["type"] == "testflight" -%>
82
81
  # Upload <%=ipa["name"]%>.ipa to <%=distribution["type"]%>
83
82
  distribute-<%= distribution["name"] %>:
@@ -93,7 +92,6 @@ distribute-<%= distribution["name"] %>:
93
92
  <% end -%>
94
93
  <% end -%>
95
94
  <% end -%>
96
- <% end -%>
97
95
  # Path to built IPAs
98
96
  $(IPAS_PATH):
99
97
  mkdir -p $(IPAS_PATH)
@@ -110,13 +108,11 @@ distribute-all: <% config["archives"].each do |archive| -%>
110
108
  <% end -%>
111
109
 
112
110
 
113
- <% if config["tests"] != nil -%>
114
- <% config["tests"].each do |test| -%>
111
+ <% Array(config["tests"]).each do |test| -%>
115
112
  # Test <%= test["name"] %>
116
113
  test-<%= test["name"] %>:
117
114
  xcodebuild test <% if test["workspace"] -%>-workspace "<%= test["workspace"] %>.xcworkspace"<% end %><% if test["project"] -%>-project "<%= test["project"] %>.xcodeproj"<% end %> -scheme "<%= test["scheme"] %>" -destination platform="<%= test["platform"] %>",OS="<%= test["os"] %>",name="<%= test["device"] %>"
118
115
  <% end -%>
119
- <% end -%>
120
116
 
121
117
  # Clean artifacts and temp directories
122
118
  clean:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Carter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-24 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Makr reads the config.yaml file in the current directory to generate
14
14
  a Makefile capable of building, testing, and distributing Xcode projects and workspaces.