ish_models 0.0.33.173 → 0.0.33.175
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gameui/marker.rb +0 -10
- data/lib/ish/email_context.rb +15 -4
- data/lib/ish/email_template.rb +13 -0
- data/lib/ish_models.rb +2 -0
- data/lib/newsitem.rb +1 -0
- data/lib/photo.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5349fd582ae245c9fc34c05cb1e72cca9868c2a3ae2012b19043e152ed5db0c7
|
4
|
+
data.tar.gz: 9ef7b974e6c2995e69a94ed68d6d16044c55b923630a02fb72ddac125f0d17c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 383dcf0cdce386bc597cdbd64baad28d00d6647482fd23775032acf040dfb22e448f3602a1cb64132f3a18ba889a48e0799e2198356287e709b5712f1069aabc
|
7
|
+
data.tar.gz: ad082ecd825e7264a147a0dec3b7f74dac3702110e41ca77783491a67d50ed4c55d139f0d7727e48c905a74bad40d88c66f8723cdbb3897d10e2720fbf52db86
|
data/lib/gameui/marker.rb
CHANGED
@@ -8,13 +8,6 @@ class ::Gameui::Marker
|
|
8
8
|
validates_uniqueness_of :name, scope: :map_id
|
9
9
|
validates_presence_of :name
|
10
10
|
|
11
|
-
## This is not a map, I don't need a slug.
|
12
|
-
## @TODO: remove it. _vp_ 2022-06-17
|
13
|
-
field :slug
|
14
|
-
def slug
|
15
|
-
return self[:slug] || id.to_s
|
16
|
-
end
|
17
|
-
|
18
11
|
field :ordering, type: String, default: 'jjj'
|
19
12
|
|
20
13
|
ITEM_TYPE_LOCATION = '::Gameui::Map' # @TODO: this used to be gameui-location . How is this different from gameui-map ?
|
@@ -104,7 +97,6 @@ class ::Gameui::Marker
|
|
104
97
|
map_id
|
105
98
|
name
|
106
99
|
ordering
|
107
|
-
slug
|
108
100
|
url
|
109
101
|
version
|
110
102
|
w
|
@@ -114,8 +106,6 @@ class ::Gameui::Marker
|
|
114
106
|
end
|
115
107
|
|
116
108
|
def collect export_object
|
117
|
-
puts! export_object, "collecting in marker: |#{slug}|."
|
118
|
-
|
119
109
|
if image
|
120
110
|
export_object[:image_assets][image.id.to_s] = image.id.to_s
|
121
111
|
end
|
data/lib/ish/email_context.rb
CHANGED
@@ -1,15 +1,26 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
#
|
3
|
+
# This looks like it sends a single email?
|
4
|
+
#
|
5
5
|
|
6
6
|
class Ish::EmailContext
|
7
7
|
include Mongoid::Document
|
8
8
|
include Mongoid::Timestamps
|
9
9
|
|
10
10
|
field :to_email
|
11
|
+
validates_presence_of :to_email
|
12
|
+
|
11
13
|
field :subject
|
12
|
-
|
14
|
+
validates_presence_of :subject
|
15
|
+
|
16
|
+
field :body
|
17
|
+
validates_presence_of :body
|
18
|
+
|
19
|
+
belongs_to :email_template
|
20
|
+
|
21
|
+
field :rendered_str
|
22
|
+
|
23
|
+
field :sent_at, type: DateTime
|
13
24
|
|
14
25
|
end
|
15
26
|
EmailContext = Ish::EmailContext
|
@@ -0,0 +1,13 @@
|
|
1
|
+
|
2
|
+
class ::Ish::EmailTemplate
|
3
|
+
include Mongoid::Document
|
4
|
+
include Mongoid::Timestamps
|
5
|
+
|
6
|
+
field :slug
|
7
|
+
validates_uniqueness_of :slug, scope: [ :version ]
|
8
|
+
validates_presence_of :slug
|
9
|
+
|
10
|
+
field :version, default: '0.0.0'
|
11
|
+
|
12
|
+
end
|
13
|
+
EmailTemplate = ::Ish::EmailTemplate
|
data/lib/ish_models.rb
CHANGED
@@ -44,6 +44,7 @@ require 'ish/cache_key'
|
|
44
44
|
require 'ish/campaign'
|
45
45
|
require 'ish/crawler'
|
46
46
|
require 'ish/email_context'
|
47
|
+
require 'ish/email_template'
|
47
48
|
require 'ish/gallery_name'
|
48
49
|
require 'ish/image_asset'
|
49
50
|
require 'ish/input_error'
|
@@ -56,6 +57,7 @@ require 'ish/premium_item'
|
|
56
57
|
require 'ish/unsubscribe'
|
57
58
|
require 'ish/user_profile'
|
58
59
|
|
60
|
+
|
59
61
|
require 'city'
|
60
62
|
require 'cities_user'
|
61
63
|
require 'country'
|
data/lib/newsitem.rb
CHANGED
data/lib/photo.rb
CHANGED
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.175
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- lib/ish/configuration.rb
|
133
133
|
- lib/ish/crawler.rb
|
134
134
|
- lib/ish/email_context.rb
|
135
|
+
- lib/ish/email_template.rb
|
135
136
|
- lib/ish/gallery_name.rb
|
136
137
|
- lib/ish/image_asset.rb
|
137
138
|
- lib/ish/input_error.rb
|