core_ex 0.4.0 → 0.5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/ChangeLog +251 -0
  2. data/NEWS +29 -0
  3. data/README +1 -1
  4. data/SPEC.yml +10 -10
  5. data/lib/core_ex/dependencies_ext/constant_load_path.rb +1 -1
  6. data/lib/core_ex/embedded_tests.rb +1 -1
  7. data/lib/core_ex/enumerable.rb +87 -5
  8. data/lib/core_ex/exception.rb +1 -1
  9. data/lib/core_ex/file_utils.rb +1 -1
  10. data/lib/core_ex/lazy_loading.rb +159 -0
  11. data/lib/core_ex/module/attr_once.rb +1 -1
  12. data/lib/core_ex/module/import.rb +4 -6
  13. data/lib/core_ex/module/in_place.rb +1 -1
  14. data/lib/core_ex/module/mix_in_with_args.rb +1 -1
  15. data/lib/core_ex/numeric.rb +46 -0
  16. data/lib/core_ex/object/instance_eval_with_args.rb +1 -1
  17. data/lib/core_ex/object/singleton_class.rb +1 -1
  18. data/lib/core_ex/object/the_first_time.rb +1 -1
  19. data/lib/core_ex/pathname.rb +17 -11
  20. data/lib/core_ex/proc.rb +80 -1
  21. data/lib/core_ex/rakefile_base.rf +192 -296
  22. data/lib/core_ex/require.rb +1 -1
  23. data/lib/core_ex/string.rb +11 -2
  24. data/lib/core_ex/time.rb +1 -1
  25. data/lib/core_ex/try_dup.rb +1 -1
  26. data/lib/core_ex/yaml.rb +101 -79
  27. data/lib/core_ex.rb +129 -128
  28. data/lib/d_time.rb +225 -53
  29. data/lib/dumpable_proc.rb +1 -10
  30. data/lib/path_list.rb +18 -7
  31. data/lib/temp_path.rb +3 -3
  32. data/lib/test/unit/u_i/yaml/test_runner.rb +1 -1
  33. data/lib/version.rb +309 -69
  34. data/lib/yaml_extension.rb +1 -1
  35. data/test/fixtures/lazy_loading/a_b/a/c.rb +6 -0
  36. data/test/fixtures/lazy_loading/a_b/a.rb +2 -0
  37. data/test/fixtures/lazy_loading/a_b/b/c.rb +4 -0
  38. data/test/fixtures/lazy_loading/a_b/b.rb +2 -0
  39. data/test/fixtures/lazy_loading/double/a/bouhou.rb +2 -0
  40. data/test/fixtures/lazy_loading/double/a/foo_bar.rb +5 -0
  41. data/test/fixtures/lazy_loading/double/a/sub/a/suba.rb +7 -0
  42. data/test/fixtures/lazy_loading/double/b/root/sub/b.rb +6 -0
  43. data/test/fixtures/lazy_loading/double/b/root/sub.rb +4 -0
  44. data/test/fixtures/lazy_loading/double/b/root.rb +2 -0
  45. data/test/fixtures/lazy_loading/foo_bars/foo_bar.rb +4 -0
  46. data/test/fixtures/lazy_loading/foo_bars/mods/mod.rb +6 -0
  47. data/test/fixtures/lazy_loading/foo_bars/mods/sub_mod.rb +6 -0
  48. data/test/fixtures/lazy_loading/foo_bars/mods/sub_sub_mod.rb +7 -0
  49. data/test/fixtures/lazy_loading/foo_bars/mods.rb +4 -0
  50. data/test/fixtures/lazy_loading/foo_bars/sub_foo_bar.rb +5 -0
  51. data/test/fixtures/lazy_loading/foo_bars/titis/tutu.rb +6 -0
  52. data/test/fixtures/lazy_loading/foo_bars/totos.rb +6 -0
  53. data/test/fixtures/lazy_loading/foo_bars.rb +4 -0
  54. data/test/lazy_loading/test_already_present_name_absolute.rb +6 -0
  55. data/test/lazy_loading/test_already_present_name_relative.rb +11 -0
  56. data/test/lazy_loading/test_inside_another_module.rb +5 -0
  57. data/test/lazy_loading/test_lazy_loading.rb +179 -0
  58. data/test/sanity/multiple-requires.yml +22 -4
  59. data/test/unit-suite.yml +5 -4
  60. metadata +119 -80
  61. data/SPEC.dyn.yml +0 -10
  62. data/SPEC.gemspec +0 -13
  63. data/test/test-unit-setup.rb +0 -19
  64. /data/test/{resources → fixtures}/require/test_require +0 -0
  65. /data/test/{resources → fixtures}/require/test_require_rb.rb +0 -0
  66. /data/test/{resources → fixtures}/require/test_require_so.so +0 -0
  67. /data/test/{resources → fixtures}/use-from-gems.rb +0 -0
  68. /data/test/{resources → fixtures}/yaml_testrunner/unit_test.rb +0 -0
