mystro-common 0.1.9 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.10:
4
+ * allow for disabling plugins
5
+
6
+ ## v0.1.9:
7
+ * fucking bug in dns code again
8
+
3
9
  ## v0.1.8:
4
10
  * revert new dsl creeping in when it wasnt supposed to
5
11
 
@@ -3,7 +3,7 @@ module Mystro
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 9
6
+ TINY = 11
7
7
  TAG = nil
8
8
  STRING = [MAJOR, MINOR, TINY, TAG].compact.join(".")
9
9
  end
data/lib/mystro/plugin.rb CHANGED
@@ -35,6 +35,11 @@ module Mystro
35
35
  end
36
36
  end
37
37
 
38
+ def disabled?(name)
39
+ Mystro::Log.debug "disabled? #{name}"
40
+ Mystro.config.disabled && Mystro.config.disabled[name]
41
+ end
42
+
38
43
  def register(key, opts={})
39
44
  @plugins ||= {}
40
45
  @plugins[key] = opts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mystro-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-25 00:00:00.000000000 Z
12
+ date: 2013-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog