carrierwave-neo4j 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/carrierwave/neo4j.rb +15 -0
- data/lib/carrierwave/neo4j/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54e023e0f3f62561e3271b480a00233abb8ca46c
|
4
|
+
data.tar.gz: 776683e24d8f481a5a34a13b10c426e20b248b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e0955de8da3508bdb6dd3fc33b1f0baabe17d3a20f2f9afecf5db9ca9131d3ccab04bbc68a6e0c07d2a94979e68e8c69b4a43c6cb7da3a845f3a0792a694017
|
7
|
+
data.tar.gz: 0536d9bd37806f7db4e23407c44d0a004be0f353df954bd0502e3de8554b8a52bd346b9f04a20ee75975e16774d385ddbea0adc8f4656293747c373b71f7611f
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [2.0.3] - 2018-04-01
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- Make it work with recent Neo4j (thanks @janbiedermann / see #14)
|
12
|
+
|
7
13
|
## [2.0.2]
|
8
14
|
|
9
15
|
### Fixed
|
data/lib/carrierwave/neo4j.rb
CHANGED
@@ -60,6 +60,21 @@ module CarrierWave
|
|
60
60
|
end
|
61
61
|
reloaded
|
62
62
|
end
|
63
|
+
|
64
|
+
# carrierwave keeps a instance variable of @uploaders, cached at init time
|
65
|
+
# but at init time, the value of the column is not yet available
|
66
|
+
# so after init, the empty @uploaders cache must be invalidated
|
67
|
+
# it will reinitialized with the processed column value on first access
|
68
|
+
unless method_defined?(:_set_uploaders_nil)
|
69
|
+
|
70
|
+
after_initialize :_set_uploaders_nil
|
71
|
+
|
72
|
+
def _set_uploaders_nil
|
73
|
+
@_mounters.each do |_, mounter|
|
74
|
+
mounter.instance_variable_set(:@uploaders, nil)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
63
78
|
RUBY
|
64
79
|
end
|
65
80
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-neo4j
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Navarro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project: carrierwave_neo4j
|
110
|
-
rubygems_version: 2.6.
|
110
|
+
rubygems_version: 2.6.13
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Neo4j support for Carrierwave
|