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.
Files changed (166) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +10 -0
  4. data/Gemfile.lock +37 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.rdoc +33 -0
  7. data/Rakefile +41 -22
  8. data/VERSION +1 -1
  9. data/account.yaml +6 -0
  10. data/bin/consadole_aggregator +47 -0
  11. data/consadole_aggregator.gemspec +193 -152
  12. data/db/.gitignore +0 -0
  13. data/lib/consadole_aggregator/helper.rb +20 -0
  14. data/lib/consadole_aggregator/live/timeline.rb +13 -0
  15. data/lib/consadole_aggregator/live.rb +79 -0
  16. data/lib/consadole_aggregator/news.rb +165 -0
  17. data/lib/consadole_aggregator.rb +5 -19
  18. data/log/.gitignore +0 -0
  19. data/spec/consadole_aggregator/helper_spec.rb +27 -0
  20. data/spec/consadole_aggregator/live/timeline_spec.rb +53 -0
  21. data/spec/consadole_aggregator/live_spec.rb +139 -0
  22. data/spec/consadole_aggregator/news_spec.rb +156 -0
  23. data/spec/ext/asahi.txt +1068 -0
  24. data/spec/ext/consaburn.txt +660 -0
  25. data/spec/ext/consaclub.txt +677 -0
  26. data/spec/ext/consadolenews.txt +251 -0
  27. data/spec/ext/consadolephotos.txt +5 -0
  28. data/spec/ext/consadolesponsornews.txt +229 -0
  29. data/spec/ext/forzaconsadole.txt +1038 -0
  30. data/spec/ext/hochiyomiuri.txt +783 -0
  31. data/spec/ext/jsgoalnews.txt +421 -0
  32. data/spec/ext/jsgoalphotos.txt +322 -0
  33. data/spec/ext/nikkansports.txt +478 -0
  34. data/spec/spec.opts +1 -1
  35. data/spec/spec_helper.rb +11 -4
  36. metadata +240 -157
  37. data/.gitignore +0 -3
  38. data/lib/consadole_aggregator/live/builder.rb +0 -44
  39. data/lib/consadole_aggregator/live/parser.rb +0 -26
  40. data/lib/consadole_aggregator/nikkan_sports.rb +0 -61
  41. data/spec/consadole_aggregator_spec.rb +0 -2
  42. data/spec/nikkan_sports/consadole.rdf +0 -478
  43. data/spec/nikkan_sports/nikkan_sports_spec.rb +0 -62
  44. data/spec/nikkan_sports/p-sc-tp0-20091225-579346.html +0 -1547
  45. data/spec/nikkan_sports/p-sc-tp0-20100204-592466.html +0 -1538
  46. /data/spec/{timeline → ext/live}/s674.html +0 -0
  47. /data/spec/{timeline → ext/live}/s674.html.1 +0 -0
  48. /data/spec/{timeline → ext/live}/s674.html.10 +0 -0
  49. /data/spec/{timeline → ext/live}/s674.html.100 +0 -0
  50. /data/spec/{timeline → ext/live}/s674.html.101 +0 -0
  51. /data/spec/{timeline → ext/live}/s674.html.102 +0 -0
  52. /data/spec/{timeline → ext/live}/s674.html.103 +0 -0
  53. /data/spec/{timeline → ext/live}/s674.html.104 +0 -0
  54. /data/spec/{timeline → ext/live}/s674.html.105 +0 -0
  55. /data/spec/{timeline → ext/live}/s674.html.106 +0 -0
  56. /data/spec/{timeline → ext/live}/s674.html.107 +0 -0
  57. /data/spec/{timeline → ext/live}/s674.html.108 +0 -0
  58. /data/spec/{timeline → ext/live}/s674.html.109 +0 -0
  59. /data/spec/{timeline → ext/live}/s674.html.11 +0 -0
  60. /data/spec/{timeline → ext/live}/s674.html.110 +0 -0
  61. /data/spec/{timeline → ext/live}/s674.html.111 +0 -0
  62. /data/spec/{timeline → ext/live}/s674.html.112 +0 -0
  63. /data/spec/{timeline → ext/live}/s674.html.113 +0 -0
  64. /data/spec/{timeline → ext/live}/s674.html.114 +0 -0
  65. /data/spec/{timeline → ext/live}/s674.html.115 +0 -0
  66. /data/spec/{timeline → ext/live}/s674.html.116 +0 -0
  67. /data/spec/{timeline → ext/live}/s674.html.117 +0 -0
  68. /data/spec/{timeline → ext/live}/s674.html.118 +0 -0
  69. /data/spec/{timeline → ext/live}/s674.html.119 +0 -0
  70. /data/spec/{timeline → ext/live}/s674.html.12 +0 -0
  71. /data/spec/{timeline → ext/live}/s674.html.120 +0 -0
  72. /data/spec/{timeline → ext/live}/s674.html.13 +0 -0
  73. /data/spec/{timeline → ext/live}/s674.html.14 +0 -0
  74. /data/spec/{timeline → ext/live}/s674.html.15 +0 -0
  75. /data/spec/{timeline → ext/live}/s674.html.16 +0 -0
  76. /data/spec/{timeline → ext/live}/s674.html.17 +0 -0
  77. /data/spec/{timeline → ext/live}/s674.html.18 +0 -0
  78. /data/spec/{timeline → ext/live}/s674.html.19 +0 -0
  79. /data/spec/{timeline → ext/live}/s674.html.2 +0 -0
  80. /data/spec/{timeline → ext/live}/s674.html.20 +0 -0
  81. /data/spec/{timeline → ext/live}/s674.html.21 +0 -0
  82. /data/spec/{timeline → ext/live}/s674.html.22 +0 -0
  83. /data/spec/{timeline → ext/live}/s674.html.23 +0 -0
  84. /data/spec/{timeline → ext/live}/s674.html.24 +0 -0
  85. /data/spec/{timeline → ext/live}/s674.html.25 +0 -0
  86. /data/spec/{timeline → ext/live}/s674.html.26 +0 -0
  87. /data/spec/{timeline → ext/live}/s674.html.27 +0 -0
  88. /data/spec/{timeline → ext/live}/s674.html.28 +0 -0
  89. /data/spec/{timeline → ext/live}/s674.html.29 +0 -0
  90. /data/spec/{timeline → ext/live}/s674.html.3 +0 -0
  91. /data/spec/{timeline → ext/live}/s674.html.30 +0 -0
  92. /data/spec/{timeline → ext/live}/s674.html.31 +0 -0
  93. /data/spec/{timeline → ext/live}/s674.html.32 +0 -0
  94. /data/spec/{timeline → ext/live}/s674.html.33 +0 -0
  95. /data/spec/{timeline → ext/live}/s674.html.34 +0 -0
  96. /data/spec/{timeline → ext/live}/s674.html.35 +0 -0
  97. /data/spec/{timeline → ext/live}/s674.html.36 +0 -0
  98. /data/spec/{timeline → ext/live}/s674.html.37 +0 -0
  99. /data/spec/{timeline → ext/live}/s674.html.38 +0 -0
  100. /data/spec/{timeline → ext/live}/s674.html.39 +0 -0
  101. /data/spec/{timeline → ext/live}/s674.html.4 +0 -0
  102. /data/spec/{timeline → ext/live}/s674.html.40 +0 -0
  103. /data/spec/{timeline → ext/live}/s674.html.41 +0 -0
  104. /data/spec/{timeline → ext/live}/s674.html.42 +0 -0
  105. /data/spec/{timeline → ext/live}/s674.html.43 +0 -0
  106. /data/spec/{timeline → ext/live}/s674.html.44 +0 -0
  107. /data/spec/{timeline → ext/live}/s674.html.45 +0 -0
  108. /data/spec/{timeline → ext/live}/s674.html.46 +0 -0
  109. /data/spec/{timeline → ext/live}/s674.html.47 +0 -0
  110. /data/spec/{timeline → ext/live}/s674.html.48 +0 -0
  111. /data/spec/{timeline → ext/live}/s674.html.49 +0 -0
  112. /data/spec/{timeline → ext/live}/s674.html.5 +0 -0
  113. /data/spec/{timeline → ext/live}/s674.html.50 +0 -0
  114. /data/spec/{timeline → ext/live}/s674.html.51 +0 -0
  115. /data/spec/{timeline → ext/live}/s674.html.52 +0 -0
  116. /data/spec/{timeline → ext/live}/s674.html.53 +0 -0
  117. /data/spec/{timeline → ext/live}/s674.html.54 +0 -0
  118. /data/spec/{timeline → ext/live}/s674.html.55 +0 -0
  119. /data/spec/{timeline → ext/live}/s674.html.56 +0 -0
  120. /data/spec/{timeline → ext/live}/s674.html.57 +0 -0
  121. /data/spec/{timeline → ext/live}/s674.html.58 +0 -0
  122. /data/spec/{timeline → ext/live}/s674.html.59 +0 -0
  123. /data/spec/{timeline → ext/live}/s674.html.6 +0 -0
  124. /data/spec/{timeline → ext/live}/s674.html.60 +0 -0
  125. /data/spec/{timeline → ext/live}/s674.html.61 +0 -0
  126. /data/spec/{timeline → ext/live}/s674.html.62 +0 -0
  127. /data/spec/{timeline → ext/live}/s674.html.63 +0 -0
  128. /data/spec/{timeline → ext/live}/s674.html.64 +0 -0
  129. /data/spec/{timeline → ext/live}/s674.html.65 +0 -0
  130. /data/spec/{timeline → ext/live}/s674.html.66 +0 -0
  131. /data/spec/{timeline → ext/live}/s674.html.67 +0 -0
  132. /data/spec/{timeline → ext/live}/s674.html.68 +0 -0
  133. /data/spec/{timeline → ext/live}/s674.html.69 +0 -0
  134. /data/spec/{timeline → ext/live}/s674.html.7 +0 -0
  135. /data/spec/{timeline → ext/live}/s674.html.70 +0 -0
  136. /data/spec/{timeline → ext/live}/s674.html.71 +0 -0
  137. /data/spec/{timeline → ext/live}/s674.html.72 +0 -0
  138. /data/spec/{timeline → ext/live}/s674.html.73 +0 -0
  139. /data/spec/{timeline → ext/live}/s674.html.74 +0 -0
  140. /data/spec/{timeline → ext/live}/s674.html.75 +0 -0
  141. /data/spec/{timeline → ext/live}/s674.html.76 +0 -0
  142. /data/spec/{timeline → ext/live}/s674.html.77 +0 -0
  143. /data/spec/{timeline → ext/live}/s674.html.78 +0 -0
  144. /data/spec/{timeline → ext/live}/s674.html.79 +0 -0
  145. /data/spec/{timeline → ext/live}/s674.html.8 +0 -0
  146. /data/spec/{timeline → ext/live}/s674.html.80 +0 -0
  147. /data/spec/{timeline → ext/live}/s674.html.81 +0 -0
  148. /data/spec/{timeline → ext/live}/s674.html.82 +0 -0
  149. /data/spec/{timeline → ext/live}/s674.html.83 +0 -0
  150. /data/spec/{timeline → ext/live}/s674.html.84 +0 -0
  151. /data/spec/{timeline → ext/live}/s674.html.85 +0 -0
  152. /data/spec/{timeline → ext/live}/s674.html.86 +0 -0
  153. /data/spec/{timeline → ext/live}/s674.html.87 +0 -0
  154. /data/spec/{timeline → ext/live}/s674.html.88 +0 -0
  155. /data/spec/{timeline → ext/live}/s674.html.89 +0 -0
  156. /data/spec/{timeline → ext/live}/s674.html.9 +0 -0
  157. /data/spec/{timeline → ext/live}/s674.html.90 +0 -0
  158. /data/spec/{timeline → ext/live}/s674.html.91 +0 -0
  159. /data/spec/{timeline → ext/live}/s674.html.92 +0 -0
  160. /data/spec/{timeline → ext/live}/s674.html.93 +0 -0
  161. /data/spec/{timeline → ext/live}/s674.html.94 +0 -0
  162. /data/spec/{timeline → ext/live}/s674.html.95 +0 -0
  163. /data/spec/{timeline → ext/live}/s674.html.96 +0 -0
  164. /data/spec/{timeline → ext/live}/s674.html.97 +0 -0
  165. /data/spec/{timeline → ext/live}/s674.html.98 +0 -0
  166. /data/spec/{timeline → ext/live}/s674.html.99 +0 -0
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color --format documentation
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source "http://rubygems.org"
2
+ group :development do
3
+ gem "rspec"
4
+ gem "bundler"
5
+ gem "jeweler"
6
+ gem "rcov"
7
+ gem "nokogiri"
8
+ gem "oauth"
9
+ gem "rubytter"
10
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.2)
5
+ git (1.2.5)
6
+ jeweler (1.5.2)
7
+ bundler (~> 1.0.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ json (1.5.1)
11
+ nokogiri (1.4.4)
12
+ oauth (0.4.4)
13
+ rake (0.8.7)
14
+ rcov (0.9.9)
15
+ rspec (2.5.0)
16
+ rspec-core (~> 2.5.0)
17
+ rspec-expectations (~> 2.5.0)
18
+ rspec-mocks (~> 2.5.0)
19
+ rspec-core (2.5.1)
20
+ rspec-expectations (2.5.0)
21
+ diff-lcs (~> 1.1.2)
22
+ rspec-mocks (2.5.0)
23
+ rubytter (1.4.2)
24
+ json (>= 1.1.3)
25
+ oauth (>= 0.3.6)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ bundler
32
+ jeweler
33
+ nokogiri
34
+ oauth
35
+ rcov
36
+ rspec
37
+ rubytter
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 niku
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,33 @@
1
+ = Consadole Aggregator
2
+
3
+ Aggregate infomation of 'Consadole Sapporo'.
4
+
5
+ == Install
6
+
7
+ $ gem install consadole_aggregator
8
+
9
+ == Usage
10
+
11
+ $ consadole_aggregator
12
+
13
+ == Contributing to consadole_aggregator
14
+
15
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
16
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
17
+ * Fork the project
18
+ * Start a feature/bugfix branch
19
+ * Commit and push until you are happy with your contribution
20
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
21
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
22
+
23
+ == TODO
24
+
25
+ * extract Module of Aggregatable
26
+ * use Aggregatable to Live
27
+ * create Stack for output
28
+
29
+ == Copyright
30
+
31
+ Copyright (c) 2010 niku. See LICENSE.txt for
32
+ further details.
33
+
data/Rakefile CHANGED
@@ -1,32 +1,51 @@
1
1
  require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
2
10
  require 'rake'
3
11
 
4
- require 'spec/rake/spectask'
5
- Spec::Rake::SpecTask.new(:spec) do |spec|
6
- spec.libs << 'lib' << 'spec'
7
- spec.spec_files = FileList['spec/**/*_spec.rb']
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "consadole_aggregator"
16
+ gem.homepage = "http://github.com/niku/consadole_aggregator"
17
+ gem.license = "MIT"
18
+ gem.summary = %Q{ It aggregates infomation of 'Consadole Sapporo' }
19
+ gem.description = %Q{ It aggregates infomation of 'Consadole Sapporo' }
20
+ gem.email = "niku@niku.name"
21
+ gem.authors = ["niku"]
22
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
23
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
25
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
8
26
  end
27
+ Jeweler::RubygemsDotOrgTasks.new
9
28
 
10
- Spec::Rake::SpecTask.new(:rcov) do |spec|
11
- spec.libs << 'lib' << 'spec'
12
- spec.pattern = 'spec/**/*_spec.rb'
13
- spec.rcov = true
29
+ require 'rspec/core'
30
+ require 'rspec/core/rake_task'
31
+ RSpec::Core::RakeTask.new(:spec) do |spec|
32
+ spec.pattern = FileList['spec/**/*_spec.rb']
33
+ spec.rspec_opts = '--format documentation'
14
34
  end
15
35
 
16
- begin
17
- require 'jeweler'
18
- Jeweler::Tasks.new do |gemspec|
19
- gemspec.name = "consadole_aggregator"
20
- gemspec.summary = "Consadole Sapporo's Information Aggregator"
21
- gemspec.email = "niku@niku.name"
22
- gemspec.homepage = "http://github.com/niku/consadole_aggregator"
23
- gemspec.authors = ["niku"]
24
- gemspec.required_ruby_version = '>=1.8.7'
25
- gemspec.add_development_dependency('hpricot')
26
- gemspec.add_development_dependency('rspec')
27
- end
28
- rescue LoadError
29
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
36
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
37
+ spec.pattern = 'spec/**/*_spec.rb'
38
+ spec.rcov = true
30
39
  end
31
40
 
32
41
  task :default => :spec
42
+
43
+ require 'rake/rdoctask'
44
+ Rake::RDocTask.new do |rdoc|
45
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
+
47
+ rdoc.rdoc_dir = 'rdoc'
48
+ rdoc.title = "consadole_aggregator #{version}"
49
+ rdoc.rdoc_files.include('README*')
50
+ rdoc.rdoc_files.include('lib/**/*.rb')
51
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.1.0
data/account.yaml ADDED
@@ -0,0 +1,6 @@
1
+ consumer:
2
+ key: # your consumer key here
3
+ secret: # your consumer secret here
4
+ access:
5
+ key: # your access key here
6
+ secret: # your secret key here
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env ruby
2
+ require 'optparse'
3
+ params = ARGV.getopts(nil, "module:news", "output:log", "date")
4
+
5
+ $:.unshift(File.expand_path('../../lib', __FILE__)) if $0 == __FILE__
6
+
7
+ require 'consadole_aggregator'
8
+
9
+ output = case params['output']
10
+ when 'log'
11
+ require 'logger'
12
+ path = File.expand_path('../../log', __FILE__) + '/exec_result.log'
13
+ log = Logger.new(path)
14
+ puts "output to #{path}"
15
+ ->(element){
16
+ if element.kind_of?(ConsadoleAggregator::Live::Timeline)
17
+ log.debug ConsadoleAggregator::Helper.concat(element.to_s, hashtag:'#consadole')
18
+ else
19
+ title, url = element[:title], element[:url]
20
+ log.debug ConsadoleAggregator::Helper.concat(title, url:url, hashtag:'#consadole')
21
+ end
22
+ }
23
+ when 'twitter'
24
+ require 'oauth'
25
+ require 'rubytter'
26
+ ACCOUNT = YAML.load_file('account.yaml')
27
+ oauth = Rubytter::OAuth.new(ACCOUNT['consumer']['key'], ACCOUNT['consumer']['secret'])
28
+ access_token = OAuth::AccessToken.new(oauth.create_consumer, ACCOUNT['access']['key'], ACCOUNT['access']['secret'])
29
+ t = OAuthRubytter.new(access_token)
30
+ ->(element){
31
+ if element.kind_of?(ConsadoleAggregator::Live::Timeline)
32
+ t.update ConsadoleAggregator::Helper.concat(element.to_s, hashtag:'#consadole')
33
+ else
34
+ title, url = element[:title], element[:url]
35
+ t.update ConsadoleAggregator::Helper.concat(title, url:url, hashtag:'#consadole')
36
+ end
37
+ }
38
+ end
39
+
40
+ case params['module']
41
+ when 'news'
42
+ modules = ConsadoleAggregator::News.constants.map{ |k| ConsadoleAggregator::News.const_get(k).new }
43
+ modules.each{ |m| m.update &output }
44
+ when 'live'
45
+ reservation_time = params['date'] ? Time.parse(params['date']) : nil
46
+ ConsadoleAggregator::Live.reserve(reservation_time).execute &output
47
+ end
@@ -1,181 +1,222 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{consadole_aggregator}
8
- s.version = "0.0.4"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["niku"]
12
- s.date = %q{2010-02-15}
12
+ s.date = %q{2011-05-05}
13
+ s.default_executable = %q{consadole_aggregator}
14
+ s.description = %q{ It aggregates infomation of 'Consadole Sapporo' }
13
15
  s.email = %q{niku@niku.name}
16
+ s.executables = ["consadole_aggregator"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
14
21
  s.files = [
15
- ".gitignore",
16
- "Rakefile",
17
- "VERSION",
18
- "consadole_aggregator.gemspec",
19
- "lib/consadole_aggregator.rb",
20
- "lib/consadole_aggregator/live.rb",
21
- "lib/consadole_aggregator/live/builder.rb",
22
- "lib/consadole_aggregator/live/parser.rb",
23
- "lib/consadole_aggregator/nikkan_sports.rb",
24
- "spec/consadole_aggregator_spec.rb",
25
- "spec/nikkan_sports/consadole.rdf",
26
- "spec/nikkan_sports/nikkan_sports_spec.rb",
27
- "spec/nikkan_sports/p-sc-tp0-20091225-579346.html",
28
- "spec/nikkan_sports/p-sc-tp0-20100204-592466.html",
29
- "spec/spec.opts",
30
- "spec/spec_helper.rb",
31
- "spec/timeline/s674.html",
32
- "spec/timeline/s674.html.1",
33
- "spec/timeline/s674.html.10",
34
- "spec/timeline/s674.html.100",
35
- "spec/timeline/s674.html.101",
36
- "spec/timeline/s674.html.102",
37
- "spec/timeline/s674.html.103",
38
- "spec/timeline/s674.html.104",
39
- "spec/timeline/s674.html.105",
40
- "spec/timeline/s674.html.106",
41
- "spec/timeline/s674.html.107",
42
- "spec/timeline/s674.html.108",
43
- "spec/timeline/s674.html.109",
44
- "spec/timeline/s674.html.11",
45
- "spec/timeline/s674.html.110",
46
- "spec/timeline/s674.html.111",
47
- "spec/timeline/s674.html.112",
48
- "spec/timeline/s674.html.113",
49
- "spec/timeline/s674.html.114",
50
- "spec/timeline/s674.html.115",
51
- "spec/timeline/s674.html.116",
52
- "spec/timeline/s674.html.117",
53
- "spec/timeline/s674.html.118",
54
- "spec/timeline/s674.html.119",
55
- "spec/timeline/s674.html.12",
56
- "spec/timeline/s674.html.120",
57
- "spec/timeline/s674.html.13",
58
- "spec/timeline/s674.html.14",
59
- "spec/timeline/s674.html.15",
60
- "spec/timeline/s674.html.16",
61
- "spec/timeline/s674.html.17",
62
- "spec/timeline/s674.html.18",
63
- "spec/timeline/s674.html.19",
64
- "spec/timeline/s674.html.2",
65
- "spec/timeline/s674.html.20",
66
- "spec/timeline/s674.html.21",
67
- "spec/timeline/s674.html.22",
68
- "spec/timeline/s674.html.23",
69
- "spec/timeline/s674.html.24",
70
- "spec/timeline/s674.html.25",
71
- "spec/timeline/s674.html.26",
72
- "spec/timeline/s674.html.27",
73
- "spec/timeline/s674.html.28",
74
- "spec/timeline/s674.html.29",
75
- "spec/timeline/s674.html.3",
76
- "spec/timeline/s674.html.30",
77
- "spec/timeline/s674.html.31",
78
- "spec/timeline/s674.html.32",
79
- "spec/timeline/s674.html.33",
80
- "spec/timeline/s674.html.34",
81
- "spec/timeline/s674.html.35",
82
- "spec/timeline/s674.html.36",
83
- "spec/timeline/s674.html.37",
84
- "spec/timeline/s674.html.38",
85
- "spec/timeline/s674.html.39",
86
- "spec/timeline/s674.html.4",
87
- "spec/timeline/s674.html.40",
88
- "spec/timeline/s674.html.41",
89
- "spec/timeline/s674.html.42",
90
- "spec/timeline/s674.html.43",
91
- "spec/timeline/s674.html.44",
92
- "spec/timeline/s674.html.45",
93
- "spec/timeline/s674.html.46",
94
- "spec/timeline/s674.html.47",
95
- "spec/timeline/s674.html.48",
96
- "spec/timeline/s674.html.49",
97
- "spec/timeline/s674.html.5",
98
- "spec/timeline/s674.html.50",
99
- "spec/timeline/s674.html.51",
100
- "spec/timeline/s674.html.52",
101
- "spec/timeline/s674.html.53",
102
- "spec/timeline/s674.html.54",
103
- "spec/timeline/s674.html.55",
104
- "spec/timeline/s674.html.56",
105
- "spec/timeline/s674.html.57",
106
- "spec/timeline/s674.html.58",
107
- "spec/timeline/s674.html.59",
108
- "spec/timeline/s674.html.6",
109
- "spec/timeline/s674.html.60",
110
- "spec/timeline/s674.html.61",
111
- "spec/timeline/s674.html.62",
112
- "spec/timeline/s674.html.63",
113
- "spec/timeline/s674.html.64",
114
- "spec/timeline/s674.html.65",
115
- "spec/timeline/s674.html.66",
116
- "spec/timeline/s674.html.67",
117
- "spec/timeline/s674.html.68",
118
- "spec/timeline/s674.html.69",
119
- "spec/timeline/s674.html.7",
120
- "spec/timeline/s674.html.70",
121
- "spec/timeline/s674.html.71",
122
- "spec/timeline/s674.html.72",
123
- "spec/timeline/s674.html.73",
124
- "spec/timeline/s674.html.74",
125
- "spec/timeline/s674.html.75",
126
- "spec/timeline/s674.html.76",
127
- "spec/timeline/s674.html.77",
128
- "spec/timeline/s674.html.78",
129
- "spec/timeline/s674.html.79",
130
- "spec/timeline/s674.html.8",
131
- "spec/timeline/s674.html.80",
132
- "spec/timeline/s674.html.81",
133
- "spec/timeline/s674.html.82",
134
- "spec/timeline/s674.html.83",
135
- "spec/timeline/s674.html.84",
136
- "spec/timeline/s674.html.85",
137
- "spec/timeline/s674.html.86",
138
- "spec/timeline/s674.html.87",
139
- "spec/timeline/s674.html.88",
140
- "spec/timeline/s674.html.89",
141
- "spec/timeline/s674.html.9",
142
- "spec/timeline/s674.html.90",
143
- "spec/timeline/s674.html.91",
144
- "spec/timeline/s674.html.92",
145
- "spec/timeline/s674.html.93",
146
- "spec/timeline/s674.html.94",
147
- "spec/timeline/s674.html.95",
148
- "spec/timeline/s674.html.96",
149
- "spec/timeline/s674.html.97",
150
- "spec/timeline/s674.html.98",
151
- "spec/timeline/s674.html.99"
22
+ ".document",
23
+ ".rspec",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.rdoc",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "account.yaml",
31
+ "bin/consadole_aggregator",
32
+ "consadole_aggregator.gemspec",
33
+ "db/.gitignore",
34
+ "lib/consadole_aggregator.rb",
35
+ "lib/consadole_aggregator/helper.rb",
36
+ "lib/consadole_aggregator/live.rb",
37
+ "lib/consadole_aggregator/live/timeline.rb",
38
+ "lib/consadole_aggregator/news.rb",
39
+ "log/.gitignore",
40
+ "spec/consadole_aggregator/helper_spec.rb",
41
+ "spec/consadole_aggregator/live/timeline_spec.rb",
42
+ "spec/consadole_aggregator/live_spec.rb",
43
+ "spec/consadole_aggregator/news_spec.rb",
44
+ "spec/ext/asahi.txt",
45
+ "spec/ext/consaburn.txt",
46
+ "spec/ext/consaclub.txt",
47
+ "spec/ext/consadolenews.txt",
48
+ "spec/ext/consadolephotos.txt",
49
+ "spec/ext/consadolesponsornews.txt",
50
+ "spec/ext/forzaconsadole.txt",
51
+ "spec/ext/hochiyomiuri.txt",
52
+ "spec/ext/jsgoalnews.txt",
53
+ "spec/ext/jsgoalphotos.txt",
54
+ "spec/ext/live/s674.html",
55
+ "spec/ext/live/s674.html.1",
56
+ "spec/ext/live/s674.html.10",
57
+ "spec/ext/live/s674.html.100",
58
+ "spec/ext/live/s674.html.101",
59
+ "spec/ext/live/s674.html.102",
60
+ "spec/ext/live/s674.html.103",
61
+ "spec/ext/live/s674.html.104",
62
+ "spec/ext/live/s674.html.105",
63
+ "spec/ext/live/s674.html.106",
64
+ "spec/ext/live/s674.html.107",
65
+ "spec/ext/live/s674.html.108",
66
+ "spec/ext/live/s674.html.109",
67
+ "spec/ext/live/s674.html.11",
68
+ "spec/ext/live/s674.html.110",
69
+ "spec/ext/live/s674.html.111",
70
+ "spec/ext/live/s674.html.112",
71
+ "spec/ext/live/s674.html.113",
72
+ "spec/ext/live/s674.html.114",
73
+ "spec/ext/live/s674.html.115",
74
+ "spec/ext/live/s674.html.116",
75
+ "spec/ext/live/s674.html.117",
76
+ "spec/ext/live/s674.html.118",
77
+ "spec/ext/live/s674.html.119",
78
+ "spec/ext/live/s674.html.12",
79
+ "spec/ext/live/s674.html.120",
80
+ "spec/ext/live/s674.html.13",
81
+ "spec/ext/live/s674.html.14",
82
+ "spec/ext/live/s674.html.15",
83
+ "spec/ext/live/s674.html.16",
84
+ "spec/ext/live/s674.html.17",
85
+ "spec/ext/live/s674.html.18",
86
+ "spec/ext/live/s674.html.19",
87
+ "spec/ext/live/s674.html.2",
88
+ "spec/ext/live/s674.html.20",
89
+ "spec/ext/live/s674.html.21",
90
+ "spec/ext/live/s674.html.22",
91
+ "spec/ext/live/s674.html.23",
92
+ "spec/ext/live/s674.html.24",
93
+ "spec/ext/live/s674.html.25",
94
+ "spec/ext/live/s674.html.26",
95
+ "spec/ext/live/s674.html.27",
96
+ "spec/ext/live/s674.html.28",
97
+ "spec/ext/live/s674.html.29",
98
+ "spec/ext/live/s674.html.3",
99
+ "spec/ext/live/s674.html.30",
100
+ "spec/ext/live/s674.html.31",
101
+ "spec/ext/live/s674.html.32",
102
+ "spec/ext/live/s674.html.33",
103
+ "spec/ext/live/s674.html.34",
104
+ "spec/ext/live/s674.html.35",
105
+ "spec/ext/live/s674.html.36",
106
+ "spec/ext/live/s674.html.37",
107
+ "spec/ext/live/s674.html.38",
108
+ "spec/ext/live/s674.html.39",
109
+ "spec/ext/live/s674.html.4",
110
+ "spec/ext/live/s674.html.40",
111
+ "spec/ext/live/s674.html.41",
112
+ "spec/ext/live/s674.html.42",
113
+ "spec/ext/live/s674.html.43",
114
+ "spec/ext/live/s674.html.44",
115
+ "spec/ext/live/s674.html.45",
116
+ "spec/ext/live/s674.html.46",
117
+ "spec/ext/live/s674.html.47",
118
+ "spec/ext/live/s674.html.48",
119
+ "spec/ext/live/s674.html.49",
120
+ "spec/ext/live/s674.html.5",
121
+ "spec/ext/live/s674.html.50",
122
+ "spec/ext/live/s674.html.51",
123
+ "spec/ext/live/s674.html.52",
124
+ "spec/ext/live/s674.html.53",
125
+ "spec/ext/live/s674.html.54",
126
+ "spec/ext/live/s674.html.55",
127
+ "spec/ext/live/s674.html.56",
128
+ "spec/ext/live/s674.html.57",
129
+ "spec/ext/live/s674.html.58",
130
+ "spec/ext/live/s674.html.59",
131
+ "spec/ext/live/s674.html.6",
132
+ "spec/ext/live/s674.html.60",
133
+ "spec/ext/live/s674.html.61",
134
+ "spec/ext/live/s674.html.62",
135
+ "spec/ext/live/s674.html.63",
136
+ "spec/ext/live/s674.html.64",
137
+ "spec/ext/live/s674.html.65",
138
+ "spec/ext/live/s674.html.66",
139
+ "spec/ext/live/s674.html.67",
140
+ "spec/ext/live/s674.html.68",
141
+ "spec/ext/live/s674.html.69",
142
+ "spec/ext/live/s674.html.7",
143
+ "spec/ext/live/s674.html.70",
144
+ "spec/ext/live/s674.html.71",
145
+ "spec/ext/live/s674.html.72",
146
+ "spec/ext/live/s674.html.73",
147
+ "spec/ext/live/s674.html.74",
148
+ "spec/ext/live/s674.html.75",
149
+ "spec/ext/live/s674.html.76",
150
+ "spec/ext/live/s674.html.77",
151
+ "spec/ext/live/s674.html.78",
152
+ "spec/ext/live/s674.html.79",
153
+ "spec/ext/live/s674.html.8",
154
+ "spec/ext/live/s674.html.80",
155
+ "spec/ext/live/s674.html.81",
156
+ "spec/ext/live/s674.html.82",
157
+ "spec/ext/live/s674.html.83",
158
+ "spec/ext/live/s674.html.84",
159
+ "spec/ext/live/s674.html.85",
160
+ "spec/ext/live/s674.html.86",
161
+ "spec/ext/live/s674.html.87",
162
+ "spec/ext/live/s674.html.88",
163
+ "spec/ext/live/s674.html.89",
164
+ "spec/ext/live/s674.html.9",
165
+ "spec/ext/live/s674.html.90",
166
+ "spec/ext/live/s674.html.91",
167
+ "spec/ext/live/s674.html.92",
168
+ "spec/ext/live/s674.html.93",
169
+ "spec/ext/live/s674.html.94",
170
+ "spec/ext/live/s674.html.95",
171
+ "spec/ext/live/s674.html.96",
172
+ "spec/ext/live/s674.html.97",
173
+ "spec/ext/live/s674.html.98",
174
+ "spec/ext/live/s674.html.99",
175
+ "spec/ext/nikkansports.txt",
176
+ "spec/spec.opts",
177
+ "spec/spec_helper.rb"
152
178
  ]
153
179
  s.homepage = %q{http://github.com/niku/consadole_aggregator}
154
- s.rdoc_options = ["--charset=UTF-8"]
180
+ s.licenses = ["MIT"]
155
181
  s.require_paths = ["lib"]
156
- s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
157
- s.rubygems_version = %q{1.3.5}
158
- s.summary = %q{Consadole Sapporo's Information Aggregator}
182
+ s.rubygems_version = %q{1.5.2}
183
+ s.summary = %q{It aggregates infomation of 'Consadole Sapporo'}
159
184
  s.test_files = [
160
- "spec/consadole_aggregator_spec.rb",
161
- "spec/nikkan_sports/nikkan_sports_spec.rb",
162
- "spec/spec_helper.rb"
185
+ "spec/consadole_aggregator/helper_spec.rb",
186
+ "spec/consadole_aggregator/live/timeline_spec.rb",
187
+ "spec/consadole_aggregator/live_spec.rb",
188
+ "spec/consadole_aggregator/news_spec.rb",
189
+ "spec/spec_helper.rb"
163
190
  ]
164
191
 
165
192
  if s.respond_to? :specification_version then
166
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
167
193
  s.specification_version = 3
168
194
 
169
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
170
- s.add_development_dependency(%q<hpricot>, [">= 0"])
195
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
171
196
  s.add_development_dependency(%q<rspec>, [">= 0"])
197
+ s.add_development_dependency(%q<bundler>, [">= 0"])
198
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
199
+ s.add_development_dependency(%q<rcov>, [">= 0"])
200
+ s.add_development_dependency(%q<nokogiri>, [">= 0"])
201
+ s.add_development_dependency(%q<oauth>, [">= 0"])
202
+ s.add_development_dependency(%q<rubytter>, [">= 0"])
172
203
  else
173
- s.add_dependency(%q<hpricot>, [">= 0"])
174
204
  s.add_dependency(%q<rspec>, [">= 0"])
205
+ s.add_dependency(%q<bundler>, [">= 0"])
206
+ s.add_dependency(%q<jeweler>, [">= 0"])
207
+ s.add_dependency(%q<rcov>, [">= 0"])
208
+ s.add_dependency(%q<nokogiri>, [">= 0"])
209
+ s.add_dependency(%q<oauth>, [">= 0"])
210
+ s.add_dependency(%q<rubytter>, [">= 0"])
175
211
  end
176
212
  else
177
- s.add_dependency(%q<hpricot>, [">= 0"])
178
213
  s.add_dependency(%q<rspec>, [">= 0"])
214
+ s.add_dependency(%q<bundler>, [">= 0"])
215
+ s.add_dependency(%q<jeweler>, [">= 0"])
216
+ s.add_dependency(%q<rcov>, [">= 0"])
217
+ s.add_dependency(%q<nokogiri>, [">= 0"])
218
+ s.add_dependency(%q<oauth>, [">= 0"])
219
+ s.add_dependency(%q<rubytter>, [">= 0"])
179
220
  end
180
221
  end
181
222
 
data/db/.gitignore ADDED
File without changes