openuri_memcached 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.0.3 2008-01-18
2
+ * Caches are now stored by the uri as the key like they originally were
3
+
1
4
  == 0.0.2 2008-01-15
2
5
  * Some moron forgot to write the dependency list correctly for 0.0.1
3
6
 
data/Manifest.txt CHANGED
@@ -6,6 +6,14 @@ Rakefile
6
6
  config/hoe.rb
7
7
  config/requirements.rb
8
8
  lib/openuri_memcached.rb
9
+ lib/openuri_memcached/._openuri_memcached.rb
10
+ lib/openuri_memcached/._version.rb
9
11
  lib/openuri_memcached/openuri_memcached.rb
10
12
  lib/openuri_memcached/version.rb
13
+ script/destroy
14
+ script/generate
15
+ setup.rb
11
16
  spec/openuri_cache_spec.rb
17
+ tasks/deployment.rake
18
+ tasks/environment.rake
19
+ tasks/website.rake
data/config/hoe.rb CHANGED
@@ -67,5 +67,5 @@ end
67
67
 
68
68
  CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
69
69
  PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
70
- hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
70
+ hoe.remote_rdoc_dir = ''
71
71
  hoe.rsync_args = '-av --delete --ignore-errors'
Binary file
@@ -16,7 +16,7 @@ module OpenURI
16
16
  def self.open(uri, *rest, &block)
17
17
  if Cache.enabled? and Cache::alive?
18
18
  begin
19
- response = Cache::get(uri.hash)
19
+ response = Cache::get(uri.to_s)
20
20
  rescue
21
21
  response = false
22
22
  end
@@ -24,7 +24,7 @@ module OpenURI
24
24
 
25
25
  unless response
26
26
  response = openuri_original_open(uri, *rest, &block).read
27
- Cache::set(uri.hash, response) if Cache.alive?
27
+ Cache::set(uri.to_s, response) if Cache.alive?
28
28
  end
29
29
  StringIO.new(response)
30
30
  end
@@ -3,7 +3,7 @@ module OpenURI #:nodoc:
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 0
6
- TINY = 2
6
+ TINY = 3
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
data/script/destroy ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.join(File.dirname(__FILE__), '..')
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/destroy'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.join(File.dirname(__FILE__), '..')
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/generate'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Generate.new.run(ARGV)