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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.9.12)
4
+ confetti (0.9.13)
5
5
  mustache (~> 0.11.2)
6
6
 
7
7
  GEM
@@ -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 }
@@ -7,6 +7,7 @@
7
7
  android:windowSoftInputMode="adjustPan">
8
8
 
9
9
  <supports-screens
10
+ android:xlargeScreens="true"
10
11
  android:largeScreens="true"
11
12
  android:normalScreens="true"
12
13
  android:smallScreens="true"
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.9.12"
2
+ VERSION = "0.9.13"
3
3
  end
data/spec/config_spec.rb CHANGED
@@ -800,6 +800,7 @@ describe Confetti::Config do
800
800
  config.preference_set.length.should == 2
801
801
  config.icon_set.length.should == 1
802
802
  config.splash_set.length.should == 1
803
+ config.content.src.should == "not_index.html"
803
804
  end
804
805
  end
805
806
  end
@@ -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>
@@ -48,5 +48,7 @@ THE SOFTWARE.</license>
48
48
  <feature name="http://api.phonegap.com/1.0/camera" required="true"/>
49
49
  <feature name="http://api.phonegap.com/1.0/notification" required="true"/>
50
50
 
51
+ <content src="not_index.html" />
52
+
51
53
  <access origin="*" />
52
54
  </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
- prerelease: false
4
+ hash: 33
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 9
8
- - 12
9
- version: 0.9.12
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: 2012-12-16 00:00:00 -08:00
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.3.6
202
+ rubygems_version: 1.8.24
196
203
  signing_key:
197
204
  specification_version: 3
198
205
  summary: Generate mobile app config files