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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGU5OTZiZjE5NzcxNjJkMjA4MDVkYTVhMzA3NDZkYTIzOTZiYTk2NA==
4
+ YmU2ZDE0NjkyYTRkNmYyNjViNGE3N2FlMmVhZGNlYzIwY2JkZjM1Yw==
5
5
  data.tar.gz: !binary |-
6
- MmZkN2U5YjEwNjU2MDdkOTFlYWIyNGFmMTc2OGQ0OGVjM2I1ZTkwMQ==
6
+ YjI5ZDRiYWJmYmYwMDBmOWIxMDY0ZmNhM2NiMWM1NDcyZjg4MmNjYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmUwYjA5OGFkODJlMDlhYzEwODhkYjI2ZjBiZTI3MzE4YTU2NTNmNmVhNmZh
10
- ZTNjNmEyNjYxOWU1ZmJhZWMxY2ZlZTk2ZTM0ZTNiMDYwYjhmNjllNzU4MjJj
11
- N2VjMGExMzk1YzdhYWM5NGFhZjMyNzYwZDlhNDIxNTRjYTU2OTg=
9
+ Zjg3MmYwZDUwYzNlZjg1YmQ2OWJiYzNlYTBkMWNmYmE5NTYxMDE3ZTMzMjE2
10
+ M2FmMDM2NWM0YTlkOWM1NTkxNzM3MTVhMjA3YWZiOWIyZWQyNGIzYTA0ZmMz
11
+ Mjk3YWE5OGFiN2I2ZDQzMTBlYWZiZTM4YjI4YzJlMTllODcwNjE=
12
12
  data.tar.gz: !binary |-
13
- NGJmOWJhMWI5ZjhhMGY4NWMxNTdkMzk5MTMzMmRkNDBlMTliMGQ5YzJiZDI2
14
- NWQ4ZjQwM2I1NjRkNThhZGM1MjMzNTQ4MzAwZjNjZWIwMTc5ZTBhNGJjNWU0
15
- NDU2NjJkNDQ4NmZlMDIzNTNjOTg1ODE4NTgzODg3MGQxMDVkZmE=
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
- rate = 0.00
7
- city = address.city.downcase
8
- rate = rate + 0.05 if city == 'brookwood'
9
- rate = rate + 0.05 if city == 'coaling'
10
- rate = rate + 0.05 if city == 'coker'
11
- rate = rate + 0.05 if city == 'holt'
12
- rate = rate + 0.05 if city == 'holt CDP'
13
- rate = rate + 0.05 if city == 'lake View'
14
- rate = rate + 0.05 if city == 'moundville'
15
- rate = rate + 0.05 if city == 'northport'
16
- rate = rate + 0.05 if city == 'tuscaloosa'
17
- rate = rate + 0.05 if city == 'vance'
18
- rate = rate + 0.05 if city == 'woodstock'
19
- rate = rate + 0.04 if address.state.downcase == 'al' || address.state.downcase == 'alabama'
20
- return rate.round(2)
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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.109'
2
+ VERSION = '0.5.110'
3
3
  end
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.109
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 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg