couchpillow 0.4.11 → 0.4.12

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: 696cfe25404a7a89de88ae8863e6388f3e20d48c
4
- data.tar.gz: c0954f6feeb54438dc14ec6992aede890f83a54a
3
+ metadata.gz: 6c9d5ee86912d171e065f6dc172b2bb0e18435b8
4
+ data.tar.gz: 8a16c36d7dfd16a10635885da99222e883ae99fd
5
5
  SHA512:
6
- metadata.gz: 9e977460fa8a14e8af98bea41502312c3b9630780f796747bb105c4cc08e80ce4fd5fedd73c2380b35661af4e6daefaea3bebf2bdb680184ddbadf8d097987c8
7
- data.tar.gz: 18ed07990ae09053e7930c47d754fc7cea8adb44fcacb657a1f11c7d24b434beccb475aeef64bb9873edd90a53e27ffcafac104afbc6ad8dfa61c763ca75bc44
6
+ metadata.gz: 5e4333383e5e02f9f0ec23fae37f1b197e69b98e60ac11bf50451e048fe8230c1e7e3ab084701f731c3a14aef81753f050215246e33b43247d714a5d42344e02
7
+ data.tar.gz: 0039fad90d3aeface4e0b50cc4a74325ff1cfc96acd5be8be233be665a842ae3cdc73eeb7fd828c3359ecb979ad7c7cab1c7158d6e9bbb1a85786bedde698eb2
@@ -162,7 +162,7 @@ module CouchPillow
162
162
  value = String(value)
163
163
  elsif @type == Array
164
164
  value = Array(value)
165
- elsif (@type == Time || @type == Iso8601Time) && !value.is_a?(Time)
165
+ elsif @type <= Time && !value.is_a?(Time)
166
166
  value = @type.parse(value)
167
167
  elsif @type == CouchPillow::Boolean
168
168
  value = value == 0 || value.to_s.downcase == "false" || !value ? false : true
@@ -1,5 +1,5 @@
1
1
  module CouchPillow
2
2
  GEM_NAME = "couchpillow"
3
3
  NAME = "CouchPillow"
4
- VERSION = "0.4.11"
4
+ VERSION = "0.4.12"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchpillow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Tedja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-20 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: couchbase
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.4.8
117
+ rubygems_version: 2.4.6
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Document wrapper for Couchbase