impromptu 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.2
1
+ 1.5.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{impromptu}
8
- s.version = "1.5.2"
8
+ s.version = "1.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Will Cannings"]
12
- s.date = %q{2011-03-11}
12
+ s.date = %q{2011-04-18}
13
13
  s.description = %q{Component and dependency manager for Ruby}
14
14
  s.email = %q{me@willcannings.com}
15
15
  s.extra_rdoc_files = [
@@ -72,7 +72,7 @@ Gem::Specification.new do |s|
72
72
  ]
73
73
  s.homepage = %q{http://github.com/willcannings/impromptu}
74
74
  s.require_paths = ["lib"]
75
- s.rubygems_version = %q{1.3.7}
75
+ s.rubygems_version = %q{1.6.2}
76
76
  s.summary = %q{Component and dependency manager for Ruby}
77
77
  s.test_files = [
78
78
  "test/framework/copies/extra_klass2.rb",
@@ -112,7 +112,6 @@ Gem::Specification.new do |s|
112
112
  ]
113
113
 
114
114
  if s.respond_to? :specification_version then
115
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
116
115
  s.specification_version = 3
117
116
 
118
117
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -57,12 +57,14 @@ module Impromptu
57
57
  # now that we have a complete file/resource graph, freeze
58
58
  # the associations at this point (will be unfrozen for reloads)
59
59
  components.each do |component|
60
+ component.load_external_dependencies
60
61
  component.freeze
61
62
  end
62
63
 
63
64
  # preload any resources which extend existing standard library
64
65
  # modules or classes. we can't catch uses of these resources
65
66
  # using const_missing, so we need to load them now.
67
+ @root_resource.mark_dont_undef
66
68
  @root_resource.load_if_extending_stdlib
67
69
 
68
70
  # load any folders which are to be preloaded
@@ -229,6 +229,13 @@ module Impromptu
229
229
  parent.reference.constants.include?(@base_symbol)
230
230
  end
231
231
 
232
+ # Mark this resource as having been loaded before Impromptu if the
233
+ # resource is already defined.
234
+ def mark_dont_undef
235
+ @dont_undef = self.loaded?
236
+ @children.each_value(&:mark_dont_undef)
237
+ end
238
+
232
239
  # Loads this resource if it is an extension of an existing class
233
240
  # or module (such as an object in the standard library). Should
234
241
  # only be called on app startup by Impromptu itself. Recurses to
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: impromptu
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 5
8
- - 2
9
- version: 1.5.2
4
+ prerelease:
5
+ version: 1.5.3
10
6
  platform: ruby
11
7
  authors:
12
8
  - Will Cannings
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-03-11 00:00:00 +11:00
13
+ date: 2011-04-18 00:00:00 +10:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,8 +21,6 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
24
  version: "0"
31
25
  type: :development
32
26
  version_requirements: *id001
@@ -106,21 +100,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - ">="
108
102
  - !ruby/object:Gem::Version
109
- segments:
110
- - 0
111
103
  version: "0"
112
104
  required_rubygems_version: !ruby/object:Gem::Requirement
113
105
  none: false
114
106
  requirements:
115
107
  - - ">="
116
108
  - !ruby/object:Gem::Version
117
- segments:
118
- - 0
119
109
  version: "0"
120
110
  requirements: []
121
111
 
122
112
  rubyforge_project:
123
- rubygems_version: 1.3.7
113
+ rubygems_version: 1.6.2
124
114
  signing_key:
125
115
  specification_version: 3
126
116
  summary: Component and dependency manager for Ruby