draft_punk 0.2.2 → 0.2.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
  SHA1:
3
- metadata.gz: 8df330931e6469812ea46e1d7a5a329ea61ef3a3
4
- data.tar.gz: 11ff17e689452b618af61d49ac19673f72f51073
3
+ metadata.gz: c5bc7f64fd3b6ff6440befb21947eef669750d7f
4
+ data.tar.gz: d9f32bb41953c429023818e245c986cc4259a031
5
5
  SHA512:
6
- metadata.gz: 2f8cc23363814f1bfd590b9cc9d339bc8392c5f9a8411bcc6e3b2f2451ae4d3577dfcb40bbf7705775829b64307da131a21f876098eee0e9665cef0a6ab427cf
7
- data.tar.gz: c8e2d12c265c99fea4994fea3ed5a75c7b519e0454d8f352086fe88aa23c45fbfb66c618146d43583e04f5c397aa3fbfc2fc30c4f2ead520e1c22308aad1b355
6
+ metadata.gz: 9053ca90473b2fea898cbcf0f16e11de6f20557d5b462a7958ee29595e67257c7d691963a496abcaf2cccfdb040dd4089e968f78e13c60741933f90e316cf87e
7
+ data.tar.gz: dd0826d9b52c0fce2e0f50ebbebeff5b5df76abb340d2b50a99f1978f1455201976123fce423e3f171c866a53d1c9472b430cd444e06d6971a80c08c4547a738
@@ -92,7 +92,7 @@ module DraftPunk
92
92
  dupe = amoeba_dup
93
93
  begin
94
94
  dupe.approved_version = self
95
- dupe.save!
95
+ dupe.save(validate: false)
96
96
  rescue => message
97
97
  raise DraftCreationError, message
98
98
  end
@@ -105,7 +105,7 @@ module DraftPunk
105
105
  @live_version.send("#{attribute}=", value)
106
106
  end
107
107
  @live_version.before_publish_draft if @live_version.respond_to?(:before_publish_draft)
108
- @live_version.save!
108
+ @live_version.save(validate: false)
109
109
  end
110
110
 
111
111
  def update_has_many_and_has_one_associations_from_draft
@@ -1,3 +1,3 @@
1
1
  module DraftPunk
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: draft_punk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Hodges
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amoeba