confetti 0.7.12 → 0.7.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.7.12)
4
+ confetti (0.7.13)
5
5
  mustache (~> 0.11.2)
6
6
 
7
7
  GEM
@@ -34,6 +34,6 @@
34
34
  </intent-filter>
35
35
  </activity>
36
36
  </application>
37
- <uses-sdk android:minSdkVersion="{{ min_sdk_version }}" {{ max_sdk_version_attribute }}/>
37
+ <uses-sdk android:minSdkVersion="{{ min_sdk_version }}" {{{ max_sdk_version_attribute }}}/>
38
38
 
39
39
  </manifest>
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.7.12"
2
+ VERSION = "0.7.13"
3
3
  end
@@ -0,0 +1,27 @@
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.alunny.confetti"
5
+ version = "1.0.0">
6
+
7
+ <name>Confetti Sample App</name>
8
+
9
+ <description>
10
+ This is a sample config.xml for integration testing with Confetti
11
+ </description>
12
+
13
+ <author href="http://alunny.github.com"
14
+ email="alunny@gmail.com">
15
+ Andrew Lunny
16
+ </author>
17
+
18
+ <icon src="icon.png" height="150" width="200" />
19
+
20
+ <gap:splash src="mainsplash.png" height="480" width="360" />
21
+
22
+ <preference name="universal" value="true"/>
23
+ <preference name="phonegap-version" value="1.3.0"/>
24
+
25
+ <preference name="android-minSdkVersion" value="8" />
26
+ <preference name="android-maxSdkVersion" value="10" />
27
+ </widget>
@@ -235,5 +235,19 @@ describe Confetti::Template::AndroidManifest do
235
235
  @template.max_sdk_version_attribute.should be_nil
236
236
  end
237
237
  end
238
+
239
+ describe "output" do
240
+ before do
241
+ path = "#{ fixture_dir }/config_with_android_versions.xml"
242
+ @config = Confetti::Config.new(path)
243
+ @template = @template_class.new(@config)
244
+ end
245
+
246
+ it "should write the attributes correctly" do
247
+ rendered = @template.render
248
+ rendered.should match 'android:minSdkVersion="8"'
249
+ rendered.should match 'android:maxSdkVersion="10"'
250
+ end
251
+ end
238
252
  end
239
253
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 12
9
- version: 0.7.12
8
+ - 13
9
+ version: 0.7.13
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrew Lunny
@@ -123,6 +123,7 @@ files:
123
123
  - spec/fixtures/config_fullscreen.xml
124
124
  - spec/fixtures/config_legacy.xml
125
125
  - spec/fixtures/config_with_access.xml
126
+ - spec/fixtures/config_with_android_versions.xml
126
127
  - spec/fixtures/config_with_orientation.xml
127
128
  - spec/fixtures/config_with_version_code.xml
128
129
  - spec/fixtures/configs/blank-splash.xml
@@ -213,6 +214,7 @@ test_files:
213
214
  - spec/fixtures/config_fullscreen.xml
214
215
  - spec/fixtures/config_legacy.xml
215
216
  - spec/fixtures/config_with_access.xml
217
+ - spec/fixtures/config_with_android_versions.xml
216
218
  - spec/fixtures/config_with_orientation.xml
217
219
  - spec/fixtures/config_with_version_code.xml
218
220
  - spec/fixtures/configs/blank-splash.xml