yeti 0.3.19 → 0.3.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/Gemfile +1 -0
- data/lib/yeti/editor.rb +10 -2
- data/lib/yeti/version.rb +1 -1
- data/spec/yeti/search_spec.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dca5048b09c6742b0b40412666ae8a0832ce5ee90fc1179b5506b4f4bcc94dc1
|
4
|
+
data.tar.gz: f2d72a0285206da4af5093e49e4697c65a8cef0b6e1a1a116e694d55bb35c9b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da3ea96629449468536d7b830db2700566f623416e92817db64de0eb77ec64a2d144d741e88742907dd56a6f7ffc772ea0f2aa191492fb2facc8efff9117ae73
|
7
|
+
data.tar.gz: 2f8bfcd5d02dd30ceb6c43424a59aced12d08c36c9eeeda10dc436d5fd6ebb98b056cebb68f38dfcc8159d319c8f876f4f32f92e6521c0dc4863289b91ce371a
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.3
|
data/Gemfile
CHANGED
data/lib/yeti/editor.rb
CHANGED
@@ -64,7 +64,11 @@ module Yeti
|
|
64
64
|
end
|
65
65
|
persist!
|
66
66
|
@previously_changed = changes
|
67
|
-
|
67
|
+
if respond_to? :changes_applied
|
68
|
+
changes_applied
|
69
|
+
else
|
70
|
+
changed_attributes.clear
|
71
|
+
end
|
68
72
|
true
|
69
73
|
end
|
70
74
|
|
@@ -159,7 +163,11 @@ module Yeti
|
|
159
163
|
@#{name} = formatted_value
|
160
164
|
original_value = changed_attributes[\"#{name}\"]
|
161
165
|
if formatted_value==original_value
|
162
|
-
|
166
|
+
if respond_to? :clear_attribute_changes
|
167
|
+
clear_attribute_changes [\"#{name}\"]
|
168
|
+
else
|
169
|
+
changed_attributes.delete \"#{name}\"
|
170
|
+
end
|
163
171
|
end
|
164
172
|
end
|
165
173
|
"""
|
data/lib/yeti/version.rb
CHANGED
data/spec/yeti/search_spec.rb
CHANGED
@@ -4,7 +4,7 @@ describe Yeti::Search do
|
|
4
4
|
let(:context){ double :context }
|
5
5
|
context "initialization" do
|
6
6
|
it "does require a context and a hash" do
|
7
|
-
message = "wrong number of arguments (1
|
7
|
+
message = "wrong number of arguments (given 1, expected 2)"
|
8
8
|
expect do
|
9
9
|
Yeti::Search.new context
|
10
10
|
end.to raise_error ArgumentError, message
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yeti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph HALTER
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.7.6
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Editor pattern simplifies edition of multiple objects at once using ActiveModel
|
@@ -125,4 +125,3 @@ test_files:
|
|
125
125
|
- spec/yeti/search_spec.rb
|
126
126
|
- spec/yeti/viewer_spec.rb
|
127
127
|
- spec/yeti_spec.rb
|
128
|
-
has_rdoc:
|