confit 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/confit.rb +9 -0
  2. metadata +4 -4
data/lib/confit.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'ostruct'
2
2
  require 'rubygems'
3
+ require 'extlib'
3
4
 
4
5
  class InvalidFileNameError < StandardError; end
5
6
  class MissingVariableError < StandardError; end
@@ -13,6 +14,14 @@ module Confit
13
14
  @@current_file_name = nil
14
15
  @@debug = false
15
16
 
17
+ def self.debug=(bool)
18
+ @@debug = bool
19
+ end
20
+
21
+ def self.debug
22
+ @@debug
23
+ end
24
+
16
25
  def self.debug(msg)
17
26
  puts "\nDebug:\t#{msg}" if @@debug
18
27
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jen Oslislo
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-20 00:00:00 -07:00
18
+ date: 2011-07-12 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21