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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a2e5c060aef248e6234c3f9adb62f3c72ca08456
4
- data.tar.gz: 2073b88dbd28f7ac000812f17cc96a1cfbfb8d67
2
+ SHA256:
3
+ metadata.gz: dca5048b09c6742b0b40412666ae8a0832ce5ee90fc1179b5506b4f4bcc94dc1
4
+ data.tar.gz: f2d72a0285206da4af5093e49e4697c65a8cef0b6e1a1a116e694d55bb35c9b8
5
5
  SHA512:
6
- metadata.gz: 90a20b60d3b0c0ce23121f1f61d0c70391886b1327ac2ab4bd25559957671c58011a2e32fe5ad3699d704e0b00b1084b44428bde9d6fd4de92629cb9c0b33ea5
7
- data.tar.gz: 52a004e1fbd1f9c32f23f16253b0666bb33261ac35211a99076fcefeb0e1bf3bc7ff0cbebc4c6fba37017146977c94b269262c13b148c1b9cb253ad42b4cb119
6
+ metadata.gz: da3ea96629449468536d7b830db2700566f623416e92817db64de0eb77ec64a2d144d741e88742907dd56a6f7ffc772ea0f2aa191492fb2facc8efff9117ae73
7
+ data.tar.gz: 2f8bfcd5d02dd30ceb6c43424a59aced12d08c36c9eeeda10dc436d5fd6ebb98b056cebb68f38dfcc8159d319c8f876f4f32f92e6521c0dc4863289b91ce371a
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.5.3
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
 
6
6
  # Fix I18n.enforce_available_locales deprecation warning
7
7
  gem "i18n", github: "svenfuchs/i18n"
8
+ gem "pry"
@@ -64,7 +64,11 @@ module Yeti
64
64
  end
65
65
  persist!
66
66
  @previously_changed = changes
67
- changed_attributes.clear
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
- changed_attributes.delete \"#{name}\"
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
  """
@@ -1,3 +1,3 @@
1
1
  module Yeti
2
- VERSION = "0.3.19"
2
+ VERSION = "0.3.20"
3
3
  end
@@ -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 for 2)"
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.19
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: 2015-09-08 00:00:00.000000000 Z
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.2.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: