facets 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +14 -6
- data/MANIFEST +35 -18
- data/NOTES +5 -15
- data/README +1 -11
- data/doc/{History.txt → history.rdoc} +0 -0
- data/doc/html/api/core/created.rid +1 -1
- data/doc/html/api/core/files/CHANGES.html +20 -4
- data/doc/html/api/core/files/NOTES.html +44 -15
- data/doc/html/api/more/created.rid +1 -1
- data/doc/html/api/more/files/CHANGES.html +20 -4
- data/doc/html/api/more/files/NOTES.html +46 -15
- data/doc/html/changes.html +19 -3
- data/doc/html/notes.html +43 -14
- data/doc/notes.rdoc +9 -0
- data/lib/facets/basex.rb +37 -0
- data/lib/facets/basicobject.rb +2 -2
- data/lib/facets/date.rb +16 -4
- data/lib/facets/exception.rb +1 -0
- data/lib/facets/exception/suppress.rb +21 -0
- data/lib/facets/hash/argumentize.rb +2 -1
- data/lib/facets/kernel.rb +9 -2
- data/lib/facets/kernel/__class__.rb +9 -0
- data/lib/facets/kernel/__get__.rb +10 -0
- data/lib/facets/kernel/__set__.rb +1 -0
- data/lib/facets/kernel/instance_assign.rb +41 -0
- data/lib/facets/kernel/instance_class.rb +24 -0
- data/lib/facets/kernel/instance_send.rb +7 -0
- data/lib/facets/kernel/instance_variables.rb +99 -0
- data/lib/facets/kernel/object_class.rb +10 -0
- data/lib/facets/kernel/object_hexid.rb +12 -0
- data/lib/facets/kernel/{object.rb → object_send.rb} +0 -21
- data/lib/facets/kernel/silence.rb +25 -19
- data/lib/facets/kernel/suppress.rb +18 -0
- data/lib/facets/module.rb +3 -0
- data/lib/facets/module/basename.rb +31 -0
- data/lib/facets/module/modspace.rb +22 -0
- data/lib/facets/module/nesting.rb +0 -66
- data/lib/facets/module/spacename.rb +25 -0
- data/lib/facets/net/smtp_tls.rb +5 -8
- data/lib/facets/openhash.rb +1 -0
- data/lib/facets/openobject.rb +2 -1
- data/lib/facets/paramix.rb +187 -0
- data/lib/facets/platform.rb +192 -0
- data/lib/facets/recorder.rb +1 -1
- data/lib/facets/string.rb +12 -0
- data/lib/facets/string/to_time.rb +1 -23
- data/lib/facets/style.rb +145 -64
- data/lib/facets/time.rb +5 -0
- data/lib/facets/time/to_time.rb +14 -0
- data/log/{Changelog-0.txt → changelog-0.rdoc} +0 -0
- data/log/{Changelog-1.txt → changelog-1.rdoc} +0 -0
- data/log/{Changelog.txt → changelog.rdoc} +18 -0
- data/log/{Fixme.txt → fixme.rdoc} +3 -3
- data/log/testlog.txt +645 -0
- data/log/{Todo.txt → todo.rdoc} +80 -89
- data/meta/project.yaml +14 -10
- data/meta/version +1 -1
- data/script/conflicts +28 -3
- data/script/methods +32 -43
- data/test/kernel/{test_instance.rb → test_instance_assign.rb} +2 -10
- data/test/kernel/test_instance_class.rb +12 -0
- data/test/kernel/{test_object.rb → test_object_class.rb} +2 -9
- data/test/kernel/test_object_hexid.rb +12 -0
- data/test/module/test_basename.rb +11 -0
- data/test/module/test_modspace.rb +13 -0
- data/test/module/test_nesting.rb +0 -17
- data/test/module/test_spacename.rb +14 -0
- data/test/test_date.rb +12 -0
- data/test/test_style.rb +1 -1
- data/test/{string → time}/test_to_time.rb +1 -9
- metadata +46 -26
- data/lib/facets/behavior.rb +0 -104
- data/lib/facets/kernel/instance.rb +0 -73
- data/lib/facets/string/stylize.rb +0 -73
- data/lib/facets/string/underscore.rb +0 -28
- data/log/Testlog.txt +0 -205
- data/meta/corelibs +0 -49
- data/test/string/test_stylize.rb +0 -52
- data/test/string/test_underscore.rb +0 -13
data/meta/corelibs
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
lib/facets/one_nine
|
2
|
-
|
3
|
-
# classes
|
4
|
-
lib/facets/functor
|
5
|
-
#lib/facets/pathname
|
6
|
-
|
7
|
-
# modules
|
8
|
-
lib/facets/indexable
|
9
|
-
lib/facets/stackable
|
10
|
-
|
11
|
-
# systems
|
12
|
-
#lib/facets/1stclassmethod
|
13
|
-
#lib/facets/cattr
|
14
|
-
#lib/facets/chain
|
15
|
-
#lib/facets/lazy
|
16
|
-
lib/facets/metaid
|
17
|
-
lib/facets/bitmask
|
18
|
-
lib/facets/blank
|
19
|
-
lib/facets/boolean
|
20
|
-
lib/facets/callstack
|
21
|
-
lib/facets/duplicable
|
22
|
-
lib/facets/to_hash
|
23
|
-
|
24
|
-
# extensions by container
|
25
|
-
lib/facets/array
|
26
|
-
lib/facets/binding
|
27
|
-
lib/facets/class
|
28
|
-
lib/facets/comparable
|
29
|
-
lib/facets/dir
|
30
|
-
lib/facets/enumerable
|
31
|
-
lib/facets/exception
|
32
|
-
lib/facets/file
|
33
|
-
lib/facets/filetest
|
34
|
-
#lib/facets/float
|
35
|
-
lib/facets/hash
|
36
|
-
lib/facets/integer
|
37
|
-
lib/facets/kernel
|
38
|
-
lib/facets/matchdata
|
39
|
-
lib/facets/module
|
40
|
-
lib/facets/nilclass
|
41
|
-
lib/facets/numeric
|
42
|
-
lib/facets/proc
|
43
|
-
lib/facets/range
|
44
|
-
lib/facets/regexp
|
45
|
-
lib/facets/string
|
46
|
-
lib/facets/symbol
|
47
|
-
lib/facets/time
|
48
|
-
lib/facets/unboundmethod
|
49
|
-
|
data/test/string/test_stylize.rb
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
require 'facets/string/stylize'
|
2
|
-
require 'test/unit'
|
3
|
-
|
4
|
-
class TestStringCase < Test::Unit::TestCase
|
5
|
-
|
6
|
-
def test_modulize
|
7
|
-
assert_equal( 'ThisIsIt', 'this_is_it'.modulize )
|
8
|
-
assert_equal( 'MyModule::MyClass', 'my_module__my_class'.modulize )
|
9
|
-
assert_equal( '::MyModule::MyClass', '__my_module__my_class'.modulize )
|
10
|
-
assert_equal( 'MyModule::MyClass', 'my_module/my_class'.modulize )
|
11
|
-
assert_equal( '::MyModule::MyClass', '/my_module/my_class'.modulize )
|
12
|
-
end
|
13
|
-
|
14
|
-
=begin
|
15
|
-
def test_demodulize_01
|
16
|
-
a = "Down::Bottom"
|
17
|
-
assert_raises( ArgumentError ) { a.demodulize(1) }
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_demodulize_02
|
21
|
-
a = "Down::Bottom"
|
22
|
-
assert_equal( "Bottom", a.demodulize )
|
23
|
-
end
|
24
|
-
|
25
|
-
def test_demodulize_03
|
26
|
-
b = "Further::Down::Bottom"
|
27
|
-
assert_equal( "Bottom", b.demodulize )
|
28
|
-
end
|
29
|
-
|
30
|
-
def test_demodulize_04
|
31
|
-
assert_equal( "Unit", "Test::Unit".demodulize )
|
32
|
-
end
|
33
|
-
=end
|
34
|
-
|
35
|
-
def test_methodize
|
36
|
-
assert_equal( 'hello_world', 'HelloWorld'.methodize )
|
37
|
-
assert_equal( '__unix_path', '/unix_path'.methodize )
|
38
|
-
end
|
39
|
-
|
40
|
-
def test_pathize
|
41
|
-
assert_equal( 'my_module/my_class', 'MyModule::MyClass'.pathize )
|
42
|
-
assert_equal( 'uri', 'URI'.pathize )
|
43
|
-
assert_equal( '/my_class', '::MyClass'.pathize )
|
44
|
-
assert_equal( '/my_module/my_class/', '/my_module/my_class/'.pathize )
|
45
|
-
end
|
46
|
-
|
47
|
-
def test_humanize
|
48
|
-
assert_equal( 'This is it', 'this_is_it'.humanize )
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
|