bake 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bake/arguments.rb +5 -1
- data/lib/bake/command/top.rb +4 -0
- data/lib/bake/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 492a3039647b5dfb430f1d22b0c2bc691531e3bd06fa8adbb87f04cf53f06e49
|
4
|
+
data.tar.gz: f9c4aa8b76fc5dec8dd23ca65fa62123e24b37edc5bac909f7e4f3021f4a174f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91146cbe9150339a51041896ac55b27c0d0791b0a1ebb20b6c3b0220c69f651f359d9e0f2f09c04db870f1e2501c773f7a6e25155550e0b3957eea3e8cd54825
|
7
|
+
data.tar.gz: 5df776825366bd19352085a97b5eba5eba6e5c18da9aa24bbe15dc5387789f20cf40836e4f3664c76e0911c458f274c5eccb02502ebb23650b9b97771f1a0e46
|
data/lib/bake/arguments.rb
CHANGED
@@ -54,7 +54,7 @@ module Bake
|
|
54
54
|
break
|
55
55
|
end
|
56
56
|
|
57
|
-
name = name
|
57
|
+
name = normalize(name)
|
58
58
|
|
59
59
|
# Extract the trailing arguments:
|
60
60
|
@options[name] = extract_arguments(name, arguments)
|
@@ -82,6 +82,10 @@ module Bake
|
|
82
82
|
|
83
83
|
private
|
84
84
|
|
85
|
+
def normalize(name)
|
86
|
+
name.tr('-', '_').to_sym
|
87
|
+
end
|
88
|
+
|
85
89
|
def delimiter_index(arguments)
|
86
90
|
arguments.index{|argument| argument =~ /\A(--|;\z)/}
|
87
91
|
end
|
data/lib/bake/command/top.rb
CHANGED
@@ -35,6 +35,10 @@ module Bake
|
|
35
35
|
options do
|
36
36
|
option '-h/--help', 'Show help.'
|
37
37
|
option '-b/--bakefile <path>', 'Override the path to the bakefile to use.'
|
38
|
+
|
39
|
+
option '-g/--gem <name>', 'Load the specified gem, e.g. "bake ~> 1.0".' do |value|
|
40
|
+
gem(*value.split(/\s+/))
|
41
|
+
end
|
38
42
|
end
|
39
43
|
|
40
44
|
nested :command, {
|
data/lib/bake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: samovar
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
125
|
+
rubygems_version: 3.2.15
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: A replacement for rake with a simpler syntax.
|