hublingo 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/lib/hublingo.rb +5 -2
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjhmMDMzYmE0OGUwNTYzYWEwMTYyODhkYTA1ZTBjYTIzNDE1MTkyYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODc1ZmQ0YjExM2Y2YmQxNzk2NmNiMWRiYTA4OTk0YjVjNDRjY2FiNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDkzZjE5MTcwY2ZhZjczYmJiZmJkODUyN2U4MjFjNjU1Y2M5MmU4ZDRhMDU1
|
10
|
+
YjUxMjY3NGVlY2VjODNkZTc3NjY5YzQzOTQyMDFhYTdkNjgxYjYzMWVjYTUw
|
11
|
+
MjllN2E5Yzg4NDFhYTkwZjJmMGQ4ZGIxZjIzY2Q3NGVhNTkzYWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTIwZWZjMWRiMmRkMDIzNmQ1N2MwNThmNDY1MDM1Y2Q0ZTAyNTVhZGNiYzlm
|
14
|
+
N2IzZmYwYTVlY2MxMzBlMGM1NjI5ZmJlMDRkZjM4ODQwYTI1YzgwZTJiZjU1
|
15
|
+
MjgyOGZmODY4MWY5OGNiMjU1NTBhZmViZGExZTQ0NzM0YmY3NTk=
|
data/README.md
CHANGED
data/lib/hublingo.rb
CHANGED
@@ -40,9 +40,12 @@ class Hublingo
|
|
40
40
|
frequencies[field] += 1
|
41
41
|
end
|
42
42
|
end
|
43
|
-
|
44
|
-
return frequencies
|
43
|
+
return pick
|
45
44
|
end
|
46
45
|
false
|
47
46
|
end
|
47
|
+
|
48
|
+
def pick
|
49
|
+
frequencies.sort_by {|k, v| - v}.first.first.to_s
|
50
|
+
end
|
48
51
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hublingo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Goodchild
|
@@ -10,6 +10,20 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: minitest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.7.3
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.7.3
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: octokit
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
59
|
requirements:
|
46
60
|
- - ! '>='
|
47
61
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
62
|
+
version: 1.9.3
|
49
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
64
|
requirements:
|
51
65
|
- - ! '>='
|