ish_models 0.0.33.208 → 0.0.33.209

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: a1d881ee26c3ebc1d7ebd70d700f2f2bb48698e1cf0dc3bccaa892f5c66a05d3
4
+ data.tar.gz: afb800653429e3c29209199d4da42b566b4a1acf5059e2c03c5d8ae174d06ef2
5
5
  SHA512:
6
- metadata.gz: 5ea0f2df2d7f9de7ddf355400f511148969dea84974f6f6472e09befdb020e7e5859a5195c6c20dcfe42e67c3b4bb1ed36cd1a0fbb6ca57eb68711d4656d4786
7
- data.tar.gz: 82460cced11f3de8bcc2963f681c964fbef19fa605ea14a1dd9a5954260d540486a49d7c2fab3227401ff94908953f6438863331b2213c439a3b62001c36a3d7
6
+ metadata.gz: ba5ce659689e9efd867bdd423262afcc4f5a70ab19f5cd1f0d4e6a39a30b3ded49eee02973911d882b6156c265282f103b806a4e6068b5231ec0fad28727c573
7
+ data.tar.gz: 7c6745e4f7a230fea262b2f9f99da14dd36872afe1bd6ac16ac93f98a932648ae34dc719e87fbe13f9d2fa9b0327182c755ae845367efb9d7dde32bb2a418802
@@ -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
@@ -27,28 +27,23 @@ class Video
27
27
  end
28
28
 
29
29
  field :is_public, :type => Boolean, :default => false
30
- field :is_feature, :type => Boolean, :default => false
31
30
 
32
31
  field :x, type: Float
33
32
  field :y, type: Float
34
33
  field :z, type: Float
35
34
 
36
- field :lang, :type => String, :default => 'en'
37
-
38
35
  field :youtube_id
39
36
  validates_uniqueness_of :youtube_id, allow_blank: true, case_sensitive: false
40
37
  before_save { youtube_id.present? || youtube_id = nil }
41
38
 
42
39
  belongs_to :user_profile, :optional => true, :class_name => 'Ish::UserProfile', :inverse_of => :videos
43
40
 
41
+ index({ is_trash: 1, user_profile_id: 1, created_at: 1 }, { name: 'idx1' })
42
+
44
43
  def self.list
45
44
  [['', nil]] + Video.unscoped.order_by( :created_at => :desc ).map { |item| [ "#{item.created_at.strftime('%Y%m%d')} #{item.name}", item.id ] }
46
45
  end
47
46
 
48
-
49
- field :issue
50
- field :subhead
51
-
52
47
  has_mongoid_attached_file :video,
53
48
  # styles: { :thumb => { geometry: '192x108', format: 'jpeg' }, },
54
49
  # processors: [ :transcoder ],
@@ -94,3 +89,11 @@ class Video
94
89
 
95
90
 
96
91
  end
92
+
93
+
94
+ =begin
95
+ field :issue
96
+ field :subhead
97
+ field :is_feature, :type => Boolean, :default => false
98
+ field :lang, :type => String, :default => 'en'
99
+ =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.209
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox