ico-validator 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd7e4d4379f83345f956360e915d5b3dbf453cef
4
- data.tar.gz: 04b32bccbfb7c354e4653a570567feb33972ed9f
3
+ metadata.gz: 6aa568f11af4241647c5f93a6256d459e029a2e5
4
+ data.tar.gz: 12b06d2e14270a589a479e1d409647706dcb47e3
5
5
  SHA512:
6
- metadata.gz: 7dd694325cd1f370ff40feaf1a695cd3ba9c63048118dbdf9d0ce9153468c0d0ce526caca40ab2e402c62aef153175c198f545a2c266a539d2962f90d6efbbc1
7
- data.tar.gz: d96f6baf3e691b12688d4fa8037d1195d42f71096cf987f4639436a4f1bd1986bb03209568730344f0c9da98bb1184a8566101fee7c848d4a13de8e645969c2b
6
+ metadata.gz: 0a184f2c2e2da58b49cbc23b73b2c9142f32e07b9a117120fdc98381e15cb8a5dc1bc9f5704aac354be48b10d6b51e5381727674e22c3996a9dc71264539fab0
7
+ data.tar.gz: d06a9548c4ccc588568bc8159533b49292628e77ec3c85f9a4dcd9a3b27e0aa71ffc70fed65a79dcb25f2449e10cdb5ce90581ffd4a97f380593499f35545bad
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ ## v0.1.0
2
+
3
+ * Fixed file names so IcoValidator can be automatically loaded by bundler
4
+ * Added czech localization to I18n.load_path
5
+ * Fixed indentation of locale files
6
+
7
+ ## v0.0.1
8
+
9
+ * Initial release
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'ico-validator'
7
- spec.version = '0.0.1'
7
+ spec.version = '0.1.0'
8
8
  spec.authors = ['Premysl Donat']
9
9
  spec.email = ['donat@uol.cz']
10
10
  spec.summary = %q{Rails validator for validating format of czech identification number = IC}
@@ -1,4 +1,5 @@
1
1
  require 'active_model'
2
2
  require 'active_support/i18n'
3
3
  I18n.load_path << File.dirname(__FILE__) + '/locale/en.yml'
4
+ I18n.load_path << File.dirname(__FILE__) + '/locale/cs.yml'
4
5
  require "ico-validator/ico_validator"
data/lib/locale/cs.yml CHANGED
@@ -1,4 +1,4 @@
1
- en:
1
+ cs:
2
2
  errors:
3
- messages:
4
- invalid_format: "Neplatný formát IČO."
3
+ messages:
4
+ invalid_format: "Neplatný formát IČO."
data/lib/locale/en.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  en:
2
2
  errors:
3
- messages:
4
- invalid_format: "Invalid ICO format."
3
+ messages:
4
+ invalid_format: "Invalid ICO format."
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  require "codeclimate-test-reporter"
2
2
  CodeClimate::TestReporter.start
3
- require 'ico_validator'
3
+ require 'ico-validator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ico-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Premysl Donat
@@ -90,13 +90,14 @@ extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitignore"
92
92
  - ".travis.yml"
93
+ - CHANGELOG.md
93
94
  - Gemfile
94
95
  - LICENSE
95
96
  - README.md
96
97
  - Rakefile
97
98
  - ico-validator.gemspec
99
+ - lib/ico-validator.rb
98
100
  - lib/ico-validator/ico_validator.rb
99
- - lib/ico_validator.rb
100
101
  - lib/locale/cs.yml
101
102
  - lib/locale/en.yml
102
103
  - spec/ico_validator_spec.rb