faster_rubygems 0.5.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +8 -3
- data/VERSION +1 -1
- data/lib/faster_rubygems/install.rb +3 -1
- data/lib/faster_rubygems.rb +10 -3
- data/lib/my_gem_prelude.rb +3 -1
- metadata +108 -109
data/Rakefile
CHANGED
@@ -1,14 +1,19 @@
|
|
1
1
|
require 'jeweler'
|
2
2
|
Jeweler::Tasks.new do |s|
|
3
|
-
|
4
|
-
|
3
|
+
s.name = %q{faster_rubygems}
|
5
4
|
|
6
5
|
s.summary = %q{faster gem loading}
|
7
6
|
s.extensions = ["ext/mkrf_conf.rb"]
|
8
7
|
|
9
8
|
s.post_install_message = "
|
10
9
|
|
11
|
-
installed! use -> require 'faster_rubygems'
|
10
|
+
installed! 1.9 use -> require 'faster_rubygems'
|
11
|
+
|
12
|
+
1.8: use require 'faster_rubygems' or install as the default thus:
|
13
|
+
|
14
|
+
>> require 'rubygems'
|
15
|
+
>> require 'faster_rubygems/install'
|
16
|
+
>> FasterRubyGems.install_over_rubygems!
|
12
17
|
|
13
18
|
"
|
14
19
|
s.add_development_dependency 'test-unit', '=1.2.3'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
@@ -4,7 +4,9 @@
|
|
4
4
|
raise 'only needed on 1.8 -- for 1.9 you have to \n $ export RUBYOPT=$RUBYOPT -rfaster_rubygems' if RUBY_VERSION >= '1.9.0'
|
5
5
|
require 'fileutils'
|
6
6
|
old = rubygems_path
|
7
|
-
|
7
|
+
new = old + ".bak.rb"
|
8
|
+
raise 'cannot install twice' if File.exist?(new)
|
9
|
+
FileUtils.cp old, new
|
8
10
|
File.open(old, 'w') do |f|
|
9
11
|
f.write "require 'faster_rubygems'"
|
10
12
|
end
|
data/lib/faster_rubygems.rb
CHANGED
@@ -1,8 +1,15 @@
|
|
1
|
+
# :stopdoc:
|
2
|
+
|
1
3
|
if RUBY_VERSION < '1.9.0'
|
2
|
-
raise 'rubygems was already loaded' if defined?(Gem)
|
3
|
-
|
4
|
+
raise 'rubygems was already loaded?' if defined?(Gem) && !defined(Gem::FasterRubygems)
|
5
|
+
|
6
|
+
# define it so gem_prelude will execute...
|
7
|
+
module Gem;
|
8
|
+
module FasterRubygems; end
|
9
|
+
end
|
10
|
+
|
4
11
|
require File.dirname(__FILE__) + "/my_gem_prelude.rb"
|
5
12
|
end
|
6
13
|
|
7
14
|
# both 1.8 and 1.9 now want this one though...
|
8
|
-
require File.dirname(__FILE__) + "/prelude_bin_path"
|
15
|
+
require File.dirname(__FILE__) + "/prelude_bin_path"
|
data/lib/my_gem_prelude.rb
CHANGED
@@ -127,7 +127,9 @@ if defined?(Gem) then
|
|
127
127
|
|
128
128
|
if defined?(RUBY_ENGINE) then
|
129
129
|
begin
|
130
|
-
|
130
|
+
# jruby is not ready for this...
|
131
|
+
# it anticipates altering a full Gem version, currently, in 1.8 mode...
|
132
|
+
# require "rubygems/defaults/#{RUBY_ENGINE}"
|
131
133
|
rescue ::LoadError
|
132
134
|
end
|
133
135
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faster_rubygems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 9
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
version: 0.5.
|
6
|
+
- 0
|
7
|
+
- 5
|
8
|
+
- 3
|
9
|
+
version: 0.5.3
|
11
10
|
platform: ruby
|
12
11
|
authors: []
|
13
12
|
|
@@ -18,95 +17,91 @@ cert_chain: []
|
|
18
17
|
date: 2010-06-21 00:00:00 -06:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
- 0
|
80
|
-
version: "0"
|
81
|
-
type: :development
|
82
|
-
version_requirements: *id004
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: test-unit
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - "="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 2
|
31
|
+
- 3
|
32
|
+
version: 1.2.3
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: test-unit
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - "="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 2
|
45
|
+
- 0
|
46
|
+
- 6
|
47
|
+
version: 2.0.6
|
48
|
+
type: :development
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: after
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - "="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
- 7
|
61
|
+
- 0
|
62
|
+
version: 0.7.0
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: sane
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
76
|
+
type: :development
|
77
|
+
version_requirements: *id004
|
83
78
|
description:
|
84
79
|
email:
|
85
80
|
executables: []
|
86
81
|
|
87
82
|
extensions:
|
88
|
-
- ext/mkrf_conf.rb
|
83
|
+
- ext/mkrf_conf.rb
|
89
84
|
extra_rdoc_files:
|
90
|
-
- README
|
85
|
+
- README
|
91
86
|
files:
|
92
|
-
- README
|
93
|
-
- Rakefile
|
94
|
-
- VERSION
|
95
|
-
- examples/require_fast_start.rb
|
96
|
-
- examples/require_rubygems_normal.rb
|
97
|
-
- ext/mkrf_conf.rb
|
98
|
-
- internalize.rb
|
99
|
-
- lib/faster_rubygems.rb
|
100
|
-
- lib/faster_rubygems/install.rb
|
101
|
-
- lib/frubygems.rb
|
102
|
-
- lib/my_defaults.rb
|
103
|
-
- lib/my_gem_prelude.rb
|
104
|
-
- lib/prelude_bin_path.rb
|
105
|
-
- spec/common.rb
|
106
|
-
- spec/files/test_gem.rb
|
107
|
-
- spec/files/test_gem_const.rb
|
108
|
-
- spec/files/test_gem_func.rb
|
109
|
-
- spec/spec.faster_rubygems_cacheing.rb
|
87
|
+
- README
|
88
|
+
- Rakefile
|
89
|
+
- VERSION
|
90
|
+
- examples/require_fast_start.rb
|
91
|
+
- examples/require_rubygems_normal.rb
|
92
|
+
- ext/mkrf_conf.rb
|
93
|
+
- internalize.rb
|
94
|
+
- lib/faster_rubygems.rb
|
95
|
+
- lib/faster_rubygems/install.rb
|
96
|
+
- lib/frubygems.rb
|
97
|
+
- lib/my_defaults.rb
|
98
|
+
- lib/my_gem_prelude.rb
|
99
|
+
- lib/prelude_bin_path.rb
|
100
|
+
- spec/common.rb
|
101
|
+
- spec/files/test_gem.rb
|
102
|
+
- spec/files/test_gem_const.rb
|
103
|
+
- spec/files/test_gem_func.rb
|
104
|
+
- spec/spec.faster_rubygems_cacheing.rb
|
110
105
|
has_rdoc: true
|
111
106
|
homepage:
|
112
107
|
licenses: []
|
@@ -114,30 +109,34 @@ licenses: []
|
|
114
109
|
post_install_message: |+
|
115
110
|
|
116
111
|
|
117
|
-
installed! use -> require 'faster_rubygems'
|
112
|
+
installed! 1.9 use -> require 'faster_rubygems'
|
113
|
+
|
114
|
+
1.8: use require 'faster_rubygems' or install as the default thus:
|
115
|
+
|
116
|
+
>> require 'rubygems'
|
117
|
+
>> require 'faster_rubygems/install'
|
118
|
+
>> FasterRubyGems.install_over_rubygems!
|
118
119
|
|
119
120
|
rdoc_options:
|
120
|
-
- --charset=UTF-8
|
121
|
+
- --charset=UTF-8
|
121
122
|
require_paths:
|
122
|
-
- lib
|
123
|
+
- lib
|
123
124
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
125
|
none: false
|
125
126
|
requirements:
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
version: "0"
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
segments:
|
130
|
+
- 0
|
131
|
+
version: "0"
|
132
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
133
|
none: false
|
134
134
|
requirements:
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
version: "0"
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
segments:
|
138
|
+
- 0
|
139
|
+
version: "0"
|
141
140
|
requirements: []
|
142
141
|
|
143
142
|
rubyforge_project:
|
@@ -146,10 +145,10 @@ signing_key:
|
|
146
145
|
specification_version: 3
|
147
146
|
summary: faster gem loading
|
148
147
|
test_files:
|
149
|
-
- spec/common.rb
|
150
|
-
- spec/
|
151
|
-
- spec/files/
|
152
|
-
- spec/files/
|
153
|
-
- spec/
|
154
|
-
- examples/require_fast_start.rb
|
155
|
-
- examples/require_rubygems_normal.rb
|
148
|
+
- spec/common.rb
|
149
|
+
- spec/spec.faster_rubygems_cacheing.rb
|
150
|
+
- spec/files/test_gem.rb
|
151
|
+
- spec/files/test_gem_const.rb
|
152
|
+
- spec/files/test_gem_func.rb
|
153
|
+
- examples/require_fast_start.rb
|
154
|
+
- examples/require_rubygems_normal.rb
|