kid80-biggs 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.textile CHANGED
@@ -1,3 +1,8 @@
1
+ h3. biggs 0.1.6 - 2009-07-09
2
+
3
+ * Added formatted_field_names
4
+ * nil check if country exists
5
+
1
6
  h3. biggs 0.1.5 - 2009-07-03
2
7
 
3
8
  * Removed recipient from format
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 5
3
+ :patch: 6
4
4
  :major: 0
@@ -29,6 +29,7 @@ module Biggs
29
29
  values.symbolize_keys! if values.respond_to?(:symbolize_keys!)
30
30
  country_code = country_code.dup.to_s.downcase
31
31
  country_entry = (Biggs.formats[country_code])
32
+ return [] if country_entry.nil?
32
33
  country_format = (country_entry["format"].dup || "").to_s
33
34
 
34
35
  form_fields = country_format.scan(/\{\{(\w+)\}\}/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kid80-biggs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Munz