RubyExt 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/README +846 -0
  2. data/lib/RubyExt/Cache.rb +101 -0
  3. data/lib/RubyExt/Cache.res/multiple_version_with_args.txt +12 -0
  4. data/lib/RubyExt/Cache.res/multiple_version_without_args.txt +11 -0
  5. data/lib/RubyExt/Cache.res/single_version_with_args.txt +11 -0
  6. data/lib/RubyExt/Cache.res/single_version_without_args.txt +10 -0
  7. data/lib/RubyExt/ClassLoader.rb +142 -0
  8. data/lib/RubyExt/Debug.rb +24 -0
  9. data/lib/RubyExt/ExtraBlankSlate.rb +14 -0
  10. data/lib/RubyExt/ImportAll.rb +9 -0
  11. data/lib/RubyExt/Localization/Module.rb +12 -0
  12. data/lib/RubyExt/Localization/Object.rb +19 -0
  13. data/lib/RubyExt/Localization/require.rb +3 -0
  14. data/lib/RubyExt/Localization.rb +28 -0
  15. data/lib/RubyExt/Log.config.sample +57 -0
  16. data/lib/RubyExt/Log.rb +59 -0
  17. data/lib/RubyExt/OpenConstructor.rb +51 -0
  18. data/lib/RubyExt/Path.rb +91 -0
  19. data/lib/RubyExt/Resource/file_system_provider.rb +244 -0
  20. data/lib/RubyExt/StateMashine.rb +176 -0
  21. data/lib/RubyExt/Synchronizer.rb +29 -0
  22. data/lib/RubyExt/array.rb +24 -0
  23. data/lib/RubyExt/assert.rb +111 -0
  24. data/lib/RubyExt/class.rb +0 -0
  25. data/lib/RubyExt/debug.rb +71 -0
  26. data/lib/RubyExt/false_class.rb +5 -0
  27. data/lib/RubyExt/file.rb +23 -0
  28. data/lib/RubyExt/ideas.txt +17 -0
  29. data/lib/RubyExt/kernel.rb +61 -0
  30. data/lib/RubyExt/module.rb +102 -0
  31. data/lib/RubyExt/nil_class.rb +5 -0
  32. data/lib/RubyExt/object.rb +7 -0
  33. data/lib/RubyExt/observable.rb +25 -0
  34. data/lib/RubyExt/require.rb +56 -0
  35. data/lib/RubyExt/require_base.rb +35 -0
  36. data/lib/RubyExt/resource.rb +198 -0
  37. data/lib/RubyExt/string.rb +21 -0
  38. data/lib/RubyExt/symbol.rb +21 -0
  39. data/lib/RubyExt/true_class +0 -0
  40. data/lib/RubyExt/true_class.rb +5 -0
  41. data/rakefile +49 -0
  42. data/spec/RubyExt/ForClassLoader/ClassA.rb +4 -0
  43. data/spec/RubyExt/ForClassLoader/LoadCount.rb +1 -0
  44. data/spec/RubyExt/ForClassLoader/ModuleA/ClassB.rb +3 -0
  45. data/spec/RubyExt/ForClassLoader/ModuleA/ClassInsideAnonymousClass.rb +3 -0
  46. data/spec/RubyExt/ForClassLoader/ModuleA/InfinityLoop.rb +3 -0
  47. data/spec/RubyExt/ForClassLoader/ModuleA/ModuleB/ClassC.rb +3 -0
  48. data/spec/RubyExt/ForClassLoader/ModuleA/SameName/SomeClass.rb +2 -0
  49. data/spec/RubyExt/ForClassLoader/ModuleA/SameName.rb +2 -0
  50. data/spec/RubyExt/ForClassLoader/Scope/ScopeA1.rb +3 -0
  51. data/spec/RubyExt/ForClassLoader/Scope/ScopeB1.rb +5 -0
  52. data/spec/RubyExt/ForKernel/Raise2.rb +5 -0
  53. data/spec/RubyExt/ForKernel/RaiseWithoutSelf.rb +9 -0
  54. data/spec/RubyExt/ForLocalization/NS/A.rb +3 -0
  55. data/spec/RubyExt/ForLocalization/NS/A.ru.localization.yaml +2 -0
  56. data/spec/RubyExt/ForLocalization/NS/B.rb +22 -0
  57. data/spec/RubyExt/ForLocalization/NS/B.ru.localization.yaml +3 -0
  58. data/spec/RubyExt/ForLocalization/NS.ru.localization.yaml +2 -0
  59. data/spec/RubyExt/ForModule/NS1/A.data +1 -0
  60. data/spec/RubyExt/ForModule/NS1/A.rb +1 -0
  61. data/spec/RubyExt/ForModule/NS1/A2.rb +1 -0
  62. data/spec/RubyExt/ForModule/NS1/B.rb +2 -0
  63. data/spec/RubyExt/ForModule/NS1/B2.rb +1 -0
  64. data/spec/RubyExt/ForModule/NS1.data +1 -0
  65. data/spec/RubyExt/ForModule/NS2/A.data +1 -0
  66. data/spec/RubyExt/ForModule/NS2/A.rb +3 -0
  67. data/spec/RubyExt/ForModule/NS2/B.rb +3 -0
  68. data/spec/RubyExt/ForModule/NS2/M.data +1 -0
  69. data/spec/RubyExt/ForModule/NS2/M.rb +3 -0
  70. data/spec/RubyExt/ForResource/ChangedClass.rb +1 -0
  71. data/spec/RubyExt/ForResource/ChangedClass.res/Text.txt +0 -0
  72. data/spec/RubyExt/ForResource/ChangedClass.txt +0 -0
  73. data/spec/RubyExt/ForResource/ProviderChaining/ProviderABaseDir/ChainTest.rb +3 -0
  74. data/spec/RubyExt/ForResource/ProviderChaining/ProviderABaseDir/ChainTest.resource +1 -0
  75. data/spec/RubyExt/ForResource/ProviderChaining/ProviderABaseDir/ClassExistOnlyInProviderA.rb +3 -0
  76. data/spec/RubyExt/ForResource/ProviderChaining/ProviderBBaseDir/ChainTest.rb +3 -0
  77. data/spec/RubyExt/ForResource/ProviderChaining/ProviderBBaseDir/ChainTest.resource +1 -0
  78. data/spec/RubyExt/ForResource/ResourceExtension.rb +1 -0
  79. data/spec/RubyExt/ForResource/ResourceExtension.res/Data.yaml +2 -0
  80. data/spec/RubyExt/ForResource/ResourceTest/Test.rb +1 -0
  81. data/spec/RubyExt/ForResource/ResourceTest/Test.res/Data.txt +1 -0
  82. data/spec/RubyExt/ForResource/ResourceTest/Test.res/txt +1 -0
  83. data/spec/array_spec.rb +27 -0
  84. data/spec/assert_spec.rb +18 -0
  85. data/spec/cache_spec.rb +95 -0
  86. data/spec/class_loader_spec.rb +94 -0
  87. data/spec/import_all_spec.rb +21 -0
  88. data/spec/kernel_spec.rb +38 -0
  89. data/spec/localization_spec.rb +49 -0
  90. data/spec/module_spec.rb +135 -0
  91. data/spec/object_spec.rb +8 -0
  92. data/spec/observable_spec.rb +44 -0
  93. data/spec/open_constructor_spec.rb +38 -0
  94. data/spec/path_spec.rb +169 -0
  95. data/spec/resource_spec.rb +135 -0
  96. data/spec/state_machine_spec.rb +201 -0
  97. data/spec/synchronizer_spec.rb +66 -0
  98. metadata +130 -10
  99. data/lib/RubyExt.rb +0 -1
  100. data/lib/hello_gem.rb +0 -5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyExt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Petrushin
