coolerbibliogem 0.1.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 +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/Guardfile +89 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +9 -0
- data/bibliogem.gemspec +28 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/bibliogem.rb +10 -0
- data/lib/bibliogem/APA.rb +14 -0
- data/lib/bibliogem/LinkedList.rb +105 -0
- data/lib/bibliogem/Referencia.rb +103 -0
- data/lib/bibliogem/ReferenciaLibro.rb +4 -0
- data/lib/bibliogem/ReferenciaPeriodica.rb +4 -0
- data/lib/bibliogem/ReferenciaPeriodicaDiario.rb +4 -0
- data/lib/bibliogem/ReferenciaPeriodicaElectronico.rb +4 -0
- data/lib/bibliogem/ReferenciaPeriodicaRevista.rb +4 -0
- data/lib/bibliogem/version.rb +3 -0
- metadata +165 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 3ace8828374872d3a1e6b7fe902f6e536b5f9bb4
|
|
4
|
+
data.tar.gz: 76cc115d9b0634aed12581361f0f22e055c7c35e
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: db393693859fd2220e097b4a8a03fbff44c4cee63f7a3d4e977caa5b542e3ec8464cff1bb995e4ef2bc607a4b3194e67520659a8f191aeb559f8d9ba1c206503
|
|
7
|
+
data.tar.gz: 0eb6cf1e3492819e2ca6bb5cd87b48053c667262f2f9cc55df8fbd57779d0314cf270ccbf7d9601766ade2838ae6fd24513c96e7ee5e725bd1e6561ac8cc591b
|
data/.coveralls.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
service_name: travis-ci
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
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(lib spec .) \
|
|
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
|
+
watch("lib/bibliogem/Referencia.rb") {"spec/bibliogem_spec.rb"}
|
|
55
|
+
watch("lib/bibliogem/ReferenciaLibro.rb") {"spec/bibliogem_spec.rb"}
|
|
56
|
+
watch("lib/bibliogem/ReferenciaPeriodica.rb") {"spec/bibliogem_spec.rb"}
|
|
57
|
+
watch("lib/bibliogem/ReferenciaPeriodicaRevista.rb") {"spec/bibliogem_spec.rb"}
|
|
58
|
+
watch("lib/bibliogem/ReferenciaPeriodicaDiario.rb") {"spec/bibliogem_spec.rb"}
|
|
59
|
+
watch("lib/bibliogem/ReferenciaPeriodicaElectronico.rb") {"spec/bibliogem_spec.rb"}
|
|
60
|
+
watch("lib/bibliogem/LinkedList.rb") {"spec/bibliogem_spec.rb"}
|
|
61
|
+
|
|
62
|
+
# Rails files
|
|
63
|
+
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
|
64
|
+
dsl.watch_spec_files_for(rails.app_files)
|
|
65
|
+
dsl.watch_spec_files_for(rails.views)
|
|
66
|
+
|
|
67
|
+
watch(rails.controllers) do |m|
|
|
68
|
+
[
|
|
69
|
+
rspec.spec.("routing/#{m[1]}_routing"),
|
|
70
|
+
rspec.spec.("controllers/#{m[1]}_controller"),
|
|
71
|
+
rspec.spec.("acceptance/#{m[1]}")
|
|
72
|
+
]
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Rails config changes
|
|
76
|
+
watch(rails.spec_helper) { rspec.spec_dir }
|
|
77
|
+
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
|
78
|
+
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
|
79
|
+
|
|
80
|
+
# Capybara features specs
|
|
81
|
+
watch(rails.view_dirs) { |m| rspec.spec.("features/#{m[1]}") }
|
|
82
|
+
watch(rails.layouts) { |m| rspec.spec.("features/#{m[1]}") }
|
|
83
|
+
|
|
84
|
+
# Turnip features and steps
|
|
85
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
|
86
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
|
87
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
|
88
|
+
end
|
|
89
|
+
end
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 TODO: Write your name
|
|
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,44 @@
|
|
|
1
|
+
[](https://coveralls.io/github/alu0100791327/practica-10-LPP?branch=master)
|
|
2
|
+
Practica 11 de LENGUAJES Y PARADIGMAS DE PROGRAMACION
|
|
3
|
+
|
|
4
|
+
alu0100791327: PLASENCIA PIMENTEL, JESUS EDUARDO
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Bibliogem
|
|
8
|
+
|
|
9
|
+
Permite la creacion y manipulacion de bibliografias, tanto de revistas como
|
|
10
|
+
libros y otras publicaciones.
|
|
11
|
+
Contiene una implementacion de lista simplemente enlazada y de lista doblemente
|
|
12
|
+
enlazada.
|
|
13
|
+
Listas enlazadas ahora tienen funcionalidad de Enumerable. Referencias tienen
|
|
14
|
+
implementacion de comparable.
|
|
15
|
+
Implementacion de lista de referencias segun APA.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
Add this line to your application's Gemfile:
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
gem 'bibliogem'
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
And then execute:
|
|
27
|
+
|
|
28
|
+
$ bundle
|
|
29
|
+
|
|
30
|
+
Or install it yourself as:
|
|
31
|
+
|
|
32
|
+
$ gem install bibliogem
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## Development
|
|
36
|
+
|
|
37
|
+
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.
|
|
38
|
+
|
|
39
|
+
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).
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bibliogem.gemspec
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'bibliogem/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "coolerbibliogem"
|
|
8
|
+
spec.version = Bibliogem::VERSION
|
|
9
|
+
spec.authors = ["JESUS EDUARDO PLASENCIA PIMENTEL"]
|
|
10
|
+
spec.email = ["alu0100791327@ull.edu.es"]
|
|
11
|
+
|
|
12
|
+
spec.summary = %q{Gema Bibliogem}
|
|
13
|
+
spec.homepage = ""
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
17
|
+
spec.bindir = "exe"
|
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
19
|
+
spec.require_paths = ["lib","lib/bibliogem"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
23
|
+
spec.add_development_dependency "rspec", "~> 2.11"
|
|
24
|
+
spec.add_development_dependency "guard"
|
|
25
|
+
spec.add_development_dependency "guard-rspec"
|
|
26
|
+
spec.add_development_dependency "guard-bundler"
|
|
27
|
+
spec.add_development_dependency "coveralls"
|
|
28
|
+
end
|
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "bibliogem"
|
|
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
data/lib/bibliogem.rb
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
require "bibliogem/version"
|
|
2
|
+
require "bibliogem/ReferenciaLibro"
|
|
3
|
+
require "bibliogem/ReferenciaPeriodicaRevista"
|
|
4
|
+
require "bibliogem/ReferenciaPeriodicaDiario"
|
|
5
|
+
require "bibliogem/ReferenciaPeriodicaElectronico"
|
|
6
|
+
require "bibliogem/LinkedList"
|
|
7
|
+
require "bibliogem/APA"
|
|
8
|
+
|
|
9
|
+
module Bibliogem
|
|
10
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require_relative "LinkedList"
|
|
2
|
+
require_relative "Referencia"
|
|
3
|
+
|
|
4
|
+
class APA
|
|
5
|
+
def initialize
|
|
6
|
+
@l = LinkedList.new()
|
|
7
|
+
end
|
|
8
|
+
def add(referencia)
|
|
9
|
+
@l.push_back(referencia)
|
|
10
|
+
end
|
|
11
|
+
def to_s
|
|
12
|
+
@l.each_with_index {|referencia, index| puts "#{index}. #{referencia}"}
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
Node = Struct.new(:prev, :value, :next)
|
|
4
|
+
|
|
5
|
+
class LinkedList
|
|
6
|
+
include Enumerable
|
|
7
|
+
attr_reader :head
|
|
8
|
+
|
|
9
|
+
def initialize(value=nil)
|
|
10
|
+
@head = Node.new(nil, value, nil)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def push_back value
|
|
14
|
+
insert(size, value)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def push_front value
|
|
18
|
+
insert(0, value)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def pop_back
|
|
22
|
+
current = @head
|
|
23
|
+
until current[:next] == nil
|
|
24
|
+
current = current[:next]
|
|
25
|
+
end
|
|
26
|
+
aux = current[:value]
|
|
27
|
+
erase(size-1)
|
|
28
|
+
return aux
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def pop_front
|
|
32
|
+
aux = @head[:value]
|
|
33
|
+
erase(0)
|
|
34
|
+
return aux
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def insert(position, *values)
|
|
38
|
+
current = @head
|
|
39
|
+
if position == 0
|
|
40
|
+
for value in values.reverse
|
|
41
|
+
@head = Node.new(nil, value, @head)
|
|
42
|
+
end
|
|
43
|
+
else
|
|
44
|
+
for i in 1..position-1
|
|
45
|
+
current = current[:next]
|
|
46
|
+
end
|
|
47
|
+
for value in values.reverse
|
|
48
|
+
current[:next] = Node.new(current, value, current[:next])
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
self
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def erase(position)
|
|
55
|
+
if position > size
|
|
56
|
+
return nil
|
|
57
|
+
end
|
|
58
|
+
if position == 0
|
|
59
|
+
if @head[:next].nil?
|
|
60
|
+
@head = nil
|
|
61
|
+
else
|
|
62
|
+
@head = @head[:next]
|
|
63
|
+
end
|
|
64
|
+
else
|
|
65
|
+
current = @head
|
|
66
|
+
for i in 0..position-1
|
|
67
|
+
current = current[:next]
|
|
68
|
+
end
|
|
69
|
+
current = current[:prev]
|
|
70
|
+
current[:next] = (current[:next])[:next]
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def size
|
|
75
|
+
if @head == nil or @head[:value] == nil
|
|
76
|
+
return 0
|
|
77
|
+
end
|
|
78
|
+
counter = 1
|
|
79
|
+
current = @head
|
|
80
|
+
until current[:next] == nil
|
|
81
|
+
counter+=1
|
|
82
|
+
current=current[:next]
|
|
83
|
+
end
|
|
84
|
+
counter
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def to_s
|
|
88
|
+
current = @head
|
|
89
|
+
to_s_array = []
|
|
90
|
+
until current[:next] == nil
|
|
91
|
+
to_s_array.push(current[:value])
|
|
92
|
+
current=current[:next]
|
|
93
|
+
end
|
|
94
|
+
to_s_array.push(current[:value])
|
|
95
|
+
p "[#{to_s_array.join(', ')}]"
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def each
|
|
99
|
+
current = @head
|
|
100
|
+
until current == nil
|
|
101
|
+
yield (current[:value])
|
|
102
|
+
current=current[:next]
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
class Referencia
|
|
2
|
+
include Comparable
|
|
3
|
+
attr_reader :autores, :titulo, :serie, :editorial, :nedicion, :fecha, :isbn10, :isbn13
|
|
4
|
+
def initialize(aut,tit,ser,edi,ne,fe,is10,is13)
|
|
5
|
+
|
|
6
|
+
if aut.any?
|
|
7
|
+
@autores=aut
|
|
8
|
+
else
|
|
9
|
+
raise ArgumentError.new("Error: Se requiere al menos un autor")
|
|
10
|
+
end
|
|
11
|
+
if !tit.nil?
|
|
12
|
+
@titulo=tit
|
|
13
|
+
else
|
|
14
|
+
raise ArgumentError.new("Error: Se requiere un tiulo")
|
|
15
|
+
end
|
|
16
|
+
@serie=ser
|
|
17
|
+
if !edi.nil?
|
|
18
|
+
@editorial=edi
|
|
19
|
+
else
|
|
20
|
+
raise ArgumentError.new("Error: Se requiere una editorial")
|
|
21
|
+
end
|
|
22
|
+
if !ne.nil?
|
|
23
|
+
@nedicion=ne
|
|
24
|
+
else
|
|
25
|
+
raise ArgumentError.new("Error Se requiere un numero de edicion")
|
|
26
|
+
end
|
|
27
|
+
if !fe.nil?
|
|
28
|
+
@fecha=Date::strptime(fe, "%d-%m-%Y")
|
|
29
|
+
else
|
|
30
|
+
raise ArgumentError.new("Error: Se requiere una fecha con formato %d-%m-%Y")
|
|
31
|
+
end
|
|
32
|
+
if !is10.nil? || !is13.nil?
|
|
33
|
+
@isbn10=is10
|
|
34
|
+
@isbn13=is13
|
|
35
|
+
else
|
|
36
|
+
raise ArgumentError.new("Error: Se requiere al menos un codigo isbn")
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def self.crear &block
|
|
41
|
+
newref = Referencia.new([""],"","","",0,"01-01-1990",[],[])
|
|
42
|
+
newref.evaluar(&block)
|
|
43
|
+
return newref
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def evaluar &block
|
|
47
|
+
@autores = []
|
|
48
|
+
instance_eval &block
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def <=>(referencia)
|
|
52
|
+
if(@autores[0] <=> referencia.autores[0])
|
|
53
|
+
if(@autores.count<=>referencia.autores.count)
|
|
54
|
+
if(@fecha <=> referencia.fecha)
|
|
55
|
+
@titulo <=> referencia.titulo
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def to_s
|
|
62
|
+
splitnames = []
|
|
63
|
+
@autores.each do |nombre|
|
|
64
|
+
listanombres = nombre.split
|
|
65
|
+
nombre = listanombres[0]
|
|
66
|
+
apellidos = listanombres[1..-1].join(" ").capitalize
|
|
67
|
+
splitnames.push(apellidos + ", " + nombre[0])
|
|
68
|
+
end
|
|
69
|
+
"Autor: #{splitnames.join(" & ")} (#{@fecha}). Titulo del libro: #{@titulo.capitalize} (#{@nedicion}). Lugar de publicacion: #{@editorial}"
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def AUTOR nombre
|
|
73
|
+
@autores << nombre
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def TITULO nombre
|
|
77
|
+
@titulo = nombre
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def SERIE serie
|
|
81
|
+
@serie = serie
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def EDITORIAL edit
|
|
85
|
+
@editorial = edit
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def EDICION edicion
|
|
89
|
+
@nedicion = edicion
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
def FECHA fecha
|
|
93
|
+
@fecha = fecha
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def ISBN10 isbn
|
|
97
|
+
@isbn10 << isbn
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
def ISBN13 isbn
|
|
101
|
+
@isbn13 << isbn
|
|
102
|
+
end
|
|
103
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: coolerbibliogem
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- JESUS EDUARDO PLASENCIA PIMENTEL
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-12-18 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.10'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.10'
|
|
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: '2.11'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '2.11'
|
|
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
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: coveralls
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
description:
|
|
112
|
+
email:
|
|
113
|
+
- alu0100791327@ull.edu.es
|
|
114
|
+
executables: []
|
|
115
|
+
extensions: []
|
|
116
|
+
extra_rdoc_files: []
|
|
117
|
+
files:
|
|
118
|
+
- ".coveralls.yml"
|
|
119
|
+
- ".gitignore"
|
|
120
|
+
- ".rspec"
|
|
121
|
+
- ".travis.yml"
|
|
122
|
+
- Gemfile
|
|
123
|
+
- Guardfile
|
|
124
|
+
- LICENSE.txt
|
|
125
|
+
- README.md
|
|
126
|
+
- Rakefile
|
|
127
|
+
- bibliogem.gemspec
|
|
128
|
+
- bin/console
|
|
129
|
+
- bin/setup
|
|
130
|
+
- lib/bibliogem.rb
|
|
131
|
+
- lib/bibliogem/APA.rb
|
|
132
|
+
- lib/bibliogem/LinkedList.rb
|
|
133
|
+
- lib/bibliogem/Referencia.rb
|
|
134
|
+
- lib/bibliogem/ReferenciaLibro.rb
|
|
135
|
+
- lib/bibliogem/ReferenciaPeriodica.rb
|
|
136
|
+
- lib/bibliogem/ReferenciaPeriodicaDiario.rb
|
|
137
|
+
- lib/bibliogem/ReferenciaPeriodicaElectronico.rb
|
|
138
|
+
- lib/bibliogem/ReferenciaPeriodicaRevista.rb
|
|
139
|
+
- lib/bibliogem/version.rb
|
|
140
|
+
homepage: ''
|
|
141
|
+
licenses:
|
|
142
|
+
- MIT
|
|
143
|
+
metadata: {}
|
|
144
|
+
post_install_message:
|
|
145
|
+
rdoc_options: []
|
|
146
|
+
require_paths:
|
|
147
|
+
- lib
|
|
148
|
+
- lib/bibliogem
|
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
|
+
requirements:
|
|
151
|
+
- - ">="
|
|
152
|
+
- !ruby/object:Gem::Version
|
|
153
|
+
version: '0'
|
|
154
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
|
+
requirements:
|
|
156
|
+
- - ">="
|
|
157
|
+
- !ruby/object:Gem::Version
|
|
158
|
+
version: '0'
|
|
159
|
+
requirements: []
|
|
160
|
+
rubyforge_project:
|
|
161
|
+
rubygems_version: 2.4.8
|
|
162
|
+
signing_key:
|
|
163
|
+
specification_version: 4
|
|
164
|
+
summary: Gema Bibliogem
|
|
165
|
+
test_files: []
|