confetti 0.6.0 → 0.6.1
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/templates/blackberry_widgets_config.mustache +3 -1
- data/lib/confetti/templates/blackberry_widgets_config.rb +6 -0
- data/lib/confetti/templates/blackberry_widgets_config_legacy.mustache +3 -1
- data/lib/confetti/version.rb +1 -1
- data/spec/config_spec.rb +5 -0
- data/spec/fixtures/blackberry/blackberry_widget_config_expected.xml +0 -1
- data/spec/fixtures/config.xml +1 -2
- data/spec/fixtures/config_legacy.xml +1 -4
- data/spec/fixtures/config_with_access.xml +53 -0
- data/spec/templates/blackberry_widget_config_spec.rb +1 -0
- metadata +4 -2
data/Gemfile.lock
CHANGED
@@ -29,7 +29,9 @@
|
|
29
29
|
|
30
30
|
<access subdomains="true" uri="file:///store/home"/>
|
31
31
|
<access subdomains="true" uri="file:///SDCard"/>
|
32
|
-
|
32
|
+
{{# access }}
|
33
|
+
<access subdomains="{{ subdomains }}" uri="{{ uri }}" />
|
34
|
+
{{/ access }}
|
33
35
|
|
34
36
|
<icon rim:hover="false" src="resources/icon.png"/>
|
35
37
|
<icon rim:hover="true" src="resources/icon_hover.png"/>
|
@@ -24,7 +24,9 @@
|
|
24
24
|
<feature id="blackberry.identity.phone" />
|
25
25
|
<access subdomains="true" uri="file:///store/home"/>
|
26
26
|
<access subdomains="true" uri="file:///SDCard"/>
|
27
|
-
|
27
|
+
{{# access }}
|
28
|
+
<access subdomains="{{ subdomains }}" uri="{{ uri }}" />
|
29
|
+
{{/ access }}
|
28
30
|
<icon rim:hover="false" src="resources/icon.png"/>
|
29
31
|
<icon rim:hover="true" src="resources/icon_hover.png"/>
|
30
32
|
<content src="index.html"/>
|
data/lib/confetti/version.rb
CHANGED
data/spec/config_spec.rb
CHANGED
@@ -347,6 +347,11 @@ describe Confetti::Config do
|
|
347
347
|
end
|
348
348
|
|
349
349
|
describe "access" do
|
350
|
+
before do
|
351
|
+
@config = Confetti::Config.new
|
352
|
+
@config.populate_from_xml(fixture_dir + "/config_with_access.xml")
|
353
|
+
end
|
354
|
+
|
350
355
|
it "should append tags to the access set" do
|
351
356
|
@config.access_set.size.should be 2
|
352
357
|
end
|
@@ -50,7 +50,6 @@ THE SOFTWARE.</license>
|
|
50
50
|
<access subdomains="true" uri="file:///store/home"/>
|
51
51
|
<access subdomains="true" uri="file:///SDCard"/>
|
52
52
|
<access subdomains="true" uri="*" />
|
53
|
-
|
54
53
|
<icon rim:hover="false" src="resources/icon.png"/>
|
55
54
|
<icon rim:hover="true" src="resources/icon_hover.png"/>
|
56
55
|
|
data/spec/fixtures/config.xml
CHANGED
@@ -48,6 +48,5 @@ 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
|
-
<access origin="
|
52
|
-
<access origin="http://bar.phonegap.com" subdomains="false" />
|
51
|
+
<access origin="*" />
|
53
52
|
</widget>
|
@@ -48,8 +48,5 @@ 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
|
-
<
|
52
|
-
value="com.phonegap.plugins.childBrowser.ChildBrowser">
|
53
|
-
<platform name="android" />
|
54
|
-
</gap:plugin>
|
51
|
+
<access origin="*" />
|
55
52
|
</widget>
|
@@ -0,0 +1,53 @@
|
|
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
|
+
<license href="http://www.opensource.org/licenses/mit-license.php">The MIT License
|
14
|
+
|
15
|
+
Copyright (c) 2011 Andrew Lunny
|
16
|
+
|
17
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
18
|
+
of this software and associated documentation files (the "Software"), to deal
|
19
|
+
in the Software without restriction, including without limitation the rights
|
20
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
21
|
+
copies of the Software, and to permit persons to whom the Software is
|
22
|
+
furnished to do so, subject to the following conditions:
|
23
|
+
|
24
|
+
The above copyright notice and this permission notice shall be included in
|
25
|
+
all copies or substantial portions of the Software.
|
26
|
+
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
28
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
30
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
31
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
32
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
33
|
+
THE SOFTWARE.</license>
|
34
|
+
|
35
|
+
<author href="http://alunny.github.com"
|
36
|
+
email="alunny@gmail.com">
|
37
|
+
Andrew Lunny
|
38
|
+
</author>
|
39
|
+
|
40
|
+
<icon src="icon.png" height="150" width="200" />
|
41
|
+
|
42
|
+
<gap:splash src="mainsplash.png" height="480" width="360" />
|
43
|
+
|
44
|
+
<preference name="universal" value="true"/>
|
45
|
+
<preference name="phonegap-version" value="1.3.0"/>
|
46
|
+
|
47
|
+
<feature name="http://api.phonegap.com/1.0/geolocation" required="true"/>
|
48
|
+
<feature name="http://api.phonegap.com/1.0/camera" required="true"/>
|
49
|
+
<feature name="http://api.phonegap.com/1.0/notification" required="true"/>
|
50
|
+
|
51
|
+
<access origin="http://foo.phonegap.com" />
|
52
|
+
<access origin="http://bar.phonegap.com" subdomains="false" />
|
53
|
+
</widget>
|
@@ -45,6 +45,7 @@ describe Confetti::Template::BlackberryWidgetsConfig do
|
|
45
45
|
@config.author.href = "http://brucelee.cn"
|
46
46
|
@config.description = "My New App, by Bruce Lee"
|
47
47
|
@config.phonegap_version = "0.9.5.1"
|
48
|
+
@config.access_set << Confetti::Config::Access.new('*', true)
|
48
49
|
end
|
49
50
|
|
50
51
|
it "should accept the config object" do
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 1
|
9
|
+
version: 0.6.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andrew Lunny
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- spec/fixtures/config.xml
|
119
119
|
- spec/fixtures/config_fullscreen.xml
|
120
120
|
- spec/fixtures/config_legacy.xml
|
121
|
+
- spec/fixtures/config_with_access.xml
|
121
122
|
- spec/fixtures/config_with_orientation.xml
|
122
123
|
- spec/fixtures/config_with_version_code.xml
|
123
124
|
- spec/fixtures/configs/blank-splash.xml
|
@@ -204,6 +205,7 @@ test_files:
|
|
204
205
|
- spec/fixtures/config.xml
|
205
206
|
- spec/fixtures/config_fullscreen.xml
|
206
207
|
- spec/fixtures/config_legacy.xml
|
208
|
+
- spec/fixtures/config_with_access.xml
|
207
209
|
- spec/fixtures/config_with_orientation.xml
|
208
210
|
- spec/fixtures/config_with_version_code.xml
|
209
211
|
- spec/fixtures/configs/blank-splash.xml
|