can_has_state 0.5.0 → 0.5.1

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: e804c70108bf79ff92ddf4bf482f935d250c22eb
4
- data.tar.gz: 6a05c6e5bd695850d7f5afd410ebb4aba6af643d
2
+ SHA256:
3
+ metadata.gz: ba9bf9bc850a38eee0480dd9e6c24430bb46b28f75d4b3f2e54fb88bce47a8aa
4
+ data.tar.gz: f3c938d3c4e4f5c702e9c195d99d7212934bb69f25313f89e5b59c0c00f06508
5
5
  SHA512:
6
- metadata.gz: 21508ef4e8db6892c6802722c9f0fb7e4ce8e2dee73b180fc54ade9a2de35963b6a7d536078ddf5a50d9495ed9c80cd5a5e75f7d9b421a837cca9f98121a3692
7
- data.tar.gz: e45b6771712c7b324f39a716845bfe6de7e7a11bb0777ef6032343b9d66ce8b01ffe400abd813282c05f47ee91c72ae179c7f0c7856a0601c4a1d7f8e3fd80e6
6
+ metadata.gz: 776a1783f54d470cfcec621ae4689f06ccf41b91028ab5bd815d924ed24dab112a5df471ea03ef17627ad1382a10c28424dae641ac4cca938f1cdadee9f07a96
7
+ data.tar.gz: 798a3438a73a72ef7ecb44aada5564fa5e81196f6675a1cc28bf900dcc49f4a1a54b07182bcbdacd036c9cf66cba6b2dbea0c6b59aae5be406a8e4d92ba6e243
@@ -1,4 +1,4 @@
1
- Copyright 2012 thomas morgan
1
+ Copyright 2012-2019 thomas morgan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,3 +1,3 @@
1
1
  module CanHasState
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -24,8 +24,8 @@ class Account
24
24
 
25
25
  def fake_persist
26
26
  if valid?
27
- # just reset dirty tracking and pretend all is good
28
- changed_attributes.clear
27
+ # reset dirty tracking as if we had persisted
28
+ changes_applied
29
29
  true
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: can_has_state
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-28 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,40 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4'
19
+ version: '5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6'
22
+ version: '6.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4'
29
+ version: '5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6'
33
- - !ruby/object:Gem::Dependency
34
- name: activesupport
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: '4'
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '6'
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: '4'
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '6'
32
+ version: '6.1'
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: minitest
55
35
  requirement: !ruby/object:Gem::Requirement
@@ -118,8 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
98
  - !ruby/object:Gem::Version
119
99
  version: '0'
120
100
  requirements: []
121
- rubyforge_project:
122
- rubygems_version: 2.6.13
101
+ rubygems_version: 3.0.3
123
102
  signing_key:
124
103
  specification_version: 4
125
104
  summary: Super simple state machine for ActiveModel