confetti 0.2.1 → 0.2.2

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.2.0)
4
+ confetti (0.2.2)
5
5
  mustache (= 0.11.2)
6
6
  thor (= 0.14.3)
7
7
 
@@ -43,6 +43,4 @@ DEPENDENCIES
43
43
  aruba
44
44
  confetti!
45
45
  cucumber
46
- mustache (= 0.11.2)
47
46
  rspec (~> 2.1.0)
48
- thor (= 0.14.3)
@@ -6,4 +6,4 @@ Feature: Blackberry
6
6
  Scenario: I need a (BB widget) config.xml
7
7
  When I have a config.xml file
8
8
  And I run "confetti generate blackberry_widgets_config"
9
- Then a file named "bb-config.xml" should exist
9
+ Then a file named "config.xml" should exist
@@ -68,6 +68,8 @@ module Confetti
68
68
  @icon_set << Icon.new(attr["src"], attr["height"], attr["width"], extras)
69
69
  when "feature"
70
70
  @feature_set << Feature.new(attr["name"], attr["required"])
71
+ when "license"
72
+ @license = License.new(ele.text.strip, attr["href"])
71
73
  end
72
74
  end
73
75
  end
@@ -1,16 +1,17 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!-- Widget Configuration Reference: http://docs.blackberry.com/en/developers/deliverables/15274/ -->
3
3
  <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets"
4
- version="{{ widget_version }}"
4
+ version="2.0"
5
5
  id="{{ widget_id }}">
6
6
  <name>{{ widget_name }}</name>
7
7
  <author href="{{ author_href }}" email="{{ author_email }}">{{ author_name }}</author>
8
8
  <description>{{ widget_description }}</description>
9
- <license></license>
9
+ <license href="{{ license_href }}">{{ license_text }}</license>
10
10
  <feature id="blackberry.system" required="true" version="1.0.0.0"/>
11
11
  <feature id="phonegap" required="false" version="1.0.0"/>
12
12
  <access subdomains="true" uri="file:///store/home"/>
13
13
  <access subdomains="true" uri="file:///SDCard"/>
14
+ <access subdomains="true" uri="*" />
14
15
  <icon rim:hover="false" src="resources/icon.png"/>
15
16
  <icon rim:hover="true" src="resources/icon_hover.png"/>
16
17
  <content src="index.html"/>
@@ -1,10 +1,6 @@
1
1
  module Confetti
2
2
  module Template
3
3
  class BlackberryWidgetsConfig < Base
4
- def widget_version
5
- @config.version
6
- end
7
-
8
4
  def widget_id
9
5
  @config.package
10
6
  end
@@ -29,8 +25,16 @@ module Confetti
29
25
  @config.description
30
26
  end
31
27
 
28
+ def license_href
29
+ @config.license.href
30
+ end
31
+
32
+ def license_text
33
+ @config.license.text
34
+ end
35
+
32
36
  def output_filename
33
- "bb-config.xml"
37
+ "config.xml"
34
38
  end
35
39
  end
36
40
  end
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -1,16 +1,37 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!-- Widget Configuration Reference: http://docs.blackberry.com/en/developers/deliverables/15274/ -->
3
3
  <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets"
4
- version="1.0.0"
4
+ version="2.0"
5
5
  id="com.alunny.confetti">
6
6
  <name>Confetti Sample App</name>
7
7
  <author href="http://alunny.github.com" email="alunny@gmail.com">Andrew Lunny</author>
8
8
  <description>This is a sample config.xml for integration testing with Confetti</description>
9
- <license></license>
9
+ <license href="http://www.opensource.org/licenses/mit-license.php">The MIT License
10
+
11
+ Copyright (c) 2011 Andrew Lunny
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the &quot;Software&quot;), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in
21
+ all copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
+ THE SOFTWARE.</license>
10
30
  <feature id="blackberry.system" required="true" version="1.0.0.0"/>
11
31
  <feature id="phonegap" required="false" version="1.0.0"/>
12
32
  <access subdomains="true" uri="file:///store/home"/>
13
33
  <access subdomains="true" uri="file:///SDCard"/>
34
+ <access subdomains="true" uri="*" />
14
35
  <icon rim:hover="false" src="resources/icon.png"/>
15
36
  <icon rim:hover="true" src="resources/icon_hover.png"/>
16
37
  <content src="index.html"/>
@@ -1,16 +1,17 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!-- Widget Configuration Reference: http://docs.blackberry.com/en/developers/deliverables/15274/ -->
3
3
  <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets"
4
- version="1.0.0"
4
+ version="2.0"
5
5
  id="com.whoever.awesome.app">
6
6
  <name>Awesome App</name>
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
- <license></license>
9
+ <license href=""></license>
10
10
  <feature id="blackberry.system" required="true" version="1.0.0.0"/>
11
11
  <feature id="phonegap" required="false" version="1.0.0"/>
12
12
  <access subdomains="true" uri="file:///store/home"/>
13
13
  <access subdomains="true" uri="file:///SDCard"/>
14
+ <access subdomains="true" uri="*" />
14
15
  <icon rim:hover="false" src="resources/icon.png"/>
15
16
  <icon rim:hover="true" src="resources/icon_hover.png"/>
16
17
  <content src="index.html"/>
@@ -9,6 +9,28 @@
9
9
  This is a sample config.xml for integration testing with Confetti
10
10
  </description>
11
11
 
12
+ <license href="http://www.opensource.org/licenses/mit-license.php">The MIT License
13
+
14
+ Copyright (c) 2011 Andrew Lunny
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ of this software and associated documentation files (the &quot;Software&quot;), to deal
18
+ in the Software without restriction, including without limitation the rights
19
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ copies of the Software, and to permit persons to whom the Software is
21
+ furnished to do so, subject to the following conditions:
22
+
23
+ The above copyright notice and this permission notice shall be included in
24
+ all copies or substantial portions of the Software.
25
+
26
+ THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
32
+ THE SOFTWARE.</license>
33
+
12
34
  <author href="http://alunny.github.com"
13
35
  email="alunny@gmail.com">
14
36
  Andrew Lunny
@@ -52,7 +52,7 @@ describe 'Writing Output' do
52
52
  end
53
53
 
54
54
  context "Blackberry Widgets" do
55
- it "should read config.xml and spit out bb-config.xml" do
55
+ it "should read config.xml and spit out config.xml" do
56
56
  @output_file = "#{ fixture_dir }/blackberry_widget_config_output.xml"
57
57
  @config.write_blackberry_widgets_config @output_file
58
58
 
@@ -18,18 +18,19 @@ describe Confetti::Template::BlackberryWidgetsConfig do
18
18
  describe "templated attributes" do
19
19
  subject { @template = @template_class.new }
20
20
 
21
- it { should respond_to :widget_version }
22
21
  it { should respond_to :widget_id }
23
22
  it { should respond_to :widget_name }
24
23
  it { should respond_to :author_name }
25
24
  it { should respond_to :author_email }
26
25
  it { should respond_to :author_href }
27
26
  it { should respond_to :widget_description }
27
+ it { should respond_to :license_text }
28
+ it { should respond_to :license_href }
28
29
  end
29
30
 
30
31
  describe "default values" do
31
- it "should define output filename as \"bb-config.xml\"" do
32
- @template_class.new.output_filename.should == "bb-config.xml"
32
+ it "should define output filename as \"config.xml\"" do
33
+ @template_class.new.output_filename.should == "config.xml"
33
34
  end
34
35
  end
35
36
 
@@ -64,10 +65,6 @@ describe Confetti::Template::BlackberryWidgetsConfig do
64
65
  @template.widget_name.should == "Awesome App"
65
66
  end
66
67
 
67
- it "should set version correctly" do
68
- @template.widget_version.should == "1.0.0"
69
- end
70
-
71
68
  it "should set description correctly" do
72
69
  @template.widget_description.should == "My New App, by Bruce Lee"
73
70
  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: 21
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
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-03-21 00:00:00 -07:00
18
+ date: 2011-03-28 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  requirements: []
213
213
 
214
214
  rubyforge_project: confetti
215
- rubygems_version: 1.3.7
215
+ rubygems_version: 1.6.2
216
216
  signing_key:
217
217
  specification_version: 3
218
218
  summary: Generate mobile app config files