@@ -0,0 +1,179 @@
1
+ # Copyright:: Copyright (c) 2005 Nicolas Pouillard. All rights reserved.
2
+ # Author:: Nicolas Pouillard <ertai@lrde.epita.fr>.
3
+ # License:: Gnu General Public License.
4
+ # Revision:: $Id: /w/fey/ruby_ex/trunk/core_ex/test/lazy_loading/test_lazy_loading.rb 21865 2006-02-18T17:13:28.680350Z pouillar $
5
+
6
+ require 'core_ex/lazy_loading'
7
+ require 'test/unit'
8
+
9
+ module LazyLoading
10
+
11
+ class TestLazyLoading < ::Test::Unit::TestCase
12
+
13
+ @@dir = __FILE__.to_path.dirname
14
+ lazy_loading_dir = @@dir.parent/'fixtures'/'lazy_loading'
15
+ double_dir = lazy_loading_dir/'double'
16
+
17
+ @@fixtures =
18
+ {
19
+ :foo_bars => lazy_loading_dir,
20
+ :double => double_dir,
21
+ :double_a => double_dir/'a',
22
+ :double_b => double_dir/'b',
23
+ :a_b => lazy_loading_dir/'a_b',
24
+ }
25
+
26
+ def teardown
27
+ @@fixtures.each_value { |v| $LOAD_PATH.delete(v.to_s) }
28
+ $".delete_if { |x| x.to_s =~ /\b(sub|root|foo_bars|a_b)\// }
29
+ Dependencies.loaded.delete_if { |x| x.to_s =~ /\b(sub|root|foo_bars|a_b)\// }
30
+ %w[ FooBars FooBar Root Sub A B ].each do |aConst|
31
+ suppress(NameError) { Object.send(:remove_const, aConst) }
32
+ end
33
+ TestLazyLoading.send(:remove_const, :FooBar) if defined? TestLazyLoading::FooBar
34
+ end
35
+
36
+ def self.test ( name, *fixtures, &block )
37
+ define_method("test_#{name}") do
38
+ fixtures.each { |fixture| @@fixtures[fixture].load_path! }
39
+ file = @@dir/"test_#{name}.rb"
40
+ load file.to_s if file.exist?
41
+ instance_eval(&block)
42
+ end
43
+ end
44
+
45
+ test :inside_another_module, :foo_bars do
46
+ assert(defined? ::FooBars::Youhou)
47
+ assert_equal('FooBars::SubFooBar', FooBars::Youhou::X.name)
48
+ end
49
+
50
+ test :foo_bars__mods, :foo_bars do
51
+ assert_equal('FooBars::Mods', FooBars::Mods.name)
52
+ end
53
+
54
+ test :foo_bars__mods__sub_mod, :foo_bars do
55
+ assert_equal('FooBars::Mods::SubMod', FooBars::Mods::SubMod.name)
56
+ end
57
+
58
+ test :foo_bars__mods__mod_AND_foo_bars__mods, :foo_bars do
59
+ assert_equal('FooBars::Mods::Mod', FooBars::Mods::Mod.name)
60
+ assert_equal('FooBars::Mods', FooBars::Mods.name)
61
+ end
62
+
63
+ test :already_present_name_absolute, :foo_bars do
64
+ assert(defined? ::FooBar)
65
+ assert(defined? ::FooBars::Boo)
66
+ assert_equal('FooBars::FooBar', FooBars::Boo.superclass.name)
67
+ end
68
+
69
+ test :inside_another_module2, :foo_bars do
70
+ x =
71
+ module ::FooBars
72
+ module ::Youhou
73
+ SubFooBar
74
+ end
75
+ end
76
+ assert_equal('FooBars::SubFooBar', x.name)
77
+ end
78
+
79
+ test :already_present_name_absolute2, :foo_bars do
80
+ class ::FooBar
81
+ end
82
+ class FooBar
83
+ end
84
+ module ::FooBars
85
+ class Boo < ::FooBars::FooBar
86
+ end
87
+ end
88
+ assert_equal('FooBars::FooBar', FooBars::Boo.superclass.name)
89
+ end
90
+
91
+ test :already_present_name_relative_with_self2, :foo_bars do
92
+ class ::A
93
+ end
94
+ class ::FooBar
95
+ end
96
+ module ::FooBars
97
+ class B < A
98
+ end
99
+ class Boo < self::FooBar
100
+ end
101
+ end
102
+ assert_equal('A', FooBars::B.superclass.name)
103
+ assert_equal('FooBars::FooBar', FooBars::Boo.superclass.name)
104
+ end
105
+
106
+ test :complex_nestings, :foo_bars do
107
+ module ::FooBars
108
+ class ::B
109
+ class C < FooBar
110
+ end
111
+ end
112
+ end
113
+ assert_equal('FooBars::FooBar', ::B::C.superclass.name)
114
+ assert_equal('B::C', ::B::C.name)
115
+ end
116
+
117
+ test :foo_bars__totos__tata, :foo_bars do
118
+ assert_equal('FooBars::Totos::Tata', FooBars::Totos::Tata.name)
119
+ end
120
+
121
+ test :foo_bars__titis__tutu, :foo_bars do
122
+ assert_equal('FooBars::Titis::Tutu', FooBars::Titis::Tutu.name)
123
+ end
124
+
125
+ test :double_a_sub_a_suba, :double_a do
126
+ assert_equal('Sub::A::Suba', Sub::A::Suba.name)
127
+ end
128
+
129
+ test :double_b_root_sub_b, :double_b do
130
+ assert_equal('Root::Sub::B', Root::Sub::B.name)
131
+ end
132
+
133
+ test :double_ab_root_sub_b, :double_a, :double_b do
134
+ assert_equal('Root::Sub::B', Root::Sub::B.name)
135
+ assert_equal('Sub::A::Suba', Sub::A::Suba.name)
136
+ end
137
+
138
+ test :double_ab_sub_a_suba, :double_b, :double_a do
139
+ assert_equal('Sub::A::Suba', Sub::A::Suba.name)
140
+ assert_equal('Root::Sub::B', Root::Sub::B.name)
141
+ end
142
+
143
+ test :foo_bar_in_double_a, :double_a, :foo_bars do
144
+ assert_equal('FooBars::FooBar', FooBars::FooBar.name)
145
+ assert_equal('FooBar in double/a', FooBar.name)
146
+ end
147
+
148
+ test :bouhou_in_double_ab, :double, :double_a do
149
+ class ::B
150
+ A = Bouhou
151
+ end
152
+ assert_equal('Bouhou', ::B::A.name)
153
+ end
154
+
155
+ test :vicious_nestings, :a_b do
156
+ class ::A
157
+ X = B::C
158
+ end # class ::A
159
+ assert_equal('B::C', ::A::X.name)
160
+ end
161
+
162
+ ##### XFAILS #####
163
+ test :already_present_name_relative, :foo_bars do
164
+ assert(defined? ::FooBar)
165
+ assert(defined? ::FooBars::Boo)
166
+ assert(defined? ::A)
167
+ assert(defined? ::FooBars::B)
168
+ assert_equal('A', FooBars::B.superclass.name)
169
+
170
+ # It should be this: assert_equal('FooBars::FooBar', FooBars::Boo.superclass.name).
171
+ # But since ::FooBar already exist the const_missing callback is not triggered.
172
+ # So its the limitation of this LazyLoading feature.
173
+ assert_equal('FooBar', FooBars::Boo.superclass.name)
174
+ end
175
+
176
+ end # class TestLazyLoading
177
+
178
+ end # module LazyLoading
179
+
@@ -13,26 +13,44 @@ CoreEx Sanity Multiple Requires Test Suite: !S::Suite
13
13
  - require:
14
14
  input: |
15
15
  require 'core_ex'
16
+ Dependencies.mechanism = :require
16
17
  require 'test/unit'
17
18
  class TC_ < Test::Unit::TestCase
18
19
  def test_definitions
19
- path_list = PathList['<<pwd>>/../../lib/(*).rb']
20
- path_list.each do |path, name|
21
- path = path.cleanpath.to_s
20
+ path_list = PathList['<<pwd>>/../../lib/(**/*).rb']
21
+ path_list.each do |_, path|
22
22
  require path
23
+ path += '.rb'
23
24
  assert($LOADED_FEATURES.include?(path),
24
25
  "#{path} not in $LOADED_FEATURES #{$LOADED_FEATURES.inspect}")
25
26
  end
26
27
  end
27
28
  end
28
29
 
30
+ - require dependency:
31
+ input: |
32
+ require 'core_ex'
33
+ require 'test/unit'
34
+ class TC_ < Test::Unit::TestCase
35
+ def test_definitions
36
+ lib_dir = '<<pwd>>/../../lib'.to_path
37
+ lib_dir.load_path!
38
+ path_list = PathList[lib_dir/'(**/*).rb']
39
+ path_list.each do |_, path|
40
+ require_dependency path
41
+ assert(Dependencies.loaded.include?(path),
42
+ "#{path} not in Dependencies.loaded #{Dependencies.loaded.inspect}")
43
+ end
44
+ end
45
+ end
46
+
29
47
  - lazy loading:
30
48
  input: |
31
49
  require 'core_ex'
32
50
  require 'test/unit'
33
51
  class TC_ < Test::Unit::TestCase
34
52
  def test_definitions
35
- PathList['<<pwd>>/../../lib/(*).rb'].each do |path, name|
53
+ PathList['<<pwd>>/../../lib/(**/*).rb'].each do |path, name|
36
54
  assert_nothing_raised("cannot camelize #{name}") do
37
55
  @camel = name.camelize
38
56
  end
data/test/unit-suite.yml CHANGED
@@ -2,12 +2,13 @@
2
2
 
3
3
  CoreEx Unit Test Suite: !S::Iterate
4
4
 
5
- over : !pathlist <<pwd>>/../lib/(**/*).rb
6
- iter : [it_file, it_name]
5
+ over : !pathlist <<pwd>>/../lib/((**/*).rb)
6
+ iter : [it_file, it_short_path, it_name ]
7
7
 
