enju_book_jacket 0.1.0.pre4 → 0.1.0.pre5

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@
12
12
  parser.href = thumbnail;
13
13
  parser.protocol = 'https:';
14
14
  parser.hostname = 'encrypted.google.com';
15
+ thumbnail = parser.href;
15
16
  }
16
17
  if (thumbnail) {
17
18
  var link = '<img src="' + thumbnail + '" alt="' + book.volumeInfo.title + '" />';
@@ -1,3 +1,3 @@
1
1
  module EnjuBookJacket
2
- VERSION = "0.1.0.pre4"
2
+ VERSION = "0.1.0.pre5"
3
3
  end
Binary file
@@ -13,17 +13,18 @@ require 'spec_helper'
13
13
  # end
14
14
  describe EnjuBookJacket::BookJacketHelper do
15
15
  fixtures :manifestations
16
- use_vcr_cassette "enju_book_jacket", :record => :new_episodes
16
+ VCR.use_cassette "enju_book_jacket", :record => :new_episodes do
17
17
 
18
- it "should get screenshot" do
19
- helper.screenshot_tag(manifestations(:manifestation_00003)).should eq "<a href=\"http://www.slis.keio.ac.jp/\"><img alt=\"これからの生命科学研究者のためのバイオ特許入門講座\" border=\"0\" height=\"128\" itemprop=\"image\" src=\"http://mozshot.nemui.org/shot?http://www.slis.keio.ac.jp/\" width=\"128\" /></a>"
20
- end
18
+ it "should get screenshot" do
19
+ helper.screenshot_tag(manifestations(:manifestation_00003)).should eq "<a href=\"http://www.slis.keio.ac.jp/\"><img alt=\"これからの生命科学研究者のためのバイオ特許入門講座\" border=\"0\" height=\"128\" itemprop=\"image\" src=\"http://mozshot.nemui.org/shot?http://www.slis.keio.ac.jp/\" width=\"128\" /></a>"
20
+ end
21
21
 
22
- it "should get book jacket" do
23
- helper.book_jacket_tag(manifestations(:manifestation_00001)).should =~ /<div id=\"gbsthumbnail\" class=\"book_jacket\"><\/div>/
24
- end
22
+ it "should get book jacket" do
23
+ helper.book_jacket_tag(manifestations(:manifestation_00001)).should =~ /<div id=\"gbsthumbnail\" class=\"book_jacket\"><\/div>/
24
+ end
25
25
 
26
- it "should generate a link to Amazon" do
27
- helper.amazon_link(manifestations(:manifestation_00001).isbn).should =~ /http:\/\/www.amazon.co.jp\/dp\/4798002062/
26
+ it "should generate a link to Amazon" do
27
+ helper.amazon_link(manifestations(:manifestation_00001).isbn).should =~ /http:\/\/www.amazon.co.jp\/dp\/4798002062/
28
+ end
28
29
  end
29
30
  end
@@ -30,6 +30,8 @@ RSpec.configure do |config|
30
30
  # automatically. This will be the default behavior in future versions of
31
31
  # rspec-rails.
32
32
  config.infer_base_class_for_anonymous_controllers = false
33
+ end
33
34
 
34
- config.extend VCR::RSpec::Macros
35
+ VCR.configure do |c|
36
+ c.allow_http_connections_when_no_cassette = true
35
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_book_jacket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre4
4
+ version: 0.1.0.pre5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-22 00:00:00.000000000 Z
12
+ date: 2013-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -238,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  segments:
240
240
  - 0
241
- hash: 2782418399618578501
241
+ hash: -3141942546143898937
242
242
  required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  none: false
244
244
  requirements: