caboose-cms 0.5.109 → 0.5.110
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/tax_calculator.rb +17 -16
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmU2ZDE0NjkyYTRkNmYyNjViNGE3N2FlMmVhZGNlYzIwY2JkZjM1Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjI5ZDRiYWJmYmYwMDBmOWIxMDY0ZmNhM2NiMWM1NDcyZjg4MmNjYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Zjg3MmYwZDUwYzNlZjg1YmQ2OWJiYzNlYTBkMWNmYmE5NTYxMDE3ZTMzMjE2
|
10
|
+
M2FmMDM2NWM0YTlkOWM1NTkxNzM3MTVhMjA3YWZiOWIyZWQyNGIzYTA0ZmMz
|
11
|
+
Mjk3YWE5OGFiN2I2ZDQzMTBlYWZiZTM4YjI4YzJlMTllODcwNjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjY3NzQxNWNjNGZhMmVkNjg1YTBjZmZlODQ1OWUxNWE2NDFlYmJkYjY2Mjgz
|
14
|
+
NWZhMDNlNDQ0MTAwOTMyODIwMDE5MThlYjE4ZmJkMmRmMzk3YzhkMTBmNzI4
|
15
|
+
Mjk0MTdmYTk5NTExNzI2N2Y0YzYyYWY2YzI3ZmIzOTQzOGYyODk=
|
@@ -2,22 +2,23 @@ module Caboose
|
|
2
2
|
class TaxCalculator
|
3
3
|
def self.tax_rate(address)
|
4
4
|
return 0.00 if address.nil? || address.city.nil? || address.state.nil?
|
5
|
-
return 0 if address.state.downcase != 'al'
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
rate = rate + 0.05 if city == '
|
10
|
-
rate = rate + 0.05 if city == '
|
11
|
-
rate = rate + 0.05 if city == '
|
12
|
-
rate = rate + 0.05 if city == 'holt
|
13
|
-
rate = rate + 0.05 if city == '
|
14
|
-
rate = rate + 0.05 if city == '
|
15
|
-
rate = rate + 0.05 if city == '
|
16
|
-
rate = rate + 0.05 if city == '
|
17
|
-
rate = rate + 0.05 if city == '
|
18
|
-
rate = rate + 0.05 if city == '
|
19
|
-
rate = rate + 0.
|
20
|
-
|
5
|
+
return 0 if address.state.downcase != 'al'
|
6
|
+
return 0.09
|
7
|
+
#rate = 0.00
|
8
|
+
#city = address.city.downcase
|
9
|
+
#rate = rate + 0.05 if city == 'brookwood'
|
10
|
+
#rate = rate + 0.05 if city == 'coaling'
|
11
|
+
#rate = rate + 0.05 if city == 'coker'
|
12
|
+
#rate = rate + 0.05 if city == 'holt'
|
13
|
+
#rate = rate + 0.05 if city == 'holt CDP'
|
14
|
+
#rate = rate + 0.05 if city == 'lake View'
|
15
|
+
#rate = rate + 0.05 if city == 'moundville'
|
16
|
+
#rate = rate + 0.05 if city == 'northport'
|
17
|
+
#rate = rate + 0.05 if city == 'tuscaloosa'
|
18
|
+
#rate = rate + 0.05 if city == 'vance'
|
19
|
+
#rate = rate + 0.05 if city == 'woodstock'
|
20
|
+
#rate = rate + 0.04 if address.state.downcase == 'al' || address.state.downcase == 'alabama'
|
21
|
+
#return rate.round(2)
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.110
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|