8
8
  test:
9
9
  Unit test <<it_name>>: !S::RUnit
10
- input: !path <<pwd>>/test-unit-setup.rb
11
- args: <<it_file>>
10
+ input: !path <<it_short_path>>
11
+ requires: <<pwd>>/../lib/core_ex
12
+ uttk_unit_options: --uttk no --mode import
12
13
  dir: <<pwd>>
13
14
  verbose: true
metadata CHANGED
@@ -1,106 +1,145 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
2
+ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: core_ex
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.0
7
- date: 2005-10-03
6
+ version: 0.5.1.1
7
+ date: 2006-02-24 00:00:00 +01:00
8
8
  summary: CoreEx is a proposal for a standard library extension.
9
9
  require_paths:
10
- - lib
10
+ - lib
11
11
  email:
12
- - nicolas.despres@gmail.com
13
- - ertai@feydakins.org
12
+ - nicolas.despres@gmail.com
13
+ - ertai@feydakins.org
14
14
  homepage: http://api.feydakins.org/core_ex
15
15
  rubyforge_project: core_ex
16
- description: "CoreEx is designed to provides a simple but quite useful extension of the
17
- standard library of Ruby. So some classes and modules like Pathname, Time,
18
- Enumerable, Exception, FileUtils, String, and YAML are extended. There is
19
- also some new features like attr_once, DTime, TempPath, Version,
20
- embedded_tests, filelist (almost from rake), a common Rakefile, and an
21
- extension of the require system."
16
+ description: CoreEx is designed to provide a simple but quite useful extension of the standard library of Ruby. So some classes and modules like Pathname, Time, Enumerable, Exception, FileUtils, String, and YAML are extended. There is also some new features like attr_once, DTime, TempPath, Version, embedded_tests, filelist (almost from rake), a common Rakefile, and an extension of the require system.
22
17
  autorequire:
