journaled 2.1.0 → 2.1.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.
@@ -19,10 +19,17 @@ if Rails::VERSION::MAJOR > 5 || (Rails::VERSION::MAJOR == 5 && Rails::VERSION::M
19
19
 
20
20
  describe "the relation" do
21
21
  describe "#update_all" do
22
- it "refuses on journaled columns" do
22
+ it "refuses on journaled columns passed as hash" do
23
23
  expect { journaled_class.update_all(locked_at: nil) }.to raise_error(/aborted by Journaled/)
24
24
  end
25
25
 
26
+ it "refuses on journaled columns passed as string" do
27
+ expect { journaled_class.update_all("\"locked_at\" = NULL") }.to raise_error(/aborted by Journaled/)
28
+ expect { journaled_class.update_all("locked_at = null") }.to raise_error(/aborted by Journaled/)
29
+ expect { journaled_class.update_all("delayed_jobs.locked_at = null") }.to raise_error(/aborted by Journaled/)
30
+ expect { journaled_class.update_all("last_error = 'locked_at'") }.not_to raise_error
31
+ end
32
+
26
33
  it "succeeds on unjournaled columns" do
27
34
  expect { journaled_class.update_all(handler: "") }.not_to raise_error
28
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: journaled
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Lipson
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-09-04 00:00:00.000000000 Z
14
+ date: 2019-09-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: aws-sdk-resources
@@ -324,8 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  requirements: []
327
- rubyforge_project:
328
- rubygems_version: 2.6.13
327
+ rubygems_version: 3.0.3
329
328
  signing_key:
330
329
  specification_version: 4
331
330
  summary: Journaling for Betterment apps.