ish_models 0.0.33.219 → 0.0.33.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ish/event.rb +20 -0
  3. data/lib/ish_models.rb +1 -0
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38b0344a77abb417c017ed09ec003bb9979d3a64e25732bf69280eac7e75b733
4
- data.tar.gz: 4351b70933d3fc3fe3a3a3a32a62a1bce83f993c7a45907f2bae0e59f0bbca5d
3
+ metadata.gz: 3574a0bbce23b4a7210d9bd8ecf1a6f735cb4f0241ececaa7c3b712187af08e1
4
+ data.tar.gz: b0289fbbfde3fae0e2781f7b08ba1210d3eca250d8b17e489bd90e07c0cfcc79
5
5
  SHA512:
6
- metadata.gz: 33d0ac03803e9270dece9736d5fcde16f8b12c35cb3d76dc5f17cceacb3e07c7fe7b1935d88922df7cebf36209812c4fb889abe47580f2b9ac601f46db00e936
7
- data.tar.gz: f0f9a42989d42a3801d0df78331996b1ec8da0fecec02f65d753de11cc470818334043fe4f8bf9db21318283f039afe1277dee914b2b0585a60f748ce719491e
6
+ metadata.gz: fab8fb7c65be2da68952501149d7031dfb9e1097201be4976c4433a8d3759d2db64a7276368409cd6bc5c4f039f2a54566c0f243b3d060b8d7cab08ad9cede08
7
+ data.tar.gz: c4ce8b9892f36beaf33401d8b50548bba1061baa392c5f63aa1d739c4a99fc42aa901b081ac91568cd8837224b514ff2c882bfda7f85adadb1cea6602f43d095
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.221
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