facets 0.7.0 → 0.7.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/Reapfile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  TITLE: &title Ruby Facets
4
4
  NAME: &pkg facets
5
- VERSION: '0.7.0'
5
+ VERSION: '0.7.1'
6
6
  AUTHOR: Trans
7
7
  EMAIL: transfire@gmail.com
8
8
  HOMEPAGE: "http://calibre.rubyforge.org"
@@ -370,7 +370,7 @@ directory, for instance.
370
370
  <div class="method-heading">
371
371
  <a href="Kernel.src/M000324.html" target="Code" class="method-signature"
372
372
  onclick="popupCode('Kernel.src/M000324.html');return false;">
373
- <span class="method-name">require_facet</span><span class="method-args">( fname )</span>
373
+ <span class="method-name">require_facet</span><span class="method-args">( fpath )</span>
374
374
  </a>
375
375
  </div>
376
376
 
@@ -11,8 +11,8 @@
11
11
  </head>
12
12
  <body class="standalone-code">
13
13
  <pre><span class="ruby-comment cmt"># File lib/facet/kernel/require_facet.rb, line 9</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_facet</span>( <span class="ruby-identifier">fname</span> )
15
- <span class="ruby-identifier">require</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>( <span class="ruby-constant">URI</span>.<span class="ruby-identifier">escape</span>(<span class="ruby-identifier">fname</span>, <span class="ruby-regexp re">/\W/</span>) )
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_facet</span>( <span class="ruby-identifier">fpath</span> )
15
+ <span class="ruby-identifier">require</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>( <span class="ruby-identifier">fpath</span> ), <span class="ruby-constant">URI</span>.<span class="ruby-identifier">escape</span>( <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">fpath</span> ), <span class="ruby-regexp re">/\W/</span> ) ) )
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -1 +1 @@
1
- Thu Apr 28 15:32:20 EDT 2005
1
+ Sun May 01 10:52:20 EDT 2005
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Tue Apr 26 14:18:12 EDT 2005</td>
59
+ <td>Fri Apr 29 20:32:45 EDT 2005</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Tue Apr 26 17:56:20 EDT 2005</td>
59
+ <td>Sun May 01 10:49:57 EDT 2005</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -1 +1 @@
1
- Thu Apr 28 15:32:42 EDT 2005
1
+ Sun May 01 10:55:21 EDT 2005
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Wed Apr 27 10:26:16 EDT 2005</td>
59
+ <td>Sun May 01 10:32:20 EDT 2005</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -98,7 +98,7 @@ Methods considered most fundamental.
98
98
  facet/ostruct/ostruct_update&nbsp;&nbsp;
99
99
  facet/range/to_r&nbsp;&nbsp;
100
100
  facet/regexp/to_re&nbsp;&nbsp;
101
- facet/string/blank&nbsp;&nbsp;
101
+ facet/string/blank%3F&nbsp;&nbsp;
102
102
  facet/string/cmp&nbsp;&nbsp;
103
103
  facet/string/to_re&nbsp;&nbsp;
104
104
  facet/symbol/not%3F&nbsp;&nbsp;
data/lib/facet/base.rb CHANGED
@@ -21,7 +21,7 @@ require "facet/object/special_class" #!!!
21
21
  require "facet/ostruct/ostruct_update"
22
22
  require "facet/range/to_r"
23
23
  require "facet/regexp/to_re"
24
- require "facet/string/blank"
24
+ require "facet/string/blank%3F"
25
25
  require "facet/string/cmp"
26
26
  require "facet/string/to_re"
27
27
  require "facet/symbol/not%3F"
@@ -6,7 +6,8 @@ module Kernel
6
6
  #
7
7
  # require_facet 'facet/array/[]'
8
8
  #
9
- def require_facet( fname )
10
- require File.join( URI.escape(fname, /\W/) )
9
+ def require_facet( fpath )
10
+ require( File.join( File.dirname( fpath ), URI.escape( File.basename( fpath ), /\W/ ) ) )
11
11
  end
12
12
  end
13
+
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: facets
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.0
7
- date: 2005-04-28
6
+ version: 0.7.1
7
+ date: 2005-05-01
8
8
  summary: Fantastic Atomic Core Extensions
9
9
  require_paths:
10
10
  - lib