confetti 0.4.4 → 0.4.5
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.
- data/Gemfile.lock +1 -1
- data/lib/confetti/config.rb +1 -0
- data/lib/confetti/version.rb +1 -1
- data/spec/config_spec.rb +10 -1
- data/spec/fixtures/configs/blank-splash.xml +30 -0
- metadata +21 -4
data/Gemfile.lock
CHANGED
data/lib/confetti/config.rb
CHANGED
@@ -111,6 +111,7 @@ module Confetti
|
|
111
111
|
when "http://phonegap.com/ns/1.0"
|
112
112
|
case ele.name
|
113
113
|
when "splash"
|
114
|
+
next if attr["src"].nil? or attr["src"].empty?
|
114
115
|
extras = grab_extras attr
|
115
116
|
@splash_set << Image.new(attr["src"], attr["height"], attr["width"], extras)
|
116
117
|
when "plugin"
|
data/lib/confetti/version.rb
CHANGED
data/spec/config_spec.rb
CHANGED
@@ -274,9 +274,18 @@ describe Confetti::Config do
|
|
274
274
|
@config.splash_set.first.extras.length.should be 1
|
275
275
|
@config.splash_set.first.extras["main"].should == "true"
|
276
276
|
end
|
277
|
-
|
278
277
|
end
|
279
278
|
|
279
|
+
describe "with a blank splash screen attribute" do
|
280
|
+
before do
|
281
|
+
@config = Confetti::Config.new
|
282
|
+
@config.populate_from_xml(fixture_dir + "/configs/blank-splash.xml")
|
283
|
+
end
|
284
|
+
|
285
|
+
it "should not populate the splash set" do
|
286
|
+
@config.splash_set.should be_empty
|
287
|
+
end
|
288
|
+
end
|
280
289
|
end
|
281
290
|
|
282
291
|
describe "icons" do
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<widget xmlns = "http://www.w3.org/ns/widgets"
|
3
|
+
xmlns:gap = "http://phonegap.com/ns/1.0"
|
4
|
+
id = "com.applicationcraft.appcb30e1871154400d94007f585e1a683c"
|
5
|
+
version = "0.1.1">
|
6
|
+
|
7
|
+
<name>Crunchbase</name>
|
8
|
+
|
9
|
+
<description>
|
10
|
+
Crunchbase
|
11
|
+
</description>
|
12
|
+
|
13
|
+
<author href="http://www.applicationcraft.com"
|
14
|
+
email="fmay@applicationcraft.com">
|
15
|
+
ApplicationCraft
|
16
|
+
</author>
|
17
|
+
|
18
|
+
<gap:platforms>
|
19
|
+
<gap:platform name="android" minVersion="2.1" />
|
20
|
+
<gap:platform name="webos" />
|
21
|
+
<gap:platform name="ios" />
|
22
|
+
<gap:platform name="symbian.wrt" />
|
23
|
+
<gap:platform name="blackberry" project="widgets"/>
|
24
|
+
</gap:platforms>
|
25
|
+
|
26
|
+
<icon src="icon.png"/>
|
27
|
+
<gap:splash src="" />
|
28
|
+
|
29
|
+
<feature name="http://api.phonegap.com/1.0/geolocation"/><feature name="http://api.phonegap.com/1.0/camera"/><feature name="http://api.phonegap.com/1.0/contacts"/><feature name="http://api.phonegap.com/1.0/file"/><feature name="http://api.phonegap.com/1.0/media"/><feature name="http://api.phonegap.com/1.0/notification"/><feature name="http://api.phonegap.com/1.0/network"/>
|
30
|
+
</widget>
|
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: 5
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
9
|
+
- 5
|
10
|
+
version: 0.4.5
|
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-
|
20
|
+
date: 2011-12-16 00:00:00 -08: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: 23
|
57
64
|
segments:
|
58
65
|
- 2
|
59
66
|
- 6
|
@@ -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"
|
@@ -162,6 +173,7 @@ files:
|
|
162
173
|
- spec/fixtures/config.xml
|
163
174
|
- spec/fixtures/config_with_orientation.xml
|
164
175
|
- spec/fixtures/config_with_version_code.xml
|
176
|
+
- spec/fixtures/configs/blank-splash.xml
|
165
177
|
- spec/fixtures/configs/config_bare.xml
|
166
178
|
- spec/fixtures/empty_elements.xml
|
167
179
|
- spec/fixtures/ios/ios_info_expected.plist
|
@@ -195,23 +207,27 @@ rdoc_options: []
|
|
195
207
|
require_paths:
|
196
208
|
- lib
|
197
209
|
required_ruby_version: !ruby/object:Gem::Requirement
|
210
|
+
none: false
|
198
211
|
requirements:
|
199
212
|
- - ">="
|
200
213
|
- !ruby/object:Gem::Version
|
214
|
+
hash: 3
|
201
215
|
segments:
|
202
216
|
- 0
|
203
217
|
version: "0"
|
204
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
219
|
+
none: false
|
205
220
|
requirements:
|
206
221
|
- - ">="
|
207
222
|
- !ruby/object:Gem::Version
|
223
|
+
hash: 3
|
208
224
|
segments:
|
209
225
|
- 0
|
210
226
|
version: "0"
|
211
227
|
requirements: []
|
212
228
|
|
213
229
|
rubyforge_project: confetti
|
214
|
-
rubygems_version: 1.3.
|
230
|
+
rubygems_version: 1.3.7
|
215
231
|
signing_key:
|
216
232
|
specification_version: 3
|
217
233
|
summary: Generate mobile app config files
|
@@ -249,6 +265,7 @@ test_files:
|
|
249
265
|
- spec/fixtures/config.xml
|
250
266
|
- spec/fixtures/config_with_orientation.xml
|
251
267
|
- spec/fixtures/config_with_version_code.xml
|
268
|
+
- spec/fixtures/configs/blank-splash.xml
|
252
269
|
- spec/fixtures/configs/config_bare.xml
|
253
270
|
- spec/fixtures/empty_elements.xml
|
254
271
|
- spec/fixtures/ios/ios_info_expected.plist
|