dohruby 0.1.22 → 0.1.23

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.
data/CHANGELOG CHANGED
@@ -72,3 +72,5 @@
72
72
  *0.1.22* (May 27th, 2008)
73
73
  * implement DohApp::home, and file to add it to rubylib search path
74
74
  * move Doh::Options into DohApp
75
+ *0.1.23* (May 28th, 2008)
76
+ * tweak new DohApp stuff some for more flexibility
data/bin/run_tests.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ require 'doh/app_pwd'
2
3
  require 'doh/util/run_tests'
3
4
 
4
5
  Doh::run_tests('.')
@@ -0,0 +1,3 @@
1
+ require 'doh/app/home'
2
+
3
+ $LOAD_PATH.push(File.join(DohApp::home, 'lib'))
@@ -0,0 +1,3 @@
1
+ require 'doh/app/home'
2
+
3
+ DohApp::set_home(DohApp::find_home(File.dirname($0)))
@@ -0,0 +1,4 @@
1
+ require 'doh/app/home'
2
+ require 'fileutils'
3
+
4
+ DohApp::set_home(DohApp::find_home(FileUtils.pwd))
data/lib/doh/app/home.rb CHANGED
@@ -13,7 +13,11 @@ end
13
13
 
14
14
  @@home = nil
15
15
  def self.home
16
- @@home ||= find_home(File.dirname($0))
16
+ @@home
17
+ end
18
+
19
+ def self.set_home(home)
20
+ @@home = home
17
21
  end
18
22
 
19
23
  end
@@ -0,0 +1,2 @@
1
+ require 'doh/app/find_home_from_pwd'
2
+ require 'doh/app_shared'
@@ -0,0 +1,2 @@
1
+ require 'doh/app/add_lib_to_load_path'
2
+ require 'doh/app/options'
@@ -0,0 +1,2 @@
1
+ require 'doh/app/find_home_from_pwd'
2
+ require 'doh/app_shared'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dohruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makani & Kem Mason
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-27 00:00:00 -06:00
12
+ date: 2008-05-28 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -37,10 +37,14 @@ files:
37
37
  - bin/run_tests.rb
38
38
  - lib/doh
39
39
  - lib/doh/app
40
+ - lib/doh/app/add_lib_to_load_path.rb
41
+ - lib/doh/app/find_home_from_main_source.rb
42
+ - lib/doh/app/find_home_from_pwd.rb
40
43
  - lib/doh/app/home.rb
41
- - lib/doh/app/include_lib_directory.rb
42
44
  - lib/doh/app/options.rb
43
- - lib/doh/app.rb
45
+ - lib/doh/app_pwd.rb
46
+ - lib/doh/app_shared.rb
47
+ - lib/doh/app_src.rb
44
48
  - lib/doh/core
45
49
  - lib/doh/core/bigdecimal.rb
46
50
  - lib/doh/core/date.rb
@@ -65,7 +69,7 @@ files:
65
69
  - lib/doh/logger/standard_interface.rb
66
70
  - lib/doh/logger/util.rb
67
71
  - lib/doh/logger.rb
68
- - lib/doh/logger_app.rb
72
+ - lib/doh/logger_configure.rb
69
73
  - lib/doh/mysql
70
74
  - lib/doh/mysql/cache_connector.rb
71
75
  - lib/doh/mysql/connector_instance.rb
@@ -1,3 +0,0 @@
1
- require 'doh/app/home'
2
-
3
- $:.push(File.join(DohApp::home, 'lib'))
data/lib/doh/app.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'doh/app/include_lib_directory'
2
- require 'doh/app/options'
File without changes