quickeebooks 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.2 (2013-01-18)
2
+
3
+ * Fixed issue where an instance of `ActiveSupport::TimeWithZone` was given to a `:datetime` Filter and the resultant format was not being correctly parsed by Intuit.
4
+
1
5
  ## 0.1.1 (2013-01-16)
2
6
 
3
7
  * Quickeebooks can now re-authorize a token via `Quickeebooks::Shared::Service::AccessToken.reconnect`. In addition destroying an access token can now be done via `Quickeebooks::Shared::Service::AccessToken.disconnect`. Thank you to `FundingGates` for the contribution.
@@ -4,7 +4,7 @@ module Quickeebooks
4
4
  class Filter
5
5
 
6
6
  DATE_FORMAT = '%Y-%m-%d'
7
- DATE_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S%z'
7
+ DATE_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S%Z'
8
8
 
9
9
  attr_reader :type
10
10
  attr_accessor :field, :value
@@ -84,7 +84,7 @@ module Quickeebooks
84
84
  def formatted_time(time)
85
85
  if time.is_a?(Date)
86
86
  time.strftime(DATE_FORMAT)
87
- elsif time.is_a?(DateTime) || time.is_a?(Time)
87
+ elsif time.respond_to?(:strftime) # catch any other Time-like object
88
88
  time.strftime(DATE_TIME_FORMAT)
89
89
  end
90
90
  end
@@ -1,5 +1,5 @@
1
1
  module Quickeebooks
2
2
 
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickeebooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-16 00:00:00.000000000 Z
12
+ date: 2013-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: roxml