prct_sergio 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b2b720d8851435198f4f08e1462820b32023f5e9
4
+ data.tar.gz: c3b138e4053f631ecf83ec0e91eb5fae85e12865
5
+ SHA512:
6
+ metadata.gz: b52052ccc191a8ae8eebfdc5fcff63dd494d5a0842642eb68e62d9ab87a41706574be80dc9381bd18e8a26d1b43650906afb23f593f7792c154d8b9d0a27ae2e
7
+ data.tar.gz: 895bf1ab5cdcf18401d9a0deef1f4f94edc1ad4bff9913392a3b4db6f5dff1094d7bc034d8fa819925391a0177ef3363eb4fa9ee0bdbb030dc36f713f0adbeab
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.0.0
5
+ before_install: gem install bundler -v 1.13.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at alu0100892260@ull.edu.es. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in prct06.gemspec
4
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,82 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ guard :bundler do
19
+ require 'guard/bundler'
20
+ require 'guard/bundler/verify'
21
+ helper = Guard::Bundler::Verify.new
22
+
23
+ files = ['Gemfile']
24
+ files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
25
+
26
+ # Assume files are symlinked from somewhere
27
+ files.each { |file| watch(helper.real_path(file)) }
28
+ end
29
+
30
+ # Note: The cmd option is now required due to the increasing number of ways
31
+ # rspec may be run, below are examples of the most common uses.
32
+ # * bundler: 'bundle exec rspec'
33
+ # * bundler binstubs: 'bin/rspec'
34
+ # * spring: 'bin/rspec' (This will use spring if running and you have
35
+ # installed the spring binstubs per the docs)
36
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
37
+ # * 'just' rspec: 'rspec'
38
+
39
+ guard :rspec, cmd: "bundle exec rspec" do
40
+ require "guard/rspec/dsl"
41
+ dsl = Guard::RSpec::Dsl.new(self)
42
+
43
+ # Feel free to open issues for suggestions and improvements
44
+
45
+ # RSpec files
46
+ rspec = dsl.rspec
47
+ watch(rspec.spec_helper) { rspec.spec_dir }
48
+ watch(rspec.spec_support) { rspec.spec_dir }
49
+ watch(rspec.spec_files)
50
+
51
+ # Ruby files
52
+ ruby = dsl.ruby
53
+ dsl.watch_spec_files_for(ruby.lib_files)
54
+
55
+ # Rails files
56
+ rails = dsl.rails(view_extensions: %w(erb haml slim))
57
+ dsl.watch_spec_files_for(rails.app_files)
58
+ dsl.watch_spec_files_for(rails.views)
59
+
60
+ watch(rails.controllers) do |m|
61
+ [
62
+ rspec.spec.call("routing/#{m[1]}_routing"),
63
+ rspec.spec.call("controllers/#{m[1]}_controller"),
64
+ rspec.spec.call("acceptance/#{m[1]}")
65
+ ]
66
+ end
67
+
68
+ # Rails config changes
69
+ watch(rails.spec_helper) { rspec.spec_dir }
70
+ watch(rails.routes) { "#{rspec.spec_dir}/routing" }
71
+ watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
72
+
73
+ # Capybara features specs
74
+ watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
75
+ watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
76
+
77
+ # Turnip features and steps
78
+ watch(%r{^spec/acceptance/(.+)\.feature$})
79
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
80
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
81
+ end
82
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Sergio García
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Prct06
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/prct06`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'prct06'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install prct06
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/prct06. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ desc "Ejecutar las espectativas de la clase Receta"
9
+ task :spec do
10
+ sh "rspec -I. spec/prct06_spec.rb"
11
+ end
12
+
13
+ desc "Ejecutar con documentacion"
14
+ task :doc do
15
+ sh "rspec -I. spec/prct06_spec.rb --format documentation"
16
+ end
17
+
18
+ desc "Ejecutar clase"
19
+ task :simple do
20
+ sh "ruby lib/prct06/dieta.rb"
21
+ end
data/Rakefile~ ADDED
@@ -0,0 +1,21 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ desc "Ejecutar las espectativas de la clase Receta"
9
+ task :spec do
10
+ sh "rspec -I. spec/prct06_spec.rb"
11
+ end
12
+
13
+ desc "Ejecutar con documentacion"
14
+ task :doc do
15
+ sh "rspec -I. spec/prct06_spec.rb --format documentation"
16
+ end
17
+
18
+ desc "Ejecutar clase"
19
+ task :simple do
20
+ sh "ruby lib/prct06.rb"
21
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "prct06"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/prct06.rb ADDED
@@ -0,0 +1,5 @@
1
+ require "prct06/version"
2
+
3
+ module Prct06
4
+
5
+ end
data/lib/prct06/.swp ADDED
Binary file
@@ -0,0 +1,66 @@
1
+ require_relative "version"
2
+
3
+ class DietaNueva_t
4
+
5
+ attr_accessor :titulo, :porcediarios, :platos, :porcentajes
6
+
7
+ def initialize(titulo, &block)
8
+ self.titulo = titulo
9
+ self.porcediarios = []
10
+ self.platos = []
11
+ self.porcentajes = []
12
+
13
+ if block_given?
14
+ if block.arity == 1
15
+ yield self
16
+ else
17
+ instance_eval(&block)
18
+ end
19
+ end
20
+ end
21
+
22
+ def to_s
23
+ mostrar = titulo
24
+ mostrar << "\n#{'=' * titulo.size}\n"
25
+
26
+ mostrar << "\nPorcentajes recomendados de ingesta."
27
+ porcediarios.each do |porcediario|
28
+ mostrar << "#{porcediario}"
29
+ end
30
+
31
+ platos.each_with_index do |plato, i|
32
+ mostrar << "#{i + 1} #{plato}"
33
+ end
34
+
35
+
36
+ mostrar << "\nV.C.T. y porcentajes: "
37
+ porcentajes.each do |porcentaje|
38
+ mostrar << " #{porcentaje}"
39
+ end
40
+
41
+ mostrar << "\n\n"
42
+ end
43
+
44
+ def porcediario(options = {})
45
+ porcediarios << "\nMin: #{options[:minimo]}" if options[:minimo]
46
+ porcediarios << "\nMax: #{options[:maximo]}\n\n" if options[:maximo]
47
+ end
48
+
49
+ def plato(options = {})
50
+
51
+ plato = " #{options[:descripcion]}." if options[:descripcion]
52
+ plato += " #{options[:porciones]}." if options[:porciones]
53
+ plato += " #{options[:ingengr]}.\n" if options[:ingengr]
54
+
55
+ platos << plato
56
+ end
57
+
58
+
59
+ def porcentaje(options = {})
60
+
61
+ porcentajes << "#{options[:vct]} kcal" if options[:vct]
62
+ porcentajes << "#{options[:porcproteinas]}%" if options[:porcproteinas]
63
+ porcentajes << "#{options[:porcgrasas]}%" if options[:porcgrasas]
64
+ porcentajes << "#{options[:porchidratos]}%." if options[:porchidratos]
65
+ end
66
+ end
@@ -0,0 +1,87 @@
1
+ require_relative "version"
2
+
3
+ #Clase dieta padre
4
+ class Dieta_t
5
+
6
+ include Comparable
7
+
8
+ attr_reader :titulo, :porcdiario, :descripcion, :porciones, :ingengr, :conjplatos, :vct, :porcproteinas, :porcgrasas, :porchidratos
9
+ attr_writer :titulo, :porcdiario, :descripcion, :porciones, :ingengr, :conjplatos, :vct, :porcproteinas, :porcgrasas, :porchidratos
10
+
11
+ #Constructor de la clase Dieta_t
12
+ def initialize(titulo, porcdiario, descripcion, porciones, ingengr, conjplatos, vct, porcproteinas, porcgrasas, porchidratos)
13
+ @titulo = titulo
14
+ @porcdiario = porcdiario
15
+ @descripcion = descripcion
16
+ @porciones = porciones
17
+ @ingengr = ingengr
18
+ @conjplatos = conjplatos
19
+ @vct = vct
20
+ @porcproteinas = porcproteinas
21
+ @porcgrasas = porcgrasas
22
+ @porchidratos = porchidratos
23
+ end
24
+
25
+ #Muestra el contenido de la clase Dieta_t
26
+ def to_s
27
+ mostrar = ""
28
+ mostrar << "\n\n#{@titulo} (#{@porcdiario} %)\n"
29
+ for i in 0..(@conjplatos-1)
30
+ mostrar << "- #{@descripcion[i]}, #{@porciones[i]}, #{@ingengr[i]}\n"
31
+ end
32
+ mostrar << "V.C.T | % #{@vct} kcal | #{@porcproteinas}% - #{@porcgrasas}% - #{@porchidratos}%\n\n"
33
+ end
34
+
35
+ #Permite comparar dietas
36
+ def <=> (other)
37
+ self.vct <=> other.vct
38
+ end
39
+
40
+ end
41
+
42
+ #Clase hija de la anterior en la cual se añade una edad recomendad
43
+ class DietaEdad_t < Dieta_t
44
+ attr_accessor :edad
45
+
46
+ #Constructor de la clase DietaEdad_t
47
+ def initialize(titulo, porcdiario, descripcion, porciones, ingengr, conjplatos, vct, porcproteinas, porcgrasas, porchidratos, edad)
48
+ super(titulo, porcdiario, descripcion, porciones, ingengr, conjplatos, vct, porcproteinas, porcgrasas, porchidratos)
49
+ @edad = edad
50
+ end
51
+
52
+ #Muestra el contenido de la clase DietaEdad_t
53
+ def to_s
54
+ s << super.to_s
55
+ s << "Edad recomendada: #{@edad}"
56
+ end
57
+ end
58
+
59
+ #Clase hija de la anterior en la cual se añade un tipo de dieta
60
+ class DietaTipo_t < Dieta_t
61
+ attr_accessor :tipo
62
+
63
+ #Constructor de la clase DietaTipo_t
64
+ def initialize(titulo, porcdiario, descripcion, porciones, ingengr, conjplatos, vct, porcproteinas, porcgrasas, porchidratos, tipo)
65
+ super(titulo, porcdiario, descripcion, porciones, ingengr, conjplatos, vct, porcproteinas, porcgrasas, porchidratos)
66
+ @tipo = tipo
67
+ end
68
+
69
+ #Muestra el contenido de la clase DietaTipo_t
70
+ def to_s
71
+ s << super.to_s
72
+ s << "Tipo de dieta: #{@tipo}"
73
+ end
74
+ end
75
+
76
+
77
+ d1 = Dieta_t.new("DESAYUNO", 20, ["Leche", "Cereales"], [2, 1], [100, 75], 2, 720, 40, 60, 50)
78
+ d2 = Dieta_t.new("ALMUERZO", 10, ["Carne", "Papas"], [1, 1], [80, 60], 2, 720, 50, 30, 70)
79
+ d3 = Dieta_t.new("CENA", 3, ["Pizza"], [1], [70], 1, 1000, 30, 40, 50)
80
+
81
+ if d1 < d3
82
+ puts "d1 es menor que d3"
83
+ end
84
+
85
+ if d2 == d1
86
+ puts "d2 es igual a d1"
87
+ end
@@ -0,0 +1,74 @@
1
+ require_relative 'version'
2
+ #Estructura del nodo: valor, siguiente y anterior
3
+ Node = Struct.new(:value, :next, :prev)
4
+
5
+ #Clase lista
6
+ class LinkedList
7
+
8
+ include Enumerable
9
+
10
+ #Variables
11
+ attr_reader :head, :tail
12
+ attr_writer :head, :tail
13
+
14
+ #Constructor
15
+ def initialize
16
+ @head = @tail = nil
17
+ end
18
+
19
+ #Añadir nodos a la lista
20
+ def add (value, *more)
21
+
22
+ node = Node.new(value)
23
+
24
+ @tail = node if @tail.nil?
25
+
26
+ @head.next = node unless @head.nil?
27
+ node.prev = @head unless @head.nil?
28
+
29
+ @head = node
30
+
31
+ more.each do |i|
32
+ node2 = Node.new(i)
33
+ @head.next = node2
34
+ node2.prev = @head
35
+ @head = @head.next
36
+ end
37
+ end
38
+
39
+ #Saca la cabeza de la lista
40
+ def pop()
41
+ node = @head
42
+ @head = @head.next
43
+ return node
44
+ end
45
+
46
+ def empty()
47
+ emptyy = false
48
+ emptyy = true if @head.nil?
49
+
50
+ return emptyy
51
+ end
52
+
53
+ #Mostrar la lista
54
+ def to_s
55
+ $i = @tail
56
+
57
+ while ($i != nil) do
58
+ puts "#{$i.value}"
59
+ $i = $i.next
60
+ end
61
+
62
+ puts "CABEZA: #{@head.value}"
63
+ puts "COLA: #{@tail.value}"
64
+ end
65
+
66
+ def each
67
+ aux = @tail
68
+
69
+ while aux != nil do
70
+ yield aux.value
71
+ aux = aux.next
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,3 @@
1
+ module Prct06
2
+ VERSION = "0.3.0"
3
+ end
data/prct06.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'prct06/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "prct_sergio"
8
+ spec.version = Prct06::VERSION
9
+ spec.authors = ["Sergio García"]
10
+ spec.email = ["alu0100892260@ull.edu.es"]
11
+
12
+ spec.summary = %q{Proyecto de listas enlazadas en Ruby con la clase Dieta de la práctica 6}
13
+ spec.description = %q{Practica 7 de Lenguajes y Paradigmas de la Programación}
14
+ spec.homepage = "https://github.com/ULL-ESIT-LPP-1617/menu-dietetico-alu0100892260"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.13"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ spec.add_development_dependency "guard"
37
+ spec.add_development_dependency "guard-rspec"
38
+ spec.add_development_dependency "guard-bundler"
39
+ end
data/prct06.gemspec~ ADDED
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'prct06/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "prct06"
8
+ spec.version = Prct06::VERSION
9
+ spec.authors = ["Sergio García"]
10
+ spec.email = ["alu0100892260@ull.edu.es"]
11
+
12
+ spec.summary = %q{Proyecto de la clase Dieta en Ruby}
13
+ spec.description = %q{Practica 6 de Lenguajes y Paradigmas de la Programación}
14
+ spec.homepage = "TODO: Put your gem's website or public repo URL here."
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.13"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ end
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: prct_sergio
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Sergio García
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Practica 7 de Lenguajes y Paradigmas de la Programación
98
+ email:
99
+ - alu0100892260@ull.edu.es
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".travis.yml"
107
+ - CODE_OF_CONDUCT.md
108
+ - Gemfile
109
+ - Guardfile
110
+ - LICENSE.txt
111
+ - README.md
112
+ - Rakefile
113
+ - Rakefile~
114
+ - bin/console
115
+ - bin/setup
116
+ - lib/prct06.rb
117
+ - lib/prct06/.swp
118
+ - lib/prct06/diet.rb
119
+ - lib/prct06/dieta.rb
120
+ - lib/prct06/list.rb
121
+ - lib/prct06/version.rb
122
+ - prct06.gemspec
123
+ - prct06.gemspec~
124
+ homepage: https://github.com/ULL-ESIT-LPP-1617/menu-dietetico-alu0100892260
125
+ licenses:
126
+ - MIT
127
+ metadata: {}
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 2.5.1
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: Proyecto de listas enlazadas en Ruby con la clase Dieta de la práctica 6
148
+ test_files: []