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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cb4cc20cba975f1a38dc28b9943bdde9316c5c0f39f930666c6f88551852e47
4
- data.tar.gz: dd2771c79e248dfac2d1815b6bcbe7b3d23f5c90d7f9fb4da14bdc6feb7e9ca2
3
+ metadata.gz: 35b512d522643dc5fdc38c36a5343160c900137b6db86f008f383cd86b0072a6
4
+ data.tar.gz: cfef9377af4254ba2eb09e5048702ba2b65e267e717692c241a0e21deb25983c
5
5
  SHA512:
6
- metadata.gz: dd9803830df096d57ef548305bdf120899db1a8f85961f14272c50eaa4829d1293ed4adabf084a75a68b291d545d8d7892df8aeeedf5f9ebfe1e6190499d50ec
7
- data.tar.gz: 56240dbb1d65c116c6bb48afcb51f6338c34cdc1058c3c1aaeba01b774311182fc51bd6cb1484bcdaaaf422f242e650754613df0a3f193f12f8b27657bb7d86f
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
@@ -22,4 +22,9 @@
22
22
 
23
23
  require_relative '../lib/bake/command'
24
24
 
25
- Bake::Command.call
25
+ begin
26
+ Bake::Command.call
27
+ rescue => error
28
+ Console.logger.error(Bake::Command) {error}
29
+ exit 1
30
+ end
data/lib/bake/types.rb CHANGED
@@ -20,6 +20,7 @@
20
20
 
21
21
  require_relative 'types/any'
22
22
  require_relative 'types/array'
23
+ require_relative 'types/boolean'
23
24
  require_relative 'types/decimal'
24
25
  require_relative 'types/float'
25
26
  require_relative 'types/hash'
@@ -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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Bake
22
- VERSION = "0.6.0"
22
+ VERSION = "0.7.0"
23
23
  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.6.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-09 00:00:00.000000000 Z
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
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec