confetti 0.2.7 → 0.2.8
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/phonegap.rb +3 -0
- data/lib/confetti/templates/blackberry_widgets_config.mustache +11 -2
- data/lib/confetti/templates/blackberry_widgets_config.rb +4 -0
- data/lib/confetti/version.rb +1 -1
- data/spec/fixtures/blackberry_widget_config_expected.xml +11 -2
- data/spec/fixtures/blackberry_widget_config_spec.xml +11 -2
- data/spec/integration_spec.rb +1 -0
- data/spec/templates/blackberry_widget_config_spec.rb +1 -0
- metadata +6 -6
data/Gemfile.lock
CHANGED
data/lib/confetti/phonegap.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
module Confetti
|
2
2
|
module PhoneGap
|
3
|
+
attr_accessor :phonegap_version
|
4
|
+
|
3
5
|
PHONEGAP_APIS = %w{camera notification geolocation media contacts file network}
|
4
6
|
|
5
7
|
def add_stock_phonegap_apis
|
@@ -8,5 +10,6 @@ module Confetti
|
|
8
10
|
self.feature_set << Confetti::Config::Feature.new(api_name, nil)
|
9
11
|
end
|
10
12
|
end
|
13
|
+
|
11
14
|
end
|
12
15
|
end
|
@@ -7,8 +7,17 @@
|
|
7
7
|
<author href="{{ author_href }}" email="{{ author_email }}">{{ author_name }}</author>
|
8
8
|
<description>{{ widget_description }}</description>
|
9
9
|
<license href="{{ license_href }}">{{ license_text }}</license>
|
10
|
-
<feature id="blackberry.system" required="true" version="1.0.0.0"/>
|
11
|
-
<feature id="phonegap" required="
|
10
|
+
<feature id="blackberry.system" required="true" version="1.0.0.0" />
|
11
|
+
<feature id="phonegap" required="true" version="{{ phonegap_version }}" />
|
12
|
+
<feature id="blackberry.find" required="true" version="1.0.0.0" />
|
13
|
+
<feature id="blackberry.identity" required="true" version="1.0.0.0" />
|
14
|
+
<feature id="blackberry.pim.Address" required="true" version="1.0.0.0" />
|
15
|
+
<feature id="blackberry.pim.Contact" required="true" version="1.0.0.0" />
|
16
|
+
<feature id="blackberry.io.file" required="true" version="1.0.0.0" />
|
17
|
+
<feature id="blackberry.utils" required="true" version="1.0.0.0" />
|
18
|
+
<feature id="blackberry.io.dir" required="true" version="1.0.0.0" />
|
19
|
+
<feature id="blackberry.app" required="true" version="1.0.0.0" />
|
20
|
+
<feature id="blackberry.app.event" required="true" version="1.0.0.0" />
|
12
21
|
<access subdomains="true" uri="file:///store/home"/>
|
13
22
|
<access subdomains="true" uri="file:///SDCard"/>
|
14
23
|
<access subdomains="true" uri="*" />
|
data/lib/confetti/version.rb
CHANGED
@@ -27,8 +27,17 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
27
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
28
28
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
29
29
|
THE SOFTWARE.</license>
|
30
|
-
<feature id="blackberry.system" required="true" version="1.0.0.0"/>
|
31
|
-
<feature id="phonegap" required="
|
30
|
+
<feature id="blackberry.system" required="true" version="1.0.0.0" />
|
31
|
+
<feature id="phonegap" required="true" version="0.9.5.1" />
|
32
|
+
<feature id="blackberry.find" required="true" version="1.0.0.0" />
|
33
|
+
<feature id="blackberry.identity" required="true" version="1.0.0.0" />
|
34
|
+
<feature id="blackberry.pim.Address" required="true" version="1.0.0.0" />
|
35
|
+
<feature id="blackberry.pim.Contact" required="true" version="1.0.0.0" />
|
36
|
+
<feature id="blackberry.io.file" required="true" version="1.0.0.0" />
|
37
|
+
<feature id="blackberry.utils" required="true" version="1.0.0.0" />
|
38
|
+
<feature id="blackberry.io.dir" required="true" version="1.0.0.0" />
|
39
|
+
<feature id="blackberry.app" required="true" version="1.0.0.0" />
|
40
|
+
<feature id="blackberry.app.event" required="true" version="1.0.0.0" />
|
32
41
|
<access subdomains="true" uri="file:///store/home"/>
|
33
42
|
<access subdomains="true" uri="file:///SDCard"/>
|
34
43
|
<access subdomains="true" uri="*" />
|
@@ -7,8 +7,17 @@
|
|
7
7
|
<author href="http://brucelee.cn" email="blee@hotmail.com">Bruce Lee</author>
|
8
8
|
<description>My New App, by Bruce Lee</description>
|
9
9
|
<license href=""></license>
|
10
|
-
<feature id="blackberry.system" required="true" version="1.0.0.0"/>
|
11
|
-
<feature id="phonegap" required="
|
10
|
+
<feature id="blackberry.system" required="true" version="1.0.0.0" />
|
11
|
+
<feature id="phonegap" required="true" version="0.9.5.1" />
|
12
|
+
<feature id="blackberry.find" required="true" version="1.0.0.0" />
|
13
|
+
<feature id="blackberry.identity" required="true" version="1.0.0.0" />
|
14
|
+
<feature id="blackberry.pim.Address" required="true" version="1.0.0.0" />
|
15
|
+
<feature id="blackberry.pim.Contact" required="true" version="1.0.0.0" />
|
16
|
+
<feature id="blackberry.io.file" required="true" version="1.0.0.0" />
|
17
|
+
<feature id="blackberry.utils" required="true" version="1.0.0.0" />
|
18
|
+
<feature id="blackberry.io.dir" required="true" version="1.0.0.0" />
|
19
|
+
<feature id="blackberry.app" required="true" version="1.0.0.0" />
|
20
|
+
<feature id="blackberry.app.event" required="true" version="1.0.0.0" />
|
12
21
|
<access subdomains="true" uri="file:///store/home"/>
|
13
22
|
<access subdomains="true" uri="file:///SDCard"/>
|
14
23
|
<access subdomains="true" uri="*" />
|
data/spec/integration_spec.rb
CHANGED
@@ -54,6 +54,7 @@ describe 'Writing Output' do
|
|
54
54
|
context "Blackberry Widgets" do
|
55
55
|
it "should read config.xml and spit out config.xml" do
|
56
56
|
@output_file = "#{ fixture_dir }/blackberry_widget_config_output.xml"
|
57
|
+
@config.phonegap_version = "0.9.5.1"
|
57
58
|
@config.write_blackberry_widgets_config @output_file
|
58
59
|
|
59
60
|
files_should_match @output_file, "#{ fixture_dir }/blackberry_widget_config_expected.xml"
|
@@ -44,6 +44,7 @@ describe Confetti::Template::BlackberryWidgetsConfig do
|
|
44
44
|
@config.author.email = "blee@hotmail.com"
|
45
45
|
@config.author.href = "http://brucelee.cn"
|
46
46
|
@config.description = "My New App, by Bruce Lee"
|
47
|
+
@config.phonegap_version = "0.9.5.1"
|
47
48
|
end
|
48
49
|
|
49
50
|
it "should accept the config object" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: confetti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 7
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 8
|
10
|
+
version: 0.2.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew Lunny
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-03 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
requirements: []
|
214
214
|
|
215
215
|
rubyforge_project: confetti
|
216
|
-
rubygems_version: 1.
|
216
|
+
rubygems_version: 1.5.0
|
217
217
|
signing_key:
|
218
218
|
specification_version: 3
|
219
219
|
summary: Generate mobile app config files
|