hugg-orm 1.0.0 → 1.0.1

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: fcefba25435c17f1d48c113fb95cd455999188bd
4
- data.tar.gz: 9fa82007c4e17a0565d2e38098ea312eebfceefa
3
+ metadata.gz: c07587f06381239099ab2d8b2747e8a40d75bd4e
4
+ data.tar.gz: 468e1b2fe025bf0fd024664bd228b5c01b19966a
5
5
  SHA512:
6
- metadata.gz: 98439bedf84eafe456465061514d3dd00d8e8d879cc82f81fceb8fb1236df73d4971ff409e8a8c16449d88301cf370a86ff9136e81fdef276aad3e7a2af3fa1d
7
- data.tar.gz: 167741b1ed8bdd9970ab6cda82957a3b2e7f2466c4c1b5088e6126e9dfe22d801cf4beb4da1b403e35f6d80352462b3469dccc3626722b4831990309d7be4cd1
6
+ metadata.gz: a9bd1a1a66940c573b458235c7174777aafdc92c6065d1e4e54f26be9a47251f37864e484e083014a80bf85004f80f8a776bb75cfdc526f4bba71eb6a6b85f34
7
+ data.tar.gz: 1837c273d13659779155c47220c269eaca9e081f1c39ed47aa725c066a6b1eff44395f8170e76539e881e9cd8fcef8f8b2a51c6405e2b4309c379d82450b2e38
@@ -157,7 +157,7 @@ module HuggORM
157
157
  def save
158
158
  updated_data = self.class.where("#{self.class.primary_key} = ?", [key]).update(@data, true)
159
159
 
160
- if updated_data != 0
160
+ unless updated_data.empty?
161
161
  @data = updated_data
162
162
  @state = :updated
163
163
  else
@@ -1,3 +1,3 @@
1
1
  module HuggORM
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hugg-orm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olle Johansson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-31 00:00:00.000000000 Z
13
+ date: 2016-11-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pg