Skip to content
Browse files

project renamed from vies to validate_as_vat_number

  • Loading branch information...
1 parent e0a4e99 commit 6dd161a3587929522a0fed01e88f37ca9cedd69c marco sanson committed Jan 7, 2010
View
2 Rakefile
@@ -10,7 +10,7 @@ begin
to ensure it exists. Only require this gem and call validate_as_vies
on your VAT field, in an Active Record object."
gem.email = "lab@develon.com"
- gem.homepage = "http://github.com/develon/vies"
+ gem.homepage = "http://github.com/develon/validates_as_vat_number"
gem.authors = ["Alessandro Dal Grande", "Marco Sanson"]
gem.add_development_dependency "rspec", ">= 1.2.9"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
View
4 lib/validates_as_vies.rb → lib/validates_as_vat_number.rb
@@ -1,5 +1,5 @@
module Develon
- module ValidatesAsVies
+ module ValidatesAsVatNumber
require 'soap/wsdlDriver'
def validates_as_vies(*attr_names)
@@ -36,4 +36,4 @@ def check_vat(country_code, vat_number)
end
end
-ActiveRecord::Base.extend Develon::ValidatesAsVies
+ActiveRecord::Base.extend Develon::ValidatesAsVatNumber
View
2 rails/init.rb
@@ -1,2 +1,2 @@
$:.unshift "#{File.dirname(__FILE__)}/lib"
-require 'validates_as_vies'
+require 'validates_as_vat_number'
View
2 spec/spec_helper.rb
@@ -2,7 +2,7 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'active_record'
-require File.dirname(__FILE__) + '/../lib/validates_as_vies'
+require File.dirname(__FILE__) + '/../lib/validates_as_vat_number'
require 'spec'
require 'spec/autorun'
View
2 spec/validates_as_vies_spec.rb → spec/validates_as_vat_number_spec.rb
@@ -1,6 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-describe Develon::ValidatesAsVies do
+describe Develon::ValidatesAsVatNumber do
it "is included" do
class A < ActiveRecord::Base
validates_as_vies :vat

0 comments on commit 6dd161a

Please sign in to comment.
Something went wrong with that request. Please try again.