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 +4 -4
- data/lib/shrine/plugins/reform.rb +3 -2
- data/shrine-reform.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e808c74173be4d1ab8ea264405e68a63681b3c7
|
4
|
+
data.tar.gz: 6081d1553a86b6cf082ea15202b596386807d0cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/shrine-reform.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "shrine-reform"
|
3
|
-
gem.version = "0.1.
|
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", "~>
|
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.
|
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-
|
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: '
|
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: '
|
54
|
+
version: '5.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|