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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.2.7)
4
+ confetti (0.2.8)
5
5
  mustache (= 0.11.2)
6
6
  thor (= 0.14.3)
7
7
 
@@ -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="false" version="1.0.0"/>
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="*" />
@@ -37,6 +37,10 @@ module Confetti
37
37
  @config.license.text
38
38
  end
39
39
 
40
+ def phonegap_version
41
+ @config.phonegap_version
42
+ end
43
+
40
44
  def output_filename
41
45
  "config.xml"
42
46
  end
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
@@ -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="false" version="1.0.0"/>
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="false" version="1.0.0"/>
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="*" />
@@ -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: 25
5
- prerelease: false
4
+ hash: 7
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 7
10
- version: 0.2.7
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-05-27 00:00:00 -07:00
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.3.7
216
+ rubygems_version: 1.5.0
217
217
  signing_key:
218
218
  specification_version: 3
219
219
  summary: Generate mobile app config files