assonnato 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assonnato/type/show.rb +2 -2
- data/lib/assonnato/version.rb +1 -1
- data/spec/episode_spec.rb +12 -12
- data/spec/show_spec.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0582be27115e9219b66f91b964f4dd6800454f77
|
4
|
+
data.tar.gz: e8282c97aa30140ae683abc9fbaa1b5f795de90a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d341d7836dbd1c29d37e4e698950f21002abe5856980d212add01714ca8ccbeb009ac621292c961080a35b1d741500eda9282205210c095fa3391926dbde288c
|
7
|
+
data.tar.gz: 293804a58ed47cb6fbdcfe23afba8002418575724a94d6a29e24a3b34ce14021022a0d41e1359704496c80dbce67928c465cfd242a3993c1222bff5adfb709be
|
data/lib/assonnato/type/show.rb
CHANGED
data/lib/assonnato/version.rb
CHANGED
data/spec/episode_spec.rb
CHANGED
@@ -3,28 +3,28 @@ require 'assonnato'
|
|
3
3
|
|
4
4
|
describe 'Assonnato' do
|
5
5
|
before do
|
6
|
-
@episode = Assonnato::Episode.new 'http://
|
6
|
+
@episode = Assonnato::Episode.new 'http://pigro.omnivium.it:4567'
|
7
7
|
end
|
8
8
|
|
9
9
|
it 'returns all the episodes of the given show' do
|
10
|
-
res = @episode.all! '
|
11
|
-
res.should
|
12
|
-
res.should_not
|
13
|
-
res.first.should
|
14
|
-
res.first.episode.should
|
10
|
+
res = @episode.all! 'Strike the Blood'
|
11
|
+
res.should be_kind_of(Array)
|
12
|
+
res.should_not be_empty
|
13
|
+
res.first.should be_kind_of(Struct)
|
14
|
+
res.first.episode.should eql(1)
|
15
15
|
end
|
16
16
|
|
17
17
|
it 'can\'t search episodes' do
|
18
18
|
expect {
|
19
|
-
@episode.search!('
|
19
|
+
@episode.search!('Strikederp')
|
20
20
|
}.to raise_error(NotImplementedError)
|
21
21
|
end
|
22
22
|
|
23
23
|
it 'returns a specific episode of the given show' do
|
24
|
-
res = @episode.get! '
|
25
|
-
res.should
|
26
|
-
res.should_not
|
27
|
-
res.first.should
|
28
|
-
res.first.episode.should
|
24
|
+
res = @episode.get! 'Strike the Blood', 1
|
25
|
+
res.should be_kind_of(Array)
|
26
|
+
res.should_not be_empty
|
27
|
+
res.first.should be_kind_of(Struct)
|
28
|
+
res.first.episode.should eql(1)
|
29
29
|
end
|
30
30
|
end
|
data/spec/show_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require 'assonnato'
|
|
3
3
|
|
4
4
|
describe 'Assonnato' do
|
5
5
|
before do
|
6
|
-
@show = Assonnato::Show.new 'http://
|
6
|
+
@show = Assonnato::Show.new 'http://pigro.omnivium.it:4567'
|
7
7
|
end
|
8
8
|
|
9
9
|
it 'returns all the shows' do
|
@@ -15,21 +15,21 @@ describe 'Assonnato' do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
it 'search all the shows which name is similar to the given keyword' do
|
18
|
-
res = @show.search! '
|
18
|
+
res = @show.search! 'Strike'
|
19
19
|
res.should be_kind_of(Array)
|
20
20
|
res.should_not be_empty
|
21
21
|
res.first.should be_kind_of(Struct)
|
22
|
-
res.first.name.should eql('
|
22
|
+
res.first.name.should eql('Strike the Blood')
|
23
23
|
end
|
24
24
|
|
25
25
|
it 'doesn\'t get an unknown show' do
|
26
|
-
res = @show.search! '
|
26
|
+
res = @show.search! 'Strikederp'
|
27
27
|
res.should be_kind_of(Array)
|
28
28
|
res.should be_empty
|
29
29
|
end
|
30
30
|
|
31
31
|
it 'returns all the informations of the given show' do
|
32
|
-
res = @show.get! '
|
32
|
+
res = @show.get! 'Strike the Blood'
|
33
33
|
res.should be_kind_of(Array)
|
34
34
|
res.should_not be_empty
|
35
35
|
res.first.should be_kind_of(Struct)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assonnato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Capuano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|