biblio_alu0100845235 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +9 -0
  4. data/.travis.yml +6 -0
  5. data/= +0 -0
  6. data/CODE_OF_CONDUCT.md +13 -0
  7. data/Gemfile +6 -0
  8. data/Guardfile +82 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +7 -0
  11. data/Rakefile +7 -0
  12. data/biblio.gemspec +34 -0
  13. data/biblio.rb +12 -0
  14. data/biblio_spec.1.rb +478 -0
  15. data/biblio_spec.rb +535 -0
  16. data/bin/console +14 -0
  17. data/bin/setup +7 -0
  18. data/doc/=.html +97 -0
  19. data/doc/Biblio.html +109 -0
  20. data/doc/CODE_OF_CONDUCT_md.html +127 -0
  21. data/doc/Cita.html +278 -0
  22. data/doc/Edocumento.html +275 -0
  23. data/doc/Gemfile.html +104 -0
  24. data/doc/Gemfile_lock.html +204 -0
  25. data/doc/Guardfile.html +182 -0
  26. data/doc/LICENSE_txt.html +119 -0
  27. data/doc/Libro.html +391 -0
  28. data/doc/List.html +591 -0
  29. data/doc/Object.html +116 -0
  30. data/doc/Periodico.html +218 -0
  31. data/doc/Publicacion.html +321 -0
  32. data/doc/README_md.html +115 -0
  33. data/doc/Rakefile.html +103 -0
  34. data/doc/Referencia.html +467 -0
  35. data/doc/Revista.html +275 -0
  36. data/doc/biblio_gemspec.html +132 -0
  37. data/doc/bin/setup.html +103 -0
  38. data/doc/created.rid +30 -0
  39. data/doc/css/fonts.css +167 -0
  40. data/doc/css/rdoc.css +590 -0
  41. data/doc/fonts/Lato-Light.ttf +0 -0
  42. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  43. data/doc/fonts/Lato-Regular.ttf +0 -0
  44. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  45. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  46. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  47. data/doc/images/add.png +0 -0
  48. data/doc/images/arrow_up.png +0 -0
  49. data/doc/images/brick.png +0 -0
  50. data/doc/images/brick_link.png +0 -0
  51. data/doc/images/bug.png +0 -0
  52. data/doc/images/bullet_black.png +0 -0
  53. data/doc/images/bullet_toggle_minus.png +0 -0
  54. data/doc/images/bullet_toggle_plus.png +0 -0
  55. data/doc/images/date.png +0 -0
  56. data/doc/images/delete.png +0 -0
  57. data/doc/images/find.png +0 -0
  58. data/doc/images/loadingAnimation.gif +0 -0
  59. data/doc/images/macFFBgHack.png +0 -0
  60. data/doc/images/package.png +0 -0
  61. data/doc/images/page_green.png +0 -0
  62. data/doc/images/page_white_text.png +0 -0
  63. data/doc/images/page_white_width.png +0 -0
  64. data/doc/images/plugin.png +0 -0
  65. data/doc/images/ruby.png +0 -0
  66. data/doc/images/tag_blue.png +0 -0
  67. data/doc/images/tag_green.png +0 -0
  68. data/doc/images/transparent.png +0 -0
  69. data/doc/images/wrench.png +0 -0
  70. data/doc/images/wrench_orange.png +0 -0
  71. data/doc/images/zoom.png +0 -0
  72. data/doc/index.html +125 -0
  73. data/doc/js/darkfish.js +161 -0
  74. data/doc/js/jquery.js +4 -0
  75. data/doc/js/navigation.js +142 -0
  76. data/doc/js/navigation.js.gz +0 -0
  77. data/doc/js/search.js +109 -0
  78. data/doc/js/search_index.js +1 -0
  79. data/doc/js/search_index.js.gz +0 -0
  80. data/doc/js/searcher.js +228 -0
  81. data/doc/js/searcher.js.gz +0 -0
  82. data/doc/table_of_contents.html +294 -0
  83. data/lib/biblio/cita.rb +30 -0
  84. data/lib/biblio/edocumento.rb +34 -0
  85. data/lib/biblio/libro.rb +62 -0
  86. data/lib/biblio/list.rb +133 -0
  87. data/lib/biblio/node.rb +2 -0
  88. data/lib/biblio/periodico.rb +28 -0
  89. data/lib/biblio/publicacion.rb +23 -0
  90. data/lib/biblio/referencia.rb +84 -0
  91. data/lib/biblio/revista.rb +34 -0
  92. data/lib/biblio/version.rb +3 -0
  93. data/lib/biblio.rb +17 -0
  94. data/spec_helper.1.rb +2 -0
  95. data/spec_helper.rb +4 -0
  96. metadata +228 -0
