rubygems-update 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rubygems-update might be problematic. Click here for more details.

data.tar.gz.sig CHANGED
Binary file
@@ -1,4 +1,10 @@
1
- === 1.7.0 / 2011-03-31
1
+ === 1.7.1 / 2011-03-32
2
+
3
+ * 1 bug fix:
4
+ * Fixed missing file in Manifest.txt. (Also a bug in hoe was fixed where
5
+ `rake check_manifest` showing a diff would not exit with an error.)
6
+
7
+ === 1.7.0 / 2011-03-32
2
8
 
3
9
  * 16 Deprecations (woot!)
4
10
  * Deprecated Gem.all_load_paths, latest_load_paths, promote_load_path, and
@@ -53,6 +53,7 @@ lib/rubygems/defaults.rb
53
53
  lib/rubygems/dependency.rb
54
54
  lib/rubygems/dependency_installer.rb
55
55
  lib/rubygems/dependency_list.rb
56
+ lib/rubygems/deprecate.rb
56
57
  lib/rubygems/doc_manager.rb
57
58
  lib/rubygems/errors.rb
58
59
  lib/rubygems/exceptions.rb
@@ -119,7 +119,7 @@ require "rubygems/deprecate"
119
119
  # -The RubyGems Team
120
120
 
121
121
  module Gem
122
- VERSION = '1.7.0'
122
+ VERSION = '1.7.1'
123
123
 
124
124
  ##
125
125
  # Raised when RubyGems is unable to load or activate a gem. Contains the
@@ -0,0 +1,68 @@
1
+ ##
2
+ # Provides a single method +deprecate+ to be used to declare when
3
+ # something is going away.
4
+ #
5
+ # class Legacy
6
+ # def self.klass_method
7
+ # # ...
8
+ # end
9
+ #
10
+ # def instance_method
11
+ # # ...
12
+ # end
13
+ #
14
+ # extend Deprecate
15
+ # deprecate :instance_method, "X.z", 2011, 4
16
+ #
17
+ # class << self
18
+ # extend Deprecate
19
+ # deprecate :klass_method, :none, 2011, 4
20
+ # end
21
+ # end
22
+
23
+ module Deprecate
24
+
25
+ def self.skip # :nodoc:
26
+ @skip ||= false
27
+ end
28
+
29
+ def self.skip= v # :nodoc:
30
+ @skip = v
31
+ end
32
+
33
+ ##
34
+ # Temporarily turn off warnings. Intended for tests only.
35
+
36
+ def skip_during
37
+ Deprecate.skip, original = true, Deprecate.skip
38
+ yield
39
+ ensure
40
+ Deprecate.skip = original
41
+ end
42
+
43
+ ##
44
+ # Simple deprecation method that deprecates +name+ by wrapping it up
45
+ # in a dummy method. It warns on each call to the dummy method
46
+ # telling the user of +repl+ (unless +repl+ is :none) and the
47
+ # year/month that it is planned to go away.
48
+
49
+ def deprecate name, repl, year, month
50
+ class_eval {
51
+ old = "_deprecated_#{name}"
52
+ alias_method old, name
53
+ define_method name do |*args|
54
+ klass = self.kind_of? Module
55
+ target = klass ? "#{self}." : "#{self.class}#"
56
+ msg = [ "NOTE: #{target}#{name} is deprecated",
57
+ repl == :none ? " with no replacement" : ", use #{repl}",
58
+ ". It will be removed on or after %4d-%02d-01." % [year, month],
59
+ "\n#{target}#{name} called from #{Gem.location_of_caller.join(":")}\n",
60
+ ]
61
+ warn "#{msg.join}." unless Deprecate.skip
62
+ send old, *args
63
+ end
64
+ }
65
+ end
66
+
67
+ module_function :deprecate, :skip_during
68
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-update
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 0
10
- version: 1.7.0
9
+ - 1
10
+ version: 1.7.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Weirich
@@ -110,12 +110,12 @@ dependencies:
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- hash: 45
113
+ hash: 35
114
114
  segments:
115
115
  - 2
116
116
  - 9
117
- - 3
118
- version: 2.9.3
117
+ - 4
118
+ version: 2.9.4
119
119
  type: :development
120
120
  version_requirements: *id005
121
121
  description: |-
@@ -213,6 +213,7 @@ files:
213
213
  - lib/rubygems/dependency.rb
214
214
  - lib/rubygems/dependency_installer.rb
215
215
  - lib/rubygems/dependency_list.rb
216
+ - lib/rubygems/deprecate.rb
216
217
  - lib/rubygems/doc_manager.rb
217
218
  - lib/rubygems/errors.rb
218
219
  - lib/rubygems/exceptions.rb
@@ -360,7 +361,7 @@ post_install_message:
360
361
  rdoc_options:
361
362
  - --main
362
363
  - README.rdoc
363
- - --title=RubyGems 1.7.0 Documentation
364
+ - --title=RubyGems 1.7.1 Documentation
364
365
  require_paths:
365
366
  - hide_lib_for_update
366
367
  required_ruby_version: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file