drydock 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.txt CHANGED
@@ -1,5 +1,14 @@
1
1
  DRYDOCK, CHANGES
2
2
 
3
+ #### 0.6.9 (2009-10-??) #############################
4
+
5
+ * CHANGE: Using autoload where appropriate.
6
+
7
+ #### 0.6.8 (2009-09-15) #############################
8
+
9
+ * FIXED: require 'thread' added to Drydock::Screen
10
+ * FIXED: require 'drydock/console'
11
+
3
12
 
4
13
  #### 0.6.7 (2009-09-15) #############################
5
14
 
data/drydock.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = %q{drydock}
3
- s.version = "0.6.7"
3
+ s.version = "0.6.8"
4
4
  s.specification_version = 1 if s.respond_to? :specification_version=
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
 
data/lib/drydock.rb CHANGED
@@ -1,11 +1,14 @@
1
1
  require 'optparse'
2
2
  require 'ostruct'
3
- require 'stringio'
4
3
 
5
- require 'drydock/screen'
6
- require 'drydock/mixins'
4
+ require 'stringio'
7
5
 
8
6
  module Drydock
7
+ require 'drydock/mixins'
8
+
9
+ autoload :Screen, 'drydock/screen'
10
+ autoload :Console, 'drydock/console'
11
+
9
12
  class FancyArray < Array #:nodoc:
10
13
  attr_reader :fields
11
14
  def add_field(n)
@@ -78,7 +81,7 @@ module Drydock
78
81
  # end
79
82
  #
80
83
  class Command
81
- VERSION = "0.6.7"
84
+ VERSION = "0.6.8"
82
85
  # The canonical name of the command (the one used in the command definition). If you
83
86
  # inherit from this class and add a method named +cmd+, you can leave omit the block
84
87
  # in the command definition. That method will be called instead. See bin/examples.
@@ -8,8 +8,8 @@
8
8
 
9
9
  module Console #:nodoc:all
10
10
  extend self
11
- require 'timeout'
12
- require 'thread'
11
+ autoload :Timeout, 'timeout'
12
+ autoload :Thread, 'thread'
13
13
 
14
14
  # ANSI escape sequence numbers for text attributes
15
15
  ATTRIBUTES = {
@@ -1,4 +1,4 @@
1
-
1
+ autoload :Console, 'drydock/console'
2
2
  class String
3
3
  @@print_with_attributes = true
4
4
  def String.disable_colour; @@print_with_attributes = false; end
@@ -1,4 +1,4 @@
1
-
1
+ require 'thread'
2
2
 
3
3
  module Drydock
4
4
  module Screen
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drydock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-15 00:00:00 -04:00
12
+ date: 2009-10-07 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15