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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5839ba4848b1c31ccbcfc0bd3851e161552284a7
4
- data.tar.gz: 8ba7e088195078311134df1925e7d609e09f4489
3
+ metadata.gz: 0582be27115e9219b66f91b964f4dd6800454f77
4
+ data.tar.gz: e8282c97aa30140ae683abc9fbaa1b5f795de90a
5
5
  SHA512:
6
- metadata.gz: e275a7a8b2c11b96d1ae672c8f6d15d846aed4093455133453f47457caa4fe7558147b47a612da5b01c5bbc6e300d9472a3123338ec53bf76e90f2f8e0918bc9
7
- data.tar.gz: e626a45edc0cb9cb7c88618e457444396a2b82da3b64d8f31b9478e0cdce45a43cf52074a61522de688f91361ebb47763ad82e934b7fec8c3b1f87dee7f04983
6
+ metadata.gz: d341d7836dbd1c29d37e4e698950f21002abe5856980d212add01714ca8ccbeb009ac621292c961080a35b1d741500eda9282205210c095fa3391926dbde288c
7
+ data.tar.gz: 293804a58ed47cb6fbdcfe23afba8002418575724a94d6a29e24a3b34ce14021022a0d41e1359704496c80dbce67928c465cfd242a3993c1222bff5adfb709be
@@ -15,11 +15,11 @@ module Assonnato
15
15
  include Parser
16
16
 
17
17
  def initialize(host)
18
- @host = host
18
+ @host = host
19
19
  end
20
20
 
21
21
  def all!
22
- parse get(@host, "/shows/all")
22
+ parse get(@host, '/shows/all')
23
23
  end
24
24
 
25
25
  def search!(keyword)
@@ -9,5 +9,5 @@
9
9
  #++
10
10
 
11
11
  module Assonnato
12
- VERSION = '0.4'
12
+ VERSION = '0.4.1'
13
13
  end
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://localhost:4567'
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! 'Monogatari Second Series'
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)
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!('monogatari')
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! 'Monogatari Second Series', 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)
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://localhost:4567'
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! 'monogatari'
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('Monogatari Second Series')
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! 'monogatarif'
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! 'Monogatari Second Series'
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: '0.4'
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-01 00:00:00.000000000 Z
11
+ date: 2014-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json