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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47bcbd5bbd0350ae6032bbf639684489b8a28ce5e41956a8a4f2f979c7ac4f3b
4
- data.tar.gz: afe8e3084738e450520d2bc82c2ae122be8503b14014f0ad6ed94f72ee70f88f
3
+ metadata.gz: 492a3039647b5dfb430f1d22b0c2bc691531e3bd06fa8adbb87f04cf53f06e49
4
+ data.tar.gz: f9c4aa8b76fc5dec8dd23ca65fa62123e24b37edc5bac909f7e4f3021f4a174f
5
5
  SHA512:
6
- metadata.gz: 5ed9a70c290a1757433b1d8db2cb78103d7790192b2149a4ce89948c66123d9ae35726b3f05665968c71434ab879c15eafd29eb3e77559b4b444a768a586d64b
7
- data.tar.gz: fbf2ad74fa227ce1c5be308f0f7c35f8198cae0414f8ca3092eb813de129a31c7c613297af50a65a7676af0d66cefd483249b032bcc6086cf71589301e063694
6
+ metadata.gz: 91146cbe9150339a51041896ac55b27c0d0791b0a1ebb20b6c3b0220c69f651f359d9e0f2f09c04db870f1e2501c773f7a6e25155550e0b3957eea3e8cd54825
7
+ data.tar.gz: 5df776825366bd19352085a97b5eba5eba6e5c18da9aa24bbe15dc5387789f20cf40836e4f3664c76e0911c458f274c5eccb02502ebb23650b9b97771f1a0e46
@@ -54,7 +54,7 @@ module Bake
54
54
  break
55
55
  end
56
56
 
57
- name = name.to_sym
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
@@ -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
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Bake
24
- VERSION = "0.15.2"
24
+ VERSION = "0.16.0"
25
25
  end
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.15.2
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-06-04 00:00:00.000000000 Z
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.1.2
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.