shrine-mongoid 0.2.0 → 0.2.1

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: cb59e93b83c5e0df8f48471ebaa914c5d97f0931
4
- data.tar.gz: b07bbddb23270e8820c95375b8d57d171a9631a5
3
+ metadata.gz: 57e8074d1177a967d34f11e671e01ca011b2d08d
4
+ data.tar.gz: 737c5fb3b21b46b6bca34253346c14d30ea90ff3
5
5
  SHA512:
6
- metadata.gz: 5dfc4f7494ac3bf223cc29b2c1cdaf17e853b4cc494f079ec655b8158b54a71ee6939894028fd2a7bb1edfd0c8e2b405b594eaaa3cf755b71fe64e0ef46ef1b7
7
- data.tar.gz: efe40aed3f3260b02edd873a753ba003c0b18dd6f73960b2667868fbdea83a8ed170f049fe0ce672887175b0e7cffcce877e3b4b4b14fcde0e79f2017e47cda3
6
+ metadata.gz: 6622c78d9f8d205edc329caa0d53dd1c402e561540d9e0e8fa38c53c8cc5a9b2f15c4e74988097229bee232b66f45b236b86286c5b251d019a389c3499bac754
7
+ data.tar.gz: 8ad32c101b8b62b9d3e5d05ebc9fe8283ae681d96acad41d7fe985e5b11a917fccd9e29c551dda2f352c5b38e1c3665b18d640867c102d4b1b5db92f7df7742e
@@ -50,8 +50,6 @@ class Shrine
50
50
  end
51
51
 
52
52
  module AttacherMethods
53
- private
54
-
55
53
  # Updates the current attachment with the new one, unless the current
56
54
  # attachment has changed.
57
55
  def swap(uploaded_file)
@@ -60,6 +58,8 @@ class Shrine
60
58
  rescue ::Mongoid::Errors::DocumentNotFound
61
59
  end
62
60
 
61
+ private
62
+
63
63
  # We save the record after updating, raising any validation errors.
64
64
  def update(uploaded_file)
65
65
  super
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-mongoid"
3
- gem.version = "0.2.0"
3
+ gem.version = "0.2.1"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine