relevance-tarantula 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
3
- :major: 0
4
2
  :minor: 1
3
+ :patch: 3
4
+ :major: 0
@@ -63,13 +63,7 @@ describe "Relevance::Tarantula::RailsIntegrationProxy patching" do
63
63
  @response.meta.ancestors.should include(Relevance::CoreExtensions::Response)
64
64
  @response.html?.should == true
65
65
  end
66
-
67
- it "ignores 404s for known static binary types" do
68
- File.expects(:extension).returns("pdf")
69
- @rip.expects(:log).with("Skipping /url (for now)")
70
- @rip.patch_response("/url", @response)
71
- end
72
-
66
+
73
67
  it "replaces 404s with 200s, pulling content from public, for known text types" do
74
68
  File.expects(:extension).returns("html")
75
69
  @rip.expects(:static_content_file).with("/url").returns("File body")
@@ -41,9 +41,7 @@ class Relevance::Tarantula::RailsIntegrationProxy
41
41
  if response.code == '404'
42
42
  if File.exist?(static_content_path(url))
43
43
  case ext = File.extension(url)
44
- when /jpe?g|gif|psd|png|eps|pdf/
45
- log "Skipping #{url} (for now)"
46
- when /html|te?xt|css|js/
44
+ when /html|te?xt|css|js|jpe?g|gif|psd|png|eps|pdf/
47
45
  response.body = static_content_file(url)
48
46
  response.headers["type"] = "text/#{ext}" # readable as response.content_type
49
47
  response.meta.attr_accessor :code
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relevance-tarantula
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Relevance, Inc.
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-26 00:00:00 -08:00
12
+ date: 2009-02-06 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15