confetti 0.2.6 → 0.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confetti (0.2.6)
4
+ confetti (0.2.7)
5
5
  mustache (= 0.11.2)
6
6
  thor (= 0.14.3)
7
7
 
@@ -84,6 +84,10 @@ module Confetti
84
84
  @icon_set.max { |a,b| a.width.to_i <=> b.width.to_i }
85
85
  end
86
86
 
87
+ def splash
88
+ @splash_set.first
89
+ end
90
+
87
91
  def grab_extras(attributes)
88
92
  extras = attributes.keys.inject({}) do |hash, key|
89
93
  hash[key] = attributes[key] unless Image.public_instance_methods.include? key
@@ -1,3 +1,3 @@
1
1
  module Confetti
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
data/spec/config_spec.rb CHANGED
@@ -385,4 +385,19 @@ describe Confetti::Config do
385
385
  end
386
386
  end
387
387
  end
388
+
389
+ describe "splash helpers" do
390
+ describe "if no splash screen has been set" do
391
+ it "#splash should return nil" do
392
+ @config.splash.should be_nil
393
+ end
394
+ end
395
+
396
+ describe "with a single splash screen" do # config.xml
397
+ it "#splash should return an Image" do
398
+ @config.populate_from_xml "#{ fixture_dir }/config.xml"
399
+ @config.splash.should be_a Confetti::Config::Image
400
+ end
401
+ end
402
+ end
388
403
  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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 7
10
+ version: 0.2.7
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-24 00:00:00 -07:00
18
+ date: 2011-05-27 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency