standardapi 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67dc838f6d2096fd1f791c9781490db311b9b4b2
4
- data.tar.gz: 96d425ce24603f45e9ea714e55b347d5fa9838ae
3
+ metadata.gz: 66354648d2de6e7c04dae84f74ff14ae1177cc00
4
+ data.tar.gz: 8c72fa4cb63ef3a50a03cc293029b863583b9933
5
5
  SHA512:
6
- metadata.gz: 9ee824965d303ebe14f3bd0122df8332e4ed8f1c6ee28bd35ac3b3df1f817229cb23b2b668d4dcf8fcf5a81071ed52b22cf526e89cc29ade3cae51c66ca4d31b
7
- data.tar.gz: e146f7d6db4c276b92fd4f899c83e41a6afb6384c7e10c6bd49b777ee062fa49e3979d0157b8de3a1889b505d072d10c62abd7f05bc0c098c3ed9d399d74c90c
6
+ metadata.gz: a402630ffaa502858e33fc90b9eaed5833b1d3b9a9d3e26a1a87203679fece54d293b92a8eccbd8e1ebdfcbf4a339f460b4c9657482f4a6389c51ca896c3b0b1
7
+ data.tar.gz: 9d43da149574805fe8bc950dd85f43da337023fdc9b823c65266cc298c347654d6887f1747b445f1814bd3d854e8f56e6d99fcb0d776a2ec87f47a9313178d15
@@ -83,9 +83,8 @@ module StandardAPI::TestCase
83
83
 
84
84
  if model.column_types[attribute].is_a?(ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Decimal)
85
85
  "#{value.to_f}"
86
- # elsif model.column_types[attribute].is_a?(ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter)
87
- # value.to_datetime.utc.iso8601.gsub(/\+(00:00|UTC)$/, 'Z')
88
- # value.as_json
86
+ elsif model.column_types[attribute].is_a?(ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter)
87
+ value.in_time_zone.as_json
89
88
  else
90
89
  value.as_json
91
90
  end
@@ -1,3 +1,3 @@
1
1
  records = @records if !records
2
2
 
3
- json.array! models, partial: 'application/record', as: :record, includes: includes
3
+ json.array! records, partial: 'application/record', as: :record, includes: includes
@@ -1,3 +1,3 @@
1
1
  record = @record if !record
2
2
 
3
- json.partial! 'application/model', record: record, includes: includes
3
+ json.partial! 'application/record', record: record, includes: includes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standardapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Bracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-sort