nsi-abntformat 1.0.3 → 1.0.4
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.
- data/VERSION +1 -1
- data/lib/referencia_bibliografica.rb +14 -10
- data/nsi-abntformat.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -5,19 +5,19 @@ require 'unicode'
|
|
5
5
|
module ReferenciaBibliografica
|
6
6
|
def referencia_abnt
|
7
7
|
tipos = {
|
8
|
-
'
|
9
|
-
'
|
10
|
-
'
|
11
|
-
'
|
8
|
+
'TrabalhoDeObtencaoDeGrau' => :referencia_trabalho_obtencao_grau,
|
9
|
+
'ArtigoDeEvento' => :referencia_artigo_anais_evento,
|
10
|
+
'ArtigoDePeriodico' => :referencia_artigo_periodico,
|
11
|
+
'PeriodicoTecnicoCientifico' => :referencia_periodico_tecnico_cientifico,
|
12
12
|
'Livro' => :referencia_livro,
|
13
|
-
'
|
14
|
-
'
|
13
|
+
'Relatorio' => :referencia_relatorio,
|
14
|
+
'ObjetoDeAprendizagem' => :referencia_objetos_de_aprendizagem,
|
15
15
|
'imagem' => :referencia_imagem,
|
16
16
|
'outros conteúdos' => :referencia_outros_conteudos }
|
17
|
-
|
17
|
+
send(tipos[self.class.name])
|
18
18
|
end
|
19
19
|
|
20
|
-
private
|
20
|
+
private
|
21
21
|
|
22
22
|
def referencia_objetos_de_aprendizagem
|
23
23
|
"#{autores_abnt} #{titulo}. #{instituicao}."
|
@@ -28,12 +28,12 @@ module ReferenciaBibliografica
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def referencia_relatorio
|
31
|
-
"#{autores_abnt} #{titulo}. #{local_publicacao}: #{
|
31
|
+
"#{autores_abnt} #{titulo}. #{local_publicacao}: #{instituicao_usuario}, "\
|
32
32
|
"#{ano_publicacao}. #{numero_paginas} p."
|
33
33
|
end
|
34
34
|
|
35
35
|
def referencia_livro
|
36
|
-
"#{autores_abnt} #{titulo}#{gerar_subtitulo}. #{
|
36
|
+
"#{autores_abnt} #{titulo}#{gerar_subtitulo}. #{numero_edicao} "\
|
37
37
|
"#{local_publicacao}: #{editora}, #{ano_publicacao}. #{numero_paginas} p."
|
38
38
|
end
|
39
39
|
|
@@ -69,6 +69,10 @@ module ReferenciaBibliografica
|
|
69
69
|
# subtitulo || ''
|
70
70
|
end
|
71
71
|
|
72
|
+
def instituicao_usuario
|
73
|
+
self.campus.instituicao.nome
|
74
|
+
end
|
75
|
+
|
72
76
|
def autores_abnt
|
73
77
|
lista_autores_abnt = []
|
74
78
|
lista_autores = self.autores.map(&:nome)
|
data/nsi-abntformat.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "nsi-abntformat"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oswaldo Ferreira"]
|
12
|
-
s.date = "2012-05
|
12
|
+
s.date = "2012-06-05"
|
13
13
|
s.description = "Transforms objects containing documentation metadata in bibliographic references on ABNT format"
|
14
14
|
s.email = "oswluizf@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nsi-abntformat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05
|
12
|
+
date: 2012-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: unicode
|
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
segments:
|
145
145
|
- 0
|
146
|
-
hash: -
|
146
|
+
hash: -2358544030707095603
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
148
|
none: false
|
149
149
|
requirements:
|