sa_vat_validation 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +41 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/Rakefile +5 -11
- data/lib/sa_vat_validation/version.rb +3 -0
- data/lib/sa_vat_validation.rb +35 -22
- data/sa_vat_validation.gemspec +22 -30
- data/spec/sa_vat_validation_spec.rb +51 -0
- data/spec/spec_helper.rb +4 -0
- metadata +99 -97
- data/Manifest +0 -4
- data/README.rdoc +0 -50
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 42162cd0d649690602314d4c7936eacbacc0adfa1d0332fbc47f10bf848d40ee
|
4
|
+
data.tar.gz: 2f27791b1489bd91c45f1b578976b80b824b7e77ab8d7b1b6f64961a682ca4c5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9088b0d2f574a246ccddc2c996ad2d147f1cbede353ee7b60e6ca94ce664409e578e01d0140080efb56d3913890fb4d0b0365fb7509d60a97a3a3fc8c990bb17
|
7
|
+
data.tar.gz: 34c02e321c98e548791f7aa87479be4ae42d91b9b38465bf64dbd48161cc4beede0b93b7141c73e4dc11f4ac1d22d4c015cfe0cae65aa68b482f36f162ef6de4
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sa_vat_validation (0.2.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
coderay (1.1.3)
|
10
|
+
diff-lcs (1.2.5)
|
11
|
+
method_source (1.0.0)
|
12
|
+
pry (0.14.1)
|
13
|
+
coderay (~> 1.1)
|
14
|
+
method_source (~> 1.0)
|
15
|
+
rake (10.4.2)
|
16
|
+
rspec (3.2.0)
|
17
|
+
rspec-core (~> 3.2.0)
|
18
|
+
rspec-expectations (~> 3.2.0)
|
19
|
+
rspec-mocks (~> 3.2.0)
|
20
|
+
rspec-core (3.2.3)
|
21
|
+
rspec-support (~> 3.2.0)
|
22
|
+
rspec-expectations (3.2.1)
|
23
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
+
rspec-support (~> 3.2.0)
|
25
|
+
rspec-mocks (3.2.1)
|
26
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
+
rspec-support (~> 3.2.0)
|
28
|
+
rspec-support (3.2.2)
|
29
|
+
|
30
|
+
PLATFORMS
|
31
|
+
ruby
|
32
|
+
|
33
|
+
DEPENDENCIES
|
34
|
+
bundler (~> 1.10)
|
35
|
+
pry (~> 0.14.1)
|
36
|
+
rake (~> 10.0)
|
37
|
+
rspec (~> 3.2)
|
38
|
+
sa_vat_validation!
|
39
|
+
|
40
|
+
BUNDLED WITH
|
41
|
+
1.16.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Shane Reddy
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# SaVatValidation
|
2
|
+
|
3
|
+
Validation of South African VAT numbers
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'sa_vat_validation'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install sa_vat_validation
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Validating a South African VAT number is easy:
|
24
|
+
```ruby
|
25
|
+
4023340283.valid_sa_vat_number?
|
26
|
+
=> false
|
27
|
+
```
|
28
|
+
|
29
|
+
Works on strings too:
|
30
|
+
```ruby
|
31
|
+
'4023340283'.valid_sa_vat_number?
|
32
|
+
=> false
|
33
|
+
```
|
34
|
+
|
35
|
+
## Development
|
36
|
+
|
37
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
38
|
+
|
39
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
40
|
+
|
41
|
+
## Contributing
|
42
|
+
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mpowered/sa_vat_validation
|
44
|
+
|
45
|
+
|
46
|
+
## License
|
47
|
+
|
48
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
49
|
+
|
data/Rakefile
CHANGED
@@ -1,12 +1,6 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require 'echoe'
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
p.author = "Gary Greyling"
|
9
|
-
p.email = "greyling.gary@gmail.co.za"
|
10
|
-
p.ignore_pattern = ["tmp/*", "script/*"]
|
11
|
-
p.development_dependencies = [['activesupport']]
|
12
|
-
end
|
4
|
+
RSpec::Core::RakeTask.new(:spec)
|
5
|
+
|
6
|
+
task :default => :spec
|
data/lib/sa_vat_validation.rb
CHANGED
@@ -1,42 +1,55 @@
|
|
1
|
-
|
2
|
-
def last_digit
|
3
|
-
self.to_s.last.to_i
|
4
|
-
end
|
1
|
+
require "sa_vat_validation/version"
|
5
2
|
|
6
|
-
def first_digit
|
7
|
-
self.to_s.first.to_i
|
8
|
-
end
|
9
|
-
end
|
10
3
|
|
11
|
-
|
4
|
+
module SaVatValidation
|
12
5
|
def self.valid?(vat_number)
|
13
6
|
digits = vat_number.to_s.split(//).map(&:to_i)
|
7
|
+
|
8
|
+
# As per SARS
|
9
|
+
# A VAT Number is a unique number, which comprises of 10 digits and starts with the number 4
|
10
|
+
return false unless digits.first == 4
|
11
|
+
return false unless digits.size == 10 && vat_number.to_s.is_numeric?
|
12
|
+
|
14
13
|
check_digit = digits.pop
|
14
|
+
sum = 0
|
15
15
|
|
16
|
-
sum = 0
|
17
16
|
digits.each_with_index do |digit, i|
|
18
17
|
if i.even?
|
19
18
|
result = digit * 2
|
20
|
-
if result >= 10
|
21
|
-
|
22
|
-
end
|
19
|
+
result = first_digit(result) + last_digit(result) if result >= 10
|
20
|
+
|
23
21
|
sum += result
|
24
22
|
else
|
25
|
-
sum += digit
|
23
|
+
sum += digit
|
26
24
|
end
|
27
25
|
end
|
28
|
-
if sum.last_digit.zero?
|
29
|
-
calculated_digit = sum.last_digit
|
30
|
-
else
|
31
|
-
calculated_digit = 10 - sum.last_digit
|
32
|
-
end
|
33
26
|
|
34
|
-
|
27
|
+
calculated_digit = last_digit(sum).zero? ? last_digit(sum) : 10 - last_digit(sum)
|
28
|
+
|
29
|
+
check_digit == calculated_digit
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.last_digit(a)
|
33
|
+
a.to_s.chars.last.to_i
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.first_digit(a)
|
37
|
+
a.to_s.chars.first.to_i
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
class String
|
42
|
+
def valid_sa_vat_number?
|
43
|
+
SaVatValidation::valid?(self)
|
44
|
+
end
|
45
|
+
|
46
|
+
def is_numeric?
|
47
|
+
Float self rescue false
|
35
48
|
end
|
36
49
|
end
|
37
50
|
|
38
|
-
class
|
51
|
+
class Numeric
|
39
52
|
def valid_sa_vat_number?
|
40
53
|
SaVatValidation::valid?(self)
|
41
54
|
end
|
42
|
-
end
|
55
|
+
end
|
data/sa_vat_validation.gemspec
CHANGED
@@ -1,35 +1,27 @@
|
|
1
|
-
#
|
1
|
+
# coding: utf-8
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'sa_vat_validation/version'
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Sa_vat_validation", "--main", "README.rdoc"]
|
17
|
-
s.require_paths = ["lib"]
|
18
|
-
s.rubyforge_project = %q{sa_vat_validation}
|
19
|
-
s.rubygems_version = %q{1.3.7}
|
20
|
-
s.signing_key = %q{/Users/gary/.gem_certs/gem-private_key.pem}
|
21
|
-
s.summary = %q{Validate South African VAT numbers easily}
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "sa_vat_validation"
|
9
|
+
spec.version = SaVatValidation::VERSION
|
10
|
+
spec.authors = ["Gary Greyling"]
|
11
|
+
spec.email = ["greyling.gary@gmail.com"]
|
12
|
+
spec.description = "SA VAT number validation"
|
13
|
+
spec.summary = "SA VAT number validation"
|
14
|
+
spec.homepage = ""
|
15
|
+
spec.license = "MIT"
|
22
16
|
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
spec.files = `git ls-files`.split($/)
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ["lib"]
|
26
21
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
else
|
33
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
34
|
-
end
|
22
|
+
# spec.add_development_dependency "activesupport", "~> 4.2"
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
24
|
+
spec.add_development_dependency "pry", "~> 0.14.1"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.2"
|
35
27
|
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe SaVatValidation do
|
4
|
+
it 'has a version number' do
|
5
|
+
expect(SaVatValidation::VERSION).not_to be nil
|
6
|
+
end
|
7
|
+
|
8
|
+
context 'validates a South African VAT number' do
|
9
|
+
it "should validate '4111111110' as true" do
|
10
|
+
expect(described_class).to be_valid(4111111110)
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should validate '0000000000' as false" do
|
14
|
+
expect(described_class).not_to be_valid(0000000000)
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should validate a non number 'kjabndfojb' as false" do
|
18
|
+
expect(described_class).not_to be_valid("kjabndfojb")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
context "monkey patching" do
|
23
|
+
describe "String" do
|
24
|
+
context "when valid" do
|
25
|
+
subject { "4111111110" }
|
26
|
+
|
27
|
+
it { is_expected.to be_valid_sa_vat_number }
|
28
|
+
end
|
29
|
+
|
30
|
+
context "when invalid" do
|
31
|
+
subject { "0000000000" }
|
32
|
+
|
33
|
+
it { is_expected.not_to be_valid_sa_vat_number }
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe "Numeric" do
|
38
|
+
context "when valid" do
|
39
|
+
subject { 4111111110 }
|
40
|
+
|
41
|
+
it { is_expected.to be_valid_sa_vat_number }
|
42
|
+
end
|
43
|
+
|
44
|
+
context "when invalid" do
|
45
|
+
subject { 0000000000 }
|
46
|
+
|
47
|
+
it { is_expected.not_to be_valid_sa_vat_number }
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,112 +1,114 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sa_vat_validation
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 0.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Gary Greyling
|
14
|
-
autorequire:
|
8
|
+
autorequire:
|
15
9
|
bindir: bin
|
16
|
-
cert_chain:
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
dependencies:
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: activesupport
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-03-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.14.1
|
34
|
+
type: :development
|
44
35
|
prerelease: false
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.14.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
54
48
|
type: :development
|
55
|
-
|
56
|
-
|
57
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.2'
|
69
|
+
description: SA VAT number validation
|
70
|
+
email:
|
71
|
+
- greyling.gary@gmail.com
|
58
72
|
executables: []
|
59
|
-
|
60
73
|
extensions: []
|
61
|
-
|
62
|
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
|
66
|
-
-
|
67
|
-
-
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- Gemfile
|
80
|
+
- Gemfile.lock
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
68
83
|
- Rakefile
|
69
84
|
- lib/sa_vat_validation.rb
|
85
|
+
- lib/sa_vat_validation/version.rb
|
70
86
|
- sa_vat_validation.gemspec
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
- Sa_vat_validation
|
81
|
-
- --main
|
82
|
-
- README.rdoc
|
83
|
-
require_paths:
|
87
|
+
- spec/sa_vat_validation_spec.rb
|
88
|
+
- spec/spec_helper.rb
|
89
|
+
homepage: ''
|
90
|
+
licenses:
|
91
|
+
- MIT
|
92
|
+
metadata: {}
|
93
|
+
post_install_message:
|
94
|
+
rdoc_options: []
|
95
|
+
require_paths:
|
84
96
|
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
|
87
|
-
requirements:
|
97
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
88
99
|
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
version: "0"
|
94
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
|
-
requirements:
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
97
104
|
- - ">="
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
segments:
|
101
|
-
- 1
|
102
|
-
- 2
|
103
|
-
version: "1.2"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
104
107
|
requirements: []
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
108
|
+
rubygems_version: 3.1.2
|
109
|
+
signing_key:
|
110
|
+
specification_version: 4
|
111
|
+
summary: SA VAT number validation
|
112
|
+
test_files:
|
113
|
+
- spec/sa_vat_validation_spec.rb
|
114
|
+
- spec/spec_helper.rb
|
data/Manifest
DELETED
data/README.rdoc
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
= sa_vat_validation
|
2
|
-
|
3
|
-
http://github.com/mpowered/sa_vat_validation
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
Validation of South African VAT numbers
|
8
|
-
|
9
|
-
|
10
|
-
== EXAMPLE:
|
11
|
-
|
12
|
-
Validating a South African VAT number is easy:
|
13
|
-
>> 4023340283.valid_sa_vat_number?
|
14
|
-
=> false
|
15
|
-
Works on strings too:
|
16
|
-
>> '4023340283'.valid_sa_vat_number?
|
17
|
-
=> false
|
18
|
-
|
19
|
-
== REQUIREMENTS:
|
20
|
-
|
21
|
-
* activesupport
|
22
|
-
|
23
|
-
== INSTALL:
|
24
|
-
|
25
|
-
gem install sa_vat_validation
|
26
|
-
|
27
|
-
== LICENSE:
|
28
|
-
|
29
|
-
(The MIT License)
|
30
|
-
|
31
|
-
Copyright (c) 2010 FIX
|
32
|
-
|
33
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
34
|
-
a copy of this software and associated documentation files (the
|
35
|
-
'Software'), to deal in the Software without restriction, including
|
36
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
37
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
38
|
-
permit persons to whom the Software is furnished to do so, subject to
|
39
|
-
the following conditions:
|
40
|
-
|
41
|
-
The above copyright notice and this permission notice shall be
|
42
|
-
included in all copies or substantial portions of the Software.
|
43
|
-
|
44
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
45
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
46
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
47
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
48
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
49
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
50
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
Binary file
|