colorconfig 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/colorconfig/version.rb +1 -1
- data/lib/mvr/plugin/colorconfig.plugin.rb +12 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 986a37203dfaa544e4a6ae1483dd6ee09470abe4
|
4
|
+
data.tar.gz: 9283ccf3422677e184d4d8ea06eb2f2097587c01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c43c155ba8fb1f8dcc3d01d8df295eb46eb27813b945afe4615d29447eeeeecb8e3f1b565a10bb9239dc732289aaf67ebb19b7143969da1cddcd3eb215d44c1
|
7
|
+
data.tar.gz: 235d9565d4dcd8e102192e452010ddad4f04cba141663eeb8e467664c409180b4be4569ceb5eed9751ded600fb893af58b2f199468169c43fabf0974a87a36a9
|
data/lib/colorconfig/version.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'everyday-plugins'
|
2
|
+
include EverydayPlugins
|
3
|
+
class ColorConfigPlugin
|
4
|
+
extend Plugin
|
5
|
+
extend PluginType
|
6
|
+
|
7
|
+
CONFIG_FILE = File.expand_path('~/mvr-colors.yaml')
|
8
|
+
|
9
|
+
register :option, sym: :override_colors, names: %w(-v --override-colors), desc: 'override the colors with the ones configured by the colorconfig script'
|
10
|
+
|
11
|
+
register(:color_override, priority: 100) { |options| (options[:override_colors] && File.exist?(CONFIG_FILE)) ? YAML::load_file(CONFIG_FILE) : nil }
|
12
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colorconfig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Henderson
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- lib/colorconfig.rb
|
85
85
|
- lib/colorconfig/version.rb
|
86
86
|
- lib/mvn2/plugin/colorconfig.plugin.rb
|
87
|
+
- lib/mvr/plugin/colorconfig.plugin.rb
|
87
88
|
homepage: https://github.com/henderea/colorconfig
|
88
89
|
licenses:
|
89
90
|
- MIT
|