rankles 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/rankles.rb +3 -2
- data/rankles.gemspec +4 -4
- data/spec/spec_helper.rb +1 -5
- metadata +42 -39
data/Rakefile
CHANGED
data/lib/rankles.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
require '
|
1
|
+
require 'active_support/time'
|
2
|
+
|
2
3
|
module Rankles
|
3
4
|
class Reddit
|
4
5
|
attr_accessor :date, :upvotes, :downvotes
|
@@ -13,7 +14,7 @@ module Rankles
|
|
13
14
|
self.downvotes = options[:downvotes]
|
14
15
|
end
|
15
16
|
|
16
|
-
# http://www.seomoz.org/img/upload/reddit_cf_algorithm.png
|
17
|
+
# http://www.seomoz.org/img/upload/reddit_cf_algorithm.png
|
17
18
|
#
|
18
19
|
# Gives the result of the reddit algorithm. Higher is better.
|
19
20
|
def to_f
|
data/rankles.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rankles}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Josh Nichols"]
|
@@ -41,11 +41,11 @@ Gem::Specification.new do |s|
|
|
41
41
|
s.specification_version = 2
|
42
42
|
|
43
43
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
44
|
-
s.add_runtime_dependency(%q<
|
44
|
+
s.add_runtime_dependency(%q<active_support>, [">= 0"])
|
45
45
|
else
|
46
|
-
s.add_dependency(%q<
|
46
|
+
s.add_dependency(%q<active_support>, [">= 0"])
|
47
47
|
end
|
48
48
|
else
|
49
|
-
s.add_dependency(%q<
|
49
|
+
s.add_dependency(%q<active_support>, [">= 0"])
|
50
50
|
end
|
51
51
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,37 +1,40 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rankles
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Josh Nichols
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
date: 2009-05-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: active_support
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
17
22
|
type: :runtime
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
description:
|
26
31
|
email: josh@technicalpickles.com
|
27
32
|
executables: []
|
28
|
-
|
29
33
|
extensions: []
|
30
|
-
|
31
|
-
extra_rdoc_files:
|
34
|
+
extra_rdoc_files:
|
32
35
|
- LICENSE
|
33
36
|
- README.rdoc
|
34
|
-
files:
|
37
|
+
files:
|
35
38
|
- .document
|
36
39
|
- .gitignore
|
37
40
|
- LICENSE
|
@@ -42,32 +45,32 @@ files:
|
|
42
45
|
- rankles.gemspec
|
43
46
|
- spec/rankles_spec.rb
|
44
47
|
- spec/spec_helper.rb
|
45
|
-
has_rdoc: true
|
46
48
|
homepage: http://github.com/technicalpickles/rankles
|
49
|
+
licenses: []
|
47
50
|
post_install_message:
|
48
|
-
rdoc_options:
|
51
|
+
rdoc_options:
|
49
52
|
- --charset=UTF-8
|
50
|
-
require_paths:
|
53
|
+
require_paths:
|
51
54
|
- lib
|
52
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
64
67
|
requirements: []
|
65
|
-
|
66
68
|
rubyforge_project: pickles
|
67
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 1.8.25
|
68
70
|
signing_key:
|
69
71
|
specification_version: 2
|
70
72
|
summary: Ranking algorithms.
|
71
|
-
test_files:
|
73
|
+
test_files:
|
72
74
|
- spec/rankles_spec.rb
|
73
75
|
- spec/spec_helper.rb
|
76
|
+
has_rdoc: true
|