memento 0.5.0 → 0.5.1
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 +4 -4
- data/CHANGES.md +6 -1
- data/lib/memento/action/update.rb +3 -1
- data/lib/memento/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f5e3eb83ff1fee7c5da0653d76fc14c4731c6d9b3a5550fe88af05f925513c4
|
|
4
|
+
data.tar.gz: 9e973c84abc2ca42f51328892eafb7e699e8a28dd26d8dfe1f9d55532a8d16fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0cfb199898af2ba779e3d916cc2d23933d3b7486f80da14fe608dcb917c2bb2377e0827c20c4ca2a26d4c019b2b951205c38bdb5a5b8c145affca4838393dd49
|
|
7
|
+
data.tar.gz: 6f762712363b8235ce24e55496d55dc7bc317eee4132e9cb1678dce53ff57de6f63987608fd014d985ede85f1f0f693b5610f7bd65aa1a1f050b44ad66885e1d
|
data/CHANGES.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
### dev
|
|
2
2
|
|
|
3
|
-
[full changelog](http://github.com/yolk/valvat/compare/v0.5.
|
|
3
|
+
[full changelog](http://github.com/yolk/valvat/compare/v0.5.1...master)
|
|
4
|
+
|
|
5
|
+
### 0.5.0 / 2019-07-04
|
|
6
|
+
[full changelog](http://github.com/yolk/valvat/compare/v0.5.0...v0.5.1)
|
|
7
|
+
|
|
8
|
+
* Check attribute_without_formatting method for current value
|
|
4
9
|
|
|
5
10
|
### 0.5.0 / 2019-06-13
|
|
6
11
|
[full changelog](http://github.com/yolk/valvat/compare/v0.4.3...v0.5.0)
|
|
@@ -34,7 +34,9 @@ module Memento
|
|
|
34
34
|
record_data.all? do |attribute, values|
|
|
35
35
|
# ugly fix to compare times
|
|
36
36
|
values = values.map{|v| v.is_a?(Time) ? v.to_s(:db) : v }
|
|
37
|
-
current_value = record.
|
|
37
|
+
current_value = record.respond_to?(:"#{attribute}_without_formatting") ?
|
|
38
|
+
record.send(:"#{attribute}_without_formatting") :
|
|
39
|
+
record.send(:"#{attribute}")
|
|
38
40
|
current_value = current_value.utc.to_s(:db) if current_value.is_a?(Time)
|
|
39
41
|
values.include?(current_value) || (current_value.is_a?(String) && values.include?(current_value.gsub(/\r\n/, "\n")))
|
|
40
42
|
end || record_data.size.zero?
|
data/lib/memento/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: memento
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yolk Sebastian Munz & Julia Soergel GbR
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-07-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|