active_tax 0.1.0 → 0.2.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d4d0012857ee4032097f829452269524e44fe789
4
+ data.tar.gz: 94956a278ff955a87884fbdf7b0888492f57943a
5
+ SHA512:
6
+ metadata.gz: 00dde154464596f7d955d96f2fc6d9e0cd6e4511ed5433c380f1c32482faf38fe66052c79f23612da4f144ff79c9e4262ab2dc8bccbc8a4475b09d159b9394e8
7
+ data.tar.gz: ef24236126b982b04238e1ad2fa2ae0bd58eb9835132051da0f58c380cc73bedc608dbb90dc7ac3c632d0f613a9dbac3ea7f701b5b29391653b4cb1fdf502520
data/README.md CHANGED
@@ -22,12 +22,12 @@ Or install it yourself as:
22
22
 
23
23
  ```ruby
24
24
 
25
- tax_rate = ActiveTax::Tax.rate {
25
+ tax_rate = ActiveTax::Tax.rate({
26
26
  address: "6500 Linderson Way",
27
27
  city: "",
28
28
  zip: "98501",
29
29
  state: "WA"
30
- }
30
+ })
31
31
 
32
32
  puts tax_rate #=> 0.087
33
33
  ```
@@ -38,5 +38,6 @@ module ActiveTax
38
38
  r
39
39
  end
40
40
  end
41
+ WASHINGTON = WA unless defined?(WASHINGTON)
41
42
  end
42
- end
43
+ end
@@ -15,7 +15,7 @@ module ActiveTax
15
15
  self.state = address[:state] if address[:state]
16
16
 
17
17
  case self.state.upcase
18
- when "WA"
18
+ when "WA", "WASHINGTON"
19
19
  self.api_class = States::WA
20
20
  else
21
21
  raise StandardError, "API for #{self.state.upcase} not yet implemented in ActiveTax."
@@ -24,4 +24,4 @@ module ActiveTax
24
24
  self.api_class.rate(address)
25
25
  end
26
26
  end
27
- end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module ActiveTax
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,33 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: active_tax
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease:
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
  - Jamon Holmgren
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-09-26 00:00:00 Z
11
+ date: 2014-03-11 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
- description: A Ruby gem for retrieving local sales tax rates from various government APIs. Currently only supports Washington State tax, but feel free to submit pull requests.
22
- email:
13
+ description: A Ruby gem for retrieving local sales tax rates from various government
14
+ APIs. Currently only supports Washington State tax, but feel free to submit pull
15
+ requests.
16
+ email:
23
17
  - jamon@clearsightstudio.com
24
18
  executables: []
25
-
26
19
  extensions: []
27
-
28
20
  extra_rdoc_files: []
29
-
30
- files:
21
+ files:
31
22
  - .DS_Store
32
23
  - .gitignore
33
24
  - Gemfile
@@ -41,36 +32,25 @@ files:
41
32
  - lib/active_tax/version.rb
42
33
  homepage: https://github.com/jamonholmgren/active_tax
43
34
  licenses: []
44
-
35
+ metadata: {}
45
36
  post_install_message:
46
37
  rdoc_options: []
47
-
48
- require_paths:
38
+ require_paths:
49
39
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
57
- - 0
58
- version: "0"
59
- required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
66
- - 0
67
- version: "0"
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
68
50
  requirements: []
69
-
70
51
  rubyforge_project:
71
- rubygems_version: 1.8.24
52
+ rubygems_version: 2.1.11
72
53
  signing_key:
73
- specification_version: 3
54
+ specification_version: 4
74
55
  summary: A Ruby gem for retrieving local sales tax rates from various government APIs.
75
56
  test_files: []
76
-