swf_ditty 0.0.3 → 0.0.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -59,10 +59,12 @@ module Sinatra
59
59
  # Convert a hash to a string of key:value pairs, delimited by commas
60
60
  # Wrap in quotes unless numeric or flashvars hash
61
61
  def hash_to_key_value_string(hash)
62
- hash.each_pair.map do |k,v|
62
+ pairs = []
63
+ hash.each_pair do |k,v|
63
64
  v = "'#{v}'" unless k.to_s=='flashvars' || !v.to_s.match(/^[0-9]*\.[0-9]+|[0-9]+$/).nil?
64
- "#{k}:#{v}"
65
- end.sort.join(", ")
65
+ pairs << "#{k}:#{v}"
66
+ end
67
+ pairs.sort.join(", ")
66
68
  end
67
69
 
68
70
  # Sinatra doesn't have this method, but Rails does..
data/swf_ditty.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{swf_ditty}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Zeke Sikelianos"]
12
- s.date = %q{2009-11-02}
12
+ s.date = %q{2009-11-04}
13
13
  s.description = %q{A simple and flexible Sinatra helper for embedding SWFs in your views. Depends on jQuery and jQuery SWFObject}
14
14
  s.email = %q{zeke@sikelianos.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swf_ditty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeke Sikelianos
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-02 00:00:00 -08:00
12
+ date: 2009-11-04 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency