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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0038e0bb5dc079ba0b3bbe5b00e068c0bca09b20
4
- data.tar.gz: 9e720bc132c3e4ac0e86f268a21919e6509b724e
3
+ metadata.gz: 986a37203dfaa544e4a6ae1483dd6ee09470abe4
4
+ data.tar.gz: 9283ccf3422677e184d4d8ea06eb2f2097587c01
5
5
  SHA512:
6
- metadata.gz: 327652d5a9e0bfca352cc8a5f660a507c44ab33bbed71ba447711fcc69e740482dbc073580dfefb1e573c696a0c12684ffc010d091f26541939a2dd0b5ffe1c7
7
- data.tar.gz: 9dd21e57b9ed9459c82577c9d30fbda6563c9e21329c2db06376aec1d848f9ccd96a970c96e0d04b9eda708bedd57b50308183b8b99b8885b715a0a96505155a
6
+ metadata.gz: 8c43c155ba8fb1f8dcc3d01d8df295eb46eb27813b945afe4615d29447eeeeecb8e3f1b565a10bb9239dc732289aaf67ebb19b7143969da1cddcd3eb215d44c1
7
+ data.tar.gz: 235d9565d4dcd8e102192e452010ddad4f04cba141663eeb8e467664c409180b4be4569ceb5eed9751ded600fb893af58b2f199468169c43fabf0974a87a36a9
@@ -1,3 +1,3 @@
1
1
  module Colorconfig
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
@@ -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.0
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