diy 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/Rakefile +2 -0
  3. data/lib/diy.rb +2 -11
  4. metadata +2 -2
@@ -1,3 +1,7 @@
1
+ == 1.0.2 / 2007-12-11
2
+
3
+ * The last release had a load-path search in it that resulted in requiring files with full path names (rooted in loadpath entries). This is unintuitive, and will almost always result in a double "require" if the application code ever requires a library. The "require" for library loading now relies implicitly on the load path (just like normal human-coded requires.)
4
+
1
5
  == 1.0.1 / 2007-12-02
2
6
 
3
7
  * Added 'using_namespace' directive for assuming a module for a group of object defs
data/Rakefile CHANGED
@@ -24,3 +24,5 @@ ReleaseTagging.new do |t|
24
24
  t.version = DIY::VERSION
25
25
  end
26
26
 
27
+ desc "Release package to Rubyforge, tag the release in svn, and publish documentation"
28
+ task :release_full => [ :release, :tag_release, :publish_docs ]
data/lib/diy.rb CHANGED
@@ -2,7 +2,7 @@ require 'yaml'
2
2
  require 'set'
3
3
 
4
4
  module DIY #:nodoc:#
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
  class Context
7
7
 
8
8
  class << self
@@ -161,7 +161,7 @@ module DIY #:nodoc:#
161
161
  raise "No object definition for '#{key}'" unless obj_def
162
162
 
163
163
  # If object def mentions a library, load it
164
- require search_for_file(obj_def.library) if obj_def.library
164
+ require obj_def.library if obj_def.library
165
165
 
166
166
  # Resolve all components for the object
167
167
  arg_hash = {}
@@ -191,15 +191,6 @@ module DIY #:nodoc:#
191
191
  raise cerr
192
192
  end
193
193
 
194
- def search_for_file(path_suffix)
195
- path_suffix = path_suffix + '.rb' unless path_suffix =~ /\.rb$/
196
- $LOAD_PATH.each do |root|
197
- path = File.join(root, path_suffix)
198
- return path if File.file? path
199
- end
200
- raise ConstructionError, "no such file to load -- #{path_suffix}"
201
- end
202
-
203
194
  def get_class_for_name_with_module_delimeters(class_name)
204
195
  class_name.split(/::/).inject(Object) do |mod,const_name| mod.const_get(const_name) end
205
196
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ""
6
6
  authors:
7
7
  - Atomic Object
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2007-12-03 00:00:00 -05:00
12
+ date: 2007-12-11 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency