unicache 0.0.3 → 0.0.4
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.
- checksums.yaml +7 -0
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +4 -4
- data/doc/UniCache.html +202 -143
- data/doc/UniCache/CallbackError.html +1 -1
- data/doc/UniCache/Error.html +1 -1
- data/doc/UniCache/FetchError.html +1 -1
- data/doc/UniCache/LruEviction.html +46 -46
- data/doc/UniCache/RemoveError.html +1 -1
- data/doc/UniCache/SizeError.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +5 -2
- data/doc/file.README.html +7 -6
- data/doc/index.html +7 -6
- data/doc/top-level-namespace.html +1 -1
- data/lib/unicache.rb +27 -8
- data/lib/version.rb +2 -2
- metadata +30 -38
- data/Rakefile +0 -53
- data/doc/UniCache/UniCacheCommon.html +0 -132
data/Rakefile
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'rake/testtask'
|
2
|
-
|
3
|
-
Rake::TestTask.new do |t|
|
4
|
-
t.libs << 'test'
|
5
|
-
end
|
6
|
-
|
7
|
-
desc "Run tests"
|
8
|
-
task :default => :test
|
9
|
-
|
10
|
-
task :cleanup_test do
|
11
|
-
sh "rm -rf test/test"
|
12
|
-
end
|
13
|
-
|
14
|
-
task :build => :doc do
|
15
|
-
sh "gem build unicache.gemspec"
|
16
|
-
end
|
17
|
-
|
18
|
-
task :doc do
|
19
|
-
sh "yardoc lib/* - README.rdoc CHANGELOG.rdoc"
|
20
|
-
end
|
21
|
-
|
22
|
-
task :publish do
|
23
|
-
if Dir.glob('unicache-*gem').length == 1
|
24
|
-
sh "gem push unicache*.gem"
|
25
|
-
else
|
26
|
-
raise "Multiple gems in the directory..."
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
# Create unicache.gemspec with current version and date fields.
|
32
|
-
file 'unicache.gemspec' => [:version, 'unicache.rx.gemspec'] do
|
33
|
-
sh "mucgly -i unicache.rx.gemspec -o unicache.gemspec"
|
34
|
-
sh "ruvermgr -f .version -i build"
|
35
|
-
# sh "ruvermgr -f .version"
|
36
|
-
end
|
37
|
-
|
38
|
-
|
39
|
-
# Create 'lib/version.rb' file including 'Unicache.version' method.
|
40
|
-
# :version task is usually executed indirectly by 'unicache.gemspec'.
|
41
|
-
task :version do
|
42
|
-
version = %x{ruvermgr -f .version -o ruby}.chomp
|
43
|
-
File.open( "lib/version.rb", 'w' ) do |fh|
|
44
|
-
fh.puts "\
|
45
|
-
class UniCache
|
46
|
-
VERSION=\"#{version}\"
|
47
|
-
def UniCache.version
|
48
|
-
VERSION
|
49
|
-
end
|
50
|
-
end
|
51
|
-
"
|
52
|
-
end
|
53
|
-
end
|
@@ -1,132 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Class: UniCache::UniCacheCommon
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.6.1
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../_index.html">Index (U)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../UniCache.html" title="UniCache (module)">UniCache</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">UniCacheCommon</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: UniCache::UniCacheCommon
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
<dt class="r1">Inherits:</dt>
|
75
|
-
<dd class="r1">
|
76
|
-
<span class="inheritName">Object</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">UniCache::UniCacheCommon</li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
85
|
-
|
86
|
-
</dd>
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
<dt class="r2 last">Defined in:</dt>
|
97
|
-
<dd class="r2 last">lib/version.rb</dd>
|
98
|
-
|
99
|
-
</dl>
|
100
|
-
<div class="clear"></div>
|
101
|
-
|
102
|
-
|
103
|
-
<h2>Constant Summary</h2>
|
104
|
-
|
105
|
-
<dl class="constants">
|
106
|
-
|
107
|
-
<dt id="VERSION-constant" class="">VERSION =
|
108
|
-
|
109
|
-
</dt>
|
110
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.0.3</span><span class='tstring_end'>"</span></span></pre></dd>
|
111
|
-
|
112
|
-
</dl>
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
</div>
|
124
|
-
|
125
|
-
<div id="footer">
|
126
|
-
Generated on Thu Jul 17 14:43:45 2014 by
|
127
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
128
|
-
0.8.6.1 (ruby-1.9.3).
|
129
|
-
</div>
|
130
|
-
|
131
|
-
</body>
|
132
|
-
</html>
|