uploadbox 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13f326265b3fb80736e6d4633d5ce004b37cdbed
4
- data.tar.gz: b77462b629b66414c184f12eefd8e77b49313a1a
3
+ metadata.gz: 65c6b1f619ceabeda1c9542c7a06c516c078d319
4
+ data.tar.gz: a274433a89770487e3d85a740db0bcc38b527fa6
5
5
  SHA512:
6
- metadata.gz: 20dd5bcfc6f78420ec78ce2e3fe66e85f9b8bd4da8ef8e341938c06584e14d3ccd7b04f4913ab026400a634e4f9e185cf0a3f9899cb5e92b6cbe92bdbe824c89
7
- data.tar.gz: 9dd814458c11e5c8ffe28e594b26dc6cfe813f127d34d8644724569c632448fe22e33fb63a156a3a72755794305c25a6f1c0d3043b5664e538eaaa3aa6495455
6
+ metadata.gz: b4c415b1b335a86465b384d50509c863fbae54e7fd657bf2e6317f2a43875f52eb0537fc635b113f885028bd869b02b2292e6d374eef854aaf7ed530a42f9139
7
+ data.tar.gz: 55894ffbfd8d278614caa4aa4ad0879735a6ded84235c64b9388542068d8cf92dcb7976334d3c40da8a077d7e8cd5cc1f0e4976ccaeb5887bdc4ee59fba8ed8d
@@ -15,9 +15,8 @@ module Uploadbox
15
15
  imageable_type = self.to_s
16
16
  upload_class_name = imageable_type + upload_name.to_s.camelize
17
17
  upload_class = Class.new(Image)
18
-
19
- return if Uploadbox.const_defined?(upload_class_name)
20
18
 
19
+ Uploadbox.instance_eval {remove_const upload_class_name} if Uploadbox.const_defined?(upload_class_name)
21
20
  Uploadbox.const_set(upload_class_name, upload_class)
22
21
 
23
22
  # @post.picture?
@@ -141,8 +140,7 @@ module Uploadbox
141
140
  upload_class_name = imageable_type + upload_name.to_s.camelize
142
141
  upload_class = Class.new(Image)
143
142
 
144
- return if Uploadbox.const_defined?(upload_class_name)
145
-
143
+ Uploadbox.instance_eval {remove_const upload_class_name} if Uploadbox.const_defined?(upload_class_name)
146
144
  Uploadbox.const_set(upload_class_name, upload_class)
147
145
 
148
146
  # @post.images?
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
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.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-05 00:00:00.000000000 Z
12
+ date: 2013-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails