ruby-nuggets 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/Rakefile +10 -0
- data/lib/nuggets/hash/only.rb +1 -2
- data/lib/nuggets/object/eigenclass.rb +1 -1
- data/lib/nuggets/object/ghost_class.rb +1 -1
- data/lib/nuggets/object/metaclass.rb +1 -1
- data/lib/nuggets/object/uniclass.rb +1 -1
- data/lib/nuggets/object/virtual_class.rb +1 -1
- data/lib/nuggets/string/msub.rb +2 -2
- data/lib/nuggets/util/i18n.rb +2 -0
- data/lib/nuggets/version.rb +1 -1
- metadata +4 -4
data/README
CHANGED
data/Rakefile
CHANGED
@@ -18,3 +18,13 @@ Hen.lay! {{
|
|
18
18
|
:extra_files => FileList['[A-Z]*'].to_a
|
19
19
|
}
|
20
20
|
}}
|
21
|
+
|
22
|
+
desc "Run all examples"
|
23
|
+
task :examples do
|
24
|
+
ruby = "#{Config::CONFIG['RUBY_INSTALL_NAME']}#{Config::CONFIG['EXEEXT']}"
|
25
|
+
|
26
|
+
Dir['lib/nuggets/*/**/*.rb'].each { |file|
|
27
|
+
puts ">>>>> #{file} <<<<<"
|
28
|
+
system(ruby, '-I', 'lib', file)
|
29
|
+
}
|
30
|
+
end
|
data/lib/nuggets/hash/only.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# whatever you prefer to call it...
|
2
|
-
require 'nuggets/singleton_class'
|
2
|
+
require 'nuggets/object/singleton_class'
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# whatever you prefer to call it...
|
2
|
-
require 'nuggets/singleton_class'
|
2
|
+
require 'nuggets/object/singleton_class'
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# whatever you prefer to call it...
|
2
|
-
require 'nuggets/singleton_class'
|
2
|
+
require 'nuggets/object/singleton_class'
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# whatever you prefer to call it...
|
2
|
-
require 'nuggets/singleton_class'
|
2
|
+
require 'nuggets/object/singleton_class'
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# whatever you prefer to call it...
|
2
|
-
require 'nuggets/singleton_class'
|
2
|
+
require 'nuggets/object/singleton_class'
|
data/lib/nuggets/string/msub.rb
CHANGED
@@ -51,7 +51,7 @@ class String
|
|
51
51
|
#
|
52
52
|
# Destructive version of #msub.
|
53
53
|
def msub!(*substitutions)
|
54
|
-
substitutions =
|
54
|
+
substitutions = substitutions.first if substitutions.first.is_a?(Hash)
|
55
55
|
keys, subs, cache = [], [], {}
|
56
56
|
|
57
57
|
substitutions.each { |key, value|
|
@@ -77,6 +77,6 @@ if $0 == __FILE__
|
|
77
77
|
p s.gsub(/a/, 'o').gsub(/o/, 'a')
|
78
78
|
p s.msub('a' => 'o', 'o' => 'a')
|
79
79
|
|
80
|
-
s.msub!('a' => 'o','o' => 'a')
|
80
|
+
s.msub!('a' => 'o', 'o' => 'a')
|
81
81
|
p s
|
82
82
|
end
|
data/lib/nuggets/util/i18n.rb
CHANGED
data/lib/nuggets/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-nuggets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01-
|
12
|
+
date: 2009-01-22 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -90,11 +90,11 @@ homepage: http://prometheus.rubyforge.org/ruby-nuggets
|
|
90
90
|
post_install_message:
|
91
91
|
rdoc_options:
|
92
92
|
- --line-numbers
|
93
|
+
- --main
|
94
|
+
- README
|
93
95
|
- --inline-source
|
94
96
|
- --title
|
95
97
|
- ruby-nuggets Application documentation
|
96
|
-
- --main
|
97
|
-
- README
|
98
98
|
- --charset
|
99
99
|
- UTF-8
|
100
100
|
- --all
|