confetti 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,9 +42,9 @@
42
42
  <string>{{ bundle_version }}</string>
43
43
  <key>LSRequiresIPhoneOS</key>
44
44
  <true/>
45
- <key>NSMainNibFile</key>
46
- <string></string>
47
- <key>NSMainNibFile~ipad</key>
45
+ {{# devices }}
46
+ <key>{{ to_s }}</key>
48
47
  <string></string>
48
+ {{/ devices }}
49
49
  </dict>
50
50
  </plist>
@@ -38,6 +38,14 @@ module Confetti
38
38
  "Info.plist"
39
39
  end
40
40
 
41
+ def devices
42
+ nibs = ["NSMainNibFile"]
43
+ @config.preference_set.each do |preference|
44
+ nibs << "NSMainNibFile~ipad" if preference.name.match /^universal$/
45
+ end
46
+ nibs
47
+ end
48
+
41
49
  def app_orientations
42
50
  ORIENTATIONS_MAP[@config.orientation]
43
51
  end
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -41,6 +41,8 @@ THE SOFTWARE.</license>
41
41
 
42
42
  <gap:splash src="mainsplash.png" height="480" width="360" />
43
43
 
44
+ <preference name="universal" value="true"/>
45
+
44
46
  <feature name="http://api.phonegap.com/1.0/geolocation" required="true"/>
45
47
  <feature name="http://api.phonegap.com/1.0/camera" required="true"/>
46
48
  <feature name="http://api.phonegap.com/1.0/notification" required="true"/>
@@ -46,5 +46,5 @@
46
46
  <string></string>
47
47
  <key>NSMainNibFile~ipad</key>
48
48
  <string></string>
49
- </dict>
49
+ </dict>
50
50
  </plist>
@@ -46,5 +46,5 @@
46
46
  <string></string>
47
47
  <key>NSMainNibFile~ipad</key>
48
48
  <string></string>
49
- </dict>
49
+ </dict>
50
50
  </plist>
@@ -42,7 +42,5 @@
42
42
  <true/>
43
43
  <key>NSMainNibFile</key>
44
44
  <string></string>
45
- <key>NSMainNibFile~ipad</key>
46
- <string></string>
47
- </dict>
45
+ </dict>
48
46
  </plist>
@@ -36,6 +36,8 @@ describe Confetti::Template::IosInfo do
36
36
  @config.package = "com.whoever.awesome.app"
37
37
  @config.version_string = "1.0.0"
38
38
  @config.plist_icon_set = ['icon.png']
39
+ pref = Confetti::Config::Preference.new("universal", "true", nil)
40
+ @config.preference_set << pref
39
41
  end
40
42
 
41
43
  it "should accept the config object" do
@@ -113,4 +115,15 @@ describe Confetti::Template::IosInfo do
113
115
  @template.render.should == File.read("#{ fixture_dir }/ios/ios_info_spec_expected_orientation.plist")
114
116
  end
115
117
  end
118
+
119
+ describe "should specify if the application is universal" do
120
+ before do
121
+ @config = Confetti::Config.new("#{fixture_dir}/config.xml")
122
+ @template = @template_class.new(@config)
123
+ end
124
+
125
+ it "should should specify universal" do
126
+ @template.render.should == File.read("#{ fixture_dir }/ios/ios_info_expected.plist")
127
+ end
128
+ end
116
129
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confetti
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 29
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 3
8
- - 6
9
- version: 0.3.6
9
+ - 7
10
+ version: 0.3.7
10
11
  platform: ruby
11
12
  authors:
12
13
  - Andrew Lunny
@@ -16,16 +17,18 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2011-08-25 00:00:00 -07:00
20
+ date: 2011-08-30 00:00:00 -07:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
24
  name: mustache
24
25
  prerelease: false
25
26
  requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
26
28
  requirements:
27
29
  - - ~>
28
30
  - !ruby/object:Gem::Version
31
+ hash: 55
29
32
  segments:
30
33
  - 0
31
34
  - 11
@@ -37,9 +40,11 @@ dependencies:
37
40
  name: thor
38
41
  prerelease: false
39
42
  requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
40
44
  requirements:
41
45
  - - ~>
42
46
  - !ruby/object:Gem::Version
47
+ hash: 33
43
48
  segments:
44
49
  - 0
45
50
  - 14
@@ -51,9 +56,11 @@ dependencies:
51
56
  name: rspec
52
57
  prerelease: false
53
58
  requirement: &id003 !ruby/object:Gem::Requirement
59
+ none: false
54
60
  requirements:
55
61
  - - ~>
56
62
  - !ruby/object:Gem::Version
63
+ hash: 11
57
64
  segments:
58
65
  - 2
59
66
  - 1
@@ -65,9 +72,11 @@ dependencies:
65
72
  name: cucumber
66
73
  prerelease: false
67
74
  requirement: &id004 !ruby/object:Gem::Requirement
75
+ none: false
68
76
  requirements:
69
77
  - - ">="
70
78
  - !ruby/object:Gem::Version
79
+ hash: 3
71
80
  segments:
72
81
  - 0
73
82
  version: "0"
@@ -77,9 +86,11 @@ dependencies:
77
86
  name: aruba
78
87
  prerelease: false
79
88
  requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
80
90
  requirements:
81
91
  - - ">="
82
92
  - !ruby/object:Gem::Version
93
+ hash: 3
83
94
  segments:
84
95
  - 0
85
96
  version: "0"
@@ -193,23 +204,27 @@ rdoc_options: []
193
204
  require_paths:
194
205
  - lib
195
206
  required_ruby_version: !ruby/object:Gem::Requirement
207
+ none: false
196
208
  requirements:
197
209
  - - ">="
198
210
  - !ruby/object:Gem::Version
211
+ hash: 3
199
212
  segments:
200
213
  - 0
201
214
  version: "0"
202
215
  required_rubygems_version: !ruby/object:Gem::Requirement
216
+ none: false
203
217
  requirements:
204
218
  - - ">="
205
219
  - !ruby/object:Gem::Version
220
+ hash: 3
206
221
  segments:
207
222
  - 0
208
223
  version: "0"
209
224
  requirements: []
210
225
 
211
226
  rubyforge_project: confetti
212
- rubygems_version: 1.3.6
227
+ rubygems_version: 1.3.7
213
228
  signing_key:
214
229
  specification_version: 3
215
230
  summary: Generate mobile app config files