neofiles 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/neofiles/file_chunk.rb +3 -1
- data/lib/neofiles/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 409b7204b33f2a76dbb8a5c2ef7e52fe987fca50
|
4
|
+
data.tar.gz: 80db2637a16da4c0ae92967d1487f3eb3fbb37d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a8b3cf9a92296ce8605f69835773513143e9254621e7bdbc2d7910172820b251e0596177506c4d99daa666947c70aea37e5ad1373ce96911628627548cbadcf
|
7
|
+
data.tar.gz: e74fec00c9d375f2d4d737126db02a2cf745984bbf6aac7aede4fc8e4db2314c7b3884187589a1948992fbeb2e36c290db90f4193034452538947a5d25f84366
|
@@ -7,7 +7,9 @@ class Neofiles::FileChunk
|
|
7
7
|
|
8
8
|
store_in collection: Rails.application.config.neofiles.mongo_chunks_collection, client: Rails.application.config.neofiles.mongo_client
|
9
9
|
|
10
|
-
|
10
|
+
# Mongoid bug: if you set `file_id` but not `file`, it still thinks the relation is missing and fails validation,
|
11
|
+
# so setting `optional: true` explicitly
|
12
|
+
belongs_to :file, class_name: 'Neofiles::File', optional: true
|
11
13
|
|
12
14
|
field :n, type: Integer, default: 0 # что это за поле?
|
13
15
|
field :data, type: BSON::Binary
|
data/lib/neofiles/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neofiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konanykhin Ilya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|