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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 124dbde101a5c1fc8e7927d1f44c8a0941c158dc
4
- data.tar.gz: 81290705007e5337ce32981e520de96817c926f8
3
+ metadata.gz: 54e023e0f3f62561e3271b480a00233abb8ca46c
4
+ data.tar.gz: 776683e24d8f481a5a34a13b10c426e20b248b81
5
5
  SHA512:
6
- metadata.gz: 984a83f752076079a438f0f637598e2d01864b88647de1bdcbcc2a891e2544d17705f5a4489bdb4c93181524cea224b1d9e727e557c212110ce8b4facd4ff7bc
7
- data.tar.gz: e6581948e5b4ccabfa3779225bbeee356864f8f87be221b4304bc8559dd024cc21604428604ac82580b365ba05f659d5885138f84606c865ae2112f1bc417d27
6
+ metadata.gz: 6e0955de8da3508bdb6dd3fc33b1f0baabe17d3a20f2f9afecf5db9ca9131d3ccab04bbc68a6e0c07d2a94979e68e8c69b4a43c6cb7da3a845f3a0792a694017
7
+ data.tar.gz: 0536d9bd37806f7db4e23407c44d0a004be0f353df954bd0502e3de8554b8a52bd346b9f04a20ee75975e16774d385ddbea0adc8f4656293747c373b71f7611f
@@ -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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module Neo4j
3
- VERSION = "2.0.2"
3
+ VERSION = "2.0.3"
4
4
  end
5
5
  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.2
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: 2017-01-15 00:00:00.000000000 Z
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.8
110
+ rubygems_version: 2.6.13
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Neo4j support for Carrierwave