summaryrefslogtreecommitdiff
path: root/lib/bubble.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bubble.rb')
-rw-r--r--lib/bubble.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/bubble.rb b/lib/bubble.rb
new file mode 100644
index 0000000000..fa055f9864
--- /dev/null
+++ b/lib/bubble.rb
@@ -0,0 +1,20 @@
+module Bubble
+ VERSION = "0.9.0.pre"
+
+ autoload :Definition, 'bubble/definition'
+ autoload :Dependency, 'bubble/dependency'
+ autoload :Dsl, 'bubble/dsl'
+ autoload :Environment, 'bubble/environment'
+
+ class GemfileNotFound < StandardError; end
+ class GemNotFound < StandardError; end
+ class VersionConflict < StandardError; end
+
+ def self.load(gemfile = nil)
+ Environment.new(definition(gemfile))
+ end
+
+ def self.definition(gemfile = nil)
+ Definition.from_gemfile(gemfile)
+ end
+end \ No newline at end of file