shrine-reform 0.1.3 → 0.1.4

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: 2d89af700fc9ded07fe29ae0fc9d63d48ad8c34c
4
- data.tar.gz: 0af7dd7d5e6b0455a8db765f33beaeac62d02ab7
3
+ metadata.gz: 7e808c74173be4d1ab8ea264405e68a63681b3c7
4
+ data.tar.gz: 6081d1553a86b6cf082ea15202b596386807d0cc
5
5
  SHA512:
6
- metadata.gz: e7b525e6c5973be6bfe8b897c8a75b1a6f7a5fc5a507f393cb545f2803effa953b63d0d63920d2e7896bde52b467c596bb7808e7f6f030126180cc3d909cff4c
7
- data.tar.gz: 700e70c7e15acaa2f789513524066f544b0874b19b974e0bc20f790af0891f34efc2a4df483ea8a817971cf25ee059ed6870777c8b5d0443c7d7acce2b4a0595
6
+ metadata.gz: de1d3accef78c107df604665a9233db550cfb786dd5f5ef4e2b04fc5f3c433807156d15abe1fc68f8b2bd525e053e13247d7a3a858125d6a01c006a033fdd644
7
+ data.tar.gz: ad75d994b6751f0cfce2d2f26a259dde6821eff41f0eb1674074283e0bc94e05316e698a9811099bd8d1836411fd59d4652c6afccfd4478f027b6588b0555046
@@ -23,11 +23,12 @@ class Shrine
23
23
  @#{@name}_data = model.#{@name}_data
24
24
  end
25
25
 
26
- def sync(*)
27
- super
26
+ def sync!(*)
27
+ result = super
28
28
  if instance_variable_defined?(:@#{@name}_data)
29
29
  model.#{@name} = @#{@name}_data if model.respond_to?(:#{@name}=)
30
30
  end
31
+ result
31
32
  end
32
33
  RUBY
33
34
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-reform"
3
- gem.version = "0.1.3"
3
+ gem.version = "0.1.4"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.add_dependency "shrine", "~> 2.0"
17
17
  gem.add_dependency "reform"
18
18
 
19
- gem.add_development_dependency "activerecord", "~> 4.2"
19
+ gem.add_development_dependency "activerecord", "~> 5.0"
20
20
  gem.add_development_dependency "sqlite3"
21
21
  gem.add_development_dependency "shrine-memory"
22
22
  gem.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-reform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-26 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.2'
47
+ version: '5.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.2'
54
+ version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement