This repository was archived by the owner on Nov 1, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathtraffic.rb
More file actions
94 lines (90 loc) · 3.5 KB
/
traffic.rb
File metadata and controls
94 lines (90 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
module GitHub
module Resources
module Responses
TRAFFIC_REFERRERS ||= [
{"referrer" => "Google", "count" => 4, "uniques" => 3},
{"referrer" => "stackoverflow.com", "count" => 2, "uniques" => 2},
{"referrer" => "eggsonbread.com", "count" => 1, "uniques" => 1},
{"referrer" => "yandex.ru", "count" => 1, "uniques" => 1}]
TRAFFIC_CONTENTS ||= [
{
"path" => "/github/hubot",
"title" => "github/hubot: A customizable life embetterment robot.",
"count" => 3542,
"uniques" => 2225
},
{
"path" => "/github/hubot/blob/master/docs/scripting.md",
"title" => "hubot/scripting.md at master · github/hubot · GitHub",
"count" => 1707,
"uniques" => 804
},
{
"path" => "/github/hubot/tree/master/docs",
"title" => "hubot/docs at master · github/hubot · GitHub",
"count" => 685,
"uniques" => 435
},
{
"path" => "/github/hubot/tree/master/src",
"title" => "hubot/src at master · github/hubot · GitHub",
"count" => 577,
"uniques" => 347
},
{
"path" => "/github/hubot/blob/master/docs/index.md",
"title" => "hubot/index.md at master · github/hubot · GitHub",
"count" => 379,
"uniques" => 259
},
{
"path" => "/github/hubot/blob/master/docs/adapters.md",
"title" => "hubot/adapters.md at master · github/hubot · GitHub",
"count" => 354,
"uniques" => 201
},
{
"path" => "/github/hubot/tree/master/examples",
"title" => "hubot/examples at master · github/hubot · GitHub",
"count" => 340,
"uniques" => 260
},
{
"path" => "/github/hubot/blob/master/docs/deploying/heroku.md",
"title" => "hubot/heroku.md at master · github/hubot · GitHub",
"count" => 324,
"uniques" => 217
},
{
"path" => "/github/hubot/blob/master/src/robot.coffee",
"title" => "hubot/robot.coffee at master · github/hubot · GitHub",
"count" => 293,
"uniques" => 191
},
{
"path" => "/github/hubot/blob/master/LICENSE.md",
"title" => "hubot/LICENSE.md at master · github/hubot · GitHub",
"count" => 281,
"uniques" => 222
}]
TRAFFIC_VIEWS ||= {
"count" => 7,
"uniques" => 6,
"views" => [
{"timestamp" => 1464710400000, "count" => 1, "uniques" => 1},
{"timestamp" => 1464732000000, "count" => 2, "uniques" => 1},
{"timestamp" => 1465214400000, "count" => 1, "uniques" => 1},
{"timestamp" => 1465218000000, "count" => 1, "uniques" => 1},
{"timestamp" => 1465300800000, "count" => 2, "uniques" => 2}]}
TRAFFIC_CLONES ||= {
"count" => 7,
"uniques" => 6,
"clones" => [
{"timestamp" => 1464710400000, "count" => 1, "uniques" => 1},
{"timestamp" => 1464732000000, "count" => 2, "uniques" => 1},
{"timestamp" => 1465214400000, "count" => 1, "uniques" => 1},
{"timestamp" => 1465218000000, "count" => 1, "uniques" => 1},
{"timestamp" => 1465300800000, "count" => 2, "uniques" => 2}]}
end
end
end