23
18
  default_executable:
24
19
  bindir: bin
25
20
  has_rdoc: false
26
21
  required_ruby_version: !ruby/object:Gem::Version::Requirement
27
22
  requirements:
28
- -
29
- - ">"
30
- - !ruby/object:Gem::Version
31
- version: 0.0.0
23
+ - - ">"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.0.0
32
26
  version:
33
27
  platform: ruby
28
+ signing_key:
29
+ cert_chain:
34
30
  authors:
35
- - Nicolas Despr�s
36
- - Nicolas Pouillard
31
+ - "Nicolas Despr\xE8s"
32
+ - Nicolas Pouillard
37
33
  files:
38
- - lib/core_ex.rb
39
- - lib/d_time.rb
40
- - lib/dumpable_proc.rb
41
- - lib/path_list.rb
42
- - lib/temp_path.rb
43
- - lib/version.rb
44
- - lib/yaml_extension.rb
45
- - lib/core_ex/embedded_tests.rb
46
- - lib/core_ex/enumerable.rb
47
- - lib/core_ex/exception.rb
48
- - lib/core_ex/file_utils.rb
49
- - lib/core_ex/pathname.rb
50
- - lib/core_ex/proc.rb
51
- - lib/core_ex/rakefile_base.rf
52
- - lib/core_ex/require.rb
53
- - lib/core_ex/string.rb
54
- - lib/core_ex/time.rb
55
- - lib/core_ex/try_dup.rb
56
- - lib/core_ex/yaml.rb
57
- - lib/core_ex/dependencies_ext/constant_load_path.rb
58
- - lib/core_ex/module/attr_once.rb
59
- - lib/core_ex/module/import.rb
60
- - lib/core_ex/module/in_place.rb
61
- - lib/core_ex/module/mix_in_with_args.rb
62
- - lib/core_ex/object/instance_eval_with_args.rb
63
- - lib/core_ex/object/singleton_class.rb
64
- - lib/core_ex/object/the_first_time.rb
65
- - lib/test/unit/u_i/yaml/test_runner.rb
66
- - test/check-core_ex.yml
67
- - test/check-pkg-core_ex.yml
68
- - test/resources
69
- - test/sanity
70
- - test/sanity-suite.yml
71
- - test/test-unit-setup.rb
72
- - test/unit-suite.yml
73
- - test/resources/require
74
- - test/resources/use-from-gems.rb
75
- - test/resources/yaml_testrunner
76
- - test/resources/require/test_require
77
- - test/resources/require/test_require_rb.rb
78
- - test/resources/require/test_require_so.so
79
- - test/resources/yaml_testrunner/unit_test.rb
80
- - test/sanity/multiple-requires.yml
81
- - test/sanity/single-requires.yml
82
- - AUTHORS
83
- - ChangeLog
84
- - NEWS
85
- - Rakefile
86
- - README
87
- - SPEC.dyn.yml
88
- - SPEC.gemspec
89
- - SPEC.yml
34
+ - lib/d_time.rb
35
+ - lib/dumpable_proc.rb
36
+ - lib/path_list.rb
37
+ - lib/yaml_extension.rb
38
+ - lib/core_ex.rb
39
+ - lib/temp_path.rb
40
+ - lib/version.rb
41
+ - lib/test/unit/u_i/yaml/test_runner.rb
42
+ - lib/core_ex/lazy_loading.rb
43
+ - lib/core_ex/numeric.rb
44
+ - lib/core_ex/yaml.rb
45
+ - lib/core_ex/try_dup.rb
46
+ - lib/core_ex/string.rb
47
+ - lib/core_ex/file_utils.rb
48
+ - lib/core_ex/time.rb
49
+ - lib/core_ex/rakefile_base.rf
50
+ - lib/core_ex/embedded_tests.rb
51
+ - lib/core_ex/require.rb
52
+ - lib/core_ex/exception.rb
53
+ - lib/core_ex/enumerable.rb
54
+ - lib/core_ex/pathname.rb
55
+ - lib/core_ex/proc.rb
56
+ - lib/core_ex/module/attr_once.rb
57
+ - lib/core_ex/module/in_place.rb
58
+ - lib/core_ex/module/import.rb
59
+ - lib/core_ex/module/mix_in_with_args.rb
60
+ - lib/core_ex/object/the_first_time.rb
61
+ - lib/core_ex/object/instance_eval_with_args.rb
62
+ - lib/core_ex/object/singleton_class.rb
63
+ - lib/core_ex/dependencies_ext/constant_load_path.rb
64
+ - test/unit-suite.yml
65
+ - test/lazy_loading
66
+ - test/fixtures
67
+ - test/check-pkg-core_ex.yml
68
+ - test/sanity
69
+ - test/sanity-suite.yml
70
+ - test/check-core_ex.yml
71
+ - test/lazy_loading/test_inside_another_module.rb
72
+ - test/lazy_loading/test_lazy_loading.rb
73
+ - test/lazy_loading/test_already_present_name_relative.rb
74
+ - test/lazy_loading/test_already_present_name_absolute.rb
75
+ - test/fixtures/require
76
+ - test/fixtures/yaml_testrunner
77
+ - test/fixtures/lazy_loading
78
+ - test/fixtures/use-from-gems.rb
79
+ - test/fixtures/require/test_require
80
+ - test/fixtures/require/test_require_rb.rb
81
+ - test/fixtures/require/test_require_so.so
82
+ - test/fixtures/yaml_testrunner/unit_test.rb
83
+ - test/fixtures/lazy_loading/a_b
84
+ - test/fixtures/lazy_loading/foo_bars.rb
85
+ - test/fixtures/lazy_loading/foo_bars
86
+ - test/fixtures/lazy_loading/double
87
+ - test/fixtures/lazy_loading/a_b/a
88
+ - test/fixtures/lazy_loading/a_b/b
89
+ - test/fixtures/lazy_loading/a_b/a.rb
90
+ - test/fixtures/lazy_loading/a_b/b.rb
91
+ - test/fixtures/lazy_loading/a_b/a/c.rb
92
+ - test/fixtures/lazy_loading/a_b/b/c.rb
93
+ - test/fixtures/lazy_loading/foo_bars/mods
94
+ - test/fixtures/lazy_loading/foo_bars/sub_foo_bar.rb
95
+ - test/fixtures/lazy_loading/foo_bars/titis
96
+ - test/fixtures/lazy_loading/foo_bars/mods.rb
97
+ - test/fixtures/lazy_loading/foo_bars/foo_bar.rb
98
+ - test/fixtures/lazy_loading/foo_bars/totos.rb
99
+ - test/fixtures/lazy_loading/foo_bars/mods/sub_sub_mod.rb
100
+ - test/fixtures/lazy_loading/foo_bars/mods/mod.rb
101
+ - test/fixtures/lazy_loading/foo_bars/mods/sub_mod.rb
102
+ - test/fixtures/lazy_loading/foo_bars/titis/tutu.rb
103
+ - test/fixtures/lazy_loading/double/a
104
+ - test/fixtures/lazy_loading/double/b
105
+ - test/fixtures/lazy_loading/double/a/sub
106
+ - test/fixtures/lazy_loading/double/a/foo_bar.rb
107
+ - test/fixtures/lazy_loading/double/a/bouhou.rb
108
+ - test/fixtures/lazy_loading/double/a/sub/a
109
+ - test/fixtures/lazy_loading/double/a/sub/a/suba.rb
110
+ - test/fixtures/lazy_loading/double/b/root
111
+ - test/fixtures/lazy_loading/double/b/root.rb
112
+ - test/fixtures/lazy_loading/double/b/bouhou
113
+ - test/fixtures/lazy_loading/double/b/root/sub
114
+ - test/fixtures/lazy_loading/double/b/root/sub.rb
115
+ - test/fixtures/lazy_loading/double/b/root/sub/b.rb
116
+ - test/sanity/single-requires.yml
117
+ - test/sanity/multiple-requires.yml
118
+ - NEWS
119
+ - Rakefile
120
+ - README
121
+ - AUTHORS
122
+ - SPEC.yml
123
+ - ChangeLog
90
124
  test_files: []
