bakery 0.5.2 → 0.5.3
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.
- checksums.yaml +7 -0
- data/bin/bake +2 -0
- data/lib/bakery.rb +6 -4
- data/lib/bakery/cake.rb +22 -0
- data/lib/bakery/detail/icing.rb +29 -0
- data/lib/bakery/{bakery.rb → detail/marker.rb} +0 -38
- data/lib/bakery/{icing.rb → dsl.rb} +0 -0
- data/lib/bakery/ingredients/detail/project.ingredient +2 -0
- data/lib/bakery/version.rb +1 -1
- metadata +12 -15
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d001b25a0716c7ab96780deca1e08228a035e240
|
4
|
+
data.tar.gz: c6cf1c71a1b55e82417d0ae9a2110e021e12e941
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 630cf0b3f10a87e58ea8066806b18ac299b4a2464d62658bb6c60081550a1c2380a29a75925be68aa91fc923fa4f0ada446caf4a7c15aa7a8350353bce976fbd
|
7
|
+
data.tar.gz: aaad39147a79f36a370fa2a2cc631bb36eb1f9ccbf6fd4efd8f75a5e7a7b3bd11e571a2c5c136e9aabcc2eb7cc5a53d3446d132e23e7a9201934b242c1e25b58
|
data/bin/bake
CHANGED
data/lib/bakery.rb
CHANGED
@@ -9,15 +9,17 @@
|
|
9
9
|
# <description>
|
10
10
|
#
|
11
11
|
|
12
|
-
require 'bakery/bakery'
|
13
12
|
require 'bakery/cake'
|
13
|
+
require 'bakery/dsl'
|
14
|
+
require 'bakery/ingredient'
|
15
|
+
|
16
|
+
require 'bakery/detail/dispatcher'
|
14
17
|
require 'bakery/detail/global_function'
|
18
|
+
require 'bakery/detail/icing'
|
15
19
|
require 'bakery/detail/load'
|
16
20
|
require 'bakery/detail/log'
|
17
|
-
require 'bakery/detail/
|
21
|
+
require 'bakery/detail/marker'
|
18
22
|
require 'bakery/detail/search'
|
19
|
-
require 'bakery/icing'
|
20
|
-
require 'bakery/ingredient'
|
21
23
|
|
22
24
|
module Bakery
|
23
25
|
ROOT_DIR = Dir.pwd
|
data/lib/bakery/cake.rb
CHANGED
@@ -10,6 +10,8 @@
|
|
10
10
|
#
|
11
11
|
|
12
12
|
module Bakery
|
13
|
+
@currentCake = nil
|
14
|
+
|
13
15
|
class Cake
|
14
16
|
def initialize parent
|
15
17
|
@parent = parent
|
@@ -29,5 +31,25 @@ module Bakery
|
|
29
31
|
@parent
|
30
32
|
end
|
31
33
|
end
|
34
|
+
|
35
|
+
class << self
|
36
|
+
def addCake
|
37
|
+
cake = Cake.new @currentCake
|
38
|
+
|
39
|
+
Bakery::Log.debug "entering project: #{cake.root}"
|
40
|
+
|
41
|
+
@currentCake = cake
|
42
|
+
end
|
43
|
+
|
44
|
+
def removeCake
|
45
|
+
Bakery::Log.debug "leaving project: #{@currentCake.root}"
|
46
|
+
|
47
|
+
@currentCake = @currentCake.parent
|
48
|
+
end
|
49
|
+
|
50
|
+
def getCake
|
51
|
+
@currentCake
|
52
|
+
end
|
53
|
+
end
|
32
54
|
end
|
33
55
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2013
|
3
|
+
# Nathan Currier
|
4
|
+
#
|
5
|
+
# Use, modification, and distribution are all subject to the
|
6
|
+
# Boost Software License, Version 1.0. (See the accompanying
|
7
|
+
# file LICENSE.md or at http://rideliner.tk/LICENSE.html).
|
8
|
+
#
|
9
|
+
# <description>
|
10
|
+
#
|
11
|
+
|
12
|
+
module Bakery
|
13
|
+
@globalIcing = Hash.new
|
14
|
+
|
15
|
+
class << self
|
16
|
+
def icing
|
17
|
+
@globalIcing
|
18
|
+
end
|
19
|
+
|
20
|
+
def [] symbol
|
21
|
+
if icing = getCake.icing[symbol]
|
22
|
+
icing
|
23
|
+
else
|
24
|
+
@globalIcing[symbol]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -10,10 +10,7 @@
|
|
10
10
|
#
|
11
11
|
|
12
12
|
module Bakery
|
13
|
-
@cakes = Array.new
|
14
13
|
@markers = Array.new
|
15
|
-
@defaultIcing = Hash.new
|
16
|
-
@currentCake = nil
|
17
14
|
|
18
15
|
class << self
|
19
16
|
def removeMarkerLayerFromStack path
|
@@ -27,12 +24,6 @@ module Bakery
|
|
27
24
|
|
28
25
|
removed
|
29
26
|
}
|
30
|
-
|
31
|
-
if @currentCake.root == path
|
32
|
-
Bakery::Log.debug "leaving project: #{@currentCake.root}"
|
33
|
-
|
34
|
-
@currentCake = @currentCake.parent
|
35
|
-
end
|
36
27
|
end
|
37
28
|
|
38
29
|
def getLatestMarkerOfType type
|
@@ -45,38 +36,9 @@ module Bakery
|
|
45
36
|
nil
|
46
37
|
end
|
47
38
|
|
48
|
-
def icing
|
49
|
-
@defaultIcing
|
50
|
-
end
|
51
|
-
|
52
39
|
def markers
|
53
40
|
@markers
|
54
41
|
end
|
55
|
-
|
56
|
-
def cakes
|
57
|
-
@cakes
|
58
|
-
end
|
59
|
-
|
60
|
-
def [] symbol
|
61
|
-
if icing = getCake.icing[symbol]
|
62
|
-
icing
|
63
|
-
else
|
64
|
-
@defaultIcing[symbol]
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
def addCake
|
69
|
-
cake = Cake.new @currentCake
|
70
|
-
|
71
|
-
Bakery::Log.debug "entering project: #{cake.root}"
|
72
|
-
|
73
|
-
@cakes.push cake
|
74
|
-
@currentCake = cake
|
75
|
-
end
|
76
|
-
|
77
|
-
def getCake
|
78
|
-
@currentCake
|
79
|
-
end
|
80
42
|
end
|
81
43
|
end
|
82
44
|
|
File without changes
|
data/lib/bakery/version.rb
CHANGED
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bakery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Nathan Currier
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-22 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: trollop
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '2.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '2.0'
|
30
27
|
description: Design the layout of a project and have it ready for coding.
|
@@ -49,11 +46,12 @@ files:
|
|
49
46
|
- lib/bakery/detail/global_function.rb
|
50
47
|
- lib/bakery/detail/search.rb
|
51
48
|
- lib/bakery/detail/dispatcher.rb
|
49
|
+
- lib/bakery/detail/icing.rb
|
52
50
|
- lib/bakery/detail/log.rb
|
51
|
+
- lib/bakery/detail/marker.rb
|
53
52
|
- lib/bakery/ingredient.rb
|
54
|
-
- lib/bakery/icing.rb
|
55
|
-
- lib/bakery/bakery.rb
|
56
53
|
- lib/bakery/cake.rb
|
54
|
+
- lib/bakery/dsl.rb
|
57
55
|
- lib/default.ingredients
|
58
56
|
- lib/bakery.rb
|
59
57
|
- LICENSE.md
|
@@ -61,26 +59,25 @@ files:
|
|
61
59
|
homepage: https://github.com/rideliner/bakery
|
62
60
|
licenses:
|
63
61
|
- Boost
|
62
|
+
metadata: {}
|
64
63
|
post_install_message:
|
65
64
|
rdoc_options: []
|
66
65
|
require_paths:
|
67
66
|
- lib
|
68
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
68
|
requirements:
|
71
|
-
- -
|
69
|
+
- - '>='
|
72
70
|
- !ruby/object:Gem::Version
|
73
71
|
version: '0'
|
74
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
73
|
requirements:
|
77
|
-
- -
|
74
|
+
- - '>='
|
78
75
|
- !ruby/object:Gem::Version
|
79
76
|
version: '0'
|
80
77
|
requirements: []
|
81
78
|
rubyforge_project:
|
82
|
-
rubygems_version: 1.
|
79
|
+
rubygems_version: 2.1.11
|
83
80
|
signing_key:
|
84
|
-
specification_version:
|
81
|
+
specification_version: 4
|
85
82
|
summary: Project management made simple.
|
86
83
|
test_files: []
|