ish_models 0.0.33.208 → 0.0.33.210

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: d2b1de33b06b694c8c498fcaf8e9f1be0043cfb671f1320714e161e4a6928b6e
4
- data.tar.gz: 8ccd99db6e28a9ae30672596f9d237b2f9e8c191d3e9ca61a4e84010fde64071
3
+ metadata.gz: 46e7967e2f0d884e8c5ff8a5a6e6d54aed2cc64b605a286ed40f3e2b9417fcdd
4
+ data.tar.gz: bd0fb0ca21faef2ed8f2d42068756087fa80b5199fd887552a2989411b187145
5
5
  SHA512:
6
- metadata.gz: 5ea0f2df2d7f9de7ddf355400f511148969dea84974f6f6472e09befdb020e7e5859a5195c6c20dcfe42e67c3b4bb1ed36cd1a0fbb6ca57eb68711d4656d4786
7
- data.tar.gz: 82460cced11f3de8bcc2963f681c964fbef19fa605ea14a1dd9a5954260d540486a49d7c2fab3227401ff94908953f6438863331b2213c439a3b62001c36a3d7
6
+ metadata.gz: ab02dca3ecf3add944f5f35bb1ed4977996acd81dd7fc33570307a7826d120a2fce295785d8d4fde754c3e516f1b73d0dcb9cdee28b40698188a5ee771211e4a
7
+ data.tar.gz: d41c6bb9bd15965fec727922217d2095b386770f9f6511bb6de0c1610fe156194da3656e6245574a258a0cc02c7c5db9a4312da2fc6cd96b6f38fba57c23bf3b
@@ -39,7 +39,7 @@ class Office::EmailConversation
39
39
  when 'String'
40
40
  tag = WpTag.emailtag(tag)
41
41
  else
42
- throw "#add_tag expects a WpTag or string (eg WpTag::EMAILTAG_INBOX) as the only parameter."
42
+ throw "#add_tag expects a WpTag or string (eg WpTag::INBOX) as the only parameter."
43
43
  end
44
44
  self[:wp_term_ids] = ( [ tag.id ] + self[:wp_term_ids] ).uniq
45
45
  self.save!
@@ -52,7 +52,7 @@ class Office::EmailConversation
52
52
  when 'String'
53
53
  tag = WpTag.emailtag(tag)
54
54
  else
55
- throw "#remove_tag expects a WpTag or string (eg WpTag::EMAILTAG_INBOX) as the only parameter."
55
+ throw "#remove_tag expects a WpTag or string (eg WpTag::INBOX) as the only parameter."
56
56
  end
57
57
  self[:wp_term_ids] = self[:wp_term_ids] - [ tag.id ]
58
58
  out = self.save!
@@ -10,7 +10,7 @@ class Office::EmailMessage
10
10
 
11
11
  field :message_id, type: :string # MESSAGE-ID
12
12
  validates_uniqueness_of :message_id
13
- index({ message_id: 1 }, { unique: true, name: "message_id_idx" })
13
+ index({ message_id: 1 }, { unique: true, name: "id_idx" })
14
14
 
15
15
  field :in_reply_to_id, type: :string
16
16
 
data/lib/video.rb CHANGED
@@ -16,6 +16,7 @@ class Video
16
16
 
17
17
  field :name, :type => String
18
18
  field :descr, :type => String, :as => :description
19
+ field :subhead ## still need it... 2023-03-24
19
20
 
20
21
  field :is_trash, :type => Boolean, :default => false
21
22
  def is_trash
@@ -27,28 +28,23 @@ class Video
27
28
  end
28
29
 
29
30
  field :is_public, :type => Boolean, :default => false
30
- field :is_feature, :type => Boolean, :default => false
31
31
 
32
32
  field :x, type: Float
33
33
  field :y, type: Float
34
34
  field :z, type: Float
35
35
 
36
- field :lang, :type => String, :default => 'en'
37
-
38
36
  field :youtube_id
39
37
  validates_uniqueness_of :youtube_id, allow_blank: true, case_sensitive: false
40
38
  before_save { youtube_id.present? || youtube_id = nil }
41
39
 
42
40
  belongs_to :user_profile, :optional => true, :class_name => 'Ish::UserProfile', :inverse_of => :videos
43
41
 
42
+ index({ is_trash: 1, user_profile_id: 1, created_at: 1 }, { name: 'idx1' })
43
+
44
44
  def self.list
45
45
  [['', nil]] + Video.unscoped.order_by( :created_at => :desc ).map { |item| [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ] }
46
46
  end
47
47
 
48
-
49
- field :issue
50
- field :subhead
51
-
52
48
  has_mongoid_attached_file :video,
53
49
  # styles: { :thumb => { geometry: '192x108', format: 'jpeg' }, },
54
50
  # processors: [ :transcoder ],
@@ -94,3 +90,11 @@ class Video
94
90
 
95
91
 
96
92
  end
93
+
94
+
95
+ =begin
96
+ field :issue
97
+
98
+ field :is_feature, :type => Boolean, :default => false
99
+ field :lang, :type => String, :default => 'en'
100
+ =end
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.208
4
+ version: 0.0.33.210
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox