valvat 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  pkg/*
2
2
  *.gem
3
3
  .bundle
4
- Gemfile.lock
4
+ Gemfile.lock
5
+ tmp
data/CHANGES.md CHANGED
@@ -1,6 +1,12 @@
1
1
  ### dev
2
2
 
3
- [full changelog](http://github.com/yolk/valvat/compare/v0.4.4...master)
3
+ [full changelog](http://github.com/yolk/valvat/compare/v0.4.5...master)
4
+
5
+ ### 0.4.5 / 2013-02-16
6
+
7
+ [full changelog](http://github.com/yolk/valvat/compare/v0.4.4...v0.4.5)
8
+
9
+ * Added I18n locales in bulgarian (by [kirichkov](https://github.com/kirichkov))
4
10
 
5
11
  ### 0.4.4 / 2013-01-07
6
12
 
data/README.md CHANGED
@@ -8,7 +8,7 @@ Validates european vat numbers. Standalone or as a ActiveModel validator.
8
8
  * Lookup via the VIES web service
9
9
  * (Optional) ActiveModel/Rails3 integration
10
10
  * Works standalone without ActiveModel
11
- * I18n locales for country specific error messages
11
+ * I18n locales for country specific error messages in english, german, swedish and bulgarian
12
12
 
13
13
  valvat is tested and works with ruby 1.8.7/1.9.3 and ActiveModel 3.2.9
14
14
 
@@ -57,7 +57,7 @@ According to EU law, or at least as Austria sees it, it's mandatory to verify th
57
57
 
58
58
  To receive a requestIdentifier you need to pass your own VAT number in the options hash. In this Example, Google (VAT IE6388047V) is checking the validity of eBays VAT number (LU21416127)
59
59
 
60
- Valvat.new("LU21416127").exists?(:my_vat => "IE6388047V")
60
+ Valvat.new("LU21416127").exists?(:requester_vat => "IE6388047V")
61
61
  => {
62
62
  :country_code=>"LU", :vat_number => "21416127",
63
63
  :request_date => Date.today, :name=>"EBAY EUROPE S.A R.L.",
@@ -159,6 +159,8 @@ This basically just removes trailing spaces and ensures all chars are uppercase.
159
159
  ## Contributions by
160
160
 
161
161
  * [lcx](https://github.com/lcx)
162
+ * [kirichkov](https://github.com/kirichkov)
163
+ * [borodiychuk](https://github.com/borodiychuk)
162
164
  * [opsidao](https://github.com/opsidao)
163
165
  * [henrik](https://github.com/henrik)
164
166
  * [SpoBo](https://github.com/SpoBo)
@@ -0,0 +1,34 @@
1
+ bg:
2
+ errors:
3
+ messages:
4
+ invalid_vat: не е валиден %{country_adjective} ДДС номер
5
+ valvat:
6
+ country_adjectives:
7
+ eu: европейски
8
+ at: австрийски
9
+ be: белгийски
10
+ bg: български
11
+ cy: кипърски
12
+ cz: чешки
13
+ de: германски
14
+ dk: датски
15
+ ee: естонски
16
+ es: испански
17
+ fi: финландски
18
+ fr: френски
19
+ gb: британски
20
+ gr: гръцки
21
+ hu: унгарски
22
+ ie: ирландски
23
+ it: италиански
24
+ lt: литовски
25
+ lu: люксембургски
26
+ lv: латвийски
27
+ mt: малтийски
28
+ nl: холандски
29
+ pl: полски
30
+ pt: португалски
31
+ ro: румънски
32
+ se: шведски
33
+ si: словенски
34
+ sk: словашки
@@ -1,3 +1,3 @@
1
1
  class Valvat
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valvat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-07 00:00:00.000000000 Z
12
+ date: 2013-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -144,6 +144,7 @@ files:
144
144
  - Rakefile
145
145
  - lib/valvat.rb
146
146
  - lib/valvat/active_model.rb
147
+ - lib/valvat/locales/bg.yml
147
148
  - lib/valvat/locales/de.yml
148
149
  - lib/valvat/locales/en.yml
149
150
  - lib/valvat/locales/sv.yml
@@ -191,3 +192,4 @@ test_files:
191
192
  - spec/valvat/syntax_spec.rb
192
193
  - spec/valvat/utils_spec.rb
193
194
  - spec/valvat_spec.rb
195
+ has_rdoc: