eymiha 0.1.1 → 0.1.3
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/gem_package.rb +1 -1
- data/html/classes/Array.src/M000001.html +1 -1
- data/html/classes/Hash.src/M000002.html +1 -1
- data/html/classes/Object.html +19 -1
- data/html/classes/Object.src/M000005.html +21 -0
- data/html/created.rid +1 -1
- data/html/files/lib/eymiha_rb.html +1 -1
- data/html/fr_method_index.html +1 -0
- data/lib/eymiha.rb +9 -1
- metadata +41 -33
data/gem_package.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/eymiha.rb, line 64</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>()
|
15
15
|
<span class="ruby-identifier">strings</span> = []
|
16
16
|
<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">member</span><span class="ruby-operator">|</span> <span class="ruby-identifier">strings</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{member}"</span> }
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/eymiha.rb, line
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/eymiha.rb, line 49</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
15
|
<span class="ruby-identifier">strings</span> = []
|
16
16
|
<span class="ruby-identifier">each_pair</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">strings</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{key} => #{value}"</span> }
|
data/html/classes/Object.html
CHANGED
@@ -94,6 +94,7 @@ Provides a general method raising on conversion problems.
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
+
<a href="#M000005">optional_require</a>
|
97
98
|
<a href="#M000003">raise_no_conversion</a>
|
98
99
|
<a href="#M000004">self_name</a>
|
99
100
|
</div>
|
@@ -117,6 +118,23 @@ Provides a general method raising on conversion problems.
|
|
117
118
|
<div id="methods">
|
118
119
|
<h3 class="section-bar">Public Instance methods</h3>
|
119
120
|
|
121
|
+
<div id="method-M000005" class="method-detail">
|
122
|
+
<a name="M000005"></a>
|
123
|
+
|
124
|
+
<div class="method-heading">
|
125
|
+
<a href="Object.src/M000005.html" target="Code" class="method-signature"
|
126
|
+
onclick="popupCode('Object.src/M000005.html');return false;">
|
127
|
+
<span class="method-name">optional_require</span><span class="method-args">(feature)</span>
|
128
|
+
</a>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div class="method-description">
|
132
|
+
<p>
|
133
|
+
Optionally require a library - don‘t fail if it‘s missing.
|
134
|
+
</p>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
|
120
138
|
<div id="method-M000003" class="method-detail">
|
121
139
|
<a name="M000003"></a>
|
122
140
|
|
@@ -147,7 +165,7 @@ cannot be converted to an instance of type dest.
|
|
147
165
|
|
148
166
|
<div class="method-description">
|
149
167
|
<p>
|
150
|
-
Returns the class name of a class or an instance
|
168
|
+
Returns the class name of a class or an instance.
|
151
169
|
</p>
|
152
170
|
</div>
|
153
171
|
</div>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>optional_require (Object)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/eymiha.rb, line 33</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">optional_require</span> <span class="ruby-identifier">feature</span>
|
15
|
+
<span class="ruby-keyword kw">begin</span>
|
16
|
+
<span class="ruby-identifier">require</span> <span class="ruby-identifier">feature</span>
|
17
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">LoadError</span>
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
data/html/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Mon, 28 Apr 2008 06:03:41 -0400
|
data/html/fr_method_index.html
CHANGED
@@ -20,6 +20,7 @@
|
|
20
20
|
<div id="index">
|
21
21
|
<h1 class="section-bar">Methods</h1>
|
22
22
|
<div id="index-entries">
|
23
|
+
<a href="classes/Object.html#M000005">optional_require (Object)</a><br />
|
23
24
|
<a href="classes/Object.html#M000003">raise_no_conversion (Object)</a><br />
|
24
25
|
<a href="classes/Object.html#M000004">self_name (Object)</a><br />
|
25
26
|
<a href="classes/Hash.html#M000002">to_s (Hash)</a><br />
|
data/lib/eymiha.rb
CHANGED
@@ -24,11 +24,19 @@ class Object
|
|
24
24
|
raise TypeError, "Cannot convert '#{src.class.name}' to #{dest}"
|
25
25
|
end
|
26
26
|
|
27
|
-
# Returns the class name of a class or an instance
|
27
|
+
# Returns the class name of a class or an instance.
|
28
28
|
def self_name
|
29
29
|
(instance_of? Class) ? self.name : self.class.name
|
30
30
|
end
|
31
31
|
|
32
|
+
# Optionally require a library - don't fail if it's missing.
|
33
|
+
def optional_require feature
|
34
|
+
begin
|
35
|
+
require feature
|
36
|
+
rescue LoadError
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
32
40
|
end
|
33
41
|
|
34
42
|
|
metadata
CHANGED
@@ -1,33 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.2
|
3
|
-
specification_version: 1
|
4
2
|
name: eymiha
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-05-16 00:00:00 -04:00
|
8
|
-
summary: Eymiha environment and rubyism setup
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: dave@eymiha.com
|
12
|
-
homepage: http://www.eymiha.com
|
13
|
-
rubyforge_project: cori
|
14
|
-
description:
|
15
|
-
autorequire: eymiha
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.1.3
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Dave Anderson
|
8
|
+
autorequire: eymiha
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-04-28 00:00:00 -04:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: dave@eymiha.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files: []
|
23
|
+
|
31
24
|
files:
|
32
25
|
- gem_package.rb
|
33
26
|
- rakefile.rb
|
@@ -45,6 +38,7 @@ files:
|
|
45
38
|
- html/classes/Object.src
|
46
39
|
- html/classes/Object.src/M000003.html
|
47
40
|
- html/classes/Object.src/M000004.html
|
41
|
+
- html/classes/Object.src/M000005.html
|
48
42
|
- html/created.rid
|
49
43
|
- html/files
|
50
44
|
- html/files/lib
|
@@ -54,17 +48,31 @@ files:
|
|
54
48
|
- html/fr_method_index.html
|
55
49
|
- html/index.html
|
56
50
|
- html/rdoc-style.css
|
57
|
-
|
58
|
-
|
51
|
+
has_rdoc: true
|
52
|
+
homepage: http://www.eymiha.com
|
53
|
+
post_install_message:
|
59
54
|
rdoc_options:
|
60
55
|
- --all
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: "0"
|
63
|
+
version:
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: "0"
|
69
|
+
version:
|
67
70
|
requirements: []
|
68
71
|
|
69
|
-
|
72
|
+
rubyforge_project: cori
|
73
|
+
rubygems_version: 1.0.1
|
74
|
+
signing_key:
|
75
|
+
specification_version: 2
|
76
|
+
summary: Eymiha environment and rubyism setup
|
77
|
+
test_files: []
|
70
78
|
|