biggs 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  biggs-*.*.*.gem
2
- Gemfile.lock
2
+ Gemfile.lock
3
+ .rbenv-*
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### dev
2
2
 
3
+ ### 0.3.2 / 2013-02-19
4
+
5
+ * Fixed warning in Biggs::Format
6
+
3
7
  ### 0.3.1 / 2012-08-02
4
8
 
5
9
  * Fixed LI format
data/README.md CHANGED
@@ -4,7 +4,7 @@ biggs is a small ruby gem/rails plugin for formatting postal addresses from over
4
4
 
5
5
  As a ruby gem:
6
6
 
7
- sudo gem install yolk-biggs
7
+ sudo gem install biggs
8
8
 
9
9
  If your rather prefer to install it as a plugin for rails, from your application directory simply run:
10
10
 
@@ -147,4 +147,4 @@ biggs knows how to format addresses of over 60 different countries. If you are m
147
147
 
148
148
  biggs is tested to behave well with Rails 3.0
149
149
 
150
- Copyright (c) 2009-2012 Yolk Sebastian Munz & Julia Soergel GbR
150
+ Copyright (c) 2009-2012 Yolk Sebastian Munz & Julia Soergel GbR
@@ -1,22 +1,20 @@
1
1
  module Biggs
2
2
  class Format
3
3
  attr_reader :country_name, :iso_code, :format_string
4
-
5
- DEFAULT_WITH_STATE =
6
-
4
+
7
5
  def initialize(iso_code)
8
6
  @iso_code = iso_code.to_s.downcase
9
7
  @country_name = Biggs.country_names[@iso_code]
10
8
  @format_string = Biggs.formats[@iso_code]
11
9
  end
12
-
10
+
13
11
  class << self
14
12
  def find(iso_code)
15
13
  entries_cache[iso_code] ||= new(iso_code)
16
14
  end
17
-
15
+
18
16
  private
19
-
17
+
20
18
  def entries_cache
21
19
  @entries_cache ||= {}
22
20
  end
@@ -1,3 +1,3 @@
1
1
  module Biggs
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,80 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biggs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
4
  prerelease:
5
+ version: 0.3.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sebastian Munz
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-02 00:00:00.000000000 Z
12
+ date: 2013-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: activerecord
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
15
+ version_requirements: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.0'
20
+ none: false
21
+ name: activerecord
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
24
+ requirement: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
28
  version: '3.0'
30
- - !ruby/object:Gem::Dependency
31
- name: rake
32
- requirement: !ruby/object:Gem::Requirement
33
29
  none: false
30
+ - !ruby/object:Gem::Dependency
31
+ version_requirements: !ruby/object:Gem::Requirement
34
32
  requirements:
35
33
  - - ! '>='
36
34
  - !ruby/object:Gem::Version
37
35
  version: '0'
36
+ none: false
37
+ name: rake
38
38
  type: :development
39
39
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
40
+ requirement: !ruby/object:Gem::Requirement
42
41
  requirements:
43
42
  - - ! '>='
44
43
  - !ruby/object:Gem::Version
45
44
  version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: rspec
48
- requirement: !ruby/object:Gem::Requirement
49
45
  none: false
46
+ - !ruby/object:Gem::Dependency
47
+ version_requirements: !ruby/object:Gem::Requirement
50
48
  requirements:
51
49
  - - ! '>='
52
50
  - !ruby/object:Gem::Version
53
51
  version: 2.4.0
52
+ none: false
53
+ name: rspec
54
54
  type: :development
55
55
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
56
+ requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - ! '>='
60
59
  - !ruby/object:Gem::Version
61
60
  version: 2.4.0
62
- - !ruby/object:Gem::Dependency
63
- name: sqlite3
64
- requirement: !ruby/object:Gem::Requirement
65
61
  none: false
62
+ - !ruby/object:Gem::Dependency
63
+ version_requirements: !ruby/object:Gem::Requirement
66
64
  requirements:
67
65
  - - ! '>='
68
66
  - !ruby/object:Gem::Version
69
67
  version: 1.3.5
68
+ none: false
69
+ name: sqlite3
70
70
  type: :development
71
71
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
72
+ requirement: !ruby/object:Gem::Requirement
74
73
  requirements:
75
74
  - - ! '>='
76
75
  - !ruby/object:Gem::Version
77
76
  version: 1.3.5
77
+ none: false
78
78
  description: biggs is a small ruby gem/rails plugin for formatting postal addresses
79
79
  from over 60 countries.
80
80
  email:
@@ -110,26 +110,20 @@ rdoc_options: []
110
110
  require_paths:
111
111
  - lib
112
112
  required_ruby_version: !ruby/object:Gem::Requirement
113
- none: false
114
113
  requirements:
115
114
  - - ! '>='
116
115
  - !ruby/object:Gem::Version
117
116
  version: '0'
118
- segments:
119
- - 0
120
- hash: -746915506577537361
121
- required_rubygems_version: !ruby/object:Gem::Requirement
122
117
  none: false
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
119
  requirements:
124
120
  - - ! '>='
125
121
  - !ruby/object:Gem::Version
126
122
  version: '0'
127
- segments:
128
- - 0
129
- hash: -746915506577537361
123
+ none: false
130
124
  requirements: []
131
125
  rubyforge_project: biggs
132
- rubygems_version: 1.8.24
126
+ rubygems_version: 1.8.23
133
127
  signing_key:
134
128
  specification_version: 3
135
129
  summary: biggs is a small ruby gem/rails plugin for formatting postal addresses from