confetti 0.7.11 → 0.7.12
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -50,7 +50,7 @@ module Confetti
|
|
50
50
|
filtered_features.each { |f|
|
51
51
|
next if f.name.nil?
|
52
52
|
matches = f.name.match(phonegap_api)
|
53
|
-
next
|
53
|
+
next if matches.nil? or matches.length < 1
|
54
54
|
next unless GAP_PERMISSIONS_MAP.has_key?(matches[1])
|
55
55
|
permissions << matches[1]
|
56
56
|
}
|
data/lib/confetti/version.rb
CHANGED
@@ -108,4 +108,26 @@ describe Confetti::Template::WindowsPhone7Manifest do
|
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
111
|
+
|
112
|
+
describe "should write a valid manifest file" do
|
113
|
+
|
114
|
+
it "should write the file" do
|
115
|
+
@config = Confetti::Config.new
|
116
|
+
@config.feature_set <<
|
117
|
+
Confetti::Config::Feature.new(
|
118
|
+
"http://plugins.phonegap.com/ChildBrowser/2.0.1",
|
119
|
+
'true'
|
120
|
+
)
|
121
|
+
@config.feature_set <<
|
122
|
+
Confetti::Config::Feature.new(
|
123
|
+
"http://api.phonegap.com/1.0/geolocation",
|
124
|
+
'true'
|
125
|
+
)
|
126
|
+
@template = @template_class.new @config
|
127
|
+
@template.capabilities.should == [
|
128
|
+
{:name => "ID_CAP_LOCATION"},
|
129
|
+
]
|
130
|
+
lambda { @template.render }.should_not raise_error
|
131
|
+
end
|
132
|
+
end
|
111
133
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 12
|
9
|
+
version: 0.7.12
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andrew Lunny
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-05-
|
19
|
+
date: 2012-05-02 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|