dhole 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/dhole/category.rb +3 -0
- data/lib/dhole/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZTk0ODgwOTBmZmNhNTBiOGRhOWQzMTQwMjkwMTA4M2Q3OTFlNmEwNQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
M2E1ZjQyYzFkYTNkZTYwNzhhYmVkNmRiMjQ0YWUxNmI0NmE0M2ViZQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NzQ4OGZkNzVmZGJkMmMwMDU0OWViM2U3NjYwYzJkMzVjN2NmOTNmN2U1YmQ1
|
10
|
+
ZTA4Y2FkYWY5MGMzM2JmYWFmMzY0ZWQwNjYyZjM1NWZhNzA3Y2ZmZDNkYmNj
|
11
|
+
YmM3YTMyMTBiN2VjZTViNDFjNDc5ZTZjMmYyNmVjYmRjYTVlNmY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTZhYmM2OWQ0MDQ4OGQ3YzAxY2Q0OTAzYzY2MjZhMzdmZTQwMDliYWY3NTM3
|
14
|
+
ZWNkZWNmZGVjMzFkZDc4YmEzYWQ0ZjhiN2FhMDQ5M2EyNGJjOTE3MDA3Nzg2
|
15
|
+
ZWRkMmQwNDY1YmJkODQ4ZTZiY2M3NWE5NGMxMWYyOWRmOTE5M2E=
|
data/lib/dhole/category.rb
CHANGED
@@ -10,6 +10,9 @@ module Dhole
|
|
10
10
|
def member_pages
|
11
11
|
members.select{|cl| cl.cl_type == 'page'}.map {|cl| Page.find(cl.cl_from)}
|
12
12
|
end
|
13
|
+
def member_files
|
14
|
+
members.select{|cl| cl.cl_type == 'file'}.map {|cl| Image.find(cl.cl_from)}
|
15
|
+
end
|
13
16
|
# return only members of specified type ('file','page', 'subcat')
|
14
17
|
def members_by_type(mtype)
|
15
18
|
# TBD
|
data/lib/dhole/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Asaf Bartov
|
@@ -14,56 +14,56 @@ dependencies:
|
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.7'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activerecord
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: composite_primary_keys
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ! '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: ActiveRecord mapping of main Mediawiki entities and relationships
|
@@ -73,7 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
-
|
76
|
+
- .gitignore
|
77
77
|
- Gemfile
|
78
78
|
- LICENSE.txt
|
79
79
|
- README.md
|
@@ -100,17 +100,17 @@ require_paths:
|
|
100
100
|
- lib
|
101
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - ! '>='
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ! '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.1.11
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Mediawiki Object-Relational Mapping
|