going_postal 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.rdoc +1 -1
  3. data/lib/going_postal.rb +1 -1
  4. metadata +22 -44
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2859da9cbe99e2f043d7d2f16fbb22941ecc1eb1
4
+ data.tar.gz: 43620d88545eaf143a8ff50401e5fa2312651dbf
5
+ SHA512:
6
+ metadata.gz: be7a86b899a5649d86f71ca85872e6cd2a9032253642429c3e2d0b32b326e8dad393b7a14e28f615461e38e403333170e13a5f4e0627085ea5298fdc7d0e95f9
7
+ data.tar.gz: 8cbd64d1f8cffbf452819c82df81d838cdcf57e830d7105c3d3756bad88830855bb9ae68fc0d713809b6f45e84e6ba4d2ffca43090ae9fcebd94039b69148a4b
data/README.rdoc CHANGED
@@ -57,7 +57,7 @@ format_zip_code.
57
57
 
58
58
  (The MIT License)
59
59
 
60
- Copyright (c) 2011 Global Personals, Ltd.
60
+ Copyright (c) 2011,2012,2013 Global Personals, Ltd.
61
61
 
62
62
  Permission is hereby granted, free of charge, to any person obtaining a copy
63
63
  of this software and associated documentation files (the "Software"), to deal
data/lib/going_postal.rb CHANGED
@@ -185,7 +185,7 @@ module GoingPostal
185
185
 
186
186
  def format_nl_postcode(string)
187
187
  string = string.to_s.upcase.delete(" \t\r\n")
188
- string.insert(4, " ")
188
+ string.insert(4, " ") if string.length >= 4
189
189
  string if string =~ /^[1-9][0-9]{3} (S[BCE-RT-Z]|[A-RT-Z][A-Z])$/
190
190
  end
191
191
 
metadata CHANGED
@@ -1,71 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: going_postal
3
- version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Matthew Sadler
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-01-28 00:00:00 +00:00
19
- default_executable:
11
+ date: 2013-05-08 00:00:00.000000000 Z
20
12
  dependencies: []
21
-
22
13
  description: Post/zip code formatting and validation for the UK, US, CA and more.
23
14
  email: mat@sourcetagsandcodes.com
24
15
  executables: []
25
-
26
16
  extensions: []
27
-
28
- extra_rdoc_files:
17
+ extra_rdoc_files:
29
18
  - README.rdoc
30
- files:
19
+ files:
31
20
  - lib/going_postal.rb
32
21
  - README.rdoc
33
- has_rdoc: true
34
22
  homepage: http://github.com/globaldev/going_postal
35
23
  licenses: []
36
-
24
+ metadata: {}
37
25
  post_install_message:
38
- rdoc_options:
26
+ rdoc_options:
39
27
  - --main
40
28
  - README.rdoc
41
29
  - --charset
42
30
  - utf-8
43
- require_paths:
31
+ require_paths:
44
32
  - lib
45
- required_ruby_version: !ruby/object:Gem::Requirement
46
- none: false
47
- requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- hash: 3
51
- segments:
52
- - 0
53
- version: "0"
54
- required_rubygems_version: !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
63
43
  requirements: []
64
-
65
44
  rubyforge_project:
66
- rubygems_version: 1.6.2
45
+ rubygems_version: 2.0.3
67
46
  signing_key:
68
- specification_version: 3
47
+ specification_version: 4
69
48
  summary: Global post/zip code formatting and validation mixin
70
49
  test_files: []
71
-