ish_models 0.0.33.215 → 0.0.33.219
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ish/email_context.rb +1 -1
- data/lib/ish/user_profile.rb +1 -1
- data/lib/office/email_message.rb +9 -0
- data/lib/office/email_message_stub.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38b0344a77abb417c017ed09ec003bb9979d3a64e25732bf69280eac7e75b733
|
4
|
+
data.tar.gz: 4351b70933d3fc3fe3a3a3a32a62a1bce83f993c7a45907f2bae0e59f0bbca5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33d0ac03803e9270dece9736d5fcde16f8b12c35cb3d76dc5f17cceacb3e07c7fe7b1935d88922df7cebf36209812c4fb889abe47580f2b9ac601f46db00e936
|
7
|
+
data.tar.gz: f0f9a42989d42a3801d0df78331996b1ec8da0fecec02f65d753de11cc470818334043fe4f8bf9db21318283f039afe1277dee914b2b0585a60f748ce719491e
|
data/lib/ish/email_context.rb
CHANGED
data/lib/ish/user_profile.rb
CHANGED
@@ -113,7 +113,7 @@ class Ish::UserProfile
|
|
113
113
|
|
114
114
|
profile = Ish::UserProfile.where( email: email ).first
|
115
115
|
if profile
|
116
|
-
puts! profile, "UserProfile#generate, already exists"
|
116
|
+
puts!( profile, "UserProfile#generate, already exists" ) if !Rails.env.test?
|
117
117
|
return
|
118
118
|
end
|
119
119
|
|
data/lib/office/email_message.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
|
2
|
+
require 'action_view'
|
3
|
+
|
2
4
|
##
|
3
5
|
## When I receive one.
|
4
6
|
##
|
@@ -101,5 +103,12 @@ class Office::EmailMessage
|
|
101
103
|
end
|
102
104
|
end
|
103
105
|
|
106
|
+
def preview_str
|
107
|
+
body = part_html || part_html || 'Neither part_html nor part_txt!'
|
108
|
+
body = ::ActionView::Base.full_sanitizer.sanitize( body ).gsub(/\s+/, ' ')
|
109
|
+
body = body[0..200]
|
110
|
+
body
|
111
|
+
end
|
112
|
+
|
104
113
|
end
|
105
114
|
::Msg = Office::EmailMessage
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.33.
|
4
|
+
version: 0.0.33.219
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 6.1.0
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 6.1.0
|
111
125
|
description: models of ish
|
112
126
|
email: victor@wasya.co
|
113
127
|
executables: []
|