sif 0.0.2 → 0.1.0

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/sif.rb +12 -1
  3. data/sif.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.1.0
data/lib/sif.rb CHANGED
@@ -5,13 +5,15 @@ module Sif
5
5
  class Loader < Thor
6
6
 
7
7
  def initialize(args=[], options={}, config={})
8
- super
8
+ super
9
9
  load_configuration
10
10
  end
11
11
 
12
12
  class_option :config, :aliases => ['-c']
13
13
  @@config_file = '.config'
14
14
 
15
+ @@post_config = nil
16
+
15
17
  no_tasks do
16
18
  def load_configuration
17
19
 
@@ -27,6 +29,10 @@ module Sif
27
29
  config.each do |k,v|
28
30
  instance_variable_set "@#{k}",v
29
31
  end
32
+
33
+ if ( @@post_config )
34
+ @@post_config.yield self
35
+ end
30
36
 
31
37
  end
32
38
 
@@ -34,6 +40,11 @@ module Sif
34
40
  @@config_file = filename
35
41
  end
36
42
 
43
+ def self.further_config(&block)
44
+ @@post_config = block
45
+ end
46
+
47
+
37
48
  end
38
49
 
39
50
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sif"
8
- s.version = "0.0.2"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["George McIntosh"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sif
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  segments:
79
79
  - 0
80
- hash: 2157843848120416529
80
+ hash: -4039124961419400857
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  none: false
83
83
  requirements: