ish_models 0.0.33.219 → 0.0.33.222

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: 38b0344a77abb417c017ed09ec003bb9979d3a64e25732bf69280eac7e75b733
4
- data.tar.gz: 4351b70933d3fc3fe3a3a3a32a62a1bce83f993c7a45907f2bae0e59f0bbca5d
3
+ metadata.gz: b562a6867b92d564d8d4df8f8179a58e6892e56854a7de8d8958a80a7c1c1bed
4
+ data.tar.gz: 1cdd3a6792562f562809b22cf24b681da0c56cb8fa9fca1482bdf20c571b98d4
5
5
  SHA512:
6
- metadata.gz: 33d0ac03803e9270dece9736d5fcde16f8b12c35cb3d76dc5f17cceacb3e07c7fe7b1935d88922df7cebf36209812c4fb889abe47580f2b9ac601f46db00e936
7
- data.tar.gz: f0f9a42989d42a3801d0df78331996b1ec8da0fecec02f65d753de11cc470818334043fe4f8bf9db21318283f039afe1277dee914b2b0585a60f748ce719491e
6
+ metadata.gz: 63d0c5e0238065956ed91e7e16ee7579d38e9aa77e5dfe2615495b47bcee5a4295ff18f90345dcc264b7ef0d8cc343aeb08abf46fb37f0790e891e308f13b614
7
+ data.tar.gz: c5c9244893ebf49c9614b76e685e0dcd7c03da8ea62d4daa4103a3baf0cf8b2f3fe685db597da0be0a45ffba17258732aa85f72be744f22b6a60544c401f155b
@@ -16,7 +16,7 @@ class Ish::EmailCampaign
16
16
  PAGE_PARAM_NAME = 'email_contexts_page'
17
17
 
18
18
  FROM_EMAILS = %w| hello@infiniteshelter.com no-reply@infiniteshelter.com
19
- piousbox@gmail.com victor@piousbox.com no-reply@piousbox.com
19
+ piousbox@gmail.com hello@piousbox.com no-reply@piousbox.com victor@piousbox.com
20
20
  admin@wasya.co hello@wasya.co no-reply@wasya.co victor@wasya.co |
21
21
  field :from_email
22
22
  validates_presence_of :from_email
data/lib/ish/event.rb ADDED
@@ -0,0 +1,20 @@
1
+
2
+ class Ish::Event
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+
6
+ field :start_at, type: ActiveSupport::TimeWithZone
7
+ index({ start_at: 1 })
8
+
9
+ field :end_at, type: ActiveSupport::TimeWithZone
10
+
11
+ field :name
12
+ index({ name: 1 })
13
+
14
+ field :descr
15
+
16
+ field :is_public, type: :boolean, default: false
17
+ index({ is_public: 1 })
18
+
19
+ end
20
+
data/lib/ish_models.rb CHANGED
@@ -51,6 +51,7 @@ require 'ish/email_campaign'
51
51
  require 'ish/email_context'
52
52
  require 'ish/email_template'
53
53
  require 'ish/email_unsubscribe'
54
+ require 'ish/event'
54
55
  require 'ish/gallery_name'
55
56
  require 'ish/image_asset'
56
57
  require 'ish/invoice'
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.219
4
+ version: 0.0.33.222
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -143,6 +143,7 @@ files:
143
143
  - lib/ish/email_context.rb
144
144
  - lib/ish/email_template.rb
145
145
  - lib/ish/email_unsubscribe.rb
146
+ - lib/ish/event.rb
146
147
  - lib/ish/gallery_name.rb
147
148
  - lib/ish/image_asset.rb
148
149
  - lib/ish/invoice.rb