vat-calculator 0.0.1 → 0.0.2

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.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWIzZTA1MjUxYzlhNWIzZjg3ODgxOGU4NjkwMGVjNWExZDc4ODk1Ng==
5
+ data.tar.gz: !binary |-
6
+ ZTU0YjIxNTAxODhmYWQ5NjE5ZTBjMGY1ZjA5ZGViYWRiYjIyNzI4Yw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MWUwYjQ3NmMzZDRiMjZkZWY0OGZkOWNhYzUyMGFkYjAwM2UyNGI2YzkxNzYy
10
+ N2FmZWM3ZDdiNmM1ZWU3ZTU4NDA2NDhmMzlkZjBkOTk1MTliMDk0MDcxZDEw
11
+ OTBhMWE3YTI2YWJmYTk0MmNiMjRiNGJjNzEzNzI0ZTk5Yzg0YTI=
12
+ data.tar.gz: !binary |-
13
+ YzQwZGVmN2MyNTFjOTg1MTVkMDFhZTliZGZjYjkyMGM3ZWIxODBiZDdhOTg3
14
+ ZDcxZTY5ZWZjODczNDZlZjcxNjBjZGM5N2VhNDFjZTU2NjUyZjYyNDZlZmU1
15
+ ODRlZmMxNzQ0MWM0OWMzZWJmMmY1NWY4MzQ2YWVjN2Y3OGEzM2Q=
@@ -1,7 +1,6 @@
1
1
  require "vat-calculator/version"
2
2
 
3
- module Vat
4
- module Calculator
3
+ module VatCalculator
5
4
  def sum_of_vat_for *args
6
5
  calculate_sum(args) do |price, vat|
7
6
  (vat * price) / (100.0 + vat)
@@ -56,12 +55,11 @@ module Vat
56
55
  end
57
56
  end
58
57
 
59
- end
60
58
  end
61
59
 
62
60
  class ActiveRecord::Base
63
61
  def self.has_vat_calculator params={}
64
- include Vat::Calculator
62
+ include VatCalculator
65
63
  vat_calculations params
66
64
  end
67
65
  end
@@ -1,5 +1,3 @@
1
- module Vat
2
- module Calculator
3
- VERSION = "0.0.1"
4
- end
1
+ module VatCalculator
2
+ VERSION = "0.0.2"
5
3
  end
@@ -5,7 +5,7 @@ require 'vat-calculator/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "vat-calculator"
8
- gem.version = Vat::Calculator::VERSION
8
+ gem.version = VatCalculator::VERSION
9
9
  gem.authors = ["7pikes"]
10
10
  gem.email = ["info@7pikes.com"]
11
11
  gem.description = %q{Gem for calculating product sum with vat, product sum without vat and product sum of vat.}
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vat-calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - 7pikes
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-05 00:00:00.000000000 Z
11
+ date: 2013-03-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -45,27 +42,26 @@ files:
45
42
  - vat-calculator.gemspec
46
43
  homepage: https://github.com/7Pikes/vat-calculator
47
44
  licenses: []
45
+ metadata: {}
48
46
  post_install_message:
49
47
  rdoc_options: []
50
48
  require_paths:
51
49
  - lib
52
50
  required_ruby_version: !ruby/object:Gem::Requirement
53
- none: false
54
51
  requirements:
55
52
  - - ! '>='
56
53
  - !ruby/object:Gem::Version
57
54
  version: '0'
58
55
  required_rubygems_version: !ruby/object:Gem::Requirement
59
- none: false
60
56
  requirements:
61
57
  - - ! '>='
62
58
  - !ruby/object:Gem::Version
63
59
  version: '0'
64
60
  requirements: []
65
61
  rubyforge_project:
66
- rubygems_version: 1.8.24
62
+ rubygems_version: 2.0.0
67
63
  signing_key:
68
- specification_version: 3
64
+ specification_version: 4
69
65
  summary: Calculate product sum with vat, product sum without vat and product sum of
70
66
  vat.
71
67
  test_files: []