summaryrefslogtreecommitdiff
path: root/lib/rubygems/specification.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-23 16:05:19 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-23 16:05:19 +0000
commit6b3ec75c7f31fbfa72d7fb17626744f40b2a6b73 (patch)
tree1c9b70529a4dc6bb28750876effef566173e68e3 /lib/rubygems/specification.rb
parent1e52e560374c5cb5f435327f042ecff43697a2ad (diff)
* lib/rubygems/specification.rb: Restore behavior of
Gem::Specification#loaded. [Ruby 1.9 - Bug #5032] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r--lib/rubygems/specification.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index f0119c99ba..5992074ac4 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -219,9 +219,9 @@ class Gem::Specification
##
# True when this gemspec has been activated. This attribute is not persisted.
- attr_accessor :loaded
+ attr_accessor :loaded # :nodoc:
- alias :loaded? :loaded
+ alias :loaded? :loaded # :nodoc:
##
# True when this gemspec has been activated. This attribute is not persisted.
@@ -689,6 +689,7 @@ class Gem::Specification
spec.instance_variable_set :@platform, array[16].to_s
spec.instance_variable_set :@license, array[17]
spec.instance_variable_set :@loaded, false
+ spec.instance_variable_set :@activated, false
spec
end
@@ -748,7 +749,8 @@ class Gem::Specification
add_self_to_load_path
Gem.loaded_specs[self.name] = self
- self.activated = true
+ @activated = true
+ @loaded = true
return true
end
@@ -1324,6 +1326,7 @@ class Gem::Specification
def initialize name = nil, version = nil
@loaded = false
+ @activated = false
@loaded_from = nil
@original_platform = nil