suretax 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 090d466426a8ed2734e208ca3e310afa0fca041c
4
- data.tar.gz: 890130d8629a6ff1ca5d959202a6d640753397b6
3
+ metadata.gz: e0fc6da120af71d2a1b2e9f02097260844f8a0c8
4
+ data.tar.gz: f2029784300f33e204ac54571bfbad3b69b22076
5
5
  SHA512:
6
- metadata.gz: 0509fea19ea7ce6a32f96a2888b8c1b170f028a9c0cdf5be786f221c9cf7f177498675795c27517c07ecd1cb6157203fb4e3b78d1f929eeddbf234446d342db5
7
- data.tar.gz: 0daa94af83c1320f63869a7607528a45de24d8da108d7ff2e86718e4bff66f55061331d6b7317f262f804a0fe4f9cdfe5d0740095a8833ffdd36709042825c7a
6
+ metadata.gz: d59dc1bd443d355722213be6d33fbb082c2f5ce3eb032ea7f66d20abc10056fbf75bfbf7ffd9119c6a2edae7365d318164d4a3afa5f1b6d7691addb19717e5ae
7
+ data.tar.gz: ff695e85e6673a2b601fcaae3804c8bccad4b763bc3ff4584b1801cbd063a0a7e2a431c5cf0f5ef36d69c0514dd8226cc75f4cc4c19a74cac1accbeeb0472967
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- suretax (0.1.0)
4
+ suretax (0.1.1)
5
5
  faraday
6
6
  monetize
7
7
  money
@@ -19,12 +19,12 @@ GEM
19
19
  dotenv (0.9.0)
20
20
  faraday (0.9.0)
21
21
  multipart-post (>= 1.2, < 3)
22
- i18n (0.7.0.beta1)
22
+ i18n (0.6.11)
23
23
  method_source (0.8.2)
24
- monetize (0.4.1)
25
- money (~> 6.2.1)
26
- money (6.2.1)
27
- i18n (>= 0.6.4, <= 0.7.0.dev)
24
+ monetize (0.3.0)
25
+ money (~> 6.1.0.beta1)
26
+ money (6.1.1)
27
+ i18n (~> 0.6.4)
28
28
  multi_json (1.8.4)
29
29
  multipart-post (2.0.0)
30
30
  pry (0.9.12.6)
@@ -93,7 +93,7 @@ module Suretax
93
93
  max_date = configuration.test? ? Date.today.prev_month : Date.today
94
94
 
95
95
  requested_date = begin
96
- Date.new(options[:data_year].to_i, options[:data_month].to_i, 1)
96
+ Date.new(options.delete(:data_year).to_i, options.delete(:data_month).to_i, 1)
97
97
  rescue
98
98
  max_date
99
99
  end
@@ -1,3 +1,3 @@
1
1
  module Suretax
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -174,8 +174,9 @@ describe Suretax::Api::Request do
174
174
  subject { Suretax::Api::Request.new(options) }
175
175
 
176
176
  context 'when the value is supplied' do
177
- let(:options) { { data_year: '2012' } }
178
- its(:data_year) { should eql '2012' }
177
+ let(:options) { { data_year: '2012', data_month: '01' } }
178
+ its(:data_year) { should eql '2012' }
179
+ its(:data_month) { should eql '01' }
179
180
  end
180
181
 
181
182
  context 'when the value is not supplied' do
@@ -8,7 +8,7 @@ module RequestSpecHelper
8
8
  "BusinessUnit" => "testing",
9
9
  "ValidationKey" => suretax_key,
10
10
  "ClientTracking" => "track",
11
- "DataMonth" => "7",
11
+ "DataMonth" => "07",
12
12
  "DataYear" => "2013",
13
13
  "ResponseGroup" => "03",
14
14
  "ResponseType" => "D6",
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damon Davison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-30 00:00:00.000000000 Z
11
+ date: 2014-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -278,4 +278,3 @@ test_files:
278
278
  - spec/support/request_helper.rb
279
279
  - spec/support/suretax_helper.rb
280
280
  - spec/support/validations_shared_examples.rb
281
- has_rdoc: