confetti 0.1.7 → 0.1.8
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 +1 -1
- data/lib/confetti/config.rb +4 -1
- data/lib/confetti/version.rb +1 -1
- data/spec/config_spec.rb +5 -0
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/confetti/config.rb
CHANGED
|
@@ -5,7 +5,7 @@ module Confetti
|
|
|
5
5
|
|
|
6
6
|
attr_accessor :package, :version, :description, :height, :width
|
|
7
7
|
attr_reader :author, :viewmodes, :name, :license, :content,
|
|
8
|
-
:icon_set, :feature_set, :preference_set
|
|
8
|
+
:icon_set, :feature_set, :preference_set, :xml_doc
|
|
9
9
|
|
|
10
10
|
generate_and_write :android_manifest, :android_strings, :webos_appinfo,
|
|
11
11
|
:ios_info, :symbian_wrt_info, :blackberry_widgets_config
|
|
@@ -43,6 +43,9 @@ module Confetti
|
|
|
43
43
|
|
|
44
44
|
fail "no doc parsed" unless config_doc
|
|
45
45
|
|
|
46
|
+
# save reference to xml doc
|
|
47
|
+
@xml_doc = config_doc
|
|
48
|
+
|
|
46
49
|
@package = config_doc.attributes["id"]
|
|
47
50
|
@version = config_doc.attributes["version"]
|
|
48
51
|
|
data/lib/confetti/version.rb
CHANGED
data/spec/config_spec.rb
CHANGED
|
@@ -174,6 +174,11 @@ describe Confetti::Config do
|
|
|
174
174
|
@config.populate_from_xml(fixture_dir + "/config.xml")
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
+
it "should keep a reference to the xml doc" do
|
|
178
|
+
@config.xml_doc.should_not == nil
|
|
179
|
+
@config.xml_doc.class.should == REXML::Element
|
|
180
|
+
end
|
|
181
|
+
|
|
177
182
|
it "should populate the app's package when present" do
|
|
178
183
|
@config.package.should == "com.alunny.confetti"
|
|
179
184
|
end
|
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:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 8
|
|
10
|
+
version: 0.1.8
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andrew Lunny
|