uploadbox 0.0.19 → 0.0.20

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: d967997edc200de66c3419ba524d1f91106edb42
4
- data.tar.gz: a0b5d69de23d0e01b3dd07e6e2d734248a40970e
3
+ metadata.gz: 13f326265b3fb80736e6d4633d5ce004b37cdbed
4
+ data.tar.gz: b77462b629b66414c184f12eefd8e77b49313a1a
5
5
  SHA512:
6
- metadata.gz: 4241868b36ec28b70cd5ee6fda346cffd7ae842e10714be222a3dc8456d76a7db937890840b09451b83a71187ef476748c3446f26ad6b68b450571ec2ebfd29e
7
- data.tar.gz: b89f9b68c4d982f6300670e669f3772fc55b78179d903510d89249e4931a84ee803ae261764f4b8511fba2be5db91e62a6ef71d311b3db5e1c16a4c6a23b944d
6
+ metadata.gz: 20dd5bcfc6f78420ec78ce2e3fe66e85f9b8bd4da8ef8e341938c06584e14d3ccd7b04f4913ab026400a634e4f9e185cf0a3f9899cb5e92b6cbe92bdbe824c89
7
+ data.tar.gz: 9dd814458c11e5c8ffe28e594b26dc6cfe813f127d34d8644724569c632448fe22e33fb63a156a3a72755794305c25a6f1c0d3043b5664e538eaaa3aa6495455
@@ -16,9 +16,9 @@ module Uploadbox
16
16
  upload_class_name = imageable_type + upload_name.to_s.camelize
17
17
  upload_class = Class.new(Image)
18
18
 
19
- unless Uploadbox.const_defined?(upload_class_name)
20
- Uploadbox.const_set(upload_class_name, upload_class)
21
- end
19
+ return if Uploadbox.const_defined?(upload_class_name)
20
+
21
+ Uploadbox.const_set(upload_class_name, upload_class)
22
22
 
23
23
  # @post.picture?
24
24
  define_method("#{upload_name}?") do
@@ -86,6 +86,7 @@ module Uploadbox
86
86
 
87
87
  # Uploabox::PostPictureUploader < UploadBox::ImgProcessing < CarrierWave
88
88
  dynamic_uploader = Class.new(Uploadbox::ImageProcessingUploader)
89
+
89
90
  unless Uploadbox.const_defined?(self.name.demodulize + 'Uploader')
90
91
  Uploadbox.const_set(self.name.demodulize + 'Uploader', dynamic_uploader)
91
92
  end
@@ -140,9 +141,9 @@ module Uploadbox
140
141
  upload_class_name = imageable_type + upload_name.to_s.camelize
141
142
  upload_class = Class.new(Image)
142
143
 
143
- unless Uploadbox.const_defined?(upload_class_name)
144
- Uploadbox.const_set(upload_class_name, upload_class)
145
- end
144
+ return if Uploadbox.const_defined?(upload_class_name)
145
+
146
+ Uploadbox.const_set(upload_class_name, upload_class)
146
147
 
147
148
  # @post.images?
148
149
  define_method("#{upload_name}?") do
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek