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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d17a3385606422925aadec29b4054f6bc3682b91
4
- data.tar.gz: 033a2f126a1d380c0c461a3e5d938e0d908819fb
3
+ metadata.gz: b57b5070f740fcec0f1d1d4aaa7da776f5dd7f71
4
+ data.tar.gz: f7c1d8fcb7252344a5d3b0cc44bbef8f56b46295
5
5
  SHA512:
6
- metadata.gz: bb3c3dd38956108cda5582faeb0dbcfa0b827d54fbcd5e683640abb9299c597869b5631f920c4a5f57c1c252a8cc3ebe83e68bda974dde75966604f426af5949
7
- data.tar.gz: bfe5c5d568c9a9145caacb1710259a12baac80e707dde631888ce4b19a07ac3ab1efb5ca3eed27d28c6e40ea6f963c2020d66effde8f2aed30ed312ecff79a31
6
+ metadata.gz: 81b7a6004a12f8bf20e93537e51cf6201b3275f3cc6049a9287840026d9561463c97624ac35de1bb3c7a87779e146af6a65cad4ae7b904a9b7f9786f0f8a0683
7
+ data.tar.gz: acbe061fdc55475ddaccd03b895f731b91cadb7a23024c58bcbdb59bb8926bc5e749c229f81ac7294fb7ace6d655ba5ff6213240525fcb0942ef4e7ad5ce2e28
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Dhole
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
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.10
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-23 00:00:00.000000000 Z
11
+ date: 2014-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler