elephas 4.1.0 → 4.1.1

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/Gemfile CHANGED
@@ -9,12 +9,13 @@ source "http://rubygems.org"
9
9
  gemspec
10
10
 
11
11
  # Testing
12
- gem "rspec", "~> 2.13.0"
13
- gem "rake", "~> 10.0.4"
12
+ gem "rspec", "~> 2.14.1"
13
+ gem "rake", "~> 10.1.0"
14
14
 
15
15
  # Documentation
16
16
  gem "simplecov", ">= 0.7.1"
17
+ gem "coveralls", ">= 0.6.7", require: false
17
18
  gem "pry", ">= 0"
18
19
  gem "yard", ">= 0.8.6"
19
- gem "kramdown", ">= 1.0.2"
20
+ gem "kramdown", ">= 1.1.0"
20
21
  gem "github-markup", ">= 0.7.5"
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Elephas::Backends::Base
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -662,9 +662,9 @@
662
662
  </div>
663
663
 
664
664
  <div id="footer">
665
- Generated on Thu May 23 11:05:50 2013 by
665
+ Generated on Sun Jul 14 13:40:58 2013 by
666
666
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
667
- 0.8.6.1 (ruby-1.9.3).
667
+ 0.8.6.2 (ruby-1.9.3).
668
668
  </div>
669
669
 
670
670
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Elephas::Backends::Hash
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -876,9 +876,9 @@
876
876
  </div>
877
877
 
878
878
  <div id="footer">
879
- Generated on Thu May 23 11:05:50 2013 by
879
+ Generated on Sun Jul 14 13:40:57 2013 by
880
880
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
881
- 0.8.6.1 (ruby-1.9.3).
881
+ 0.8.6.2 (ruby-1.9.3).
882
882
  </div>
883
883
 
884
884
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Elephas::Backends::RubyOnRails
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -597,9 +597,9 @@
597
597
  </div>
598
598
 
599
599
  <div id="footer">
600
- Generated on Thu May 23 11:05:50 2013 by
600
+ Generated on Sun Jul 14 13:40:58 2013 by
601
601
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
602
- 0.8.6.1 (ruby-1.9.3).
602
+ 0.8.6.2 (ruby-1.9.3).
603
603
  </div>
604
604
 
605
605
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Elephas::Backends
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -118,9 +118,9 @@
118
118
  </div>
119
119
 
120
120
  <div id="footer">
121
- Generated on Thu May 23 11:05:50 2013 by
121
+ Generated on Sun Jul 14 13:40:57 2013 by
122
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
123
- 0.8.6.1 (ruby-1.9.3).
123
+ 0.8.6.2 (ruby-1.9.3).
124
124
  </div>
125
125
 
126
126
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Elephas::Cache
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -767,7 +767,7 @@
767
767
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:key</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='id identifier rubyid_key'>key</span>
768
768
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:ttl</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:ttl</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='op'>?</span> <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_hour'>hour</span> <span class='op'>*</span> <span class='int'>1000</span> <span class='op'>:</span> <span class='lbracket'>[</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:ttl</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span>
769
769
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:force</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:force</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_boolean'>to_boolean</span>
770
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_prefix'>prefix</span>
770
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='id identifier rubyid_prefix'>prefix</span>
771
771
 
772
772
  <span class='id identifier rubyid_options'>options</span>
773
773
  <span class='kw'>end</span>
@@ -1134,7 +1134,7 @@
1134
1134
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:key</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='id identifier rubyid_key'>key</span>
1135
1135
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:ttl</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:ttl</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='op'>?</span> <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_hour'>hour</span> <span class='op'>*</span> <span class='int'>1000</span> <span class='op'>:</span> <span class='lbracket'>[</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:ttl</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span>
1136
1136
  <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:force</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:force</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_boolean'>to_boolean</span>
1137
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_prefix'>prefix</span>
1137
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:prefix</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='id identifier rubyid_prefix'>prefix</span>
1138
1138
 
1139
1139
  <span class='id identifier rubyid_options'>options</span>
1140
1140
  <span class='kw'>end</span>
@@ -1839,9 +1839,9 @@ end</p>
1839
1839
  </div>
1840
1840
 
1841
1841
  <div id="footer">
1842
- Generated on Thu May 23 11:05:50 2013 by
1842
+ Generated on Sun Jul 14 13:40:57 2013 by
1843
1843
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1844
- 0.8.6.1 (ruby-1.9.3).
1844
+ 0.8.6.2 (ruby-1.9.3).
1845
1845
  </div>
1846
1846
 
1847
1847
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Elephas::Entry
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -708,7 +708,7 @@
708
708
  </span> <span class='comment'># @param backend [Backends::Base] The backend to use for the check.
709
709
  </span> <span class='comment'># @return [Boolean] `true` if the entry is still valid, `false` otherwise.
710
710
  </span> <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_backend'>backend</span><span class='rparen'>)</span>
711
- <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
711
+ <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
712
712
  <span class='kw'>end</span>
713
713
 
714
714
  <span class='comment'># Compares to another Entry.
@@ -937,7 +937,7 @@
937
937
  </span> <span class='comment'># @param backend [Backends::Base] The backend to use for the check.
938
938
  </span> <span class='comment'># @return [Boolean] `true` if the entry is still valid, `false` otherwise.
939
939
  </span> <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_backend'>backend</span><span class='rparen'>)</span>
940
- <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
940
+ <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
941
941
  <span class='kw'>end</span>
942
942
 
943
943
  <span class='comment'># Compares to another Entry.
@@ -1166,7 +1166,7 @@
1166
1166
  </span> <span class='comment'># @param backend [Backends::Base] The backend to use for the check.
1167
1167
  </span> <span class='comment'># @return [Boolean] `true` if the entry is still valid, `false` otherwise.
1168
1168
  </span> <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_backend'>backend</span><span class='rparen'>)</span>
1169
- <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
1169
+ <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
1170
1170
  <span class='kw'>end</span>
1171
1171
 
1172
1172
  <span class='comment'># Compares to another Entry.
@@ -1395,7 +1395,7 @@
1395
1395
  </span> <span class='comment'># @param backend [Backends::Base] The backend to use for the check.
1396
1396
  </span> <span class='comment'># @return [Boolean] `true` if the entry is still valid, `false` otherwise.
1397
1397
  </span> <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_backend'>backend</span><span class='rparen'>)</span>
1398
- <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
1398
+ <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
1399
1399
  <span class='kw'>end</span>
1400
1400
 
1401
1401
  <span class='comment'># Compares to another Entry.
@@ -1624,7 +1624,7 @@
1624
1624
  </span> <span class='comment'># @param backend [Backends::Base] The backend to use for the check.
1625
1625
  </span> <span class='comment'># @return [Boolean] `true` if the entry is still valid, `false` otherwise.
1626
1626
  </span> <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_backend'>backend</span><span class='rparen'>)</span>
1627
- <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
1627
+ <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
1628
1628
  <span class='kw'>end</span>
1629
1629
 
1630
1630
  <span class='comment'># Compares to another Entry.
@@ -2143,7 +2143,7 @@
2143
2143
  <pre class="code"><span class="info file"># File 'lib/elephas/entry.rb', line 56</span>
2144
2144
 
2145
2145
  <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_backend'>backend</span><span class='rparen'>)</span>
2146
- <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
2146
+ <span class='id identifier rubyid_backend'>backend</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_updated_at'>updated_at</span> <span class='op'>&lt;</span> <span class='id identifier rubyid_ttl'>ttl</span> <span class='op'>/</span> <span class='int'>1000</span>
2147
2147
  <span class='kw'>end</span></pre>
2148
2148
  </td>
2149
2149
  </tr>
@@ -2155,9 +2155,9 @@
2155
2155
  </div>
2156
2156
 
2157
2157
  <div id="footer">
2158
- Generated on Thu May 23 11:05:50 2013 by
2158
+ Generated on Sun Jul 14 13:40:57 2013 by
2159
2159
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2160
- 0.8.6.1 (ruby-1.9.3).
2160
+ 0.8.6.2 (ruby-1.9.3).
2161
2161
  </div>
2162
2162
 
2163
2163
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Elephas::Version
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>0</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>1</span></pre></dd>
153
153
 
154
154
  <dt id="STRING-constant" class="">STRING =
155
155
  <div class="docstring">
@@ -180,9 +180,9 @@
180
180
  </div>
181
181
 
182
182
  <div id="footer">
183
- Generated on Thu May 23 11:05:50 2013 by
183
+ Generated on Sun Jul 14 13:40:57 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
- 0.8.6.1 (ruby-1.9.3).
185
+ 0.8.6.2 (ruby-1.9.3).
186
186
  </div>
187
187
 
188
188
  </body>
data/doc/Elephas.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Elephas
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -121,9 +121,9 @@ Licensed under the MIT license, which can be found at http://www.opensource.org/
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Thu May 23 11:05:50 2013 by
124
+ Generated on Sun Jul 14 13:40:57 2013 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
- 0.8.6.1 (ruby-1.9.3).
126
+ 0.8.6.2 (ruby-1.9.3).
127
127
  </div>
128
128
 
129
129
  </body>
data/doc/_index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
6
  <title>
7
- Documentation by YARD 0.8.6.1
7
+ Documentation by YARD 0.8.6.2
8
8
 
9
9
  </title>
10
10
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  <iframe id="search_frame"></iframe>
58
58
 
59
- <div id="content"><h1 class="noborder title">Documentation by YARD 0.8.6.1</h1>
59
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.8.6.2</h1>
60
60
  <div id="listing">
61
61
  <h1 class="alphaindex">Alphabetic Index</h1>
62
62
 
@@ -190,9 +190,9 @@
190
190
  </div>
191
191
 
192
192
  <div id="footer">
193
- Generated on Thu May 23 11:05:49 2013 by
193
+ Generated on Sun Jul 14 13:40:57 2013 by
194
194
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
195
- 0.8.6.1 (ruby-1.9.3).
195
+ 0.8.6.2 (ruby-1.9.3).
196
196
  </div>
197
197
 
198
198
  </body>
data/doc/class_list.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
16
 
17
17
 
18
+ <title>Class List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
data/doc/file.README.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -128,9 +128,9 @@ end
128
128
  </div></div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Thu May 23 11:05:49 2013 by
131
+ Generated on Sun Jul 14 13:40:57 2013 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
- 0.8.6.1 (ruby-1.9.3).
133
+ 0.8.6.2 (ruby-1.9.3).
134
134
  </div>
135
135
 
136
136
  </body>
data/doc/file_list.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
16
 
17
17
 
18
+ <title>File List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
data/doc/frames.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
- <title>Documentation by YARD 0.8.6.1</title>
7
+ <title>Documentation by YARD 0.8.6.2</title>
8
8
  </head>
9
9
  <script type="text/javascript" charset="utf-8">
