rdcms_publication 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +41 -41
- data/Gemfile +2 -2
- data/README.md +32 -32
- data/app/assets/javascript/publications.js.coffee +126 -126
- data/app/controllers/publications_controller.rb +23 -23
- data/app/views/publications/_search.html.erb +6 -6
- data/app/views/publications/index.html.erb +55 -55
- data/config/locales/publications.br.yml +54 -54
- data/config/locales/publications.en.yml +54 -54
- data/config/locales/publications.es.yml +54 -54
- data/db/migrate/20130511000734_create_publications.rb +39 -39
- data/lib/rdcms_publication/version.rb +3 -3
- data/rdcms_publication.gemspec +34 -34
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61a7bb2b3b1b95f17add152c47af38fcf9e78a32
|
4
|
+
data.tar.gz: 3b3e01fbd7fc271e1c983c4edb60ff197d99569a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb689def7bb87320f46f39feff80f34d46bceb5e52cbc85fe8c47d40c12bbaecaf8d410eb9a5ebb777a4fea87ca7409eb52d6f4b529330c38b1abe50422ffc1
|
7
|
+
data.tar.gz: 4695f39e50ca0200a2e17e79b9e7b6b31bf4332629c3d876e0b63c6271e21b7031cd1a27a3244e73c2df898ad0531531d024fac8503074da252e67ab020cfcb1
|
data/.gitignore
CHANGED
@@ -1,41 +1,41 @@
|
|
1
|
-
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
2
|
-
#
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
5
|
-
# git config --global core.excludesfile ~/.gitignore_global
|
6
|
-
|
7
|
-
# Ignore bundler config
|
8
|
-
/.bundle
|
9
|
-
|
10
|
-
# Ignore the default SQLite database.
|
11
|
-
/db/*.sqlite3
|
12
|
-
|
13
|
-
*.sublime*
|
14
|
-
.DS_Store
|
15
|
-
db/.DS_Store
|
16
|
-
test/.DS_Store
|
17
|
-
test/dummy/.DS_Store
|
18
|
-
.sass-cache/
|
19
|
-
.rvmrc
|
20
|
-
*.rbc
|
21
|
-
.config
|
22
|
-
.yardoc
|
23
|
-
Gemfile.lock
|
24
|
-
InstalledFiles
|
25
|
-
_yardoc
|
26
|
-
coverage
|
27
|
-
doc/
|
28
|
-
lib/bundler/man
|
29
|
-
pkg
|
30
|
-
rdoc
|
31
|
-
spec/reports
|
32
|
-
test/tmp
|
33
|
-
test/version_tmp
|
34
|
-
tmp
|
35
|
-
log
|
36
|
-
|
37
|
-
# Gem
|
38
|
-
*.gem
|
39
|
-
|
40
|
-
# RubyMine IDE
|
41
|
-
.idea/
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile ~/.gitignore_global
|
6
|
+
|
7
|
+
# Ignore bundler config
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore the default SQLite database.
|
11
|
+
/db/*.sqlite3
|
12
|
+
|
13
|
+
*.sublime*
|
14
|
+
.DS_Store
|
15
|
+
db/.DS_Store
|
16
|
+
test/.DS_Store
|
17
|
+
test/dummy/.DS_Store
|
18
|
+
.sass-cache/
|
19
|
+
.rvmrc
|
20
|
+
*.rbc
|
21
|
+
.config
|
22
|
+
.yardoc
|
23
|
+
Gemfile.lock
|
24
|
+
InstalledFiles
|
25
|
+
_yardoc
|
26
|
+
coverage
|
27
|
+
doc/
|
28
|
+
lib/bundler/man
|
29
|
+
pkg
|
30
|
+
rdoc
|
31
|
+
spec/reports
|
32
|
+
test/tmp
|
33
|
+
test/version_tmp
|
34
|
+
tmp
|
35
|
+
log
|
36
|
+
|
37
|
+
# Gem
|
38
|
+
*.gem
|
39
|
+
|
40
|
+
# RubyMine IDE
|
41
|
+
.idea/
|
data/Gemfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
gemspec
|
data/README.md
CHANGED
@@ -1,32 +1,32 @@
|
|
1
|
-
# Rdcms Publications
|
2
|
-
|
3
|
-
O Rdcms Publications é o módulo para publicações de cartilhas, revistas, catálogos dentro outros materiais do gênero utilizando a api do [issuu.com](http://issuu.com/)
|
4
|
-
|
5
|
-
## Instalação
|
6
|
-
|
7
|
-
Adicione esta linha ao Gemfile da sua aplicação:
|
8
|
-
|
9
|
-
gem "rdcms_publication"
|
10
|
-
|
11
|
-
e execulte o:
|
12
|
-
|
13
|
-
bundle install
|
14
|
-
|
15
|
-
ou instale-a diretamente execultando:
|
16
|
-
|
17
|
-
gem install rdcms_publication
|
18
|
-
|
19
|
-
## Como utilizar
|
20
|
-
|
21
|
-
Definir os parâmetros de autenticação do issuu.com
|
22
|
-
para gerar sua chave de acesso acesse [Get an API Key](http://issuu.com/user/settings?services=true#services)
|
23
|
-
linux:
|
24
|
-
export ISSUU_API_KEY=
|
25
|
-
export ISSUU_SECRET=
|
26
|
-
|
27
|
-
heroku:
|
28
|
-
heroku config:add ISSUU_API_KEY=
|
29
|
-
heroku config:add ISSUU_SECRET=
|
30
|
-
|
31
|
-
## Author
|
32
|
-
Gullit Miranda (https://github.com/gullitmiranda)
|
1
|
+
# Rdcms Publications
|
2
|
+
|
3
|
+
O Rdcms Publications é o módulo para publicações de cartilhas, revistas, catálogos dentro outros materiais do gênero utilizando a api do [issuu.com](http://issuu.com/)
|
4
|
+
|
5
|
+
## Instalação
|
6
|
+
|
7
|
+
Adicione esta linha ao Gemfile da sua aplicação:
|
8
|
+
|
9
|
+
gem "rdcms_publication"
|
10
|
+
|
11
|
+
e execulte o:
|
12
|
+
|
13
|
+
bundle install
|
14
|
+
|
15
|
+
ou instale-a diretamente execultando:
|
16
|
+
|
17
|
+
gem install rdcms_publication
|
18
|
+
|
19
|
+
## Como utilizar
|
20
|
+
|
21
|
+
Definir os parâmetros de autenticação do issuu.com
|
22
|
+
para gerar sua chave de acesso acesse [Get an API Key](http://issuu.com/user/settings?services=true#services)
|
23
|
+
linux:
|
24
|
+
export ISSUU_API_KEY=
|
25
|
+
export ISSUU_SECRET=
|
26
|
+
|
27
|
+
heroku:
|
28
|
+
heroku config:add ISSUU_API_KEY=
|
29
|
+
heroku config:add ISSUU_SECRET=
|
30
|
+
|
31
|
+
## Author
|
32
|
+
Gullit Miranda (https://github.com/gullitmiranda)
|
@@ -1,126 +1,126 @@
|
|
1
|
-
# Função para validar campos utilizando o x-editable
|
2
|
-
window.required = (value) ->
|
3
|
-
return 'Este campo é obrigatório' if $.trim(value) == ""
|
4
|
-
|
5
|
-
jQuery ->
|
6
|
-
#### Selectores
|
7
|
-
publications_container = $('.fileuploads-container')
|
8
|
-
file_selector = $('#file_selector', publications_container)
|
9
|
-
auto_save = $('#auto_save', file_selector)
|
10
|
-
auto_save_checkbox = $(':checkbox', auto_save)
|
11
|
-
fileupload_form = $('#fileupload:first' , publications_container)
|
12
|
-
files_container = $('#upload_container .files' , publications_container)
|
13
|
-
action = file_selector.prop('action') || file_selector.prop('href')
|
14
|
-
#### end Selectores
|
15
|
-
|
16
|
-
# Core Functions
|
17
|
-
# renderFiles - Renderiza os itens
|
18
|
-
renderFiles = (data = {}, container = $(), offset, onload = false) ->
|
19
|
-
template = tmpl "template-download", files: data
|
20
|
-
temp_itens = $("<div />").append(template).children()
|
21
|
-
|
22
|
-
if temp_itens.length
|
23
|
-
temp_itens.each (o, ix) ->
|
24
|
-
_t = $(this)
|
25
|
-
_r = container.find("##{this.id}")
|
26
|
-
|
27
|
-
if _r.length
|
28
|
-
_r.replaceWith _t
|
29
|
-
else
|
30
|
-
container.append _t
|
31
|
-
unless (onload)
|
32
|
-
_savePositions()
|
33
|
-
else
|
34
|
-
container.append template
|
35
|
-
|
36
|
-
container.children().addClass('in')
|
37
|
-
_sortable(container).data()
|
38
|
-
|
39
|
-
# Renderiza o formulário de edição.
|
40
|
-
_renderEdit = (ev) ->
|
41
|
-
ev.preventDefault()
|
42
|
-
currentTarget = $(ev.currentTarget)
|
43
|
-
delegateTarget = $(ev.delegateTarget)
|
44
|
-
viewPort = _checkOrCreateViewPort()
|
45
|
-
container = $('.container:first', viewPort)
|
46
|
-
overlayItem = $('<div class="row overlay-item"></div>')
|
47
|
-
|
48
|
-
overlayItem.load currentTarget.prop('href'), () ->
|
49
|
-
_t = $(this)
|
50
|
-
|
51
|
-
# overlay_form = $('form', _t).data("remote", true)
|
52
|
-
overlay_form = $('form', _t)
|
53
|
-
.bind "submit", (ev) ->
|
54
|
-
ev.preventDefault()
|
55
|
-
.bind "ajax:complete", (ev, data) ->
|
56
|
-
jData = eval("(#{data.responseText})")
|
57
|
-
renderFiles jData.files, files_container
|
58
|
-
_checkAndDestroyViewPort($(this))
|
59
|
-
|
60
|
-
cancel = $('.btn.cancel', overlay_form).bind "click", (ev) ->
|
61
|
-
ev.preventDefault()
|
62
|
-
_checkAndDestroyViewPort($(this))
|
63
|
-
|
64
|
-
.appendTo(container)
|
65
|
-
|
66
|
-
# caso a viewPort não exista cria
|
67
|
-
_checkOrCreateViewPort = ->
|
68
|
-
viewPort = $('body .publication_edit_viewport')
|
69
|
-
viewPort = if viewPort.length then viewPort else $("""
|
70
|
-
<div class="publication_edit_viewport fade in overlay-viewport">
|
71
|
-
<div class="overlay-block overlay-white"></div>
|
72
|
-
<div class="publication_edit_container overlay-container"><div class="container"></div></div>
|
73
|
-
</div>
|
74
|
-
""").appendTo($("body").css("overflow", "hidden"))
|
75
|
-
|
76
|
-
_checkAndDestroyViewPort = (_4remove)->
|
77
|
-
_4remove = $(_4remove)
|
78
|
-
_4remove.closest('.overlay-item').remove() if _4remove.length
|
79
|
-
|
80
|
-
viewPort = $('body .publication_edit_viewport')
|
81
|
-
containerItens = $('.overlay-item', viewPort)
|
82
|
-
if viewPort.length and !containerItens.length
|
83
|
-
viewPort.removeClass('in').remove()
|
84
|
-
$('body').css("overflow", "")
|
85
|
-
|
86
|
-
# _sortable - Jquery UI para ordenação de itens
|
87
|
-
_sortable = (container) ->
|
88
|
-
container.sortable('destroy') if container.data("sortable")
|
89
|
-
|
90
|
-
container
|
91
|
-
.sortable
|
92
|
-
handle: ".checkbox-container"
|
93
|
-
# placeholder: "ui-state-highlight ui-sortable-placeholder template-download span3 fade in"
|
94
|
-
opacity: 0.6
|
95
|
-
revert: true
|
96
|
-
stop: (ev, ui) ->
|
97
|
-
_savePositions()
|
98
|
-
.disableSelection()
|
99
|
-
|
100
|
-
# Grava a ordenação no DB
|
101
|
-
_savePositions = () ->
|
102
|
-
$(".ids_order", file_selector).remove()
|
103
|
-
ids_order = $(".ids_order", fileupload_form).clone().appendTo(file_selector)
|
104
|
-
file_selector.submit()
|
105
|
-
|
106
|
-
#### end Core Functions
|
107
|
-
|
108
|
-
# Renderiza os itens carregados do Banco de dados
|
109
|
-
selectedData = files_container.data('load')
|
110
|
-
if selectedData && $.isArray(selectedData.files)
|
111
|
-
renderFiles selectedData.files, files_container, 0, true
|
112
|
-
else
|
113
|
-
_sortable files_container
|
114
|
-
publications_itens = $('tr', files_container)
|
115
|
-
|
116
|
-
# Callbacks
|
117
|
-
fileupload_form
|
118
|
-
.bind "fileuploadcompleted", (e, data) ->
|
119
|
-
_savePositions()
|
120
|
-
|
121
|
-
publications_itens.on "click", ".edit, .save", (event) ->
|
122
|
-
target = $(event.delegateTarget)
|
123
|
-
buttons = $(".edit, .save", target).toggleClass("hidden")
|
124
|
-
|
125
|
-
$('.enable-editable', target).editable('toggleDisabled')
|
126
|
-
# end Callbacks
|
1
|
+
# Função para validar campos utilizando o x-editable
|
2
|
+
window.required = (value) ->
|
3
|
+
return 'Este campo é obrigatório' if $.trim(value) == ""
|
4
|
+
|
5
|
+
jQuery ->
|
6
|
+
#### Selectores
|
7
|
+
publications_container = $('.fileuploads-container')
|
8
|
+
file_selector = $('#file_selector', publications_container)
|
9
|
+
auto_save = $('#auto_save', file_selector)
|
10
|
+
auto_save_checkbox = $(':checkbox', auto_save)
|
11
|
+
fileupload_form = $('#fileupload:first' , publications_container)
|
12
|
+
files_container = $('#upload_container .files' , publications_container)
|
13
|
+
action = file_selector.prop('action') || file_selector.prop('href')
|
14
|
+
#### end Selectores
|
15
|
+
|
16
|
+
# Core Functions
|
17
|
+
# renderFiles - Renderiza os itens
|
18
|
+
renderFiles = (data = {}, container = $(), offset, onload = false) ->
|
19
|
+
template = tmpl "template-download", files: data
|
20
|
+
temp_itens = $("<div />").append(template).children()
|
21
|
+
|
22
|
+
if temp_itens.length
|
23
|
+
temp_itens.each (o, ix) ->
|
24
|
+
_t = $(this)
|
25
|
+
_r = container.find("##{this.id}")
|
26
|
+
|
27
|
+
if _r.length
|
28
|
+
_r.replaceWith _t
|
29
|
+
else
|
30
|
+
container.append _t
|
31
|
+
unless (onload)
|
32
|
+
_savePositions()
|
33
|
+
else
|
34
|
+
container.append template
|
35
|
+
|
36
|
+
container.children().addClass('in')
|
37
|
+
_sortable(container).data()
|
38
|
+
|
39
|
+
# Renderiza o formulário de edição.
|
40
|
+
_renderEdit = (ev) ->
|
41
|
+
ev.preventDefault()
|
42
|
+
currentTarget = $(ev.currentTarget)
|
43
|
+
delegateTarget = $(ev.delegateTarget)
|
44
|
+
viewPort = _checkOrCreateViewPort()
|
45
|
+
container = $('.container:first', viewPort)
|
46
|
+
overlayItem = $('<div class="row overlay-item"></div>')
|
47
|
+
|
48
|
+
overlayItem.load currentTarget.prop('href'), () ->
|
49
|
+
_t = $(this)
|
50
|
+
|
51
|
+
# overlay_form = $('form', _t).data("remote", true)
|
52
|
+
overlay_form = $('form', _t)
|
53
|
+
.bind "submit", (ev) ->
|
54
|
+
ev.preventDefault()
|
55
|
+
.bind "ajax:complete", (ev, data) ->
|
56
|
+
jData = eval("(#{data.responseText})")
|
57
|
+
renderFiles jData.files, files_container
|
58
|
+
_checkAndDestroyViewPort($(this))
|
59
|
+
|
60
|
+
cancel = $('.btn.cancel', overlay_form).bind "click", (ev) ->
|
61
|
+
ev.preventDefault()
|
62
|
+
_checkAndDestroyViewPort($(this))
|
63
|
+
|
64
|
+
.appendTo(container)
|
65
|
+
|
66
|
+
# caso a viewPort não exista cria
|
67
|
+
_checkOrCreateViewPort = ->
|
68
|
+
viewPort = $('body .publication_edit_viewport')
|
69
|
+
viewPort = if viewPort.length then viewPort else $("""
|
70
|
+
<div class="publication_edit_viewport fade in overlay-viewport">
|
71
|
+
<div class="overlay-block overlay-white"></div>
|
72
|
+
<div class="publication_edit_container overlay-container"><div class="container"></div></div>
|
73
|
+
</div>
|
74
|
+
""").appendTo($("body").css("overflow", "hidden"))
|
75
|
+
|
76
|
+
_checkAndDestroyViewPort = (_4remove)->
|
77
|
+
_4remove = $(_4remove)
|
78
|
+
_4remove.closest('.overlay-item').remove() if _4remove.length
|
79
|
+
|
80
|
+
viewPort = $('body .publication_edit_viewport')
|
81
|
+
containerItens = $('.overlay-item', viewPort)
|
82
|
+
if viewPort.length and !containerItens.length
|
83
|
+
viewPort.removeClass('in').remove()
|
84
|
+
$('body').css("overflow", "")
|
85
|
+
|
86
|
+
# _sortable - Jquery UI para ordenação de itens
|
87
|
+
_sortable = (container) ->
|
88
|
+
container.sortable('destroy') if container.data("sortable")
|
89
|
+
|
90
|
+
container
|
91
|
+
.sortable
|
92
|
+
handle: ".checkbox-container"
|
93
|
+
# placeholder: "ui-state-highlight ui-sortable-placeholder template-download span3 fade in"
|
94
|
+
opacity: 0.6
|
95
|
+
revert: true
|
96
|
+
stop: (ev, ui) ->
|
97
|
+
_savePositions()
|
98
|
+
.disableSelection()
|
99
|
+
|
100
|
+
# Grava a ordenação no DB
|
101
|
+
_savePositions = () ->
|
102
|
+
$(".ids_order", file_selector).remove()
|
103
|
+
ids_order = $(".ids_order", fileupload_form).clone().appendTo(file_selector)
|
104
|
+
file_selector.submit()
|
105
|
+
|
106
|
+
#### end Core Functions
|
107
|
+
|
108
|
+
# Renderiza os itens carregados do Banco de dados
|
109
|
+
selectedData = files_container.data('load')
|
110
|
+
if selectedData && $.isArray(selectedData.files)
|
111
|
+
renderFiles selectedData.files, files_container, 0, true
|
112
|
+
else
|
113
|
+
_sortable files_container
|
114
|
+
publications_itens = $('tr', files_container)
|
115
|
+
|
116
|
+
# Callbacks
|
117
|
+
fileupload_form
|
118
|
+
.bind "fileuploadcompleted", (e, data) ->
|
119
|
+
_savePositions()
|
120
|
+
|
121
|
+
publications_itens.on "click", ".edit, .save", (event) ->
|
122
|
+
target = $(event.delegateTarget)
|
123
|
+
buttons = $(".edit, .save", target).toggleClass("hidden")
|
124
|
+
|
125
|
+
$('.enable-editable', target).editable('toggleDisabled')
|
126
|
+
# end Callbacks
|
@@ -1,23 +1,23 @@
|
|
1
|
-
class PublicationsController < InheritedResources::Base
|
2
|
-
load_and_authorize_resource
|
3
|
-
|
4
|
-
respond_to :html, :json
|
5
|
-
def index
|
6
|
-
if params[:tag]
|
7
|
-
@search = Publication.tagged_with(params[:tag]).list_all.search(params[:search])
|
8
|
-
@publications = @search.all
|
9
|
-
else
|
10
|
-
@search = Publication.list_all.search(params[:search])
|
11
|
-
@publications = @search.all
|
12
|
-
end
|
13
|
-
|
14
|
-
respond_with @publications
|
15
|
-
end
|
16
|
-
|
17
|
-
def show
|
18
|
-
@publication = Publication.find(params[:id])
|
19
|
-
@publication.visit! :by => request.try(:remote_ip)
|
20
|
-
|
21
|
-
respond_with(@publication)
|
22
|
-
end
|
23
|
-
end
|
1
|
+
class PublicationsController < InheritedResources::Base
|
2
|
+
load_and_authorize_resource
|
3
|
+
|
4
|
+
respond_to :html, :json
|
5
|
+
def index
|
6
|
+
if params[:tag]
|
7
|
+
@search = Publication.tagged_with(params[:tag]).list_all.search(params[:search])
|
8
|
+
@publications = @search.all
|
9
|
+
else
|
10
|
+
@search = Publication.list_all.search(params[:search])
|
11
|
+
@publications = @search.all
|
12
|
+
end
|
13
|
+
|
14
|
+
respond_with @publications
|
15
|
+
end
|
16
|
+
|
17
|
+
def show
|
18
|
+
@publication = Publication.find(params[:id])
|
19
|
+
@publication.visit! :by => request.try(:remote_ip)
|
20
|
+
|
21
|
+
respond_with(@publication)
|
22
|
+
end
|
23
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<%= form_for @search, url: publications_path, :html => { :method => :get, class: "navbar-form" } do |f| %>
|
2
|
-
<div class="input-append pull-right">
|
3
|
-
<%= f.text_field :title_or_description_contains, placeholder: t(".search_publications"), class: "span2" %>
|
4
|
-
<%= f.button "<i class=\"icon-search\" aria-hidden=\"true\"></i>".html_safe, name: nil, type: "submit", class: "btn btn-success" %>
|
5
|
-
</div>
|
6
|
-
<% end %>
|
1
|
+
<%= form_for @search, url: publications_path, :html => { :method => :get, class: "navbar-form" } do |f| %>
|
2
|
+
<div class="input-append pull-right">
|
3
|
+
<%= f.text_field :title_or_description_contains, placeholder: I18n.t(".publications.search.search_publications"), class: "span2" %>
|
4
|
+
<%= f.button "<i class=\"icon-search\" aria-hidden=\"true\"></i>".html_safe, name: nil, type: "submit", class: "btn btn-success" %>
|
5
|
+
</div>
|
6
|
+
<% end %>
|
@@ -1,55 +1,55 @@
|
|
1
|
-
<!-- Search -->
|
2
|
-
<% if params[:controller] == "publications" %>
|
3
|
-
<div class="navbar sub_header_bar">
|
4
|
-
<div class="navbar-inner">
|
5
|
-
<ul class="nav nav_tags">
|
6
|
-
<% tags = Publication.tag_counts.order("count desc") %>
|
7
|
-
<%= raw tags.map { |t| content_tag(:li, link_to(t.name,
|
8
|
-
</ul>
|
9
|
-
<%= render partial: "search" %>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<div class="row">
|
15
|
-
<div id="publication-list-container" class="span8">
|
16
|
-
<!-- Social buttons -->
|
17
|
-
<% unless defined?(disable_social) and disable_social %>
|
18
|
-
<div class="row">
|
19
|
-
<div class="span8">
|
20
|
-
<div class="social-container" data-url="<%= publications_url %>"></div>
|
21
|
-
<script type="text/javascript" charset="utf-8">
|
22
|
-
$('.social-container').social(<%= raw social_buttons_json %>);
|
23
|
-
</script>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
<% end -%>
|
27
|
-
<!-- Itens -->
|
28
|
-
<div class="row">
|
29
|
-
<!-- Itens -->
|
30
|
-
<div class="span8">
|
31
|
-
<ul class="thumbnails">
|
32
|
-
<% @publications.each do |publication| %>
|
33
|
-
<li class="span8">
|
34
|
-
<div class="thumbnail publication-list clearfix">
|
35
|
-
<%= link_to(publication, { title: t("view_more"), class: "thumb pull-left" }) do %>
|
36
|
-
<%= image_tag publication.thumb_path %>
|
37
|
-
<% end %>
|
38
|
-
<div class="publication-container">
|
39
|
-
<h3><%= link_to publication.title, publication_path(publication) %></h3>
|
40
|
-
<div class="details">
|
41
|
-
<span class="publication-categories"><%= publication.tag_list %></span>
|
42
|
-
<!-- <span class="publication-categories">< %= publication.tag_list.map {|t| link_to t, tag_path(t) }.join(', ') %></span> -->
|
43
|
-
</div>
|
44
|
-
<div class="publication-body">
|
45
|
-
<p><%= raw truncate(publication.description, :length => 200) %></p>
|
46
|
-
</div>
|
47
|
-
</div>
|
48
|
-
</div>
|
49
|
-
</li>
|
50
|
-
<% end %>
|
51
|
-
</ul>
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
</div>
|
55
|
-
</div>
|
1
|
+
<!-- Search -->
|
2
|
+
<% if params[:controller] == "publications" %>
|
3
|
+
<div class="navbar sub_header_bar">
|
4
|
+
<div class="navbar-inner">
|
5
|
+
<ul class="nav nav_tags">
|
6
|
+
<% tags = Publication.tag_counts.order("count desc") %>
|
7
|
+
<%= raw tags.map { |t| content_tag(:li, link_to(t.name, publication_tag_path(t.name)), class: "#{"active" if defined?(params[:tag]) and params[:tag] == t.name}") }.join %>
|
8
|
+
</ul>
|
9
|
+
<%= render partial: "search" %>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="row">
|
15
|
+
<div id="publication-list-container" class="span8">
|
16
|
+
<!-- Social buttons -->
|
17
|
+
<% unless defined?(disable_social) and disable_social %>
|
18
|
+
<div class="row">
|
19
|
+
<div class="span8">
|
20
|
+
<div class="social-container" data-url="<%= publications_url %>"></div>
|
21
|
+
<script type="text/javascript" charset="utf-8">
|
22
|
+
$('.social-container').social(<%= raw social_buttons_json %>);
|
23
|
+
</script>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<% end -%>
|
27
|
+
<!-- Itens -->
|
28
|
+
<div class="row">
|
29
|
+
<!-- Itens -->
|
30
|
+
<div class="span8">
|
31
|
+
<ul class="thumbnails">
|
32
|
+
<% @publications.each do |publication| %>
|
33
|
+
<li class="span8">
|
34
|
+
<div class="thumbnail publication-list clearfix">
|
35
|
+
<%= link_to(publication, { title: t("view_more"), class: "thumb pull-left" }) do %>
|
36
|
+
<%= image_tag publication.thumb_path %>
|
37
|
+
<% end %>
|
38
|
+
<div class="publication-container">
|
39
|
+
<h3><%= link_to publication.title, publication_path(publication) %></h3>
|
40
|
+
<div class="details">
|
41
|
+
<span class="publication-categories"><%= publication.tag_list %></span>
|
42
|
+
<!-- <span class="publication-categories">< %= publication.tag_list.map {|t| link_to t, tag_path(t) }.join(', ') %></span> -->
|
43
|
+
</div>
|
44
|
+
<div class="publication-body">
|
45
|
+
<p><%= raw truncate(publication.description, :length => 200) %></p>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</li>
|
50
|
+
<% end %>
|
51
|
+
</ul>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</div>
|
@@ -1,54 +1,54 @@
|
|
1
|
-
br:
|
2
|
-
# Atributos para formulários
|
3
|
-
attributes_all: &attributes_all
|
4
|
-
add_files: Adicionar arquivos
|
5
|
-
cancel: Cancelar
|
6
|
-
comments: Comentários
|
7
|
-
delete: Excluir
|
8
|
-
description: Descrição
|
9
|
-
edit: Editar
|
10
|
-
language: Idioma
|
11
|
-
move: Mover
|
12
|
-
preview: Visualizar
|
13
|
-
private: Privado
|
14
|
-
published: Público
|
15
|
-
toggle_selection: Alternar seleção
|
16
|
-
required: Obrigatório
|
17
|
-
save: Salvar
|
18
|
-
select: Selecionar
|
19
|
-
separated_by_commas: 'Separado por virgulas ","'
|
20
|
-
send: Enviar
|
21
|
-
tag_list: Categorias
|
22
|
-
supported_file: |
|
23
|
-
* Tamanho máximo: 100 megabytes e 500 páginas.<br>
|
24
|
-
* Tipos de arquivos suportados: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP e SXI.<br>
|
25
|
-
* Para um melhor resultado utilize as mesmas dimensões para todas as páginas.
|
26
|
-
|
27
|
-
# Placeholders
|
28
|
-
description_placeholder: Digite uma descrição
|
29
|
-
title_placeholder: Digite um título
|
30
|
-
search_publications: Pesquisar publicações
|
31
|
-
|
32
|
-
# Admin module
|
33
|
-
admin: &admin
|
34
|
-
publications:
|
35
|
-
index:
|
36
|
-
<<: *attributes_all
|
37
|
-
show:
|
38
|
-
<<: *attributes_all
|
39
|
-
form:
|
40
|
-
<<: *attributes_all
|
41
|
-
search:
|
42
|
-
<<: *attributes_all
|
43
|
-
<<: *admin
|
44
|
-
# ActiveRecord
|
45
|
-
activerecord:
|
46
|
-
models:
|
47
|
-
publication:
|
48
|
-
one: Publicação
|
49
|
-
other: Publicações
|
50
|
-
|
51
|
-
# Atributos dos módulos
|
52
|
-
attributes:
|
53
|
-
publication:
|
54
|
-
<<: *attributes_all
|
1
|
+
br:
|
2
|
+
# Atributos para formulários
|
3
|
+
attributes_all: &attributes_all
|
4
|
+
add_files: Adicionar arquivos
|
5
|
+
cancel: Cancelar
|
6
|
+
comments: Comentários
|
7
|
+
delete: Excluir
|
8
|
+
description: Descrição
|
9
|
+
edit: Editar
|
10
|
+
language: Idioma
|
11
|
+
move: Mover
|
12
|
+
preview: Visualizar
|
13
|
+
private: Privado
|
14
|
+
published: Público
|
15
|
+
toggle_selection: Alternar seleção
|
16
|
+
required: Obrigatório
|
17
|
+
save: Salvar
|
18
|
+
select: Selecionar
|
19
|
+
separated_by_commas: 'Separado por virgulas ","'
|
20
|
+
send: Enviar
|
21
|
+
tag_list: Categorias
|
22
|
+
supported_file: |
|
23
|
+
* Tamanho máximo: 100 megabytes e 500 páginas.<br>
|
24
|
+
* Tipos de arquivos suportados: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP e SXI.<br>
|
25
|
+
* Para um melhor resultado utilize as mesmas dimensões para todas as páginas.
|
26
|
+
|
27
|
+
# Placeholders
|
28
|
+
description_placeholder: Digite uma descrição
|
29
|
+
title_placeholder: Digite um título
|
30
|
+
search_publications: Pesquisar publicações
|
31
|
+
|
32
|
+
# Admin module
|
33
|
+
admin: &admin
|
34
|
+
publications:
|
35
|
+
index:
|
36
|
+
<<: *attributes_all
|
37
|
+
show:
|
38
|
+
<<: *attributes_all
|
39
|
+
form:
|
40
|
+
<<: *attributes_all
|
41
|
+
search:
|
42
|
+
<<: *attributes_all
|
43
|
+
<<: *admin
|
44
|
+
# ActiveRecord
|
45
|
+
activerecord:
|
46
|
+
models:
|
47
|
+
publication:
|
48
|
+
one: Publicação
|
49
|
+
other: Publicações
|
50
|
+
|
51
|
+
# Atributos dos módulos
|
52
|
+
attributes:
|
53
|
+
publication:
|
54
|
+
<<: *attributes_all
|
@@ -1,54 +1,54 @@
|
|
1
|
-
br:
|
2
|
-
# Atributos para formulários
|
3
|
-
attributes_all: &attributes_all
|
4
|
-
add_files: Add files
|
5
|
-
cancel: Cancel
|
6
|
-
comments: Comments
|
7
|
-
delete: Delete
|
8
|
-
description: Description
|
9
|
-
edit: Edit
|
10
|
-
language: Language
|
11
|
-
move: Move
|
12
|
-
preview: Preview
|
13
|
-
private: Private
|
14
|
-
published: Public
|
15
|
-
toggle_selection: Toggle selection
|
16
|
-
required: Required
|
17
|
-
save: Save
|
18
|
-
select: Select
|
19
|
-
separated_by_commas: 'Separated by commas ","'
|
20
|
-
send: Send
|
21
|
-
tag_list: Categories
|
22
|
-
supported_file: |
|
23
|
-
* Maximum Size: 100 megabytes and 500 pages.<br>
|
24
|
-
* Supported file types: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP and SXI.<br>
|
25
|
-
* For best results use the same size for all pages.
|
26
|
-
|
27
|
-
# Placeholders
|
28
|
-
description_placeholder: Enter a description
|
29
|
-
title_placeholder: Enter a title
|
30
|
-
search_publications: Search publications
|
31
|
-
|
32
|
-
# Admin module
|
33
|
-
admin: &admin
|
34
|
-
publications:
|
35
|
-
index:
|
36
|
-
<<: *attributes_all
|
37
|
-
show:
|
38
|
-
<<: *attributes_all
|
39
|
-
form:
|
40
|
-
<<: *attributes_all
|
41
|
-
search:
|
42
|
-
<<: *attributes_all
|
43
|
-
<<: *admin
|
44
|
-
# ActiveRecord
|
45
|
-
activerecord:
|
46
|
-
models:
|
47
|
-
publication:
|
48
|
-
one: Publication
|
49
|
-
other: Publications
|
50
|
-
|
51
|
-
# Atributos dos módulos
|
52
|
-
attributes:
|
53
|
-
publication:
|
54
|
-
<<: *attributes_all
|
1
|
+
br:
|
2
|
+
# Atributos para formulários
|
3
|
+
attributes_all: &attributes_all
|
4
|
+
add_files: Add files
|
5
|
+
cancel: Cancel
|
6
|
+
comments: Comments
|
7
|
+
delete: Delete
|
8
|
+
description: Description
|
9
|
+
edit: Edit
|
10
|
+
language: Language
|
11
|
+
move: Move
|
12
|
+
preview: Preview
|
13
|
+
private: Private
|
14
|
+
published: Public
|
15
|
+
toggle_selection: Toggle selection
|
16
|
+
required: Required
|
17
|
+
save: Save
|
18
|
+
select: Select
|
19
|
+
separated_by_commas: 'Separated by commas ","'
|
20
|
+
send: Send
|
21
|
+
tag_list: Categories
|
22
|
+
supported_file: |
|
23
|
+
* Maximum Size: 100 megabytes and 500 pages.<br>
|
24
|
+
* Supported file types: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP and SXI.<br>
|
25
|
+
* For best results use the same size for all pages.
|
26
|
+
|
27
|
+
# Placeholders
|
28
|
+
description_placeholder: Enter a description
|
29
|
+
title_placeholder: Enter a title
|
30
|
+
search_publications: Search publications
|
31
|
+
|
32
|
+
# Admin module
|
33
|
+
admin: &admin
|
34
|
+
publications:
|
35
|
+
index:
|
36
|
+
<<: *attributes_all
|
37
|
+
show:
|
38
|
+
<<: *attributes_all
|
39
|
+
form:
|
40
|
+
<<: *attributes_all
|
41
|
+
search:
|
42
|
+
<<: *attributes_all
|
43
|
+
<<: *admin
|
44
|
+
# ActiveRecord
|
45
|
+
activerecord:
|
46
|
+
models:
|
47
|
+
publication:
|
48
|
+
one: Publication
|
49
|
+
other: Publications
|
50
|
+
|
51
|
+
# Atributos dos módulos
|
52
|
+
attributes:
|
53
|
+
publication:
|
54
|
+
<<: *attributes_all
|
@@ -1,54 +1,54 @@
|
|
1
|
-
br:
|
2
|
-
# Atributos para formulários
|
3
|
-
attributes_all: &attributes_all
|
4
|
-
add_files: Añadir archivos
|
5
|
-
cancel: Cancelar
|
6
|
-
comments: Comentarios
|
7
|
-
delete: Borrar
|
8
|
-
description: Descripción
|
9
|
-
edit: Editar
|
10
|
-
language: Idioma
|
11
|
-
move: Mover
|
12
|
-
preview: Visualizar
|
13
|
-
private: Privado
|
14
|
-
published: Público
|
15
|
-
toggle_selection: Alternar la selección
|
16
|
-
required: Obligatorio
|
17
|
-
save: Guardar
|
18
|
-
select: Seleccionar
|
19
|
-
separated_by_commas: 'Separados por comas ","'
|
20
|
-
send: Enviar
|
21
|
-
tag_list: Categorías
|
22
|
-
supported_file: |
|
23
|
-
* Tamaño máximo: 100 megabytes y 500 páginas.<br>
|
24
|
-
* Tipos de archivo admitidos: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP y SXI.<br>
|
25
|
-
* Para obtener los mejores resultados, utilice el mismo tamaño para todas las páginas.
|
26
|
-
|
27
|
-
# Placeholders
|
28
|
-
description_placeholder: Escriba una descripción
|
29
|
-
title_placeholder: Escriba un título
|
30
|
-
search_publications: Buscar publicaciones
|
31
|
-
|
32
|
-
# Admin module
|
33
|
-
admin: &admin
|
34
|
-
publications:
|
35
|
-
index:
|
36
|
-
<<: *attributes_all
|
37
|
-
show:
|
38
|
-
<<: *attributes_all
|
39
|
-
form:
|
40
|
-
<<: *attributes_all
|
41
|
-
search:
|
42
|
-
<<: *attributes_all
|
43
|
-
<<: *admin
|
44
|
-
# ActiveRecord
|
45
|
-
activerecord:
|
46
|
-
models:
|
47
|
-
publication:
|
48
|
-
one: Publicación
|
49
|
-
other: Publicaciones
|
50
|
-
|
51
|
-
# Atributos dos módulos
|
52
|
-
attributes:
|
53
|
-
publication:
|
54
|
-
<<: *attributes_all
|
1
|
+
br:
|
2
|
+
# Atributos para formulários
|
3
|
+
attributes_all: &attributes_all
|
4
|
+
add_files: Añadir archivos
|
5
|
+
cancel: Cancelar
|
6
|
+
comments: Comentarios
|
7
|
+
delete: Borrar
|
8
|
+
description: Descripción
|
9
|
+
edit: Editar
|
10
|
+
language: Idioma
|
11
|
+
move: Mover
|
12
|
+
preview: Visualizar
|
13
|
+
private: Privado
|
14
|
+
published: Público
|
15
|
+
toggle_selection: Alternar la selección
|
16
|
+
required: Obligatorio
|
17
|
+
save: Guardar
|
18
|
+
select: Seleccionar
|
19
|
+
separated_by_commas: 'Separados por comas ","'
|
20
|
+
send: Enviar
|
21
|
+
tag_list: Categorías
|
22
|
+
supported_file: |
|
23
|
+
* Tamaño máximo: 100 megabytes y 500 páginas.<br>
|
24
|
+
* Tipos de archivo admitidos: PDF, DOC, PPT, ODT, WPD, SXW, RTF, ODP y SXI.<br>
|
25
|
+
* Para obtener los mejores resultados, utilice el mismo tamaño para todas las páginas.
|
26
|
+
|
27
|
+
# Placeholders
|
28
|
+
description_placeholder: Escriba una descripción
|
29
|
+
title_placeholder: Escriba un título
|
30
|
+
search_publications: Buscar publicaciones
|
31
|
+
|
32
|
+
# Admin module
|
33
|
+
admin: &admin
|
34
|
+
publications:
|
35
|
+
index:
|
36
|
+
<<: *attributes_all
|
37
|
+
show:
|
38
|
+
<<: *attributes_all
|
39
|
+
form:
|
40
|
+
<<: *attributes_all
|
41
|
+
search:
|
42
|
+
<<: *attributes_all
|
43
|
+
<<: *admin
|
44
|
+
# ActiveRecord
|
45
|
+
activerecord:
|
46
|
+
models:
|
47
|
+
publication:
|
48
|
+
one: Publicación
|
49
|
+
other: Publicaciones
|
50
|
+
|
51
|
+
# Atributos dos módulos
|
52
|
+
attributes:
|
53
|
+
publication:
|
54
|
+
<<: *attributes_all
|
@@ -1,39 +1,39 @@
|
|
1
|
-
class CreatePublications < ActiveRecord::Migration
|
2
|
-
def up
|
3
|
-
create_table :publications do |t|
|
4
|
-
t.string :slug
|
5
|
-
t.string :title
|
6
|
-
t.text :description
|
7
|
-
t.string :username
|
8
|
-
t.string :language
|
9
|
-
t.string :document
|
10
|
-
t.string :document_name
|
11
|
-
t.string :content_type
|
12
|
-
t.string :width
|
13
|
-
t.string :height
|
14
|
-
t.string :view_mode
|
15
|
-
t.boolean :auto_flip
|
16
|
-
t.integer :auto_flip_time
|
17
|
-
t.string :background
|
18
|
-
t.string :layout
|
19
|
-
t.boolean :wmode
|
20
|
-
t.integer :position
|
21
|
-
t.boolean :published, :default => false
|
22
|
-
|
23
|
-
t.timestamps
|
24
|
-
end
|
25
|
-
|
26
|
-
add_index :publications, :title
|
27
|
-
add_index :publications, :slug, :unique => true
|
28
|
-
add_index :publications, :document, :unique => true
|
29
|
-
|
30
|
-
end
|
31
|
-
|
32
|
-
def dow
|
33
|
-
remove_index :publications, :title
|
34
|
-
remove_index :publications, :slug
|
35
|
-
remove_index :publications, :document
|
36
|
-
|
37
|
-
drop_table :publications
|
38
|
-
end
|
39
|
-
end
|
1
|
+
class CreatePublications < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
create_table :publications do |t|
|
4
|
+
t.string :slug
|
5
|
+
t.string :title
|
6
|
+
t.text :description
|
7
|
+
t.string :username
|
8
|
+
t.string :language
|
9
|
+
t.string :document
|
10
|
+
t.string :document_name
|
11
|
+
t.string :content_type
|
12
|
+
t.string :width
|
13
|
+
t.string :height
|
14
|
+
t.string :view_mode
|
15
|
+
t.boolean :auto_flip
|
16
|
+
t.integer :auto_flip_time
|
17
|
+
t.string :background
|
18
|
+
t.string :layout
|
19
|
+
t.boolean :wmode
|
20
|
+
t.integer :position
|
21
|
+
t.boolean :published, :default => false
|
22
|
+
|
23
|
+
t.timestamps
|
24
|
+
end
|
25
|
+
|
26
|
+
add_index :publications, :title
|
27
|
+
add_index :publications, :slug, :unique => true
|
28
|
+
add_index :publications, :document, :unique => true
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
def dow
|
33
|
+
remove_index :publications, :title
|
34
|
+
remove_index :publications, :slug
|
35
|
+
remove_index :publications, :document
|
36
|
+
|
37
|
+
drop_table :publications
|
38
|
+
end
|
39
|
+
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module RdcmsPublication
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
1
|
+
module RdcmsPublication
|
2
|
+
VERSION = "0.0.2"
|
3
|
+
end
|
data/rdcms_publication.gemspec
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
lib = File.expand_path('../lib', __FILE__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'rdcms_publication/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = "rdcms_publication"
|
9
|
-
s.version = RdcmsPublication::VERSION
|
10
|
-
s.platform = Gem::Platform::RUBY
|
11
|
-
s.authors = ["Gullit Miranda"]
|
12
|
-
s.email = ["gullitmiranda@requestdev.com.br"]
|
13
|
-
s.homepage = "http://www.requestdev.com.br/rdcms/publications"
|
14
|
-
s.summary = %q{Módulo de Publicações para o RDCMS}
|
15
|
-
s.description = %q{O Rdcms Publications é o módulo para publicações de cartilhas, revistas, catálogos dentro outros materiais do gênero utilizando a api do ISSUU.com}
|
16
|
-
s.license = "MIT"
|
17
|
-
|
18
|
-
s.files = `git ls-files`.split($/)
|
19
|
-
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
-
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
21
|
-
s.require_paths = ["lib"]
|
22
|
-
|
23
|
-
s.add_development_dependency "bundler", "~> 1.3"
|
24
|
-
s.add_development_dependency "rake"
|
25
|
-
|
26
|
-
# s.add_development_dependency 'better_errors'
|
27
|
-
# s.add_development_dependency 'binding_of_caller'
|
28
|
-
|
29
|
-
# Dependências
|
30
|
-
s.add_dependency "rdcms", "~> 1.0.21"
|
31
|
-
s.add_dependency "devise", "~> 2.2.3"
|
32
|
-
s.add_dependency "activeadmin", "~> 0.6.0"
|
33
|
-
s.add_dependency "issuu", "~> 0.3.0"
|
34
|
-
end
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'rdcms_publication/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "rdcms_publication"
|
9
|
+
s.version = RdcmsPublication::VERSION
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.authors = ["Gullit Miranda"]
|
12
|
+
s.email = ["gullitmiranda@requestdev.com.br"]
|
13
|
+
s.homepage = "http://www.requestdev.com.br/rdcms/publications"
|
14
|
+
s.summary = %q{Módulo de Publicações para o RDCMS}
|
15
|
+
s.description = %q{O Rdcms Publications é o módulo para publicações de cartilhas, revistas, catálogos dentro outros materiais do gênero utilizando a api do ISSUU.com}
|
16
|
+
s.license = "MIT"
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split($/)
|
19
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
21
|
+
s.require_paths = ["lib"]
|
22
|
+
|
23
|
+
s.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
s.add_development_dependency "rake"
|
25
|
+
|
26
|
+
# s.add_development_dependency 'better_errors'
|
27
|
+
# s.add_development_dependency 'binding_of_caller'
|
28
|
+
|
29
|
+
# Dependências
|
30
|
+
s.add_dependency "rdcms", "~> 1.0.21"
|
31
|
+
s.add_dependency "devise", "~> 2.2.3"
|
32
|
+
s.add_dependency "activeadmin", "~> 0.6.0"
|
33
|
+
s.add_dependency "issuu", "~> 0.3.0"
|
34
|
+
end
|