suretax 0.2.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.env.example +4 -0
  3. data/.rubocop.yml +111 -0
  4. data/Gemfile +1 -1
  5. data/Gemfile.lock +9 -9
  6. data/lib/suretax.rb +0 -1
  7. data/lib/suretax/api.rb +7 -7
  8. data/lib/suretax/api/cancel_request.rb +7 -7
  9. data/lib/suretax/api/group.rb +5 -6
  10. data/lib/suretax/api/item_message.rb +3 -3
  11. data/lib/suretax/api/request.rb +37 -37
  12. data/lib/suretax/api/request_item.rb +13 -17
  13. data/lib/suretax/api/response.rb +18 -19
  14. data/lib/suretax/api/tax.rb +11 -12
  15. data/lib/suretax/api/tax_amount.rb +3 -4
  16. data/lib/suretax/concerns.rb +1 -3
  17. data/lib/suretax/concerns/validatable.rb +21 -27
  18. data/lib/suretax/configuration.rb +17 -20
  19. data/lib/suretax/connection.rb +3 -5
  20. data/lib/suretax/constants/regulatory_codes.rb +8 -8
  21. data/lib/suretax/constants/response_groups.rb +6 -6
  22. data/lib/suretax/constants/sales_type_codes.rb +5 -5
  23. data/lib/suretax/constants/tax_situs_codes.rb +10 -10
  24. data/lib/suretax/constants/transaction_type_codes.rb +2 -2
  25. data/lib/suretax/response.rb +7 -10
  26. data/lib/suretax/version.rb +1 -1
  27. data/spec/lib/suretax/api/group_spec.rb +21 -22
  28. data/spec/lib/suretax/api/request_item_spec.rb +10 -12
  29. data/spec/lib/suretax/api/request_item_validations_spec.rb +73 -76
  30. data/spec/lib/suretax/api/request_spec.rb +62 -66
  31. data/spec/lib/suretax/api/request_validations_spec.rb +141 -143
  32. data/spec/lib/suretax/api/response_spec.rb +48 -52
  33. data/spec/lib/suretax/api/tax_amount_spec.rb +12 -12
  34. data/spec/lib/suretax/api/tax_spec.rb +26 -28
  35. data/spec/lib/suretax/configuration_spec.rb +21 -24
  36. data/spec/lib/suretax/connection_spec.rb +11 -15
  37. data/spec/lib/suretax/response_spec.rb +27 -31
  38. data/spec/spec_helper.rb +16 -17
  39. data/spec/support/cancellation_helper.rb +0 -1
  40. data/spec/support/connection_shared_examples.rb +8 -10
  41. data/spec/support/request_helper.rb +13 -14
  42. data/spec/support/suretax_helper.rb +2 -4
  43. data/spec/support/validations_shared_examples.rb +12 -12
  44. data/suretax.gemspec +10 -8
  45. metadata +7 -7
  46. data/.travis.yml +0 -13
@@ -1,30 +1,32 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+
3
+ lib = File.expand_path("../lib", __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'suretax/version'
5
+ require "suretax/version"
5
6
 
6
7
  Gem::Specification.new do |spec|
7
8
  spec.name = "suretax"
8
9
  spec.version = Suretax::VERSION
9
10
  spec.authors = ["Damon Davison"]
10
11
  spec.email = ["damon@allolex.net"]
11
- spec.description = %q{A wrapper library for the SureTax communications tax API}
12
- spec.summary = %q{This gem will allow Ruby developers to easily integrate SureTax into their apps.}
12
+ spec.description = "A wrapper library for the SureTax communications tax API"
13
+ spec.summary = "This gem will allow Ruby developers to easily integrate SureTax into their apps."
13
14
  spec.homepage = ""
14
15
  spec.license = "MIT"
15
16
 
16
- spec.files = `git ls-files`.split($/)
17
+ spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
20
  spec.require_paths = ["lib"]
20
21
 
21
22
  spec.add_dependency "excon"
22
- spec.add_dependency "money", "~> 6.5.1"
23
+ spec.add_dependency "money", "~> 6.9.0"
23
24
  spec.add_dependency "monetize"
25
+
24
26
  spec.add_development_dependency "bundler", "~> 1.3"
25
27
  spec.add_development_dependency "rake"
26
- spec.add_development_dependency "rspec", '~> 3.0.0'
27
- spec.add_development_dependency 'rspec-its', '~> 1.0'
28
+ spec.add_development_dependency "rspec", "~> 3.0.0"
29
+ spec.add_development_dependency "rspec-its", "~> 1.0"
28
30
  spec.add_development_dependency "dotenv"
29
31
  spec.add_development_dependency "awesome_print"
30
32
  spec.add_development_dependency "webmock"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suretax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damon Davison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-30 00:00:00.000000000 Z
11
+ date: 2017-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.5.1
33
+ version: 6.9.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 6.5.1
40
+ version: 6.9.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: monetize
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -185,9 +185,10 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
+ - ".env.example"
188
189
  - ".gitignore"
189
190
  - ".rspec"
190
- - ".travis.yml"
191
+ - ".rubocop.yml"
191
192
  - Gemfile
192
193
  - Gemfile.lock
193
194
  - Gemfile.travis
@@ -256,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
257
  version: '0'
257
258
  requirements: []
258
259
  rubyforge_project:
259
- rubygems_version: 2.2.2
260
+ rubygems_version: 2.5.1
260
261
  signing_key:
261
262
  specification_version: 4
262
263
  summary: This gem will allow Ruby developers to easily integrate SureTax into their
@@ -279,4 +280,3 @@ test_files:
279
280
  - spec/support/request_helper.rb
280
281
  - spec/support/suretax_helper.rb
281
282
  - spec/support/validations_shared_examples.rb
282
- has_rdoc:
@@ -1,13 +0,0 @@
1
- env:
2
- - SURETAX_VALIDATION_KEY="xxxxxxxxxx" SURETAX_CLIENT_NUMBER="000000000"
3
- gemfile:
4
- - Gemfile.travis
5
- language: ruby
6
- script:
7
- - bundle exec rspec
8
- rvm:
9
- - 2.1.0
10
- - 2.2.0
11
- - jruby-9.0.5.0
12
- notifications:
13
- email: false