@@ -0,0 +1,34 @@
1
+ # encoding: utf-8
2
+ class Revista < Publicacion
3
+ attr_accessor :number
4
+
5
+ def initialize
6
+ super
7
+ end
8
+
9
+ def numero(number)
10
+ raise ArgumentError, "Numero de revista debe se un Numeric" unless number.is_a?(Numeric)
11
+ @number = number
12
+ end
13
+
14
+ def to_s
15
+ # formateamos autores
16
+ str_autores = ""
17
+ @autores.each do |autor|
18
+ str_autores += autor + ", "
19
+ end
20
+ str_autores = str_autores[0, str_autores.length - 2]
21
+ if @autores.length > 1
22
+ str_autores = str_autores.sub(", " + @autores.last, " & " + @autores.last)
23
+ end
24
+
25
+ # generamos string de salida
26
+ salida=""
27
+ if(@pfin != nil)
28
+ salida = "#{str_autores} (#{@date_p.strftime("%d, %B %Y")}). #{@title}.\n\t#{@editor}, N. #{@number}, p. #{@pinicio} - #{@pfin}.\n\tISSN: #{@issn}"
29
+ else
30
+ salida = "#{str_autores} (#{@date_p.strftime("%d, %B %Y")}). #{@title}.\n\t#{@editor}, N. #{@number}, p. #{@pinicio}.\n\tISSN: #{@issn}"
31
+ end
32
+ salida
33
+ end
34
+ end
@@ -0,0 +1,3 @@
1
+ module Biblio
2
+ VERSION = "0.1.0"
3
+ end
data/lib/biblio.rb ADDED
@@ -0,0 +1,17 @@
1
+ require "biblio/version"
2
+
3
+ module Biblio
4
+ require "biblio/cita.rb"
5
+ require "biblio/referencia.rb"
6
+ require "biblio/libro.rb"
7
+ require "biblio/publicacion.rb"
8
+ require "biblio/periodico.rb"
9
+ require "biblio/revista.rb"
10
+ require "biblio/edocumento.rb"
11
+ require "biblio/node.rb"
12
+ require "biblio/list.rb"
13
+
14
+ def self.ipsum
15
+ "Genial"
16
+ end
17
+ end
data/spec_helper.1.rb ADDED
@@ -0,0 +1,2 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'biblio'
data/spec_helper.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
4
+ require 'biblio'
metadata ADDED
@@ -0,0 +1,228 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: biblio_alu0100845235
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - alu0100845235
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.7'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.7.6
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.7'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.7.6
33
+ - !ruby/object:Gem::Dependency
34
+ name: rake
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '10.0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '10.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '2.11'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.11'
61
+ - !ruby/object:Gem::Dependency
62
+ name: guard
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: guard-rspec
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: guard-bundler
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ description: es crear y ordenar todas tus referencias bibliograficas
104
+ email:
105
+ - alu0100845235@ull.edu.es
106
+ executables: []
107
+ extensions: []
108
+ extra_rdoc_files: []
109
+ files:
110
+ - ".coveralls.yml"
111
+ - ".gitignore"
112
+ - ".travis.yml"
113
+ - '='
114
+ - CODE_OF_CONDUCT.md
115
+ - Gemfile
116
+ - Guardfile
117
+ - LICENSE.txt
118
+ - README.md
119
+ - Rakefile
120
+ - biblio.gemspec
121
+ - biblio.rb
122
+ - biblio_spec.1.rb
123
+ - biblio_spec.rb
124
+ - bin/console
125
+ - bin/setup
126
+ - doc/=.html
127
+ - doc/Biblio.html
128
+ - doc/CODE_OF_CONDUCT_md.html
129
+ - doc/Cita.html
130
+ - doc/Edocumento.html
131
+ - doc/Gemfile.html
132
+ - doc/Gemfile_lock.html
133
+ - doc/Guardfile.html
134
+ - doc/LICENSE_txt.html
135
+ - doc/Libro.html
136
+ - doc/List.html
137
+ - doc/Object.html
138
+ - doc/Periodico.html
139
+ - doc/Publicacion.html
140
+ - doc/README_md.html
141
+ - doc/Rakefile.html
142
+ - doc/Referencia.html
143
+ - doc/Revista.html
144
+ - doc/biblio_gemspec.html
145
+ - doc/bin/setup.html
146
+ - doc/created.rid
147
+ - doc/css/fonts.css
148
+ - doc/css/rdoc.css
149
+ - doc/fonts/Lato-Light.ttf
150
+ - doc/fonts/Lato-LightItalic.ttf
151
+ - doc/fonts/Lato-Regular.ttf
152
+ - doc/fonts/Lato-RegularItalic.ttf
153
+ - doc/fonts/SourceCodePro-Bold.ttf
154
+ - doc/fonts/SourceCodePro-Regular.ttf
155
+ - doc/images/add.png
156
+ - doc/images/arrow_up.png
157
+ - doc/images/brick.png
158
+ - doc/images/brick_link.png
159
+ - doc/images/bug.png
160
+ - doc/images/bullet_black.png
161
+ - doc/images/bullet_toggle_minus.png
162
+ - doc/images/bullet_toggle_plus.png
163
+ - doc/images/date.png
164
+ - doc/images/delete.png
165
+ - doc/images/find.png
166
+ - doc/images/loadingAnimation.gif
167
+ - doc/images/macFFBgHack.png
168
+ - doc/images/package.png
169
+ - doc/images/page_green.png
170
+ - doc/images/page_white_text.png
171
+ - doc/images/page_white_width.png
172
+ - doc/images/plugin.png
173
+ - doc/images/ruby.png
174
+ - doc/images/tag_blue.png
175
+ - doc/images/tag_green.png
176
+ - doc/images/transparent.png
177
+ - doc/images/wrench.png
178
+ - doc/images/wrench_orange.png
179
+ - doc/images/zoom.png
180
+ - doc/index.html
181
+ - doc/js/darkfish.js
182
+ - doc/js/jquery.js
183
+ - doc/js/navigation.js
184
+ - doc/js/navigation.js.gz
185
+ - doc/js/search.js
186
+ - doc/js/search_index.js
187
+ - doc/js/search_index.js.gz
188
+ - doc/js/searcher.js
189
+ - doc/js/searcher.js.gz
190
+ - doc/table_of_contents.html
191
+ - lib/biblio.rb
192
+ - lib/biblio/cita.rb
193
+ - lib/biblio/edocumento.rb
194
+ - lib/biblio/libro.rb
195
+ - lib/biblio/list.rb
196
+ - lib/biblio/node.rb
197
+ - lib/biblio/periodico.rb
198
+ - lib/biblio/publicacion.rb
199
+ - lib/biblio/referencia.rb
200
+ - lib/biblio/revista.rb
201
+ - lib/biblio/version.rb
202
+ - spec_helper.1.rb
203
+ - spec_helper.rb
204
+ homepage: http://rubygems.org/gems/
205
+ licenses:
206
+ - MIT
207
+ metadata: {}
208
+ post_install_message:
209
+ rdoc_options: []
210
+ require_paths:
211
+ - lib
212
+ required_ruby_version: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ requirements: []
223
+ rubyforge_project:
224
+ rubygems_version: 2.4.6
225
+ signing_key:
226
+ specification_version: 4
227
+ summary: Practica LPP de la ULL creancion Bibliografia
228
+ test_files: []