mingle_event_changes 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,10 +33,15 @@ module MingleEventChanges
33
33
 
34
34
  class Value
35
35
  include SAXMachine
36
- element :card_type, :class => CardTypeValue
36
+ element :card_type, :as => :existing_card_type, :class => CardTypeValue
37
37
  element :user, :class => UserValue
38
38
  element :card, :class => CardValue
39
+ element :deleted_card_type, :class => CardTypeValue
39
40
  value :text
41
+
42
+ def card_type
43
+ existing_card_type || deleted_card_type
44
+ end
40
45
  end
41
46
 
42
47
  class Change
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mingle_event_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-03 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sax-machine