consadole_aggregator 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +1 -1
- data/lib/consadole_aggregator/news.rb +14 -0
- data/lib/consadole_aggregator/version.rb +1 -1
- metadata +141 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0820887aa25ffcd021507a6c5771e2be48772e66
|
4
|
+
data.tar.gz: 564fcf2b6ece38bf93dc2d37e032f79712585a25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1403997f99309a3dfb43e831297f1e2244007dbb216678f76902e4c228c94f3a2b1e461cb0ec3bff9160c936204ae92d219b543cd37d81ae74935dc41996a204
|
7
|
+
data.tar.gz: f7663b42b60bace96da3569d1afd5bfdafb6b5fc1a6cedc347029b90f0fec1e71c200ed021470bc7f9b9f599a71c6d97afe42cc6dc6241f5e03fd4fb1667c280
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0-
|
1
|
+
2.0.0-p195
|
data/Gemfile.lock
CHANGED
@@ -160,6 +160,20 @@ module ConsadoleAggregator
|
|
160
160
|
site.parse_article { |article| { url: article['src'], title: article['alt'] } }
|
161
161
|
end
|
162
162
|
|
163
|
+
sites.name(:consadoletickets) do |site|
|
164
|
+
site.resource { HTTPClient.get_content('http://www.consadole-sapporo.jp/').force_encoding('UTF-8') }
|
165
|
+
site.parse_list { |list| Nokogiri::XML(list).search('#next-homegame') }
|
166
|
+
site.parse_article { |article|
|
167
|
+
next_match = article.at('dd').text.tr("\n", ' ')
|
168
|
+
target = article.at('li.target').text
|
169
|
+
now = article.at('li.now').text
|
170
|
+
{
|
171
|
+
url: 'http://www.consadole-sapporo.jp/ticket/guide/',
|
172
|
+
title: "次のホームゲーム:#{next_match}, 目標チケット販売数:#{target}, 現在チケット販売数:#{now}"
|
173
|
+
}
|
174
|
+
}
|
175
|
+
end
|
176
|
+
|
163
177
|
sites.name(:jsgoalnews) do |site|
|
164
178
|
site.resource { HTTPClient.get_content('http://feeds.feedburner.com/jsgoal/jsgoal?format=xml').encode('UTF-8') }
|
165
179
|
site.parse_list { |list|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consadole_aggregator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- niku
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -329,8 +329,145 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
329
|
version: '0'
|
330
330
|
requirements: []
|
331
331
|
rubyforge_project: consadole_aggregator
|
332
|
-
rubygems_version: 2.0.
|
332
|
+
rubygems_version: 2.0.2
|
333
333
|
signing_key:
|
334
334
|
specification_version: 4
|
335
335
|
summary: aggregates infomation of 'Consadole Sapporo'
|
336
|
-
test_files:
|
336
|
+
test_files:
|
337
|
+
- spec/consadole_aggregator/helper_spec.rb
|
338
|
+
- spec/consadole_aggregator/live_spec.rb
|
339
|
+
- spec/consadole_aggregator/news_spec.rb
|
340
|
+
- spec/consadole_aggregator_spec.rb
|
341
|
+
- spec/ext/asahi.txt
|
342
|
+
- spec/ext/clubconsadole.txt
|
343
|
+
- spec/ext/consaburn.txt
|
344
|
+
- spec/ext/consaclub.txt
|
345
|
+
- spec/ext/consadolenews.txt
|
346
|
+
- spec/ext/consadolephotos.txt
|
347
|
+
- spec/ext/forzaconsadole.txt
|
348
|
+
- spec/ext/hochiyomiuri.txt
|
349
|
+
- spec/ext/jsgoalnews.txt
|
350
|
+
- spec/ext/jsgoalphotos.txt
|
351
|
+
- spec/ext/live/s674.html
|
352
|
+
- spec/ext/live/s674.html.1
|
353
|
+
- spec/ext/live/s674.html.10
|
354
|
+
- spec/ext/live/s674.html.100
|
355
|
+
- spec/ext/live/s674.html.101
|
356
|
+
- spec/ext/live/s674.html.102
|
357
|
+
- spec/ext/live/s674.html.103
|
358
|
+
- spec/ext/live/s674.html.104
|
359
|
+
- spec/ext/live/s674.html.105
|
360
|
+
- spec/ext/live/s674.html.106
|
361
|
+
- spec/ext/live/s674.html.107
|
362
|
+
- spec/ext/live/s674.html.108
|
363
|
+
- spec/ext/live/s674.html.109
|
364
|
+
- spec/ext/live/s674.html.11
|
365
|
+
- spec/ext/live/s674.html.110
|
366
|
+
- spec/ext/live/s674.html.111
|
367
|
+
- spec/ext/live/s674.html.112
|
368
|
+
- spec/ext/live/s674.html.113
|
369
|
+
- spec/ext/live/s674.html.114
|
370
|
+
- spec/ext/live/s674.html.115
|
371
|
+
- spec/ext/live/s674.html.116
|
372
|
+
- spec/ext/live/s674.html.117
|
373
|
+
- spec/ext/live/s674.html.118
|
374
|
+
- spec/ext/live/s674.html.119
|
375
|
+
- spec/ext/live/s674.html.12
|
376
|
+
- spec/ext/live/s674.html.120
|
377
|
+
- spec/ext/live/s674.html.13
|
378
|
+
- spec/ext/live/s674.html.14
|
379
|
+
- spec/ext/live/s674.html.15
|
380
|
+
- spec/ext/live/s674.html.16
|
381
|
+
- spec/ext/live/s674.html.17
|
382
|
+
- spec/ext/live/s674.html.18
|
383
|
+
- spec/ext/live/s674.html.19
|
384
|
+
- spec/ext/live/s674.html.2
|
385
|
+
- spec/ext/live/s674.html.20
|
386
|
+
- spec/ext/live/s674.html.21
|
387
|
+
- spec/ext/live/s674.html.22
|
388
|
+
- spec/ext/live/s674.html.23
|
389
|
+
- spec/ext/live/s674.html.24
|
390
|
+
- spec/ext/live/s674.html.25
|
391
|
+
- spec/ext/live/s674.html.26
|
392
|
+
- spec/ext/live/s674.html.27
|
393
|
+
- spec/ext/live/s674.html.28
|
394
|
+
- spec/ext/live/s674.html.29
|
395
|
+
- spec/ext/live/s674.html.3
|
396
|
+
- spec/ext/live/s674.html.30
|
397
|
+
- spec/ext/live/s674.html.31
|
398
|
+
- spec/ext/live/s674.html.32
|
399
|
+
- spec/ext/live/s674.html.33
|
400
|
+
- spec/ext/live/s674.html.34
|
401
|
+
- spec/ext/live/s674.html.35
|
402
|
+
- spec/ext/live/s674.html.36
|
403
|
+
- spec/ext/live/s674.html.37
|
404
|
+
- spec/ext/live/s674.html.38
|
405
|
+
- spec/ext/live/s674.html.39
|
406
|
+
- spec/ext/live/s674.html.4
|
407
|
+
- spec/ext/live/s674.html.40
|
408
|
+
- spec/ext/live/s674.html.41
|
409
|
+
- spec/ext/live/s674.html.42
|
410
|
+
- spec/ext/live/s674.html.43
|
411
|
+
- spec/ext/live/s674.html.44
|
412
|
+
- spec/ext/live/s674.html.45
|
413
|
+
- spec/ext/live/s674.html.46
|
414
|
+
- spec/ext/live/s674.html.47
|
415
|
+
- spec/ext/live/s674.html.48
|
416
|
+
- spec/ext/live/s674.html.49
|
417
|
+
- spec/ext/live/s674.html.5
|
418
|
+
- spec/ext/live/s674.html.50
|
419
|
+
- spec/ext/live/s674.html.51
|
420
|
+
- spec/ext/live/s674.html.52
|
421
|
+
- spec/ext/live/s674.html.53
|
422
|
+
- spec/ext/live/s674.html.54
|
423
|
+
- spec/ext/live/s674.html.55
|
424
|
+
- spec/ext/live/s674.html.56
|
425
|
+
- spec/ext/live/s674.html.57
|
426
|
+
- spec/ext/live/s674.html.58
|
427
|
+
- spec/ext/live/s674.html.59
|
428
|
+
- spec/ext/live/s674.html.6
|
429
|
+
- spec/ext/live/s674.html.60
|
430
|
+
- spec/ext/live/s674.html.61
|
431
|
+
- spec/ext/live/s674.html.62
|
432
|
+
- spec/ext/live/s674.html.63
|
433
|
+
- spec/ext/live/s674.html.64
|
434
|
+
- spec/ext/live/s674.html.65
|
435
|
+
- spec/ext/live/s674.html.66
|
436
|
+
- spec/ext/live/s674.html.67
|
437
|
+
- spec/ext/live/s674.html.68
|
438
|
+
- spec/ext/live/s674.html.69
|
439
|
+
- spec/ext/live/s674.html.7
|
440
|
+
- spec/ext/live/s674.html.70
|
441
|
+
- spec/ext/live/s674.html.71
|
442
|
+
- spec/ext/live/s674.html.72
|
443
|
+
- spec/ext/live/s674.html.73
|
444
|
+
- spec/ext/live/s674.html.74
|
445
|
+
- spec/ext/live/s674.html.75
|
446
|
+
- spec/ext/live/s674.html.76
|
447
|
+
- spec/ext/live/s674.html.77
|
448
|
+
- spec/ext/live/s674.html.78
|
449
|
+
- spec/ext/live/s674.html.79
|
450
|
+
- spec/ext/live/s674.html.8
|
451
|
+
- spec/ext/live/s674.html.80
|
452
|
+
- spec/ext/live/s674.html.81
|
453
|
+
- spec/ext/live/s674.html.82
|
454
|
+
- spec/ext/live/s674.html.83
|
455
|
+
- spec/ext/live/s674.html.84
|
456
|
+
- spec/ext/live/s674.html.85
|
457
|
+
- spec/ext/live/s674.html.86
|
458
|
+
- spec/ext/live/s674.html.87
|
459
|
+
- spec/ext/live/s674.html.88
|
460
|
+
- spec/ext/live/s674.html.89
|
461
|
+
- spec/ext/live/s674.html.9
|
462
|
+
- spec/ext/live/s674.html.90
|
463
|
+
- spec/ext/live/s674.html.91
|
464
|
+
- spec/ext/live/s674.html.92
|
465
|
+
- spec/ext/live/s674.html.93
|
466
|
+
- spec/ext/live/s674.html.94
|
467
|
+
- spec/ext/live/s674.html.95
|
468
|
+
- spec/ext/live/s674.html.96
|
469
|
+
- spec/ext/live/s674.html.97
|
470
|
+
- spec/ext/live/s674.html.98
|
471
|
+
- spec/ext/live/s674.html.99
|
472
|
+
- spec/ext/nikkansports.txt
|
473
|
+
- spec/spec_helper.rb
|