dhole 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dhole/category.rb +6 -0
- data/lib/dhole/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b57b5070f740fcec0f1d1d4aaa7da776f5dd7f71
|
4
|
+
data.tar.gz: f7c1d8fcb7252344a5d3b0cc44bbef8f56b46295
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81b7a6004a12f8bf20e93537e51cf6201b3275f3cc6049a9287840026d9561463c97624ac35de1bb3c7a87779e146af6a65cad4ae7b904a9b7f9786f0f8a0683
|
7
|
+
data.tar.gz: acbe061fdc55475ddaccd03b895f731b91cadb7a23024c58bcbdb59bb8926bc5e749c229f81ac7294fb7ace6d655ba5ff6213240525fcb0942ef4e7ad5ce2e28
|
data/lib/dhole/category.rb
CHANGED
@@ -7,6 +7,12 @@ module Dhole
|
|
7
7
|
def members
|
8
8
|
CategoryLink.where(cl_to: cat_title) || []
|
9
9
|
end
|
10
|
+
def member_page_titles
|
11
|
+
members.select{|cl| cl.cl_type == 'page'}.pluck(:cl_from)
|
12
|
+
end
|
13
|
+
def member_file_titles
|
14
|
+
members.select{|cl| cl.cl_type == 'file'}.pluck(:cl_from)
|
15
|
+
end
|
10
16
|
def member_pages
|
11
17
|
members.select{|cl| cl.cl_type == 'page'}.map {|cl| Page.find(cl.cl_from)}
|
12
18
|
end
|
data/lib/dhole/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dhole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Asaf Bartov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|