wco_models 3.1.0.48 → 3.1.0.49

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
  SHA256:
3
- metadata.gz: da2441d1a8e01d619d5587ee73a3d39c750878741856c8ede9538800c2ab5b71
4
- data.tar.gz: 58d78cbd4f8b08de5157cdcf61c676356a62797f11d42a3beb4ae0c052fec707
3
+ metadata.gz: 59ffec6c4c869d7be3284372fee1f1fd256be7be9d91aab789de5a3a16d5341e
4
+ data.tar.gz: ecff78bf5d5cfd33376287ccf3dff091b098879f592c3c88aa41d6104edddfa8
5
5
  SHA512:
6
- metadata.gz: 6f0b1f607df0481214cf2b37d19484cd93b9f770eee53fd7e997c4a7bc9628e0ac52c59e3d41de01853e12985f56c58a8bfb68e1f1f6563c07ce898311a78b42
7
- data.tar.gz: 1eb8cd6f8b833f58c4b8369d8aa689878b793e1ba7220efc9d64e93d0d0ea69a518683c351e85798334eb5d4082bc9e4e5ef97b7694acf3a405200a9889eeae8
6
+ metadata.gz: a8a84b80a2f8388394c496423fbc35c7eb05bd0f1d67172266ddeb429cfb37e147d496fe5e9370741766ccfbf0dd3d04bf0e2f43c6fb7485e63b67ef25da802d
7
+ data.tar.gz: ab9b15349faffb29f3bcfc011ce4c75c7c73c418d04239d872cf9bedc29eea51b5a76166ac9924e901449da48e12ad5f27e6a7cfc411efd28dc0cf41deb8009f
@@ -67,8 +67,8 @@ class WcoEmail::Message
67
67
 
68
68
  belongs_to :stub, class_name: 'WcoEmail::MessageStub'
69
69
 
70
- has_many :assets, class_name: 'Wco::Asset'
71
- has_many :photos, class_name: 'Wco::Photo'
70
+ has_many :assets, class_name: '::Wco::Asset'
71
+ has_many :photos, class_name: '::Wco::Photo'
72
72
 
73
73
  def apply_filter filter
74
74
  case filter.kind
@@ -192,7 +192,7 @@ class WcoEmail::Message
192
192
 
193
193
  content_type = att.content_type.split(';')[0]
194
194
  if content_type.include? 'image'
195
- photo = Wco::Photo.new({
195
+ photo = ::Wco::Photo.new({
196
196
  content_type: content_type,
197
197
  email_message_id: self.id,
198
198
  image_data: att.body.encoded,
@@ -207,7 +207,7 @@ class WcoEmail::Message
207
207
  File.open("/tmp/#{filename}", 'w:UTF-8:ASCII-8BIT') do |f|
208
208
  f.puts(sio.read)
209
209
  end
210
- asset = Wco::Asset.new({
210
+ asset = ::Wco::Asset.new({
211
211
  email_message: self,
212
212
  filename: filename,
213
213
  object: File.open("/tmp/#{filename}"),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.48
4
+ version: 3.1.0.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev