vic 0.0.3 → 0.0.4
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.
- data/lib/vic/colorscheme/highlight.rb +17 -21
- data/lib/vic.rb +2 -3
- metadata +2 -2
@@ -13,28 +13,24 @@ module Vic
|
|
13
13
|
update_arguments!(args)
|
14
14
|
end
|
15
15
|
|
16
|
-
#
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
elsif not args.empty?
|
34
|
-
argument = Argument.new(lookup, args)
|
35
|
-
arguments.add argument
|
16
|
+
# Sets the methods term, term=, start, start=, etc. for settings arguments.
|
17
|
+
self.class_eval do
|
18
|
+
%w{term start stop cterm ctermfg ctermbg gui guibg guifg}.each do |m|
|
19
|
+
define_method(m) {
|
20
|
+
argument = argument_set.find_by_key(m)
|
21
|
+
return argument.arg if argument
|
22
|
+
}
|
23
|
+
define_method("#{m}=") {|val|
|
24
|
+
argument = argument_set.find_by_key(m)
|
25
|
+
if argument
|
26
|
+
argument.arg = val
|
27
|
+
else
|
28
|
+
argument = Argument.new(m, val)
|
29
|
+
argument_set.add argument
|
30
|
+
end
|
31
|
+
val
|
32
|
+
}
|
36
33
|
end
|
37
|
-
argument.arg
|
38
34
|
end
|
39
35
|
|
40
36
|
# Updates/sets the current highlight's arguments.
|
data/lib/vic.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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: 2012-01-
|
12
|
+
date: 2012-01-13 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Create Vim colorschemes with Ruby
|
15
15
|
email: cjholdbrooks@gmail.com
|