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 +3 -0
- data/Manifest.txt +8 -0
- data/config/hoe.rb +1 -1
- data/lib/openuri_memcached/._openuri_memcached.rb +0 -0
- data/lib/openuri_memcached/._version.rb +0 -0
- data/lib/openuri_memcached/openuri_memcached.rb +2 -2
- data/lib/openuri_memcached/version.rb +1 -1
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/setup.rb +1585 -0
- data/tasks/deployment.rake +34 -0
- data/tasks/environment.rake +7 -0
- data/tasks/website.rake +9 -0
- metadata +10 -2
data/History.txt
CHANGED
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 =
|
70
|
+
hoe.remote_rdoc_dir = ''
|
71
71
|
hoe.rsync_args = '-av --delete --ignore-errors'
|
Binary file
|
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.
|
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.
|
27
|
+
Cache::set(uri.to_s, response) if Cache.alive?
|
28
28
|
end
|
29
29
|
StringIO.new(response)
|
30
30
|
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)
|