nicoscraper 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nicoscraper}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Masami Yonehara}]
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.email = %q{zeitdiebe@gmail.com}
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
+ "README.md",
18
19
  "README.rdoc"
19
20
  ]
20
21
  s.files = [
@@ -22,6 +23,7 @@ Gem::Specification.new do |s|
22
23
  "Gemfile",
23
24
  "Gemfile.lock",
24
25
  "LICENSE.txt",
26
+ "README.md",
25
27
  "README.rdoc",
26
28
  "Rakefile",
27
29
  "VERSION",
@@ -29,13 +31,12 @@ Gem::Specification.new do |s|
29
31
  "lib/converter.rb",
30
32
  "lib/movie.rb",
31
33
  "lib/mylist.rb",
34
+ "lib/nicos.rb",
32
35
  "lib/nicoscraper.rb",
33
36
  "lib/parser.rb",
34
37
  "lib/searcher.rb",
35
38
  "nicoscraper.gemspec",
36
- "test/helper.rb",
37
- "test/movie_spec.rb",
38
- "test/test_nicoscraper.rb"
39
+ "test/movie_spec.rb"
39
40
  ]
40
41
  s.homepage = %q{http://github.com/hdemon/nicoscraper}
41
42
  s.licenses = [%q{MIT}]
@@ -1,13 +1,11 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.unshift File.dirname(__FILE__) + "/../lib"
3
3
 
4
- require 'movie.rb'
5
- require 'mylist.rb'
6
- require 'searcher.rb'
4
+ require 'nicos.rb'
7
5
 
8
- describe Movie, "After executiton of 'getInfo' method" do
6
+ describe Nicos::Movie, "After executiton of 'getInfo' method" do
9
7
  before(:all) do
10
- @movie = Movie.new("sm1097445")
8
+ @movie = Nicos::Movie.new("sm1097445")
11
9
  @movie.getInfo
12
10
  end
13
11
 
@@ -46,9 +44,9 @@ describe Movie, "After executiton of 'getInfo' method" do
46
44
  end
47
45
  end
48
46
 
49
- describe Movie, "when access with non-existent video_id" do
47
+ describe Nicos::Movie, "when access with non-existent video_id" do
50
48
  before(:all) do
51
- @movie = Movie.new("sm*nonexistent")
49
+ @movie = Nicos::Movie.new("sm*nonexistent")
52
50
  @movie.getInfo
53
51
  end
54
52
 
@@ -57,9 +55,9 @@ describe Movie, "when access with non-existent video_id" do
57
55
  end
58
56
  end
59
57
 
60
- describe Mylist, "After executiton of 'getInfoLt' method" do
58
+ describe Nicos::Mylist, "After executiton of 'getInfoLt' method" do
61
59
  before(:all) do
62
- @mylist = Mylist.new(15196568)
60
+ @mylist = Nicos::Mylist.new(15196568)
63
61
  @mylist.getInfoLt
64
62
  puts @mylist
65
63
  end
@@ -93,7 +91,7 @@ end
93
91
  describe "When execute 'SearchByTagLt.execute' method " +
94
92
  "passing following argument" do
95
93
  before(:all) do
96
- searcher = SearchByTagLt.new()
94
+ searcher = Nicos::Searcher::ByTagLt.new()
97
95
  searcher.execute("ゆっくり実況プレイpart1リンク", "post_old", nil) { |result|
98
96
  @result = result
99
97
  }
@@ -101,7 +99,7 @@ describe "When execute 'SearchByTagLt.execute' method " +
101
99
 
102
100
  it "should have Array of movie objects." do
103
101
  @result .should be_kind_of(Array)
104
- @result[0].should be_instance_of(Movie)
102
+ @result[0].should be_instance_of(Nicos::Movie)
105
103
  end
106
104
 
107
105
  it "should contains movie objects that have following structure." do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nicoscraper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Masami Yonehara
@@ -86,12 +86,14 @@ extensions: []
86
86
 
87
87
  extra_rdoc_files:
88
88
  - LICENSE.txt
89
+ - README.md
89
90
  - README.rdoc
90
91
  files:
91
92
  - .document
92
93
  - Gemfile
93
94
  - Gemfile.lock
94
95
  - LICENSE.txt
96
+ - README.md
95
97
  - README.rdoc
96
98
  - Rakefile
97
99
  - VERSION
@@ -99,13 +101,12 @@ files:
99
101
  - lib/converter.rb
100
102
  - lib/movie.rb
101
103
  - lib/mylist.rb
104
+ - lib/nicos.rb
102
105
  - lib/nicoscraper.rb
103
106
  - lib/parser.rb
104
107
  - lib/searcher.rb
105
108
  - nicoscraper.gemspec
106
- - test/helper.rb
107
109
  - test/movie_spec.rb
108
- - test/test_nicoscraper.rb
109
110
  homepage: http://github.com/hdemon/nicoscraper
110
111
  licenses:
111
112
  - MIT
@@ -119,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
120
  requirements:
120
121
  - - ">="
121
122
  - !ruby/object:Gem::Version
122
- hash: 1475604773880892386
123
+ hash: -1997316545515447860
123
124
  segments:
124
125
  - 0
125
126
  version: "0"
@@ -1,18 +0,0 @@
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
10
- require 'test/unit'
11
- require 'shoulda'
12
-
13
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
- $LOAD_PATH.unshift(File.dirname(__FILE__))
15
- require 'nicoscraper'
16
-
17
- class Test::Unit::TestCase
18
- end
@@ -1,7 +0,0 @@
1
- require 'helper'
2
-
3
- class TestNicoscraper < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end