@@ -9,22 +9,142 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-11 00:00:00 -04:00
12
+ date: 2009-06-12 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description:
16
+ description: A set of Ruby language extensions, mainly for ActivePoint Project
17
17
  email:
18
18
  executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
- extra_rdoc_files: []
23
-
22
+ extra_rdoc_files:
23
+ - README
24
24
  files:
25
- - lib/RubyExt.rb
26
- - lib/hello_gem.rb
27
- has_rdoc: false
25
+ - rakefile
26
+ - README
27
+ - lib/RubyExt
28
+ - lib/RubyExt/Localization.rb
29
+ - lib/RubyExt/true_class.rb
30
+ - lib/RubyExt/array.rb
31
+ - lib/RubyExt/object.rb
32
+ - lib/RubyExt/file.rb
33
+ - lib/RubyExt/Resource
34
+ - lib/RubyExt/Resource/file_system_provider.rb
35
+ - lib/RubyExt/require.rb
36
+ - lib/RubyExt/resource.rb
37
+ - lib/RubyExt/Localization
38
+ - lib/RubyExt/Localization/require.rb
39
+ - lib/RubyExt/Localization/Object.rb
40
+ - lib/RubyExt/Localization/Module.rb
41
+ - lib/RubyExt/module.rb
42
+ - lib/RubyExt/Synchronizer.rb
43
+ - lib/RubyExt/kernel.rb
44
+ - lib/RubyExt/debug.rb
45
+ - lib/RubyExt/class.rb
46
+ - lib/RubyExt/ExtraBlankSlate.rb
47
+ - lib/RubyExt/observable.rb
48
+ - lib/RubyExt/Cache.res
49
+ - lib/RubyExt/Cache.res/single_version_with_args.txt
50
+ - lib/RubyExt/Cache.res/multiple_version_without_args.txt
51
+ - lib/RubyExt/Cache.res/multiple_version_with_args.txt
52
+ - lib/RubyExt/Cache.res/single_version_without_args.txt
53
+ - lib/RubyExt/ClassLoader.rb
54
+ - lib/RubyExt/Log.config.sample
55
+ - lib/RubyExt/string.rb
56
+ - lib/RubyExt/ForResource
57
+ - lib/RubyExt/Cache.rb
58
+ - lib/RubyExt/OpenConstructor.rb
59
+ - lib/RubyExt/nil_class.rb
60
+ - lib/RubyExt/ImportAll.rb
61
+ - lib/RubyExt/true_class
62
+ - lib/RubyExt/ideas.txt
63
+ - lib/RubyExt/StateMashine.rb
64
+ - lib/RubyExt/false_class.rb
65
+ - lib/RubyExt/require_base.rb
66
+ - lib/RubyExt/Debug.rb
67
+ - lib/RubyExt/Path.rb
68
+ - lib/RubyExt/Log.rb
69
+ - lib/RubyExt/assert.rb
70
+ - lib/RubyExt/symbol.rb
71
+ - spec/array_spec.rb
72
+ - spec/open_constructor_spec.rb
73
+ - spec/class_loader_spec.rb
74
+ - spec/object_spec.rb
75
+ - spec/state_machine_spec.rb
76
+ - spec/observable_spec.rb
77
+ - spec/kernel_spec.rb
78
+ - spec/RubyExt
79
+ - spec/RubyExt/ForLocalization
80
+ - spec/RubyExt/ForLocalization/NS.ru.localization.yaml
81
+ - spec/RubyExt/ForLocalization/NS
82
+ - spec/RubyExt/ForLocalization/NS/B.rb
83
+ - spec/RubyExt/ForLocalization/NS/B.ru.localization.yaml
84
+ - spec/RubyExt/ForLocalization/NS/A.ru.localization.yaml
85
+ - spec/RubyExt/ForLocalization/NS/A.rb
86
+ - spec/RubyExt/ForResource
87
+ - spec/RubyExt/ForResource/ProviderChaining
88
+ - spec/RubyExt/ForResource/ProviderChaining/ProviderABaseDir
89
+ - spec/RubyExt/ForResource/ProviderChaining/ProviderABaseDir/ChainTest.rb
90
+ - spec/RubyExt/ForResource/ProviderChaining/ProviderABaseDir/ChainTest.resource
91
+ - spec/RubyExt/ForResource/ProviderChaining/ProviderABaseDir/ClassExistOnlyInProviderA.rb
92
+ - spec/RubyExt/ForResource/ProviderChaining/ProviderBBaseDir
93
+ - spec/RubyExt/ForResource/ProviderChaining/ProviderBBaseDir/ChainTest.rb
94
+ - spec/RubyExt/ForResource/ProviderChaining/ProviderBBaseDir/ChainTest.resource
95
+ - spec/RubyExt/ForResource/ResourceExtension.res
96
+ - spec/RubyExt/ForResource/ResourceExtension.res/Data.yaml
97
+ - spec/RubyExt/ForResource/ChangedClass.res
98
+ - spec/RubyExt/ForResource/ChangedClass.res/Text.txt
99
+ - spec/RubyExt/ForResource/ChangedClass.txt
100
+ - spec/RubyExt/ForResource/ResourceExtension.rb
101
+ - spec/RubyExt/ForResource/ResourceTest
102
+ - spec/RubyExt/ForResource/ResourceTest/Test.rb
103
+ - spec/RubyExt/ForResource/ResourceTest/Test.res
104
+ - spec/RubyExt/ForResource/ResourceTest/Test.res/txt
105
+ - spec/RubyExt/ForResource/ResourceTest/Test.res/Data.txt
106
+ - spec/RubyExt/ForResource/ChangedClass.rb
107
+ - spec/RubyExt/ForClassLoader
108
+ - spec/RubyExt/ForClassLoader/ModuleA
109
+ - spec/RubyExt/ForClassLoader/ModuleA/InfinityLoop.rb
110
+ - spec/RubyExt/ForClassLoader/ModuleA/SameName.rb
111
+ - spec/RubyExt/ForClassLoader/ModuleA/ModuleB
112
+ - spec/RubyExt/ForClassLoader/ModuleA/ModuleB/ClassC.rb
113
+ - spec/RubyExt/ForClassLoader/ModuleA/SameName
114
+ - spec/RubyExt/ForClassLoader/ModuleA/SameName/SomeClass.rb
115
+ - spec/RubyExt/ForClassLoader/ModuleA/ClassInsideAnonymousClass.rb
116
+ - spec/RubyExt/ForClassLoader/ModuleA/ClassB.rb
117
+ - spec/RubyExt/ForClassLoader/Scope
118
+ - spec/RubyExt/ForClassLoader/Scope/ScopeB1.rb
119
+ - spec/RubyExt/ForClassLoader/Scope/ScopeA1.rb
120
+ - spec/RubyExt/ForClassLoader/LoadCount.rb
121
+ - spec/RubyExt/ForClassLoader/ClassA.rb
122
+ - spec/RubyExt/ForModule
123
+ - spec/RubyExt/ForModule/NS1
124
+ - spec/RubyExt/ForModule/NS1/B2.rb
125
+ - spec/RubyExt/ForModule/NS1/B.rb
126
+ - spec/RubyExt/ForModule/NS1/A2.rb
127
+ - spec/RubyExt/ForModule/NS1/A.data
128
+ - spec/RubyExt/ForModule/NS1/A.rb
129
+ - spec/RubyExt/ForModule/NS1.data
130
+ - spec/RubyExt/ForModule/NS2
131
+ - spec/RubyExt/ForModule/NS2/B.rb
132
+ - spec/RubyExt/ForModule/NS2/M.rb
133
+ - spec/RubyExt/ForModule/NS2/A.data
134
+ - spec/RubyExt/ForModule/NS2/M.data
135
+ - spec/RubyExt/ForModule/NS2/A.rb
136
+ - spec/RubyExt/ForKernel
137
+ - spec/RubyExt/ForKernel/RaiseWithoutSelf.rb
138
+ - spec/RubyExt/ForKernel/Raise2.rb
139
+ - spec/import_all_spec.rb
140
+ - spec/module_spec.rb
141
+ - spec/assert_spec.rb
142
+ - spec/resource_spec.rb
143
+ - spec/cache_spec.rb
144
+ - spec/synchronizer_spec.rb
145
+ - spec/localization_spec.rb
146
+ - spec/path_spec.rb
147
+ has_rdoc: true
28
148
  homepage: http://www.bos-tec.com
29
149
  post_install_message:
30
150
  rdoc_options: []
@@ -45,10 +165,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
165
  version:
46
166
  requirements: []
47
167
 
48
- rubyforge_project:
168
+ rubyforge_project: RubyExt
49
169
  rubygems_version: 1.3.1
50
170
  signing_key:
51
171
  specification_version: 2
52
- summary: RubyExt - set of small Ruby extensions, mainly for support ActivePoint.
172
+ summary: A set of Ruby language extensions, mainly for ActivePoint Project
53
173
  test_files: []
54
174
 
data/lib/RubyExt.rb DELETED
@@ -1 +0,0 @@
1
- require File.dirname(__FILE__) + "/hello_gem.rb"
data/lib/hello_gem.rb DELETED
@@ -1,5 +0,0 @@
1
- class Object
2
- def hello_gem
3
- p "hello gem"
4
- end
5
- end