concord_cacher 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,8 +1,9 @@
1
- require 'rubygems'
1
+ require "rubygems"
2
+ require "bundler"
3
+ Bundler.setup(:test, :ci)
2
4
 
3
5
  require 'rake'
4
6
  require 'spec/rake/spectask'
5
-
6
7
  require './lib/concord_cacher.rb'
7
8
 
8
9
  task :default => :spec
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{concord_cacher}
5
- s.version = "0.1.11"
5
+ s.version = "0.1.12"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Aaron Unger"]
@@ -258,7 +258,7 @@ class ::Concord::Resource
258
258
  _try(resource, lambda {
259
259
  # strip whitespace from the end of the match url, but don't alter the url so that when
260
260
  # we replace the url later, we can, in essence, fix the malformed url
261
- resource.uri = URI.parse(CGI.unescapeHTML(resource.url.sub(/\s+$/,'')))
261
+ resource.uri = URI.parse(CGI.unescapeHTML(resource.url.strip))
262
262
  })
263
263
  if (resource.uri.relative?)
264
264
  # relative URL's need to have their parent document's codebase appended before trying to download
@@ -1,4 +1,4 @@
1
- $:.unshift(File.dirname(__FILE__)) unless
1
+ $:.unshift(File.expand_path(File.dirname(__FILE__))) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Concord
@@ -6,9 +6,9 @@
6
6
  <OTSystem local_id="system">
7
7
  <root>
8
8
  <OTText>
9
- <img src='http://portal.concord.org/images/icons/chart_line.png ' />
9
+ <img src=' http://portal.concord.org/images/icons/chart_line.png '/>
10
10
  </OTText>
11
11
  </root>
12
12
  </OTSystem>
13
13
  </objects>
14
- </otrunk>
14
+ </otrunk>
@@ -1,10 +1,10 @@
1
1
  begin
2
2
  require 'concord_cacher'
3
3
  rescue LoadError
4
- require File.join(File.dirname(__FILE__), '..','lib','concord.rb')
4
+ require File.expand_path(File.join(File.dirname(__FILE__), '..','lib','concord.rb'))
5
5
  end
6
6
 
7
- require File.join(File.dirname(__FILE__),'helpers','cache_helper.rb')
7
+ require File.expand_path(File.join(File.dirname(__FILE__),'helpers','cache_helper.rb'))
8
8
 
9
9
  require 'fileutils'
10
10
 
@@ -1,10 +1,10 @@
1
1
  begin
2
2
  require 'concord_cacher'
3
3
  rescue LoadError
4
- require File.join(File.dirname(__FILE__), '..','lib','concord.rb')
4
+ require File.expand_path(File.join(File.dirname(__FILE__), '..','lib','concord.rb'))
5
5
  end
6
6
 
7
- require File.join(File.dirname(__FILE__),'helpers','cache_helper.rb')
7
+ require File.expand_path(File.join(File.dirname(__FILE__),'helpers','cache_helper.rb'))
8
8
 
9
9
  require 'fileutils'
10
10
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 11
9
- version: 0.1.11
8
+ - 12
9
+ version: 0.1.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Aaron Unger
metadata.gz.sig CHANGED
Binary file