10
10
  window.onload = function() {
data/doc/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -128,9 +128,9 @@ end
128
128
  </div></div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Thu May 23 11:05:49 2013 by
131
+ Generated on Sun Jul 14 13:40:57 2013 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
- 0.8.6.1 (ruby-1.9.3).
133
+ 0.8.6.2 (ruby-1.9.3).
134
134
  </div>
135
135
 
136
136
  </body>
data/doc/js/full_list.js CHANGED
@@ -111,11 +111,11 @@ clicked = null;
111
111
  function linkList() {
112
112
  $('#full_list li, #full_list li a:last').click(function(evt) {
113
113
  if ($(this).hasClass('toggle')) return true;
114
- if ($(this).find('.object_link a').length === 0) {
115
- $(this).children('a.toggle').click();
116
- return false;
117
- }
118
114
  if (this.tagName.toLowerCase() == "li") {
115
+ if ($(this).find('.object_link a').length === 0) {
116
+ $(this).children('a.toggle').click();
117
+ return false;
118
+ }
119
119
  var toggle = $(this).children('a.toggle');
120
120
  if (toggle.size() > 0 && evt.pageX < toggle.offset().left) {
121
121
  toggle.click();
@@ -125,7 +125,7 @@ function linkList() {
125
125
  if (clicked) clicked.removeClass('clicked');
126
126
  var win = window.top.frames.main ? window.top.frames.main : window.parent;
127
127
  if (this.tagName.toLowerCase() == "a") {
128
- clicked = $(this).parent('li').addClass('clicked');
128
+ clicked = $(this).parents('li').addClass('clicked');
129
129
  win.location = this.href;
130
130
  }
131
131
  else {
data/doc/method_list.html CHANGED
@@ -15,6 +15,7 @@
15
15
  <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
16
 
17
17
 
18
+ <title>Method List</title>
18
19
  <base id="base_target" target="_parent" />
19
20
  </head>
20
21
  <body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Top Level Namespace
8
8
 
9
- &mdash; Documentation by YARD 0.8.6.1
9
+ &mdash; Documentation by YARD 0.8.6.2
10
10
 
11
11
  </title>
12
12
 
@@ -103,9 +103,9 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Thu May 23 11:05:49 2013 by
106
+ Generated on Sun Jul 14 13:40:57 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
- 0.8.6.1 (ruby-1.9.3).
108
+ 0.8.6.2 (ruby-1.9.3).
109
109
  </div>
110
110
 
111
111
  </body>
data/elephas.gemspec CHANGED
@@ -24,5 +24,5 @@ Gem::Specification.new do |gem|
24
24
 
25
25
  gem.required_ruby_version = ">= 1.9.3"
26
26
 
27
- gem.add_dependency("lazier", "~> 3.1.0")
27
+ gem.add_dependency("lazier", "~> 3.2.0")
28
28
  end
data/lib/elephas/cache.rb CHANGED
@@ -155,7 +155,7 @@ module Elephas
155
155
  options[:key] ||= key
156
156
  options[:ttl] == options[:ttl].blank? ? 1.hour * 1000 : [options[:ttl].to_integer, 0].max
157
157
  options[:force] = options[:force].to_boolean
158
- options[:prefix] = options[:prefix].present? ? options[:prefix] : self.prefix
158
+ options[:prefix] = options[:prefix].present? ? options[:prefix] : prefix
159
159
 
160
160
  options
161
161
  end
data/lib/elephas/entry.rb CHANGED
@@ -54,7 +54,7 @@ module Elephas
54
54
  # @param backend [Backends::Base] The backend to use for the check.
55
55
  # @return [Boolean] `true` if the entry is still valid, `false` otherwise.
56
56
  def valid?(backend)
57
- backend.now - updated_at < self.ttl / 1000
57
+ backend.now - updated_at < ttl / 1000
58
58
  end
59
59
 
60
60
  # Compares to another Entry.
@@ -17,7 +17,7 @@ module Elephas
17
17
  MINOR = 1
18
18
 
19
19
  # The patch version.
20
- PATCH = 0
20
+ PATCH = 1
21
21
 
22
22
  # The current version of elephas.
23
23
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -29,7 +29,7 @@ describe Elephas::Cache do
29
29
 
30
30
  it "should not use the block if the value is valid" do
31
31
  reference.use("KEY") do entry end
32
- expect{ reference.use("KEY") do raise ArgumentError end }.not_to raise_error(ArgumentError)
32
+ expect{ reference.use("KEY") do raise ArgumentError end }.not_to raise_error
33
33
  end
34
34
 
35
35
  it "should store the value in the cache" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elephas
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-23 00:00:00.000000000 Z
12
+ date: 2013-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: lazier
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.1.0
21
+ version: 3.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 3.1.0
29
+ version: 3.2.0
30
30
  description: A storage agnostic caching framework.
31
31
  email:
32
32
  - shogun_panda@me.com
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -2351171185073210830
103
+ hash: 1968149213938335741
104
104
  requirements: []
105
105
  rubyforge_project: elephas
106
106
  rubygems_version: 1.8.25