dhole 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTk0ODgwOTBmZmNhNTBiOGRhOWQzMTQwMjkwMTA4M2Q3OTFlNmEwNQ==
5
- data.tar.gz: !binary |-
6
- M2E1ZjQyYzFkYTNkZTYwNzhhYmVkNmRiMjQ0YWUxNmI0NmE0M2ViZQ==
2
+ SHA1:
3
+ metadata.gz: b7bf42e3b6976b8231d788778242168e496aed55
4
+ data.tar.gz: 6a15c46a9d3edc4b396c55182cc0be68fe01c73f
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NzQ4OGZkNzVmZGJkMmMwMDU0OWViM2U3NjYwYzJkMzVjN2NmOTNmN2U1YmQ1
10
- ZTA4Y2FkYWY5MGMzM2JmYWFmMzY0ZWQwNjYyZjM1NWZhNzA3Y2ZmZDNkYmNj
11
- YmM3YTMyMTBiN2VjZTViNDFjNDc5ZTZjMmYyNmVjYmRjYTVlNmY=
12
- data.tar.gz: !binary |-
13
- NTZhYmM2OWQ0MDQ4OGQ3YzAxY2Q0OTAzYzY2MjZhMzdmZTQwMDliYWY3NTM3
14
- ZWNkZWNmZGVjMzFkZDc4YmEzYWQ0ZjhiN2FhMDQ5M2EyNGJjOTE3MDA3Nzg2
15
- ZWRkMmQwNDY1YmJkODQ4ZTZiY2M3NWE5NGMxMWYyOWRmOTE5M2E=
6
+ metadata.gz: 37f7915615896e4c14b98c6291f9cc06654f8e64c8d03c8af5ab2bf3ef91cde55ac6d88328c6192815789147f3ef9f355111ac7bf4bc0dde53bb186472a572df
7
+ data.tar.gz: 3609f1cbef81fa94e1cebc30b72ef5e310ed970d15eedfbdeb423ad05da6a55d95d3eb4be9ad1ad64bf05e29d4a13d8dd22c2842cf63aa01220341cf374105e3
data/lib/dhole/image.rb CHANGED
@@ -13,6 +13,15 @@ module Dhole
13
13
  def global_usage
14
14
  GlobalImageLink.where(gil_to: img_name, gil_namespace_id: '0').pluck(:gil_wiki, :gil_page)
15
15
  end
16
+ def global_usage_by_project
17
+ gu = global_usage
18
+ ret = {}
19
+ gu.each {|u|
20
+ ret[u[0]] = [] if ret[u[0]].nil?
21
+ ret[u[0]] << u[1]
22
+ }
23
+ return ret
24
+ end
16
25
  end
17
26
  end
18
27
 
data/lib/dhole/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dhole
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
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.8
4
+ version: 0.0.9
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-20 00:00:00.000000000 Z
11
+ date: 2014-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,28 +42,28 @@ dependencies:
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
@@ -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.1.11
113
+ rubygems_version: 2.4.5
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Mediawiki Object-Relational Mapping