card-mod-history 0.12.0 → 0.13.3

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
2
  SHA256:
3
- metadata.gz: d848324e8a24e138fcc1ec9f18e99ecfd18f7ea5e0ff9799e2b82f0f5a2becca
4
- data.tar.gz: 505d838330e918f31384618fe6ec82464f13a28cd62027194d8a10ddcad99eee
3
+ metadata.gz: 0165145dca482baa7303a120326bcc901526049c74d2013325a1fb8888ff364e
4
+ data.tar.gz: e6a14c4529871aac1bede6560345dcc4d23d7c1e2708dd65f59d18c51f50cb96
5
5
  SHA512:
6
- metadata.gz: 2188ff8e94fc293926720efdc1577ac67f57c311388ff0f2aea52ebe237ad27b52a10c64519bd58cc700f5bc6a56eda3129af9e5648127af9a053d3b73d5fa79
7
- data.tar.gz: d1fd88f32ba0976226a5722e76542f3c83a934c2bcd2c4ac103b22feee3be0c2bbcd42b69092837dae111dcfc7030fead37e4ce75bbc65026c37fe5032005816
6
+ metadata.gz: 3cd3c34a0ab4925ac16dfae024c34bdd2ee500c6bb9adbc4c37472c2648cf35a905f3effd84a5dfe5ad196aa0780068fd38dee117be00149fd8e263f5fc2b422
7
+ data.tar.gz: 0a87a8b993027d15be3629577e084648a609b286bc124dedea584cbcf20b1f12001f97b9db824ee975d6cc553f9a9d56c19d678bb55751b3225411fbec2b544c
@@ -19,7 +19,7 @@ class Card
19
19
  # @return [rendered diff]
20
20
  # compare action's cardtype value with previous cardtype value
21
21
  def cardtype_diff opts={}
22
- return unless new_type?
22
+ return unless card && new_type?
23
23
 
24
24
  diff_object(:cardtype, opts).complete
25
25
  end
data/locales/en.yml ADDED
@@ -0,0 +1,2 @@
1
+ en:
2
+ history_error_not_latest_revision: changes not based on latest revision
@@ -18,7 +18,7 @@ def actionable?
18
18
  end
19
19
 
20
20
  event :detect_conflict, :validate, on: :update, when: :edit_conflict? do
21
- errors.add :conflict, Cardio.t(:history_error_not_latest_revision)
21
+ errors.add :conflict, ::I18n.t(:history_error_not_latest_revision)
22
22
  end
23
23
 
24
24
  def edit_conflict?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-07-05 00:00:00.000000000 Z
13
+ date: 2021-09-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.102.0
21
+ version: 1.103.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.102.0
28
+ version: 1.103.3
29
29
  description: ''
30
30
  email:
31
31
  - info@decko.org
@@ -43,6 +43,7 @@ files:
43
43
  - lib/card/action/admin.rb
44
44
  - lib/card/action/differ.rb
45
45
  - lib/card/change.rb
46
+ - locales/en.yml
46
47
  - set/all/history.rb
47
48
  - set/all/history/act_listing.rb
48
49
  - set/all/history/actions.rb
@@ -78,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
79
  - !ruby/object:Gem::Version
79
80
  version: '0'
80
81
  requirements: []
81
- rubygems_version: 3.2.15
82
+ rubygems_version: 3.1.6
82
83
  signing_key:
83
84
  specification_version: 4
84
85
  summary: Revision histories in acts, actions, and changes