consadole_aggregator 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +33 -0
- data/Rakefile +41 -22
- data/VERSION +1 -1
- data/account.yaml +6 -0
- data/bin/consadole_aggregator +47 -0
- data/consadole_aggregator.gemspec +193 -152
- data/db/.gitignore +0 -0
- data/lib/consadole_aggregator/helper.rb +20 -0
- data/lib/consadole_aggregator/live/timeline.rb +13 -0
- data/lib/consadole_aggregator/live.rb +79 -0
- data/lib/consadole_aggregator/news.rb +165 -0
- data/lib/consadole_aggregator.rb +5 -19
- data/log/.gitignore +0 -0
- data/spec/consadole_aggregator/helper_spec.rb +27 -0
- data/spec/consadole_aggregator/live/timeline_spec.rb +53 -0
- data/spec/consadole_aggregator/live_spec.rb +139 -0
- data/spec/consadole_aggregator/news_spec.rb +156 -0
- data/spec/ext/asahi.txt +1068 -0
- data/spec/ext/consaburn.txt +660 -0
- data/spec/ext/consaclub.txt +677 -0
- data/spec/ext/consadolenews.txt +251 -0
- data/spec/ext/consadolephotos.txt +5 -0
- data/spec/ext/consadolesponsornews.txt +229 -0
- data/spec/ext/forzaconsadole.txt +1038 -0
- data/spec/ext/hochiyomiuri.txt +783 -0
- data/spec/ext/jsgoalnews.txt +421 -0
- data/spec/ext/jsgoalphotos.txt +322 -0
- data/spec/ext/nikkansports.txt +478 -0
- data/spec/spec.opts +1 -1
- data/spec/spec_helper.rb +11 -4
- metadata +240 -157
- data/.gitignore +0 -3
- data/lib/consadole_aggregator/live/builder.rb +0 -44
- data/lib/consadole_aggregator/live/parser.rb +0 -26
- data/lib/consadole_aggregator/nikkan_sports.rb +0 -61
- data/spec/consadole_aggregator_spec.rb +0 -2
- data/spec/nikkan_sports/consadole.rdf +0 -478
- data/spec/nikkan_sports/nikkan_sports_spec.rb +0 -62
- data/spec/nikkan_sports/p-sc-tp0-20091225-579346.html +0 -1547
- data/spec/nikkan_sports/p-sc-tp0-20100204-592466.html +0 -1538
- /data/spec/{timeline → ext/live}/s674.html +0 -0
- /data/spec/{timeline → ext/live}/s674.html.1 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.10 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.100 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.101 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.102 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.103 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.104 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.105 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.106 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.107 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.108 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.109 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.11 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.110 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.111 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.112 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.113 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.114 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.115 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.116 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.117 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.118 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.119 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.12 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.120 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.13 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.14 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.15 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.16 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.17 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.18 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.19 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.2 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.20 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.21 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.22 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.23 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.24 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.25 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.26 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.27 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.28 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.29 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.3 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.30 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.31 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.32 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.33 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.34 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.35 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.36 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.37 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.38 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.39 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.4 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.40 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.41 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.42 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.43 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.44 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.45 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.46 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.47 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.48 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.49 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.5 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.50 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.51 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.52 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.53 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.54 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.55 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.56 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.57 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.58 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.59 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.6 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.60 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.61 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.62 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.63 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.64 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.65 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.66 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.67 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.68 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.69 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.7 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.70 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.71 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.72 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.73 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.74 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.75 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.76 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.77 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.78 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.79 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.8 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.80 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.81 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.82 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.83 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.84 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.85 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.86 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.87 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.88 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.89 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.9 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.90 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.91 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.92 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.93 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.94 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.95 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.96 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.97 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.98 +0 -0
- /data/spec/{timeline → ext/live}/s674.html.99 +0 -0
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consadole_aggregator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.0
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- niku
|
@@ -9,204 +10,286 @@ autorequire:
|
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
13
|
+
date: 2011-05-05 00:00:00 +09:00
|
14
|
+
default_executable: consadole_aggregator
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
+
name: rspec
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
17
24
|
type: :development
|
18
|
-
|
19
|
-
version_requirements:
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
20
31
|
requirements:
|
21
32
|
- - ">="
|
22
33
|
- !ruby/object:Gem::Version
|
23
34
|
version: "0"
|
24
|
-
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *id002
|
25
38
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
39
|
+
name: jeweler
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
27
46
|
type: :development
|
28
|
-
|
29
|
-
version_requirements:
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rcov
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: nokogiri
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
30
64
|
requirements:
|
31
65
|
- - ">="
|
32
66
|
- !ruby/object:Gem::Version
|
33
67
|
version: "0"
|
34
|
-
|
35
|
-
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: oauth
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *id006
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rubytter
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: *id007
|
93
|
+
description: " It aggregates infomation of 'Consadole Sapporo' "
|
36
94
|
email: niku@niku.name
|
37
|
-
executables:
|
38
|
-
|
95
|
+
executables:
|
96
|
+
- consadole_aggregator
|
39
97
|
extensions: []
|
40
98
|
|
41
|
-
extra_rdoc_files:
|
42
|
-
|
99
|
+
extra_rdoc_files:
|
100
|
+
- LICENSE.txt
|
101
|
+
- README.rdoc
|
43
102
|
files:
|
44
|
-
- .
|
103
|
+
- .document
|
104
|
+
- .rspec
|
105
|
+
- Gemfile
|
106
|
+
- Gemfile.lock
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.rdoc
|
45
109
|
- Rakefile
|
46
110
|
- VERSION
|
111
|
+
- account.yaml
|
112
|
+
- bin/consadole_aggregator
|
47
113
|
- consadole_aggregator.gemspec
|
114
|
+
- db/.gitignore
|
48
115
|
- lib/consadole_aggregator.rb
|
116
|
+
- lib/consadole_aggregator/helper.rb
|
49
117
|
- lib/consadole_aggregator/live.rb
|
50
|
-
- lib/consadole_aggregator/live/
|
51
|
-
- lib/consadole_aggregator/
|
52
|
-
-
|
53
|
-
- spec/
|
54
|
-
- spec/
|
55
|
-
- spec/
|
56
|
-
- spec/
|
57
|
-
- spec/
|
118
|
+
- lib/consadole_aggregator/live/timeline.rb
|
119
|
+
- lib/consadole_aggregator/news.rb
|
120
|
+
- log/.gitignore
|
121
|
+
- spec/consadole_aggregator/helper_spec.rb
|
122
|
+
- spec/consadole_aggregator/live/timeline_spec.rb
|
123
|
+
- spec/consadole_aggregator/live_spec.rb
|
124
|
+
- spec/consadole_aggregator/news_spec.rb
|
125
|
+
- spec/ext/asahi.txt
|
126
|
+
- spec/ext/consaburn.txt
|
127
|
+
- spec/ext/consaclub.txt
|
128
|
+
- spec/ext/consadolenews.txt
|
129
|
+
- spec/ext/consadolephotos.txt
|
130
|
+
- spec/ext/consadolesponsornews.txt
|
131
|
+
- spec/ext/forzaconsadole.txt
|
132
|
+
- spec/ext/hochiyomiuri.txt
|
133
|
+
- spec/ext/jsgoalnews.txt
|
134
|
+
- spec/ext/jsgoalphotos.txt
|
135
|
+
- spec/ext/live/s674.html
|
136
|
+
- spec/ext/live/s674.html.1
|
137
|
+
- spec/ext/live/s674.html.10
|
138
|
+
- spec/ext/live/s674.html.100
|
139
|
+
- spec/ext/live/s674.html.101
|
140
|
+
- spec/ext/live/s674.html.102
|
141
|
+
- spec/ext/live/s674.html.103
|
142
|
+
- spec/ext/live/s674.html.104
|
143
|
+
- spec/ext/live/s674.html.105
|
144
|
+
- spec/ext/live/s674.html.106
|
145
|
+
- spec/ext/live/s674.html.107
|
146
|
+
- spec/ext/live/s674.html.108
|
147
|
+
- spec/ext/live/s674.html.109
|
148
|
+
- spec/ext/live/s674.html.11
|
149
|
+
- spec/ext/live/s674.html.110
|
150
|
+
- spec/ext/live/s674.html.111
|
151
|
+
- spec/ext/live/s674.html.112
|
152
|
+
- spec/ext/live/s674.html.113
|
153
|
+
- spec/ext/live/s674.html.114
|
154
|
+
- spec/ext/live/s674.html.115
|
155
|
+
- spec/ext/live/s674.html.116
|
156
|
+
- spec/ext/live/s674.html.117
|
157
|
+
- spec/ext/live/s674.html.118
|
158
|
+
- spec/ext/live/s674.html.119
|
159
|
+
- spec/ext/live/s674.html.12
|
160
|
+
- spec/ext/live/s674.html.120
|
161
|
+
- spec/ext/live/s674.html.13
|
162
|
+
- spec/ext/live/s674.html.14
|
163
|
+
- spec/ext/live/s674.html.15
|
164
|
+
- spec/ext/live/s674.html.16
|
165
|
+
- spec/ext/live/s674.html.17
|
166
|
+
- spec/ext/live/s674.html.18
|
167
|
+
- spec/ext/live/s674.html.19
|
168
|
+
- spec/ext/live/s674.html.2
|
169
|
+
- spec/ext/live/s674.html.20
|
170
|
+
- spec/ext/live/s674.html.21
|
171
|
+
- spec/ext/live/s674.html.22
|
172
|
+
- spec/ext/live/s674.html.23
|
173
|
+
- spec/ext/live/s674.html.24
|
174
|
+
- spec/ext/live/s674.html.25
|
175
|
+
- spec/ext/live/s674.html.26
|
176
|
+
- spec/ext/live/s674.html.27
|
177
|
+
- spec/ext/live/s674.html.28
|
178
|
+
- spec/ext/live/s674.html.29
|
179
|
+
- spec/ext/live/s674.html.3
|
180
|
+
- spec/ext/live/s674.html.30
|
181
|
+
- spec/ext/live/s674.html.31
|
182
|
+
- spec/ext/live/s674.html.32
|
183
|
+
- spec/ext/live/s674.html.33
|
184
|
+
- spec/ext/live/s674.html.34
|
185
|
+
- spec/ext/live/s674.html.35
|
186
|
+
- spec/ext/live/s674.html.36
|
187
|
+
- spec/ext/live/s674.html.37
|
188
|
+
- spec/ext/live/s674.html.38
|
189
|
+
- spec/ext/live/s674.html.39
|
190
|
+
- spec/ext/live/s674.html.4
|
191
|
+
- spec/ext/live/s674.html.40
|
192
|
+
- spec/ext/live/s674.html.41
|
193
|
+
- spec/ext/live/s674.html.42
|
194
|
+
- spec/ext/live/s674.html.43
|
195
|
+
- spec/ext/live/s674.html.44
|
196
|
+
- spec/ext/live/s674.html.45
|
197
|
+
- spec/ext/live/s674.html.46
|
198
|
+
- spec/ext/live/s674.html.47
|
199
|
+
- spec/ext/live/s674.html.48
|
200
|
+
- spec/ext/live/s674.html.49
|
201
|
+
- spec/ext/live/s674.html.5
|
202
|
+
- spec/ext/live/s674.html.50
|
203
|
+
- spec/ext/live/s674.html.51
|
204
|
+
- spec/ext/live/s674.html.52
|
205
|
+
- spec/ext/live/s674.html.53
|
206
|
+
- spec/ext/live/s674.html.54
|
207
|
+
- spec/ext/live/s674.html.55
|
208
|
+
- spec/ext/live/s674.html.56
|
209
|
+
- spec/ext/live/s674.html.57
|
210
|
+
- spec/ext/live/s674.html.58
|
211
|
+
- spec/ext/live/s674.html.59
|
212
|
+
- spec/ext/live/s674.html.6
|
213
|
+
- spec/ext/live/s674.html.60
|
214
|
+
- spec/ext/live/s674.html.61
|
215
|
+
- spec/ext/live/s674.html.62
|
216
|
+
- spec/ext/live/s674.html.63
|
217
|
+
- spec/ext/live/s674.html.64
|
218
|
+
- spec/ext/live/s674.html.65
|
219
|
+
- spec/ext/live/s674.html.66
|
220
|
+
- spec/ext/live/s674.html.67
|
221
|
+
- spec/ext/live/s674.html.68
|
222
|
+
- spec/ext/live/s674.html.69
|
223
|
+
- spec/ext/live/s674.html.7
|
224
|
+
- spec/ext/live/s674.html.70
|
225
|
+
- spec/ext/live/s674.html.71
|
226
|
+
- spec/ext/live/s674.html.72
|
227
|
+
- spec/ext/live/s674.html.73
|
228
|
+
- spec/ext/live/s674.html.74
|
229
|
+
- spec/ext/live/s674.html.75
|
230
|
+
- spec/ext/live/s674.html.76
|
231
|
+
- spec/ext/live/s674.html.77
|
232
|
+
- spec/ext/live/s674.html.78
|
233
|
+
- spec/ext/live/s674.html.79
|
234
|
+
- spec/ext/live/s674.html.8
|
235
|
+
- spec/ext/live/s674.html.80
|
236
|
+
- spec/ext/live/s674.html.81
|
237
|
+
- spec/ext/live/s674.html.82
|
238
|
+
- spec/ext/live/s674.html.83
|
239
|
+
- spec/ext/live/s674.html.84
|
240
|
+
- spec/ext/live/s674.html.85
|
241
|
+
- spec/ext/live/s674.html.86
|
242
|
+
- spec/ext/live/s674.html.87
|
243
|
+
- spec/ext/live/s674.html.88
|
244
|
+
- spec/ext/live/s674.html.89
|
245
|
+
- spec/ext/live/s674.html.9
|
246
|
+
- spec/ext/live/s674.html.90
|
247
|
+
- spec/ext/live/s674.html.91
|
248
|
+
- spec/ext/live/s674.html.92
|
249
|
+
- spec/ext/live/s674.html.93
|
250
|
+
- spec/ext/live/s674.html.94
|
251
|
+
- spec/ext/live/s674.html.95
|
252
|
+
- spec/ext/live/s674.html.96
|
253
|
+
- spec/ext/live/s674.html.97
|
254
|
+
- spec/ext/live/s674.html.98
|
255
|
+
- spec/ext/live/s674.html.99
|
256
|
+
- spec/ext/nikkansports.txt
|
58
257
|
- spec/spec.opts
|
59
258
|
- spec/spec_helper.rb
|
60
|
-
- spec/timeline/s674.html
|
61
|
-
- spec/timeline/s674.html.1
|
62
|
-
- spec/timeline/s674.html.10
|
63
|
-
- spec/timeline/s674.html.100
|
64
|
-
- spec/timeline/s674.html.101
|
65
|
-
- spec/timeline/s674.html.102
|
66
|
-
- spec/timeline/s674.html.103
|
67
|
-
- spec/timeline/s674.html.104
|
68
|
-
- spec/timeline/s674.html.105
|
69
|
-
- spec/timeline/s674.html.106
|
70
|
-
- spec/timeline/s674.html.107
|
71
|
-
- spec/timeline/s674.html.108
|
72
|
-
- spec/timeline/s674.html.109
|
73
|
-
- spec/timeline/s674.html.11
|
74
|
-
- spec/timeline/s674.html.110
|
75
|
-
- spec/timeline/s674.html.111
|
76
|
-
- spec/timeline/s674.html.112
|
77
|
-
- spec/timeline/s674.html.113
|
78
|
-
- spec/timeline/s674.html.114
|
79
|
-
- spec/timeline/s674.html.115
|
80
|
-
- spec/timeline/s674.html.116
|
81
|
-
- spec/timeline/s674.html.117
|
82
|
-
- spec/timeline/s674.html.118
|
83
|
-
- spec/timeline/s674.html.119
|
84
|
-
- spec/timeline/s674.html.12
|
85
|
-
- spec/timeline/s674.html.120
|
86
|
-
- spec/timeline/s674.html.13
|
87
|
-
- spec/timeline/s674.html.14
|
88
|
-
- spec/timeline/s674.html.15
|
89
|
-
- spec/timeline/s674.html.16
|
90
|
-
- spec/timeline/s674.html.17
|
91
|
-
- spec/timeline/s674.html.18
|
92
|
-
- spec/timeline/s674.html.19
|
93
|
-
- spec/timeline/s674.html.2
|
94
|
-
- spec/timeline/s674.html.20
|
95
|
-
- spec/timeline/s674.html.21
|
96
|
-
- spec/timeline/s674.html.22
|
97
|
-
- spec/timeline/s674.html.23
|
98
|
-
- spec/timeline/s674.html.24
|
99
|
-
- spec/timeline/s674.html.25
|
100
|
-
- spec/timeline/s674.html.26
|
101
|
-
- spec/timeline/s674.html.27
|
102
|
-
- spec/timeline/s674.html.28
|
103
|
-
- spec/timeline/s674.html.29
|
104
|
-
- spec/timeline/s674.html.3
|
105
|
-
- spec/timeline/s674.html.30
|
106
|
-
- spec/timeline/s674.html.31
|
107
|
-
- spec/timeline/s674.html.32
|
108
|
-
- spec/timeline/s674.html.33
|
109
|
-
- spec/timeline/s674.html.34
|
110
|
-
- spec/timeline/s674.html.35
|
111
|
-
- spec/timeline/s674.html.36
|
112
|
-
- spec/timeline/s674.html.37
|
113
|
-
- spec/timeline/s674.html.38
|
114
|
-
- spec/timeline/s674.html.39
|
115
|
-
- spec/timeline/s674.html.4
|
116
|
-
- spec/timeline/s674.html.40
|
117
|
-
- spec/timeline/s674.html.41
|
118
|
-
- spec/timeline/s674.html.42
|
119
|
-
- spec/timeline/s674.html.43
|
120
|
-
- spec/timeline/s674.html.44
|
121
|
-
- spec/timeline/s674.html.45
|
122
|
-
- spec/timeline/s674.html.46
|
123
|
-
- spec/timeline/s674.html.47
|
124
|
-
- spec/timeline/s674.html.48
|
125
|
-
- spec/timeline/s674.html.49
|
126
|
-
- spec/timeline/s674.html.5
|
127
|
-
- spec/timeline/s674.html.50
|
128
|
-
- spec/timeline/s674.html.51
|
129
|
-
- spec/timeline/s674.html.52
|
130
|
-
- spec/timeline/s674.html.53
|
131
|
-
- spec/timeline/s674.html.54
|
132
|
-
- spec/timeline/s674.html.55
|
133
|
-
- spec/timeline/s674.html.56
|
134
|
-
- spec/timeline/s674.html.57
|
135
|
-
- spec/timeline/s674.html.58
|
136
|
-
- spec/timeline/s674.html.59
|
137
|
-
- spec/timeline/s674.html.6
|
138
|
-
- spec/timeline/s674.html.60
|
139
|
-
- spec/timeline/s674.html.61
|
140
|
-
- spec/timeline/s674.html.62
|
141
|
-
- spec/timeline/s674.html.63
|
142
|
-
- spec/timeline/s674.html.64
|
143
|
-
- spec/timeline/s674.html.65
|
144
|
-
- spec/timeline/s674.html.66
|
145
|
-
- spec/timeline/s674.html.67
|
146
|
-
- spec/timeline/s674.html.68
|
147
|
-
- spec/timeline/s674.html.69
|
148
|
-
- spec/timeline/s674.html.7
|
149
|
-
- spec/timeline/s674.html.70
|
150
|
-
- spec/timeline/s674.html.71
|
151
|
-
- spec/timeline/s674.html.72
|
152
|
-
- spec/timeline/s674.html.73
|
153
|
-
- spec/timeline/s674.html.74
|
154
|
-
- spec/timeline/s674.html.75
|
155
|
-
- spec/timeline/s674.html.76
|
156
|
-
- spec/timeline/s674.html.77
|
157
|
-
- spec/timeline/s674.html.78
|
158
|
-
- spec/timeline/s674.html.79
|
159
|
-
- spec/timeline/s674.html.8
|
160
|
-
- spec/timeline/s674.html.80
|
161
|
-
- spec/timeline/s674.html.81
|
162
|
-
- spec/timeline/s674.html.82
|
163
|
-
- spec/timeline/s674.html.83
|
164
|
-
- spec/timeline/s674.html.84
|
165
|
-
- spec/timeline/s674.html.85
|
166
|
-
- spec/timeline/s674.html.86
|
167
|
-
- spec/timeline/s674.html.87
|
168
|
-
- spec/timeline/s674.html.88
|
169
|
-
- spec/timeline/s674.html.89
|
170
|
-
- spec/timeline/s674.html.9
|
171
|
-
- spec/timeline/s674.html.90
|
172
|
-
- spec/timeline/s674.html.91
|
173
|
-
- spec/timeline/s674.html.92
|
174
|
-
- spec/timeline/s674.html.93
|
175
|
-
- spec/timeline/s674.html.94
|
176
|
-
- spec/timeline/s674.html.95
|
177
|
-
- spec/timeline/s674.html.96
|
178
|
-
- spec/timeline/s674.html.97
|
179
|
-
- spec/timeline/s674.html.98
|
180
|
-
- spec/timeline/s674.html.99
|
181
259
|
has_rdoc: true
|
182
260
|
homepage: http://github.com/niku/consadole_aggregator
|
183
|
-
licenses:
|
184
|
-
|
261
|
+
licenses:
|
262
|
+
- MIT
|
185
263
|
post_install_message:
|
186
|
-
rdoc_options:
|
187
|
-
|
264
|
+
rdoc_options: []
|
265
|
+
|
188
266
|
require_paths:
|
189
267
|
- lib
|
190
268
|
required_ruby_version: !ruby/object:Gem::Requirement
|
269
|
+
none: false
|
191
270
|
requirements:
|
192
271
|
- - ">="
|
193
272
|
- !ruby/object:Gem::Version
|
194
|
-
|
195
|
-
|
273
|
+
hash: 1235966052413796728
|
274
|
+
segments:
|
275
|
+
- 0
|
276
|
+
version: "0"
|
196
277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
|
+
none: false
|
197
279
|
requirements:
|
198
280
|
- - ">="
|
199
281
|
- !ruby/object:Gem::Version
|
200
282
|
version: "0"
|
201
|
-
version:
|
202
283
|
requirements: []
|
203
284
|
|
204
285
|
rubyforge_project:
|
205
|
-
rubygems_version: 1.
|
286
|
+
rubygems_version: 1.5.2
|
206
287
|
signing_key:
|
207
288
|
specification_version: 3
|
208
|
-
summary: Consadole Sapporo'
|
289
|
+
summary: It aggregates infomation of 'Consadole Sapporo'
|
209
290
|
test_files:
|
210
|
-
- spec/
|
211
|
-
- spec/
|
291
|
+
- spec/consadole_aggregator/helper_spec.rb
|
292
|
+
- spec/consadole_aggregator/live/timeline_spec.rb
|
293
|
+
- spec/consadole_aggregator/live_spec.rb
|
294
|
+
- spec/consadole_aggregator/news_spec.rb
|
212
295
|
- spec/spec_helper.rb
|
data/.gitignore
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'twitter'
|
3
|
-
|
4
|
-
module ConsadoleAggregator
|
5
|
-
module Live
|
6
|
-
module Builder
|
7
|
-
class Twit
|
8
|
-
def initialize
|
9
|
-
Process.daemon(true, false)
|
10
|
-
@client = Twitter::Client.from_config('config/account.yaml')
|
11
|
-
@posted = []
|
12
|
-
end
|
13
|
-
|
14
|
-
def post
|
15
|
-
new_line.each do |line|
|
16
|
-
@client.status(:post, "#{line.time} #{line.post} #consadole")
|
17
|
-
@posted << line
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def reserve start_time
|
22
|
-
start = Time.parse start_time
|
23
|
-
ConsadoleAggregator::log.info("#{start.to_time}くらいにはじめる予定")
|
24
|
-
sleep start - Time.now
|
25
|
-
|
26
|
-
live
|
27
|
-
end
|
28
|
-
|
29
|
-
def live
|
30
|
-
# サッカーはハーフタイム含めて120分位あれば終わる
|
31
|
-
120.times do
|
32
|
-
post
|
33
|
-
sleep 60
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
private
|
38
|
-
def new_line
|
39
|
-
ConsadoleAggregator::Live::Parser.parse - @posted
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'net/http'
|
3
|
-
require 'kconv'
|
4
|
-
|
5
|
-
module ConsadoleAggregator
|
6
|
-
module Live
|
7
|
-
module Parser
|
8
|
-
BASE_URI = URI.parse('http://www.consadole-sapporo.jp/view/s674.html')
|
9
|
-
TimeLine = Struct.new :time, :post do
|
10
|
-
def initialize line
|
11
|
-
tmp = line.split
|
12
|
-
self['time'] = tmp[0]
|
13
|
-
self['post'] = tmp[1]
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
def Parser.parse
|
18
|
-
response = Net::HTTP.get(BASE_URI).force_encoding("Shift_JIS")
|
19
|
-
doc = Nokogiri::HTML.parse(response.toutf8, nil, 'UTF-8')
|
20
|
-
doc.search('hr + p').last.inner_html.gsub(/<br>/,'').split("\n").map{ |line|
|
21
|
-
TimeLine.new line unless /<前半>|<後半>/ =~ line
|
22
|
-
}.compact.reverse
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,61 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'rss'
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
require 'hpricot' # 2009/12/26 現在 GAE では nokogiri が使えないので hpricot
|
6
|
-
require 'dm-core'
|
7
|
-
require 'dm-types'
|
8
|
-
require 'dm-validations'
|
9
|
-
|
10
|
-
module Consadole
|
11
|
-
module NikkanSports
|
12
|
-
class Entry
|
13
|
-
module Parser
|
14
|
-
def self.included mod
|
15
|
-
mod.extend ClassMethods
|
16
|
-
end
|
17
|
-
|
18
|
-
module ClassMethods
|
19
|
-
def parse uri, doc
|
20
|
-
target = Hpricot(doc)
|
21
|
-
entry = self.new
|
22
|
-
entry.uri = uri
|
23
|
-
entry.title = target.at('h1').inner_text
|
24
|
-
entry.text = target.search('div#news p')[0...-1].to_html.gsub(/【.+】<\/p>$/,'</p>')
|
25
|
-
entry.auther = target.search('div#news p')[0...-1].to_html.match(/【(.+)】<\/p>$/).to_a[1]
|
26
|
-
entry.post_date = Time.strptime(target.search('p.timeStamp').inner_text.match(/\d+年\d+月\d+日\d+時\d+分/).to_s, '%Y年%m月%d日%H時%M分')
|
27
|
-
if tmp = target.at('dl.photo img')
|
28
|
-
source = IMAGE_BASE_URI + tmp['src'].sub(/\.jpg$/, '-big.jpg')
|
29
|
-
entry.image_src = source
|
30
|
-
entry.image_binary = Net::HTTP.get(source)
|
31
|
-
entry.image_alt = tmp['alt']
|
32
|
-
end
|
33
|
-
entry
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
IMAGE_BASE_URI = URI.parse('http://cache2.nipc.jp/soccer/news/')
|
39
|
-
|
40
|
-
include Parser
|
41
|
-
include DataMapper::Resource
|
42
|
-
|
43
|
-
property :id, Serial
|
44
|
-
property :uri, URI, :unique => true
|
45
|
-
property :title, String
|
46
|
-
property :text, Text
|
47
|
-
property :auther, String
|
48
|
-
property :post_date, Time
|
49
|
-
property :image_src, URI
|
50
|
-
property :image_alt, String
|
51
|
-
property :image_binary, Object
|
52
|
-
end
|
53
|
-
|
54
|
-
FEED_URI = URI.parse('http://www.nikkansports.com/rss/soccer/jleague/consadole.rdf')
|
55
|
-
|
56
|
-
def NikkanSports.uris
|
57
|
-
rss = RSS::Parser.parse(FEED_URI, false)
|
58
|
-
rss.items.map(&:link)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|