facets 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/CHANGES +14 -6
  2. data/MANIFEST +35 -18
  3. data/NOTES +5 -15
  4. data/README +1 -11
  5. data/doc/{History.txt → history.rdoc} +0 -0
  6. data/doc/html/api/core/created.rid +1 -1
  7. data/doc/html/api/core/files/CHANGES.html +20 -4
  8. data/doc/html/api/core/files/NOTES.html +44 -15
  9. data/doc/html/api/more/created.rid +1 -1
  10. data/doc/html/api/more/files/CHANGES.html +20 -4
  11. data/doc/html/api/more/files/NOTES.html +46 -15
  12. data/doc/html/changes.html +19 -3
  13. data/doc/html/notes.html +43 -14
  14. data/doc/notes.rdoc +9 -0
  15. data/lib/facets/basex.rb +37 -0
  16. data/lib/facets/basicobject.rb +2 -2
  17. data/lib/facets/date.rb +16 -4
  18. data/lib/facets/exception.rb +1 -0
  19. data/lib/facets/exception/suppress.rb +21 -0
  20. data/lib/facets/hash/argumentize.rb +2 -1
  21. data/lib/facets/kernel.rb +9 -2
  22. data/lib/facets/kernel/__class__.rb +9 -0
  23. data/lib/facets/kernel/__get__.rb +10 -0
  24. data/lib/facets/kernel/__set__.rb +1 -0
  25. data/lib/facets/kernel/instance_assign.rb +41 -0
  26. data/lib/facets/kernel/instance_class.rb +24 -0
  27. data/lib/facets/kernel/instance_send.rb +7 -0
  28. data/lib/facets/kernel/instance_variables.rb +99 -0
  29. data/lib/facets/kernel/object_class.rb +10 -0
  30. data/lib/facets/kernel/object_hexid.rb +12 -0
  31. data/lib/facets/kernel/{object.rb → object_send.rb} +0 -21
  32. data/lib/facets/kernel/silence.rb +25 -19
  33. data/lib/facets/kernel/suppress.rb +18 -0
  34. data/lib/facets/module.rb +3 -0
  35. data/lib/facets/module/basename.rb +31 -0
  36. data/lib/facets/module/modspace.rb +22 -0
  37. data/lib/facets/module/nesting.rb +0 -66
  38. data/lib/facets/module/spacename.rb +25 -0
  39. data/lib/facets/net/smtp_tls.rb +5 -8
  40. data/lib/facets/openhash.rb +1 -0
  41. data/lib/facets/openobject.rb +2 -1
  42. data/lib/facets/paramix.rb +187 -0
  43. data/lib/facets/platform.rb +192 -0
  44. data/lib/facets/recorder.rb +1 -1
  45. data/lib/facets/string.rb +12 -0
  46. data/lib/facets/string/to_time.rb +1 -23
  47. data/lib/facets/style.rb +145 -64
  48. data/lib/facets/time.rb +5 -0
  49. data/lib/facets/time/to_time.rb +14 -0
  50. data/log/{Changelog-0.txt → changelog-0.rdoc} +0 -0
  51. data/log/{Changelog-1.txt → changelog-1.rdoc} +0 -0
  52. data/log/{Changelog.txt → changelog.rdoc} +18 -0
  53. data/log/{Fixme.txt → fixme.rdoc} +3 -3
  54. data/log/testlog.txt +645 -0
  55. data/log/{Todo.txt → todo.rdoc} +80 -89
  56. data/meta/project.yaml +14 -10
  57. data/meta/version +1 -1
  58. data/script/conflicts +28 -3
  59. data/script/methods +32 -43
  60. data/test/kernel/{test_instance.rb → test_instance_assign.rb} +2 -10
  61. data/test/kernel/test_instance_class.rb +12 -0
  62. data/test/kernel/{test_object.rb → test_object_class.rb} +2 -9
  63. data/test/kernel/test_object_hexid.rb +12 -0
  64. data/test/module/test_basename.rb +11 -0
  65. data/test/module/test_modspace.rb +13 -0
  66. data/test/module/test_nesting.rb +0 -17
  67. data/test/module/test_spacename.rb +14 -0
  68. data/test/test_date.rb +12 -0
  69. data/test/test_style.rb +1 -1
  70. data/test/{string → time}/test_to_time.rb +1 -9
  71. metadata +46 -26
  72. data/lib/facets/behavior.rb +0 -104
  73. data/lib/facets/kernel/instance.rb +0 -73
  74. data/lib/facets/string/stylize.rb +0 -73
  75. data/lib/facets/string/underscore.rb +0 -28
  76. data/log/Testlog.txt +0 -205
  77. data/meta/corelibs +0 -49
  78. data/test/string/test_stylize.rb +0 -52
  79. data/test/string/test_underscore.rb +0 -13
@@ -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
-
@@ -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
-
@@ -1,13 +0,0 @@
1
- require 'facets/string/underscore.rb'
2
- require 'test/unit'
3
-
4
- class StringUnderscoreTest < Test::Unit::TestCase
5
-
6
- def test_underscore
7
- r = "try this out".underscore
8
- x = "try_this_out"
9
- assert_equal(x,r)
10
- end
11
-
12
- end
13
-