confetti 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/confetti/config.rb +11 -0
- data/lib/confetti/templates/android_manifest.mustache +1 -0
- data/lib/confetti/version.rb +1 -1
- data/spec/config_spec.rb +1 -0
- data/spec/fixtures/bad-encoding.xml +18 -18
- data/spec/fixtures/config.xml +2 -0
- metadata +14 -7
data/Gemfile.lock
CHANGED
data/lib/confetti/config.rb
CHANGED
@@ -127,6 +127,10 @@ module Confetti
|
|
127
127
|
sub = boolean_value(attr["subdomains"], true)
|
128
128
|
browserOnly = boolean_value(attr["browserOnly"])
|
129
129
|
@access_set << Access.new(attr["origin"], sub, browserOnly)
|
130
|
+
|
131
|
+
when "content"
|
132
|
+
@content = Content.new(attr["src"], attr["type"], attr["encoding"])
|
133
|
+
|
130
134
|
end
|
131
135
|
|
132
136
|
# PhoneGap extensions (gap:)
|
@@ -302,6 +306,12 @@ module Confetti
|
|
302
306
|
name.text = @name.name
|
303
307
|
name.add_attribute({ "shortname" => @name.shortname })
|
304
308
|
|
309
|
+
content = REXML::Element.new( "content" )
|
310
|
+
content.add_attributes({
|
311
|
+
"src" => @content.src,
|
312
|
+
"type" => @content.type
|
313
|
+
})
|
314
|
+
|
305
315
|
author = REXML::Element.new( "author" )
|
306
316
|
author.text = @author.name
|
307
317
|
author.add_attributes({
|
@@ -357,6 +367,7 @@ module Confetti
|
|
357
367
|
widget.elements.add author
|
358
368
|
widget.elements.add description
|
359
369
|
widget.elements.add license
|
370
|
+
widget.elements.add content
|
360
371
|
|
361
372
|
icons.each { | icon | widget.elements.add icon }
|
362
373
|
splashes.each { | splash | widget.elements.add splash }
|
data/lib/confetti/version.rb
CHANGED
data/spec/config_spec.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-16" ?>
|
2
|
-
<widget xmlns = "http://www.w3.org/ns/widgets"
|
3
|
-
xmlns:gap = "http://phonegap.com/ns/1.0"
|
4
|
-
id = "com.one.two"
|
5
|
-
version = "0.0.1"
|
6
|
-
versionCode ="1" >
|
7
|
-
|
8
|
-
<name>Bad Encoding Test</name>
|
9
|
-
|
10
|
-
<description>Testing for ICONV fail</description>
|
11
|
-
<icon src="icon.png" />
|
12
|
-
<preference name="permissions" value="none"/>
|
13
|
-
|
14
|
-
<author href="www.exxexe.com" email="user@exxexe.com">
|
15
|
-
Whoever
|
16
|
-
</author>
|
17
|
-
|
18
|
-
</widget>
|
1
|
+
<?xml version="1.0" encoding="UTF-16" ?>
|
2
|
+
<widget xmlns = "http://www.w3.org/ns/widgets"
|
3
|
+
xmlns:gap = "http://phonegap.com/ns/1.0"
|
4
|
+
id = "com.one.two"
|
5
|
+
version = "0.0.1"
|
6
|
+
versionCode ="1" >
|
7
|
+
|
8
|
+
<name>Bad Encoding Test</name>
|
9
|
+
|
10
|
+
<description>Testing for ICONV fail</description>
|
11
|
+
<icon src="icon.png" />
|
12
|
+
<preference name="permissions" value="none"/>
|
13
|
+
|
14
|
+
<author href="www.exxexe.com" email="user@exxexe.com">
|
15
|
+
Whoever
|
16
|
+
</author>
|
17
|
+
|
18
|
+
</widget>
|
data/spec/fixtures/config.xml
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: confetti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 33
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
9
|
+
- 13
|
10
|
+
version: 0.9.13
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Andrew Lunny
|
@@ -16,16 +17,17 @@ autorequire:
|
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
19
|
|
19
|
-
date:
|
20
|
-
default_executable:
|
20
|
+
date: 2013-04-04 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: mustache
|
24
24
|
prerelease: false
|
25
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
26
27
|
requirements:
|
27
28
|
- - ~>
|
28
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 55
|
29
31
|
segments:
|
30
32
|
- 0
|
31
33
|
- 11
|
@@ -37,9 +39,11 @@ dependencies:
|
|
37
39
|
name: rspec
|
38
40
|
prerelease: false
|
39
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
40
43
|
requirements:
|
41
44
|
- - ~>
|
42
45
|
- !ruby/object:Gem::Version
|
46
|
+
hash: 23
|
43
47
|
segments:
|
44
48
|
- 2
|
45
49
|
- 6
|
@@ -166,7 +170,6 @@ files:
|
|
166
170
|
- spec/templates/webos_appinfo_spec.rb
|
167
171
|
- spec/templates/windows_phone7_manifest_spec.rb
|
168
172
|
- spec/typedset_spec.rb
|
169
|
-
has_rdoc: true
|
170
173
|
homepage: http://rubygems.org/gems/confetti
|
171
174
|
licenses: []
|
172
175
|
|
@@ -176,23 +179,27 @@ rdoc_options: []
|
|
176
179
|
require_paths:
|
177
180
|
- lib
|
178
181
|
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
+
none: false
|
179
183
|
requirements:
|
180
184
|
- - ">="
|
181
185
|
- !ruby/object:Gem::Version
|
186
|
+
hash: 3
|
182
187
|
segments:
|
183
188
|
- 0
|
184
189
|
version: "0"
|
185
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
|
+
none: false
|
186
192
|
requirements:
|
187
193
|
- - ">="
|
188
194
|
- !ruby/object:Gem::Version
|
195
|
+
hash: 3
|
189
196
|
segments:
|
190
197
|
- 0
|
191
198
|
version: "0"
|
192
199
|
requirements: []
|
193
200
|
|
194
201
|
rubyforge_project: confetti
|
195
|
-
rubygems_version: 1.
|
202
|
+
rubygems_version: 1.8.24
|
196
203
|
signing_key:
|
197
204
|
specification_version: 3
|
198
205
|
summary: Generate mobile app config files
|