dietary_dsl 0.2.0 → 0.3.0
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 +4 -4
- data/bin/console +0 -0
- data/git_config +24 -0
- data/lib/dietary_dsl/dsl/menu.rb +6 -0
- data/lib/dietary_dsl/version.rb +1 -1
- metadata +3 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 830d45f4996454f8c23d6335a980fb0798f8381d
|
4
|
+
data.tar.gz: ddab221c355d719bc014c8c8021893fe61a67530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 140166d216815f865a9ee06ddd1f1201ade1e1775f986b9fe7a49acdd46184f983112cf8b4ac6651b96822adbe71129df04f23e37d8044c7306a1c2732a41bc2
|
7
|
+
data.tar.gz: d35fdf3b93067746e04e2f8d12b533ffac9bb7b39cabfcf864ede5169b65a5fc7d137453aa44322deded0346d1c85f578c22f517b272a7300b282b276199040b
|
data/bin/console
CHANGED
File without changes
|
data/git_config
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
[core]
|
2
|
+
repositoryformatversion = 0
|
3
|
+
filemode = true
|
4
|
+
bare = false
|
5
|
+
logallrefupdates = true
|
6
|
+
[branch "master"]
|
7
|
+
[branch "master"]
|
8
|
+
remote = origin
|
9
|
+
merge = refs/heads/master
|
10
|
+
[remote "gitlab"]
|
11
|
+
url = git@gitlab.com:DanielRamosAcosta/dietary_dsl.git
|
12
|
+
fetch = +refs/heads/*:refs/remotes/gitlab/*
|
13
|
+
[remote "github"]
|
14
|
+
url = git@github.com:DanielRamosAcosta/dietary_dsl.git
|
15
|
+
fetch = +refs/heads/*:refs/remotes/github/*
|
16
|
+
[remote "gogs"]
|
17
|
+
url = ssh://git@git.hogarfeliz.com:10022/rubofood/dietary_dsl.git
|
18
|
+
fetch = +refs/heads/*:refs/remotes/gogs/*
|
19
|
+
[remote "origin"]
|
20
|
+
url = git@gitlab.com:DanielRamosAcosta/dietary_dsl.git
|
21
|
+
pushurl = git@gitlab.com:DanielRamosAcosta/dietary_dsl.git
|
22
|
+
pushurl = git@github.com:DanielRamosAcosta/dietary_dsl.git
|
23
|
+
pushurl = ssh://git@git.hogarfeliz.com:10022/rubofood/dietary_dsl.git
|
24
|
+
fetch = +refs/heads/*:refs/remotes/origin/*
|
data/lib/dietary_dsl/dsl/menu.rb
CHANGED
@@ -5,6 +5,8 @@ require 'dietary_dsl/dsl/alimento'
|
|
5
5
|
module DietaryDsl
|
6
6
|
# Clase que representa un menú. Un menú se compone de distintos platos (entrantes, primeros platos, postres...)
|
7
7
|
class Menu
|
8
|
+
include Enumerable
|
9
|
+
|
8
10
|
def initialize(title, &block)
|
9
11
|
@title = title
|
10
12
|
@platos = []
|
@@ -15,6 +17,10 @@ module DietaryDsl
|
|
15
17
|
@platos[key]
|
16
18
|
end
|
17
19
|
|
20
|
+
def each
|
21
|
+
@platos.each { |i| yield i }
|
22
|
+
end
|
23
|
+
|
18
24
|
def plato(datos)
|
19
25
|
return plato_single(datos) if datos.is_a?(Hash)
|
20
26
|
@platos = @platos.push datos
|
data/lib/dietary_dsl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dietary_dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Ramos
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -164,20 +164,6 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '3.0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: wdm
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0.1'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0.1'
|
181
167
|
description: Esta gema sirve para realizar una representación de menús dietéticos
|
182
168
|
usando un lenguaje de dominio específico.
|
183
169
|
email:
|
@@ -203,6 +189,7 @@ files:
|
|
203
189
|
- concept/menu_ruby.rb
|
204
190
|
- concept/menu_yml.yml
|
205
191
|
- dietary_dsl.gemspec
|
192
|
+
- git_config
|
206
193
|
- lib/dietary_dsl.rb
|
207
194
|
- lib/dietary_dsl/bedca_api/constants.rb
|
208
195
|
- lib/dietary_dsl/bedca_api/constants/attributes.rb
|