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 CHANGED
@@ -1,14 +1,19 @@
1
1
  require 'jeweler'
2
2
  Jeweler::Tasks.new do |s|
3
- s.name = %q{faster_rubygems}
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
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
- FileUtils.cp old, old + ".bak.rb"
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
@@ -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
- module Gem; end # define it so gem_prelude will execute...
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"
@@ -127,7 +127,9 @@ if defined?(Gem) then
127
127
 
128
128
  if defined?(RUBY_ENGINE) then
129
129
  begin
130
- require "rubygems/defaults/#{RUBY_ENGINE}"
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
- - 0
8
- - 5
9
- - 1
10
- version: 0.5.1
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
- name: test-unit
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - "="
28
- - !ruby/object:Gem::Version
29
- hash: 25
30
- segments:
31
- - 1
32
- - 2
33
- - 3
34
- version: 1.2.3
35
- type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: test-unit
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - "="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 2
48
- - 0
49
- - 6
50
- version: 2.0.6
51
- type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: after
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - "="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- - 7
65
- - 0
66
- version: 0.7.0
67
- type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: sane
71
- prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
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
- - !ruby/object:Gem::Version
128
- hash: 3
129
- segments:
130
- - 0
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
- - !ruby/object:Gem::Version
137
- hash: 3
138
- segments:
139
- - 0
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/files/test_gem.rb
151
- - spec/files/test_gem_const.rb
152
- - spec/files/test_gem_func.rb
153
- - spec/spec.faster_rubygems_cacheing.rb
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