ish_models 0.0.33.147 → 0.0.33.148
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/video.rb +3 -2
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84cc3820b6d71d08c41b6f903b82547dc048150f15a9beb76daf0dd0e17d91dc
|
4
|
+
data.tar.gz: db8ea548690613d03cde7eb754c48ed86684184af3f7ef882b5329a822907d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15d489470b5af11cd24a764578b23631819863b62800d99cd1ea4a5dc949df19af41af4948f4310ebf1738c9a3d18970d3b4925b69025b8885de48a7521aa68
|
7
|
+
data.tar.gz: 1b7fc6f63626ae2b9ebc7e97adc48b1267d4dbcf7b328dae1bdd1aec53e163864bd2bd0a429effc6e5790ccfa0942c31ceebd35861617abaad47723682ef3be7
|
data/lib/video.rb
CHANGED
@@ -2,16 +2,17 @@ class Video
|
|
2
2
|
include Mongoid::Document
|
3
3
|
include Mongoid::Timestamps
|
4
4
|
include Mongoid::Paperclip
|
5
|
+
include Mongoid::Paranoia
|
5
6
|
|
6
7
|
PER_PAGE = 6
|
7
8
|
|
8
9
|
field :name, :type => String
|
9
10
|
field :descr, :type => String, :as => :description
|
10
11
|
|
11
|
-
default_scope ->{ where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc }) }
|
12
|
+
# default_scope ->{ where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc }) }
|
12
13
|
|
13
14
|
field :is_trash, :type => Boolean, :default => false
|
14
|
-
field :is_public, :type => Boolean, :default =>
|
15
|
+
field :is_public, :type => Boolean, :default => false
|
15
16
|
field :is_feature, :type => Boolean, :default => false
|
16
17
|
|
17
18
|
field :x, :type => Float
|
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.
|
4
|
+
version: 0.0.33.148
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 7.0.5
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mongoid_paranoia
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: mongoid-autoinc
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,9 +166,9 @@ files:
|
|
152
166
|
- lib/warbler/stock_option.rb
|
153
167
|
- lib/warbler/stock_watch.rb
|
154
168
|
- lib/warbler/yahoo_stockwatcher.rb
|
155
|
-
homepage:
|
169
|
+
homepage: https://wasya.co
|
156
170
|
licenses:
|
157
|
-
-
|
171
|
+
- Proprietary
|
158
172
|
metadata: {}
|
159
173
|
post_install_message:
|
160
174
|
rdoc_options: []
|