postcode_validator 0.1.0 → 1.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50a88a5da088eaac70d238ecb58e5b71ff66659b
4
- data.tar.gz: 780447807f194f0935efdd21c2aaf62c8d0a331a
3
+ metadata.gz: b9f570e27dea5da296d23fcf7d495b39ce7a1651
4
+ data.tar.gz: 6d105b06c26b3acdfb9b2ac15b33efbd0a22db96
5
5
  SHA512:
6
- metadata.gz: 9439a870c7659fdc4796d92bb3927f1d4cf6d58906d677d072360e9a5451151a0b21ad2114ec5a26a7caba17e09c0b5475bfd534d04d6abbf0a4f453154328b1
7
- data.tar.gz: 4d9bbbee7d089c8c0545987e694cb5acf409e1a02a68bbb6c0e7b44554d1da67094c511f4b1d2b3d9dc301168d7319bc769599772645c58cf649c1cd742d26e6
6
+ metadata.gz: f17cbef335cd14f20a184439dbab159be4e16ee8e40be14c7796c7390c390d6d8b84d2be90344fb342f602b51f53f415783c48b3a3fd4cb7b47ee7f2e32f298a
7
+ data.tar.gz: c0f4491434cd518a98dfa99d3159c84c79b47172e9e7d8d0750aa4c4ae799d53b532d95c850dbdfb98582609b0ddb065f86e828e134146ed30400d0eeec714ad
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- postcode_validator (0.1.0)
4
+ postcode_validator (1.0.0)
5
5
  twitter_cldr (~> 4.4.3)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # PostcodeValidator
2
2
 
3
+ [![Build Status](https://travis-ci.org/notus-sh/postcode_validator.svg?branch=master)](https://travis-ci.org/notus-sh/postcode_validator)
4
+ [![Gem Version](https://badge.fury.io/rb/postcode_validator.svg)](https://badge.fury.io/rb/postcode_validator)
5
+
3
6
  A simple postcode validator based on the Unicode CLDR project, with an optional integration with ActiveModel.
4
7
 
5
8
  ## Installation
@@ -9,12 +9,12 @@ begin
9
9
  require 'active_model/validations/postcode_validator'
10
10
 
11
11
  ActiveSupport.on_load(:i18n) do
12
- I18n.load_path << Dir[File.expand_path(File.join(__dir__, '..', 'locales', '*.yml')).to_s]
12
+ I18n.load_path += Dir[File.expand_path(File.join(__dir__, '..', 'locales', '*.yml')).to_s]
13
13
  end
14
14
  rescue LoadError # rubocop:disable Lint/HandleExceptions
15
15
  end
16
16
 
17
- # A simple postcode validator
17
+ # A simple postcode validator
18
18
  #
19
19
  # Can be used to validate a post code, regarding a country specified through the
20
20
  # :country option as an ISO-3166-2 code.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class PostcodeValidator
4
- VERSION = '0.1.0'
4
+ VERSION = '1.0.0'
5
5
  end
@@ -2,4 +2,4 @@
2
2
  fr:
3
3
  errors:
4
4
  messages:
5
- invalid_zipcode: "n'est pas un code postal valide"
5
+ invalid_postcode: "n'est pas un code postal valide"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postcode_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-29 00:00:00.000000000 Z
11
+ date: 2018-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter_cldr