bake 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bake.gemspec +2 -0
- data/bin/bake +6 -1
- data/lib/bake/types.rb +1 -0
- data/lib/bake/types/boolean.rb +35 -0
- data/lib/bake/version.rb +1 -1
- metadata +17 -3
- data/Rakefile +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35b512d522643dc5fdc38c36a5343160c900137b6db86f008f383cd86b0072a6
|
4
|
+
data.tar.gz: cfef9377af4254ba2eb09e5048702ba2b65e267e717692c241a0e21deb25983c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b681ce2b0ab886ceb2cecb71d197a6302952f40d0cd5e33aa1ac5f1535bd7c3214a1b9c9a8d4c2fc306a3fc1cd1b1baee0f43b8735252095340b0b8ba74388e
|
7
|
+
data.tar.gz: e306ce859c781f2a900e67814e235adcfe94165ef8852c713bc630b21e4ff552e03a03841f9a6a5c85fe29a108a36e8506f35a451dc6446b08085622a590e05f
|
data/bake.gemspec
CHANGED
@@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_dependency 'samovar', '~> 2.1'
|
25
25
|
|
26
|
+
spec.add_development_dependency 'bake-bundler'
|
27
|
+
|
26
28
|
spec.add_development_dependency 'covered'
|
27
29
|
spec.add_development_dependency 'bundler'
|
28
30
|
spec.add_development_dependency 'rspec'
|
data/bin/bake
CHANGED
data/lib/bake/types.rb
CHANGED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
11
|
+
# all copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
# THE SOFTWARE.
|
20
|
+
|
21
|
+
module Bake
|
22
|
+
module Types
|
23
|
+
module Boolean
|
24
|
+
def self.composite?
|
25
|
+
false
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.parse(input)
|
29
|
+
if input =~ /t(rue)?|y(es)?/i
|
30
|
+
return true
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
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.7.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: 2020-03-
|
11
|
+
date: 2020-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: samovar
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bake-bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: covered
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +106,6 @@ files:
|
|
92
106
|
- ".gitignore"
|
93
107
|
- ".rspec"
|
94
108
|
- README.md
|
95
|
-
- Rakefile
|
96
109
|
- bake.gemspec
|
97
110
|
- bake.rb
|
98
111
|
- bin/bake
|
@@ -112,6 +125,7 @@ files:
|
|
112
125
|
- lib/bake/types.rb
|
113
126
|
- lib/bake/types/any.rb
|
114
127
|
- lib/bake/types/array.rb
|
128
|
+
- lib/bake/types/boolean.rb
|
115
129
|
- lib/bake/types/decimal.rb
|
116
130
|
- lib/bake/types/float.rb
|
117
131
|
- lib/bake/types/hash.rb
|