confetti 0.5.3 → 0.5.4
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/webos_appinfo.mustache +2 -1
- data/lib/confetti/templates/webos_appinfo.rb +4 -0
- data/lib/confetti/version.rb +1 -1
- data/spec/fixtures/webos/appinfo_expected.json +2 -1
- data/spec/fixtures/webos/appinfo_no_tablet.json +10 -0
- data/spec/fixtures/webos/webos_appinfo_spec.json +2 -1
- data/spec/templates/webos_appinfo_spec.rb +20 -0
- metadata +5 -3
data/Gemfile.lock
CHANGED
data/lib/confetti/version.rb
CHANGED
@@ -98,4 +98,24 @@ describe Confetti::Template::WebosAppinfo do
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
end
|
101
|
+
|
102
|
+
describe "with tablets disabled" do
|
103
|
+
before do
|
104
|
+
handset_pref = Confetti::Config::Preference.new "target-device", "handset"
|
105
|
+
|
106
|
+
@config = Confetti::Config.new
|
107
|
+
@config.name.name = "Awesome App"
|
108
|
+
@config.package = "com.whoever.awesome.app"
|
109
|
+
@config.author.name = "Bruce Lee"
|
110
|
+
@config.version_string = "1.0.0"
|
111
|
+
@config.preference_set << handset_pref
|
112
|
+
|
113
|
+
@template = @template_class.new(@config)
|
114
|
+
end
|
115
|
+
|
116
|
+
it "should not write the uiRevision attribute" do
|
117
|
+
correct_outpt = File.read("#{ fixture_dir }/webos/appinfo_no_tablet.json")
|
118
|
+
@template.render.should == correct_outpt
|
119
|
+
end
|
120
|
+
end
|
101
121
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 4
|
9
|
+
version: 0.5.4
|
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-02-
|
19
|
+
date: 2012-02-23 00:00:00 -08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- spec/fixtures/symbian/symbian_wrt_info_expected.plist
|
132
132
|
- spec/fixtures/symbian/symbian_wrt_info_spec.plist
|
133
133
|
- spec/fixtures/webos/appinfo_expected.json
|
134
|
+
- spec/fixtures/webos/appinfo_no_tablet.json
|
134
135
|
- spec/fixtures/webos/webos_appinfo_spec.json
|
135
136
|
- spec/helpers_spec.rb
|
136
137
|
- spec/integration_spec.rb
|
@@ -216,6 +217,7 @@ test_files:
|
|
216
217
|
- spec/fixtures/symbian/symbian_wrt_info_expected.plist
|
217
218
|
- spec/fixtures/symbian/symbian_wrt_info_spec.plist
|
218
219
|
- spec/fixtures/webos/appinfo_expected.json
|
220
|
+
- spec/fixtures/webos/appinfo_no_tablet.json
|
219
221
|
- spec/fixtures/webos/webos_appinfo_spec.json
|
220
222
|
- spec/helpers_spec.rb
|
221
223
|
- spec/integration_spec.rb
|