summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl.rb10
-rw-r--r--lib/hcl/app.rb10
-rw-r--r--lib/hcl/version.rb3
3 files changed, 13 insertions, 10 deletions
diff --git a/lib/hcl.rb b/lib/hcl.rb
new file mode 100644
index 0000000..8f7be26
--- /dev/null
+++ b/lib/hcl.rb
@@ -0,0 +1,10 @@
+module HCl
+ autoload :VERSION, 'hcl/version'
+ autoload :App, 'hcl/app'
+ autoload :Commands, 'hcl/commands'
+ autoload :TimesheetResource, 'hcl/timesheet_resource'
+ autoload :Utility, 'hcl/utility'
+ autoload :Project, 'hcl/project'
+ autoload :Task, 'hcl/task'
+ autoload :DayEntry, 'hcl/day_entry'
+end
diff --git a/lib/hcl/app.rb b/lib/hcl/app.rb
index 585ea79..f108087 100644
--- a/lib/hcl/app.rb
+++ b/lib/hcl/app.rb
@@ -10,14 +10,6 @@ require 'chronic'
require 'trollop'
require 'highline/import'
-## app dependencies
-require 'hcl/utility'
-require 'hcl/commands'
-require 'hcl/timesheet_resource'
-require 'hcl/project'
-require 'hcl/task'
-require 'hcl/day_entry'
-
# Workaround for annoying SSL warning:
# >> warning: peer certificate won't be verified in this SSL session
# http://www.5dollarwhitebox.org/drupal/node/64
@@ -31,8 +23,6 @@ class Net::HTTP
end
module HCl
- VERSION = "0.4.3"
-
class App
include HCl::Utility
include HCl::Commands
diff --git a/lib/hcl/version.rb b/lib/hcl/version.rb
new file mode 100644
index 0000000..5221433
--- /dev/null
+++ b/lib/hcl/version.rb
@@ -0,0 +1,3 @@
+module HCl
+ VERSION = '0.4.4'
+end