live_record 0.2.5 → 0.2.6

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: 941011b728166d7c1dc7853bcf5f1fc0b02d77da
4
- data.tar.gz: ae38164516a9cb42fe726350ca1e816d34f727b7
3
+ metadata.gz: '09689222ba6751a8e3dbeee86e5a1b650efbcad5'
4
+ data.tar.gz: 475e74270ad477bc58bbc426b315a0d5c3154b7a
5
5
  SHA512:
6
- metadata.gz: 65e3f6082c3b48bd2ce8f96d2c05eeefcbba020dba309229baae94926a8c5df916a3d59e9551fb32dc0ce9a557952fa2303f9363bb6c6b058411d5a2130950e5
7
- data.tar.gz: 456403469aa4f8b2c53e374e2cd621a13f9b45a20b1f317381e6d98d2e7c83cb1e0b6c9374215500ab7f62a05a80779dcdbafdfb27a75c7837db5f75a8ada012
6
+ metadata.gz: dfdbaeb4e262ed2cd2c8ae08ef501217cdeca8e7e280e0c251bdea881a9ce1255fbb3e02c39d1cb11c4c66969105d4e47eb02c0967aae33494e2ebc8375b4d60
7
+ data.tar.gz: 9117d8f61628a0839862f93e15bb73bbee42ee65ca5e96a60f18e6a7fa7129477fa11e8c4e3c5aa64c4d3f382c9e9aa7b23b58ef0654f964094b21e2e393fd0b
data/README.md CHANGED
@@ -117,7 +117,7 @@
117
117
  1. Add the following to your `Gemfile`:
118
118
 
119
119
  ```ruby
120
- gem 'live_record', '~> 0.2.5'
120
+ gem 'live_record', '~> 0.2.6'
121
121
  ```
122
122
 
123
123
  2. Run:
@@ -610,6 +610,8 @@
610
610
  * MIT
611
611
 
612
612
  ## Changelog
613
+ * 0.2.6
614
+ * fixed minor bug where `MODELINSTANCE.changes` do not accurately work on NULL values.
613
615
  * 0.2.5
614
616
  * fixed a major bug where same-model record instances were all sharing the same `@_callbacks` object, which then effectively calling also callbacks not specifically defined just for a specific record instance.
615
617
  * 0.2.4
@@ -288,7 +288,7 @@ LiveRecord.Model.create = (config) ->
288
288
  @changes = {}
289
289
 
290
290
  for attributeName, attributeValue of attributes
291
- unless @attributes[attributeName] && @attributes[attributeName] == attributeValue
291
+ unless @attributes[attributeName] == attributeValue
292
292
  @changes[attributeName] = [@attributes[attributeName], attributeValue]
293
293
 
294
294
  Model.prototype._unsetChanges = () ->
@@ -1,3 +1,3 @@
1
1
  module LiveRecord
2
- VERSION = '0.2.5'.freeze
2
+ VERSION = '0.2.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jules Roman B. Polidario