ish_models 0.0.33.174 → 0.0.33.175

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: e193de4eeef224f54fcf57c898a9bc3b6a6442a3fdb92ebc39bbe631e884c760
4
- data.tar.gz: be392236fdc22f242252992c4f473623798b1d837fb036be850f54dd6a26a32d
3
+ metadata.gz: 5349fd582ae245c9fc34c05cb1e72cca9868c2a3ae2012b19043e152ed5db0c7
4
+ data.tar.gz: 9ef7b974e6c2995e69a94ed68d6d16044c55b923630a02fb72ddac125f0d17c9
5
5
  SHA512:
6
- metadata.gz: c9e4729d7c569a6fe830403583e95552f2bf96b16d0d73601059e9680eb67ec8f526b9a5c655ebdc7f23312cd9608aafd44de088cb435f8b579ddfc2da514b7d
7
- data.tar.gz: e74ca05bc40aa65fdf65b31b228e5410bd9be2299664261404eb4e1e98b4f6af3632cd08445d9c6e23c33b89638b15a7540270cef023972c04c8d2e0c282d229
6
+ metadata.gz: 383dcf0cdce386bc597cdbd64baad28d00d6647482fd23775032acf040dfb22e448f3602a1cb64132f3a18ba889a48e0799e2198356287e709b5712f1069aabc
7
+ data.tar.gz: ad082ecd825e7264a147a0dec3b7f74dac3702110e41ca77783491a67d50ed4c55d139f0d7727e48c905a74bad40d88c66f8723cdbb3897d10e2720fbf52db86
data/lib/gameui/marker.rb CHANGED
@@ -97,7 +97,6 @@ class ::Gameui::Marker
97
97
  map_id
98
98
  name
99
99
  ordering
100
- slug
101
100
  url
102
101
  version
103
102
  w
@@ -107,8 +106,6 @@ class ::Gameui::Marker
107
106
  end
108
107
 
109
108
  def collect export_object
110
- puts! export_object, "collecting in marker: |#{slug}|."
111
-
112
109
  if image
113
110
  export_object[:image_assets][image.id.to_s] = image.id.to_s
114
111
  end
@@ -1,15 +1,26 @@
1
1
 
2
- ##
3
- ## This shouldn't really be in Ish namespace... but oh well
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
- field :template_name
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
@@ -29,6 +29,7 @@ class Newsitem
29
29
  def description
30
30
  descr
31
31
  end
32
+ field :subhead
32
33
 
33
34
  field :image_path
34
35
  field :link_path
data/lib/photo.rb CHANGED
@@ -27,6 +27,7 @@ class Photo
27
27
 
28
28
  field :name, :type => String
29
29
  field :descr, :type => String
30
+ field :subhead
30
31
  field :weight, :type => Integer, :default => 10
31
32
 
32
33
  field :is_public, :type => Boolean, :default => true
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.174
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