125
+
91
126
  rdoc_options: []
127
+
92
128
  extra_rdoc_files: []
129
+
93
130
  executables: []
131
+
94
132
  extensions: []
133
+
95
134
  requirements: []
135
+
96
136
  dependencies:
97
- - !ruby/object:Gem::Dependency
98
- name: activesupport
99
- version_requirement:
100
- version_requirements: !ruby/object:Gem::Version::Requirement
101
- requirements:
102
- -
103
- - "~>"
104
- - !ruby/object:Gem::Version
105
- version: 1.1.1
106
- version:
137
+ - !ruby/object:Gem::Dependency
138
+ name: activesupport
139
+ version_requirement:
140
+ version_requirements: !ruby/object:Gem::Version::Requirement
141
+ requirements:
142
+ - - ~>
143
+ - !ruby/object:Gem::Version
144
+ version: 1.2.5
145
+ version:
data/SPEC.dyn.yml DELETED
@@ -1,10 +0,0 @@
1
- --- !ruby/object:OpenStruct
2
- table:
3
- :version_id: ''
4
- :date: "Mon, 03 Oct 2005"
5
- :version: !ruby/object:Version
6
- build: 0
7
- major: 0
8
- minor: 4
9
- revision: 387
10
- :url: svn://svn.feydakins.org/ruby_ex/trunk/core_ex
data/SPEC.gemspec DELETED
@@ -1,13 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = %q{core_ex}
3
- s.version = "0.4.0"
4
- s.date = %q{2005-10-03}
5
- s.summary = %q{CoreEx is a proposal for a standard library extension.}
6
- s.email = ["nicolas.despres@gmail.com", "ertai@feydakins.org"]
7
- s.homepage = %q{http://api.feydakins.org/core_ex}
8
- s.rubyforge_project = %q{core_ex}
9
- s.description = %q{CoreEx is designed to provides a simple but quite useful extension of the standard library of Ruby. So some classes and modules like Pathname, Time, Enumerable, Exception, FileUtils, String, and YAML are extended. There is also some new features like attr_once, DTime, TempPath, Version, embedded_tests, filelist (almost from rake), a common Rakefile, and an extension of the require system.}
10
- s.authors = ["Nicolas Despr\350s", "Nicolas Pouillard"]
11
- s.files = ["lib/core_ex.rb", "lib/d_time.rb", "lib/dumpable_proc.rb", "lib/path_list.rb", "lib/temp_path.rb", "lib/version.rb", "lib/yaml_extension.rb", "lib/core_ex/embedded_tests.rb", "lib/core_ex/enumerable.rb", "lib/core_ex/exception.rb", "lib/core_ex/file_utils.rb", "lib/core_ex/pathname.rb", "lib/core_ex/proc.rb", "lib/core_ex/rakefile_base.rf", "lib/core_ex/require.rb", "lib/core_ex/string.rb", "lib/core_ex/time.rb", "lib/core_ex/try_dup.rb", "lib/core_ex/yaml.rb", "lib/core_ex/dependencies_ext/constant_load_path.rb", "lib/core_ex/module/attr_once.rb", "lib/core_ex/module/import.rb", "lib/core_ex/module/in_place.rb", "lib/core_ex/module/mix_in_with_args.rb", "lib/core_ex/object/instance_eval_with_args.rb", "lib/core_ex/object/singleton_class.rb", "lib/core_ex/object/the_first_time.rb", "lib/test/unit/u_i/yaml/test_runner.rb", "test/check-core_ex.yml", "test/check-pkg-core_ex.yml", "test/resources", "test/sanity", "test/sanity-suite.yml", "test/test-unit-setup.rb", "test/unit-suite.yml", "test/resources/require", "test/resources/use-from-gems.rb", "test/resources/yaml_testrunner", "test/resources/require/test_require", "test/resources/require/test_require_rb.rb", "test/resources/require/test_require_so.so", "test/resources/yaml_testrunner/unit_test.rb", "test/sanity/multiple-requires.yml", "test/sanity/single-requires.yml", "AUTHORS", "ChangeLog", "NEWS", "Rakefile", "README", "SPEC.dyn.yml", "SPEC.gemspec", "SPEC.yml"]
12
- s.add_dependency(%q<activesupport>, ["~> 1.1.1"])
13
- end
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env ruby
2
- raise 'Do not load CoreEx before me' if defined? CoreEx
3
- require 'pathname'
4
- $VERBOSE = true
5
- lib = (Pathname.new(__FILE__).dirname.parent + 'lib').expand_path.cleanpath
6
- $: << lib
7
- args = ARGV.inject(nil) { |accu, x| (accu)? accu << x : ((x == '--')? [] : accu) } || ARGV
8
- path = Pathname.new(args[0]).expand_path.cleanpath
9
- EMBEDDED_TEST_MODE = Regexp.new(path)
10
- $LOAD_PATH << lib.parent.parent + 'lib'
11
- require 'core_ex'
12
- Test::Unit::UI::Yaml::TestRunner.import!
13
- begin
14
- file = path.ext('').to_s.sub(/^#{lib}\/*/, '')
15
- file.camelize.constantize unless file.empty?
16
- rescue NameError
17
- require file
18
- end
19
- run_embedded_test_sections
File without changes
File without changes