Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • portalmec/portalmec
  • rfhferreira/cleanning-portalmec
2 results
Show changes
Showing
with 884 additions and 87 deletions
<!DOCTYPE html>
<style>
body{
background-color: #ffffff;
font-family: 'Roboto', sans-serif;
font-style: normal;
max-width: 569px;
padding: 54px 16px 56px 15px ;
margin: 0 auto;
color: #666666;
}
body p{
line-height: 21px;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 15px;
margin: 15px 0 15px 0;
}
h1{
font-weight: 500;
font-size: 20px;
color: #00BCD4;
}
a{
color: #00BCD4;
text-decoration: none;
}
span{
font-size: 18px;
text-align: center;
letter-spacing: 0.01em;
display: inline-block;
margin: 0 0 3px 0;
}
hr{
width: 45%;
height:0;
border: 1px solid #D1D1D1;
margin: 20px auto 20px auto;
}
.logo{
width:252px;
}
.publish{
text-align: center;
margin-top: 20px;
margin-bottom: 40px;
}
.buttom{
left: 217px;
top: 276px;
margin-top:15px;
padding: 17px 14px 16px 15px;
background: #FF7F00;
border-radius: 3px;
border: none;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.25);
font-weight: 500;
line-height: normal;
font-size: 14px;
color: #FFFFFF;
}
.info ul{
list-style-type: none;
}
.info ul li{
margin-top: 1em;
margin-bottom: 1em;
line-height: 21px;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 15px;
}
.change-info p{
line-height: 17px !important;
font-size: 12px !important;
}
.block_margin{
margin: 30px 0px 30px 0px;
}
.bottom{
text-align: center;
margin-right: 10%;
margin-left: 10%;
}
</style>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html>
<body>
<h1>Olá, Professor(a) <%= @teacher.name %>,</h1>
<div class="block_margin">
<p>É com entusiasmo que notificamos que a sua solicitação de cadastro como Professor(a) na Plataforma Integrada de Recursos Educacionais Digitais foi atendida.</p>
<p>Legal, né?! Agora você já pode publicar Recursos Educacionais Digitais e compartilhá-los com toda a comunidade escolar!</p>
</div>
<div class="publish">
<span>Está animado e gostaria de publicar o seu primeiro recurso?</span>
<input type="button" class="buttom" Padding="17 14 16 15" value="PUBLICAR RECURSO">
</div>
<div class="block_margin">
<p>Agradecemos por sua contribuição!</br>A sua participação na Plataforma ajuda a fortalecer a nossa rede.</p>
</div>
<% if !@teacher.school.nil? %>
<hr>
<div class="block_margin info">
<p>Confira novamente seus dados:</p>
<ul>
<li>Município - UF: <%= @teacher.school.uf%></li>
<li>Escola: <%= @teacher.school.name %></li>
<li>Telefone da escola: <%= @teacher.school.phone %></li>
<li>Seu CPF: <%= @teacher.cpf %></li>
<ul>
</div>
<div class="change-info block_margin">
<p>Gostaria de alterar as informaçóes de seu cadastro?</br><a href="">Clique aqui para acessar suas configurações de conta</a></p>
</div>
<% end %>
<hr>
<div class="bottom">
<p>Por favor, não responda esta mensagem. Em caso de dúvidas, acesse nossa <a href="https://plataformaintegrada.mec.gov.br/ajuda" target="_blank">Central de Ajuda</a></p>
<a href="https://plataformaintegrada.mec.gov.br" target="_blank">
<svg version="1.1" id="Camada_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-178 375 253.6 43" enable-background="new -178 375 253.6 43" xml:space="preserve">
<g>
<g>
<path fill="#656666" d="M-99.6,390.5v5.8h-2v-14.5h5.6c1.5,0,2.7,0.4,3.6,1.2s1.3,1.8,1.3,3.1c0,1.3-0.4,2.4-1.3,3.2 c-0.9,0.8-2.1,1.2-3.6,1.2H-99.6z M-99.6,389h3.6c1,0,1.7-0.3,2.2-0.8s0.7-1.2,0.7-2c0-0.8-0.2-1.5-0.7-2s-1.2-0.8-2.2-0.8h-3.6 V389z"/>
<path fill="#656666" d="M-86.6,394.8h6.8v1.5h-8.8v-14.5h2V394.8z"/>
<path fill="#656666" d="M-69.5,392.6h-6.1l-1.4,3.7h-2l5.6-14.5h1.7l5.5,14.5h-2L-69.5,392.6z M-75,390.9h4.9l-2.4-6.6h-0.1 L-75,390.9z"/>
<path fill="#656666" d="M-54.4,383.4H-59v12.9h-2v-12.9h-4.6v-1.6h11.2V383.4z"/>
<path fill="#656666" d="M-45.5,392.6h-6.1l-1.4,3.7h-2l5.6-14.5h1.7l5.5,14.5h-2L-45.5,392.6z M-50.9,390.9h4.9l-2.4-6.6h-0.1 L-50.9,390.9z"/>
<path fill="#656666" d="M-31.6,389.9h-6.6v6.4h-2v-14.5h9.6v1.5h-7.6v5h6.6V389.9z"/>
<path fill="#656666" d="M-17.3,390.4c0,1.8-0.5,3.2-1.6,4.4c-1.1,1.2-2.5,1.7-4.3,1.7c-1.7,0-3.1-0.6-4.1-1.7 c-1.1-1.2-1.6-2.6-1.6-4.4v-2.6c0-1.8,0.5-3.2,1.6-4.4c1.1-1.2,2.4-1.8,4.1-1.8c1.7,0,3.2,0.6,4.3,1.8c1.1,1.2,1.6,2.6,1.6,4.4 V390.4z M-19.3,387.8c0-1.3-0.4-2.4-1.1-3.3c-0.7-0.8-1.7-1.3-2.9-1.3c-1.1,0-2,0.4-2.7,1.3c-0.7,0.8-1,1.9-1,3.3v2.6 c0,1.3,0.3,2.4,1,3.3c0.7,0.8,1.6,1.3,2.7,1.3c1.2,0,2.2-0.4,2.9-1.3c0.7-0.8,1.1-1.9,1.1-3.3V387.8z"/>
<path fill="#656666" d="M-12.5,390v6.3h-2v-14.4h5.2c1.6,0,2.8,0.4,3.6,1.1s1.3,1.7,1.3,3.1c0,0.7-0.2,1.4-0.6,1.9 c-0.4,0.5-1,1-1.7,1.3c0.8,0.3,1.4,0.7,1.7,1.3s0.5,1.3,0.5,2.2v1.2c0,0.5,0,0.9,0.1,1.2c0.1,0.4,0.3,0.6,0.5,0.9v0.2h-2 c-0.3-0.2-0.4-0.6-0.5-1c-0.1-0.4-0.1-0.9-0.1-1.4v-1.3c0-0.8-0.2-1.4-0.7-1.9S-8.3,390-9,390C-9,390-12.5,390-12.5,390z M-12.5,388.5h3.1c1.1,0,1.9-0.2,2.4-0.6s0.7-1.1,0.7-1.9s-0.2-1.4-0.7-1.9s-1.2-0.7-2.2-0.7h-3.3V388.5z"/>
<path fill="#656666" d="M1.6,381.8l4.6,11.8h0.1l4.6-11.8h2.5v14.5h-2v-5.7l0.2-5.9l0,0l-4.7,11.6H5.6l-4.7-11.6l0,0l0.2,5.9v5.7 h-2v-14.5H1.6z"/>
<path fill="#656666" d="M25,392.6h-6.1l-1.4,3.7h-2l5.6-14.5h1.7l5.5,14.5h-2L25,392.6z M19.5,390.9h4.9l-2.4-6.5h-0.1L19.5,390.9 z"/>
<path fill="#656666" d="M37.9,381.8l4.6,11.8h0.1l4.6-11.8h2.5v14.5h-2v-5.7l0.2-5.9l0,0l-4.7,11.6h-1.3l-4.7-11.6l0,0l0.2,5.9 v5.7h-2v-14.5H37.9z"/>
<path fill="#656666" d="M61.8,389.6h-6.6v5.2h7.6v1.5h-9.6v-14.5h9.5v1.5h-7.5v4.7h6.6V389.6z"/>
<path fill="#656666" d="M75.4,391.7L75.4,391.7c0,1.4-0.4,2.6-1.4,3.5c-1,0.9-2.3,1.4-3.9,1.4c-1.6,0-3-0.6-4-1.7 c-1-1.2-1.5-2.6-1.5-4.4v-2.6c0-1.8,0.5-3.3,1.5-4.4c1-1.2,2.4-1.7,4-1.7s2.9,0.4,3.9,1.3s1.4,2,1.4,3.5v0.1h-1.9 c0-1-0.3-1.8-0.9-2.4c-0.6-0.6-1.4-0.9-2.5-0.9s-2,0.4-2.6,1.3c-0.6,0.9-1,2-1,3.3v2.6c0,1.3,0.3,2.4,1,3.3 c0.6,0.9,1.5,1.3,2.6,1.3s1.9-0.3,2.5-0.9c0.6-0.6,0.9-1.4,0.9-2.4h1.9V391.7z"/>
</g>
<g>
<g>
<rect x="-114.7" y="375.5" fill="#656666" width="1.4" height="42.5"/>
</g>
</g>
<path fill="#00A2BB" d="M-145.8,387.4h-8.1v5.2h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/>
<path fill="#56358B" d="M-142.2,418v-20.7h7.5c2.4,0,4.5,0.8,6.1,2.4c1.6,1.6,2.5,3.6,2.5,6.1v3.7c0,2.5-0.8,4.5-2.5,6.1 c-1.6,1.6-3.7,2.4-6.1,2.4H-142.2z M-137.4,401v13.3h2.4c1.3,0,2.3-0.4,3-1.3c0.7-0.9,1.1-2,1.1-3.5v-3.8c0-1.4-0.4-2.6-1.1-3.5 c-0.7-0.9-1.7-1.3-3-1.3L-137.4,401L-137.4,401z"/>
<polygon fill="#00A2BB" points="-165.7,375.6 -169.4,381.4 -173.1,375.6 -177.9,375.6 -177.9,396.3 -173.1,396.3 -173.1,383.9 -170.7,387.4 -168.1,387.4 -165.8,383.9 -165.8,396.3 -160.9,396.3 -160.9,375.6 "/>
<g>
<path fill="#656666" d="M-100.4,407.5v3.9h-1.2v-9h3.2c1,0,1.7,0.2,2.2,0.7c0.5,0.4,0.8,1.1,0.8,1.9c0,0.5-0.1,0.9-0.4,1.2 c-0.2,0.3-0.6,0.6-1.1,0.8c0.5,0.2,0.8,0.4,1.1,0.8c0.2,0.4,0.3,0.8,0.3,1.3v0.9c0,0.3,0,0.5,0.1,0.8c0.1,0.3,0.2,0.4,0.3,0.5v0.1 h-1.3c-0.2-0.1-0.3-0.3-0.3-0.6c0-0.3-0.1-0.6-0.1-0.8v-0.8c0-0.5-0.1-0.9-0.4-1.2s-0.7-0.4-1.1-0.4L-100.4,407.5L-100.4,407.5z M-100.4,406.6h1.9c0.7,0,1.2-0.1,1.5-0.4c0.3-0.3,0.5-0.7,0.5-1.2s-0.1-0.9-0.4-1.2c-0.3-0.3-0.8-0.4-1.4-0.4h-2L-100.4,406.6 L-100.4,406.6z"/>
<path fill="#656666" d="M-90.7,411.5c-0.9,0-1.7-0.3-2.2-0.9s-0.8-1.4-0.8-2.4v-0.3c0-0.9,0.3-1.7,0.8-2.4c0.6-0.6,1.2-0.9,2-0.9 c0.9,0,1.6,0.3,2,0.8c0.5,0.5,0.7,1.3,0.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,16.5,410.5z"/>
<path fill="#656666" d="M22.6,403h-1.2v-1.2h1.2V403z M22.6,411.4h-1.2v-6.7h1.2V411.4z"/>
<path fill="#656666" d="M28.4,409.6c0-0.3-0.1-0.5-0.3-0.7c-0.2-0.2-0.6-0.3-1.2-0.4c-0.8-0.2-1.4-0.4-1.8-0.7 c-0.4-0.3-0.6-0.7-0.6-1.2s0.2-1,0.7-1.4c0.5-0.4,1.1-0.6,1.8-0.6c0.8,0,1.4,0.2,1.9,0.6c0.5,0.4,0.7,0.9,0.7,1.5l0,0h-1.2 c0-0.3-0.1-0.6-0.4-0.8c-0.2-0.2-0.6-0.3-1-0.3s-0.8,0.1-1,0.3c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.6 c0.2,0.2,0.6,0.3,1.1,0.4c0.8,0.2,1.5,0.4,1.9,0.7c0.4,0.3,0.6,0.7,0.6,1.2c0,0.6-0.2,1.1-0.7,1.4c-0.5,0.4-1.1,0.5-1.9,0.5 c-0.9,0-1.5-0.2-2-0.6c-0.5-0.4-0.7-0.9-0.7-1.5l0,0h1.2c0,0.4,0.2,0.7,0.5,0.9c0.3,0.2,0.7,0.3,1.1,0.3c0.4,0,0.8-0.1,1-0.3 C28.2,410.2,28.4,409.9,28.4,409.6z"/>
<path fill="#656666" d="M34.5,411.4v-9h2.8c1.2,0,2.1,0.4,2.8,1.1s1.1,1.7,1.1,2.8v1.2c0,1.1-0.4,2.1-1.1,2.8 c-0.7,0.7-1.7,1.1-2.8,1.1C37.3,411.4,34.5,411.4,34.5,411.4z M35.7,403.4v7.1h1.5c0.8,0,1.5-0.3,2-0.8s0.7-1.2,0.7-2.1v-1.2 c0-0.8-0.2-1.5-0.7-2.1c-0.5-0.6-1.1-0.8-2-0.8h-1.5V403.4z"/>
<path fill="#656666" d="M43.8,403h-1.2v-1.2h1.2V403z M43.8,411.4h-1.2v-6.7h1.2V411.4z"/>
<path fill="#656666" d="M45.5,408.2c0-1.1,0.2-1.9,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2-0.6c-0.5-0.4-0.7-0.9-0.7-1.5l0,0h1.2c0,0.4,0.2,0.7,0.5,0.9c0.3,0.2,0.7,0.3,1.1,0.3c0.4,0,0.8-0.1,1-0.3 C74.3,410.2,74.4,409.9,74.4,409.6z"/>
</g>
</g>
</svg>
</a>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>/* Email styles need to be inline */</style>
</head>
<body>
<h2>Nome do professor: <%= @teacher.name %></h1>
<h2>CPF: <%= @teacher.cpf %></h1>
<h2>Nome da Escola: <%= @teacher.school.name %></h1>
<h2>Telefone da Escola: <%= @teacher.school.phone %></h1>
<h2>Municipio: <%= @teacher.school.city %></h1>
<h2>UF: <%= @teacher.school.uf %></h1>
</body>
</html>
<style>
body{
background-color: #ffffff;
font-family: 'Roboto', sans-serif;
font-style: normal;
max-width: 569px;
padding: 54px 16px 56px 15px ;
margin: 0 auto;
color: #666666;
}
body p{
line-height: 21px;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 15px;
margin: 15px 0 15px 0;
}
h1{
font-weight: 500;
font-size: 20px;
color: #00BCD4;
}
a{
color: #00BCD4;
text-decoration: none;
}
span{
font-size: 18px;
text-align: center;
letter-spacing: 0.01em;
display: inline-block;
margin: 0 0 3px 0;
}
hr{
width: 45%;
height:0;
border: 1px solid #D1D1D1;
margin: 20px auto 20px auto;
}
.info ul{
list-style-type: none;
}
.info ul li{
margin-top: 1em;
margin-bottom: 1em;
line-height: 21px;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 15px;
}
.block_margin{
margin: 30px 0px 30px 0px;
}
.bottom{
text-align: center;
margin-right: 10%;
margin-left: 10%;
}
.logo{
width:252px;
}
</style>
<!DOCTYPE html>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html>
<body>
<h1>Olá, Professor(a) <%= @teacher.name %>,</h1>
<div class="block_margin">
<p>Entramos em contato com a escola cadastrada e não conseguimos os dados necessários para confirmar seu cadastro como perfil de Professor(a) na Plataforma Integrada de Recursos Educacionais Digitais.</p>
</div>
<% if !@teacher.school.nil? %>
<hr>
<div class="block_margin info">
<p>Confira novamente seus dados:</p>
<ul>
<li>Município - UF: <%= @teacher.school.uf%></li>
<li>Escola: <%= @teacher.school.name %></li>
<li>Telefone da escola: <%= @teacher.school.phone %></li>
<li>Seu CPF: <%= @teacher.cpf %></li>
<ul>
</div>
<div class="block_margin">
<p><span>Seus dados estão incorretos?</span><br><a href="https://plataformaintegrada.mec.gov.br/perfil/configuracoes/solicitarcontadeprofessor" target="_blank">Clique aqui</a> para inserir novamente as suas informações</p>
</div>
<% end %>
<div class="block_margin">
<span>Seus dados estão corretos? Veja suas opções:</span>
<p><a href="https://plataformaintegrada.mec.gov.br/contato" target="_blank"> Entre em contato com a equipe de suporte</a></p>
</div>
<div>
<p>Pedimos desculpas caso tenha acontecido alguma falha no seu cadastro e esperamos que seu problema seja solucionado o quanto antes para que você possa atualizar seu perfil para Professor(a) da Plataforma MEC RED.</p>
</div>
<hr>
<div class="bottom">
<p>Por favor, não responda esta mensagem. Em caso de dúvidas, acesse nossa <a href="https://plataformaintegrada.mec.gov.br/ajuda" target="_blank">Central de Ajuda</a></p>
<a href="https://plataformaintegrada.mec.gov.br" target="_blank">
<svg version="1.1" id="Camada_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-178 375 253.6 43" enable-background="new -178 375 253.6 43" xml:space="preserve">
<g>
<g>
<path fill="#656666" d="M-99.6,390.5v5.8h-2v-14.5h5.6c1.5,0,2.7,0.4,3.6,1.2s1.3,1.8,1.3,3.1c0,1.3-0.4,2.4-1.3,3.2 c-0.9,0.8-2.1,1.2-3.6,1.2H-99.6z M-99.6,389h3.6c1,0,1.7-0.3,2.2-0.8s0.7-1.2,0.7-2c0-0.8-0.2-1.5-0.7-2s-1.2-0.8-2.2-0.8h-3.6 V389z"/>
<path fill="#656666" d="M-86.6,394.8h6.8v1.5h-8.8v-14.5h2V394.8z"/>
<path fill="#656666" d="M-69.5,392.6h-6.1l-1.4,3.7h-2l5.6-14.5h1.7l5.5,14.5h-2L-69.5,392.6z M-75,390.9h4.9l-2.4-6.6h-0.1 L-75,390.9z"/>
<path fill="#656666" d="M-54.4,383.4H-59v12.9h-2v-12.9h-4.6v-1.6h11.2V383.4z"/>
<path fill="#656666" d="M-45.5,392.6h-6.1l-1.4,3.7h-2l5.6-14.5h1.7l5.5,14.5h-2L-45.5,392.6z M-50.9,390.9h4.9l-2.4-6.6h-0.1 L-50.9,390.9z"/>
<path fill="#656666" d="M-31.6,389.9h-6.6v6.4h-2v-14.5h9.6v1.5h-7.6v5h6.6V389.9z"/>
<path fill="#656666" d="M-17.3,390.4c0,1.8-0.5,3.2-1.6,4.4c-1.1,1.2-2.5,1.7-4.3,1.7c-1.7,0-3.1-0.6-4.1-1.7 c-1.1-1.2-1.6-2.6-1.6-4.4v-2.6c0-1.8,0.5-3.2,1.6-4.4c1.1-1.2,2.4-1.8,4.1-1.8c1.7,0,3.2,0.6,4.3,1.8c1.1,1.2,1.6,2.6,1.6,4.4 V390.4z M-19.3,387.8c0-1.3-0.4-2.4-1.1-3.3c-0.7-0.8-1.7-1.3-2.9-1.3c-1.1,0-2,0.4-2.7,1.3c-0.7,0.8-1,1.9-1,3.3v2.6 c0,1.3,0.3,2.4,1,3.3c0.7,0.8,1.6,1.3,2.7,1.3c1.2,0,2.2-0.4,2.9-1.3c0.7-0.8,1.1-1.9,1.1-3.3V387.8z"/>
<path fill="#656666" d="M-12.5,390v6.3h-2v-14.4h5.2c1.6,0,2.8,0.4,3.6,1.1s1.3,1.7,1.3,3.1c0,0.7-0.2,1.4-0.6,1.9 c-0.4,0.5-1,1-1.7,1.3c0.8,0.3,1.4,0.7,1.7,1.3s0.5,1.3,0.5,2.2v1.2c0,0.5,0,0.9,0.1,1.2c0.1,0.4,0.3,0.6,0.5,0.9v0.2h-2 c-0.3-0.2-0.4-0.6-0.5-1c-0.1-0.4-0.1-0.9-0.1-1.4v-1.3c0-0.8-0.2-1.4-0.7-1.9S-8.3,390-9,390C-9,390-12.5,390-12.5,390z M-12.5,388.5h3.1c1.1,0,1.9-0.2,2.4-0.6s0.7-1.1,0.7-1.9s-0.2-1.4-0.7-1.9s-1.2-0.7-2.2-0.7h-3.3V388.5z"/>
<path fill="#656666" d="M1.6,381.8l4.6,11.8h0.1l4.6-11.8h2.5v14.5h-2v-5.7l0.2-5.9l0,0l-4.7,11.6H5.6l-4.7-11.6l0,0l0.2,5.9v5.7 h-2v-14.5H1.6z"/>
<path fill="#656666" d="M25,392.6h-6.1l-1.4,3.7h-2l5.6-14.5h1.7l5.5,14.5h-2L25,392.6z M19.5,390.9h4.9l-2.4-6.5h-0.1L19.5,390.9 z"/>
<path fill="#656666" d="M37.9,381.8l4.6,11.8h0.1l4.6-11.8h2.5v14.5h-2v-5.7l0.2-5.9l0,0l-4.7,11.6h-1.3l-4.7-11.6l0,0l0.2,5.9 v5.7h-2v-14.5H37.9z"/>
<path fill="#656666" d="M61.8,389.6h-6.6v5.2h7.6v1.5h-9.6v-14.5h9.5v1.5h-7.5v4.7h6.6V389.6z"/>
<path fill="#656666" d="M75.4,391.7L75.4,391.7c0,1.4-0.4,2.6-1.4,3.5c-1,0.9-2.3,1.4-3.9,1.4c-1.6,0-3-0.6-4-1.7 c-1-1.2-1.5-2.6-1.5-4.4v-2.6c0-1.8,0.5-3.3,1.5-4.4c1-1.2,2.4-1.7,4-1.7s2.9,0.4,3.9,1.3s1.4,2,1.4,3.5v0.1h-1.9 c0-1-0.3-1.8-0.9-2.4c-0.6-0.6-1.4-0.9-2.5-0.9s-2,0.4-2.6,1.3c-0.6,0.9-1,2-1,3.3v2.6c0,1.3,0.3,2.4,1,3.3 c0.6,0.9,1.5,1.3,2.6,1.3s1.9-0.3,2.5-0.9c0.6-0.6,0.9-1.4,0.9-2.4h1.9V391.7z"/>
</g>
<g>
<g>
<rect x="-114.7" y="375.5" fill="#656666" width="1.4" height="42.5"/>
</g>
</g>
<path fill="#00A2BB" d="M-145.8,387.4h-8.1v5.2h9.6v3.7h-14.5v-20.7h14.4v3.7h-9.6v4.5h8.1v3.6H-145.8z"/>
<path fill="#00A2BB" d="M-126.2,388.7L-126.2,388.7c-0.1,2.5-0.8,4.4-2.1,5.6c-1.3,1.3-3.2,1.9-5.6,1.9c-2.5,0-4.5-0.8-6-2.4 c-1.5-1.6-2.3-3.6-2.3-6.1v-4.2c0-2.5,0.7-4.5,2.2-6.1s3.5-2.4,5.8-2.4c2.5,0,4.5,0.7,5.8,2c1.3,1.3,2.1,3.2,2.3,5.6v0.1h-4.5 c-0.1-1.3-0.4-2.3-0.9-3c-0.5-0.7-1.4-1-2.6-1c-1.1,0-1.9,0.4-2.5,1.3c-0.6,0.9-0.9,2-0.9,3.4v4.4c0,1.4,0.3,2.6,1,3.5 c0.7,0.9,1.6,1.3,2.7,1.3c1.1,0,1.9-0.3,2.4-0.9c0.5-0.6,0.7-1.6,0.8-2.9L-126.2,388.7L-126.2,388.7z"/>
<path fill="#EC6F23" d="M-173.2,410.1v7.9h-4.8v-20.7h8c2.4,0,4.3,0.6,5.7,1.7c1.4,1.1,2.1,2.6,2.1,4.6c0,1.1-0.3,2-0.8,2.8 c-0.6,0.8-1.4,1.4-2.5,1.9c1.3,0.4,2.2,1,2.7,1.8c0.6,0.8,0.8,1.9,0.8,3.1v1.3c0,0.5,0.1,1.2,0.2,1.8c0.2,0.7,0.4,1.2,0.8,1.5v0.2 h-5c-0.4-0.3-0.6-0.8-0.7-1.6c-0.1-0.7-0.2-1.4-0.2-2.1V413c0-1-0.3-1.7-0.8-2.3c-0.5-0.5-1.3-0.8-2.3-0.8h-3.2V410.1z M-173.2,406.4h3.2c1,0,1.7-0.2,2.2-0.7c0.5-0.4,0.8-1.1,0.8-1.9c0-0.8-0.3-1.5-0.8-2c-0.5-0.6-1.3-0.8-2.2-0.8h-3.2V406.4z"/>
<path fill="#E62854" d="M-145.8,409.1h-8.1v5.2h9.6v3.7h-14.5v-20.7h14.4v3.7h-9.6v4.5h8.1v3.6H-145.8z"/>
<path fill="#56358B" d="M-142.2,418v-20.7h7.5c2.4,0,4.5,0.8,6.1,2.4c1.6,1.6,2.5,3.6,2.5,6.1v3.7c0,2.5-0.8,4.5-2.5,6.1 c-1.6,1.6-3.7,2.4-6.1,2.4H-142.2z M-137.4,401v13.3h2.4c1.3,0,2.3-0.4,3-1.3c0.7-0.9,1.1-2,1.1-3.5v-3.8c0-1.4-0.4-2.6-1.1-3.5 c-0.7-0.9-1.7-1.3-3-1.3L-137.4,401L-137.4,401z"/>
<polygon fill="#00A2BB" points="-165.7,375.6 -169.4,381.4 -173.1,375.6 -177.9,375.6 -177.9,396.3 -173.1,396.3 -173.1,383.9 -170.7,387.4 -168.1,387.4 -165.8,383.9 -165.8,396.3 -160.9,396.3 -160.9,375.6 "/>
<g>
<path fill="#656666" d="M-100.4,407.5v3.9h-1.2v-9h3.2c1,0,1.7,0.2,2.2,0.7c0.5,0.4,0.8,1.1,0.8,1.9c0,0.5-0.1,0.9-0.4,1.2 c-0.2,0.3-0.6,0.6-1.1,0.8c0.5,0.2,0.8,0.4,1.1,0.8c0.2,0.4,0.3,0.8,0.3,1.3v0.9c0,0.3,0,0.5,0.1,0.8c0.1,0.3,0.2,0.4,0.3,0.5v0.1 h-1.3c-0.2-0.1-0.3-0.3-0.3-0.6c0-0.3-0.1-0.6-0.1-0.8v-0.8c0-0.5-0.1-0.9-0.4-1.2s-0.7-0.4-1.1-0.4L-100.4,407.5L-100.4,407.5z M-100.4,406.6h1.9c0.7,0,1.2-0.1,1.5-0.4c0.3-0.3,0.5-0.7,0.5-1.2s-0.1-0.9-0.4-1.2c-0.3-0.3-0.8-0.4-1.4-0.4h-2L-100.4,406.6 L-100.4,406.6z"/>
<path fill="#656666" d="M-90.7,411.5c-0.9,0-1.7-0.3-2.2-0.9s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4z"/>
<path fill="#656666" d="M43.8,403h-1.2v-1.2h1.2V403z M43.8,411.4h-1.2v-6.7h1.2V411.4z"/>
<path fill="#656666" d="M45.5,408.2c0-1.1,0.2-1.9,0.7-2.6c0.5-0.7,1.1-1,1.9-1c0.4,0,0.8,0.1,1.1,0.3c0.3,0.2,0.6,0.4,0.8,0.7 l0.1-0.9h1v6.7c0,0.9-0.2,1.5-0.7,2s-1.2,0.7-2.2,0.7c-0.3,0-0.7,0-1-0.1c-0.4-0.1-0.7-0.2-1-0.4l0.3-0.9c0.2,0.1,0.5,0.2,0.8,0.3 s0.6,0.1,0.9,0.1c0.6,0,1-0.1,1.3-0.4c0.3-0.3,0.4-0.7,0.4-1.2v-0.8c-0.2,0.3-0.5,0.5-0.8,0.6c-0.3,0.1-0.7,0.2-1,0.2 c-0.8,0-1.5-0.3-1.9-0.9C45.7,410,45.5,409.2,45.5,408.2L45.5,408.2L45.5,408.2z M46.7,408.3c0,0.7,0.1,1.2,0.4,1.6 c0.3,0.4,0.7,0.6,1.3,0.6c0.4,0,0.7-0.1,0.9-0.2c0.2-0.2,0.5-0.4,0.6-0.7v-3.1c-0.2-0.3-0.4-0.5-0.6-0.7c-0.3-0.2-0.6-0.2-0.9-0.2 c-0.6,0-1,0.2-1.3,0.7s-0.4,1.1-0.4,1.9V408.3z"/>
<path fill="#656666" d="M54.2,403H53v-1.2h1.2V403z M54.2,411.4H53v-6.7h1.2V411.4z"/>
<path fill="#656666" d="M57.7,403.1v1.6H59v0.9h-1.3v4c0,0.3,0.1,0.5,0.2,0.7c0.1,0.1,0.3,0.2,0.5,0.2c0.1,0,0.1,0,0.2,0 c0.1,0,0.2,0,0.2-0.1l0.2,0.8c-0.1,0.1-0.2,0.1-0.4,0.2c-0.2,0-0.4,0.1-0.5,0.1c-0.5,0-0.9-0.1-1.2-0.4c-0.3-0.3-0.4-0.8-0.4-1.4 v-4h-1.1v-0.9h1.1v-1.6L57.7,403.1L57.7,403.1z"/>
<path fill="#656666" d="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2,1.5,0.4,1.9,0.7c0.4,0.3,0.6,0.7,0.6,1.2c0,0.6-0.2,1.1-0.7,1.4c-0.5,0.4-1.1,0.5-1.9,0.5 c-0.9,0-1.5-0.2-2-0.6c-0.5-0.4-0.7-0.9-0.7-1.5l0,0h1.2c0,0.4,0.2,0.7,0.5,0.9c0.3,0.2,0.7,0.3,1.1,0.3c0.4,0,0.8-0.1,1-0.3 C74.3,410.2,74.4,409.9,74.4,409.6z"/>
</g>
</g>
</svg>
</a>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>/* Email styles need to be inline */</style>
</head>
<body>
<p> O usuário <%= @teacher.name %> atualizou os dados do seu cadastro de professor para os seguintes valores:
<h2>Nome do professor: <%= @teacher.name %></h1>
<h2>CPF: <%= @teacher.cpf %></h1>
<h2>Nome da Escola: <%= @teacher.school.name %></h1>
<h2>Telefone da Escola: <%= @teacher.school.phone %></h1>
<h2>Municipio: <%= @teacher.school.city %></h1>
<h2>UF: <%= @teacher.school.uf %></h1>
</body>
</html>
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
class AttachmentCacheWorker
include Sidekiq::Worker
sidekiq_options queue: :attachment_cache
def perform(id, directory, force = false)
@attachment = LearningObject::Attachment.find(id)
@attachment = LearningObject::Attachment.where(id: id).first
client = DspaceService.create_client
return false if @attachment.nil? || client.nil?
......@@ -18,10 +37,17 @@ class AttachmentCacheWorker
FileUtils.mkdir_p(directory_root)
FileUtils.mv(file.path, file_root)
FileUtils.chmod 0644, file_root.to_s, verbose: true
FileUtils.chown_R 'portalmec', 'portalmec', directory_root.to_s, verbose: true
@attachment.update(cache_link: cache_link)
ensure
file.close if !file.nil? && File.exist?(file.path)
end
ensure
ActiveRecord::Base.clear_active_connections!
unless client.nil?
client.logout
client.close_connection
end
end
private
......
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
class BitstreamMimeWorker
include Sidekiq::Worker
def perform(id)
attachment = LearningObject::Attachment.find(id)
attachment = LearningObject::Attachment.where(id: id).first
client = DspaceService.create_client
return false if attachment.nil? || client.nil?
......@@ -13,5 +32,11 @@ class BitstreamMimeWorker
ensure
File.unlink(file.path)
end
ensure
ActiveRecord::Base.clear_active_connections!
unless client.nil?
client.logout
client.close_connection
end
end
end
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
class ConvertVideoWorker
include Sidekiq::Worker
......@@ -5,7 +24,8 @@ class ConvertVideoWorker
def perform(id)
begin
object = LearningObject.find id
object = LearningObject.where(id: id).first
return false if object.nil?
dspace_client = DspaceService.create_client
dspace_object = dspace_client.items.find(id: object.id_dspace, expand: 'bitstreams')
......@@ -13,7 +33,7 @@ class ConvertVideoWorker
# convert if object has a flv and not a mp4
video = nil
dspace_object.bit_streams.each do |bitstream|
video = bitstream if bitstream.name =~ /(.flv|.wmv|.mov|.mpg)$/i
video = bitstream if bitstream.name =~ /(.flv|.wmv|.mov|.mpg|.avi)$/i
return true if bitstream.name =~ /.mp4$/i
end
......@@ -50,6 +70,11 @@ class ConvertVideoWorker
original_bitstream.unlink unless original_bitstream.nil?
converted.close unless converted.nil?
FileUtils.rm(converted_path, force: true) unless converted_path.nil?
ActiveRecord::Base.clear_active_connections!
unless dspace_client.nil?
dspace_client.logout
dspace_client.close_connection
end
end
end
......
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
require_dependency 'dspace'
class DeleteBitstreamWorker
include Sidekiq::Worker
sidekiq_options queue: :dspace
def perform(attachment_id = nil)
attachment = LearningObject::Attachment.where(id: attachment_id).first
return false if attachment.blank? || !wait_bitstream(attachment)
# Require dspace gem
Bundler.require(*Rails.groups)
client = DspaceService.create_client
client.bitstreams.delete(id: attachment.id_dspace)
ensure
ActiveRecord::Base.clear_active_connections!
unless client.nil?
client.logout
client.close_connection
end
end
private
def wait_bitstream(attachment)
if attachment.id_dspace.blank?
Timeout.timeout(60) do
sleep(1.0) while attachment.id_dspace.blank?
end
end
true
rescue Timeout::Error
false
end
end
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
require_dependency 'dspace'
require 'mimemagic'
class DspaceUploadWorker
include Sidekiq::Worker
sidekiq_options queue: :dspace
@@dspace= nil
def perform(learning_object_id, media_path, attachment_id = nil, description = nil)
# find learning object
learning_object = LearningObject.where(id: learning_object_id).first
def perform(learning_object_id, item_id, media_path, description = nil)
# create file instance
file = File.new(media_path, 'r')
return false if learning_object.blank?
#create bitstream in dspace
bitstream = dspace.items.add_bitstream(file, id: item_id, name: File.basename(media_path), description: description)
# Require dspace gem
Bundler.require(*Rails.groups)
#find learning object
learning_object = LearningObject.find learning_object_id
attachment = learning_object.attachments.create map_bitstream2attachment(bitstream)
publisher.publish learning_object
# create attachment
file = File.new(media_path, 'r')
mime_type = MimeMagic.by_magic(file).try(:type)
bitstream = dspace.items.add_bitstream(file, id: learning_object.id_dspace, name: File.basename(media_path), description: description)
bitstream.mime_type = mime_type
attachment = create_attachment(learning_object, bitstream, attachment_id)
ThumbnailGenerateWorker.perform_async attachment.id, media_path
ThumbnailGenerateWorker.perform_async attachment.id
ensure
ActiveRecord::Base.clear_active_connections!
dspace.logout
dspace.close_connection
end
private
def publisher
@publisher ||= LearningObjectPublisher.new(dspace)
def create_attachment(learning_object, bitstream, attachment_id = nil)
unless attachment_id.nil?
attachment = learning_object.attachments.where(id: attachment_id).first
unless attachment.blank?
if attachment.bundle_name == "TEMP" && File.exist?(attachment.retrieve_link)
dir = File.dirname(attachment.retrieve_link)
# Delete only the file if parent directory is uploads,
# otherwise deletes the directory and files
if dir =~ /uploads$/
FileUtils.rm(attachment.retrieve_link, force: true)
else
FileUtils.rm_r(dir, force: true)
end
end
attachment.update(map_bitstream2attachment(bitstream))
return attachment
end
end
learning_object.attachments.create map_bitstream2attachment(bitstream)
end
def map_bitstream2attachment(bitstream, options = {})
......@@ -29,7 +75,22 @@ class DspaceUploadWorker
end
def dspace
@@dspace ||= DspaceService.create_client
end
@dspace ||= DspaceService.create_client
counter = 0
loop do
status = @dspace.status
if status["authenticated"]
break
else
counter += 1
Sidekiq.logger.fatal("Lost DSpace authentication. Attempt ##{counter}")
@dspace.close_connection
sleep(30.seconds)
@dspace = DspaceService.create_client
break if counter == 5
end
end
@dspace
end
end
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
require_dependency 'dspace'
require 'rails'
class PackageWorker
include Sidekiq::Worker
require 'zip'
sidekiq_options queue: :package_cache
def perform(objects_ids = nil, filename = nil, cache_key = nil)
return false if objects_ids.blank? || filename.blank? || cache_key.blank?
@cache_key = cache_key
return true if file_exist?(PackageService.file_root(filename))
Rails.cache.write(PackageService.job_key(cache_key), 'wait')
def perform(objects_ids = nil, filename = nil)
return false if objects_ids.blank? || filename.blank?
Bundler.require(*Rails.groups)
return true if File.exist?(PackageService.file_root(filename))
@parc=""
files = open_files(objects_ids)
create_package(filename, files)
ensure
close_files(files) unless files.nil?
job_key = PackageService.job_key(cache_key)
Rails.cache.delete(job_key) if Rails.cache.exist?(job_key)
ActiveRecord::Base.clear_active_connections!
dspace_client.logout
dspace_client.close_connection
end
private
def file_exist?(path)
if File.exist?(path)
cache_fetch(path.split('/').last)
return true
end
false
end
def open_files(objects_ids)
objects = objects_ids.map { |o| o['class'].constantize.find(o['id']) }
objects = objects_ids.map { |o| o['class'].constantize.where(id: o['id']).first }
files = []
objects.each do |object|
......@@ -41,18 +53,33 @@ class PackageWorker
files.concat object_files(object)
end
end
if !@parc.blank?
@parc = "Se você está vendo esse arquivo significa que você tentou baixar conteúdos que não estão hospedados em nossos servidores, entretanto como essa ação não é possível você pode acessar esses conteúdos com os links abaixo:\n\n#{@parc}"
tx = File.new(Rails.root.join("tmp",'links.txt'), 'w+')
tx.write(@parc)
tx.close
tx = File.open(Rails.root.join("tmp",'links.txt'), 'r')
files << tx
end
files
end
def object_files(object)
files = []
object.attachments.where(bundle_name: 'ORIGINAL').each do |a|
link = a.retrieve_cache_link
link = a.id_dspace.to_s if link =~ %r{^https?:\/\/.*}i
file = open_file(link)
files << file unless file.nil?
attachments = object.attachments.where(bundle_name: 'ORIGINAL')
if attachments.empty? && !object.link.nil?
@parc += "#{object.name}: #{object.link}\n"
else
attachments.each do |a|
link = a.retrieve_cache_link
link = a.id_dspace.to_s if link =~ %r{^https?:\/\/.*}i
file = open_file(link)
files << file unless file.nil?
end
end
files
end
......@@ -61,7 +88,7 @@ class PackageWorker
Zip::File.open(PackageService.file_root(filename), Zip::File::CREATE) do |zipfile|
files.each { |file| zipfile.add(File.basename(file.path), file.path) }
end
cache_fetch(filename)
FileUtils.chown_R 'portalmec', 'portalmec', PackageService.file_root.to_s, verbose: true
rescue => e
file = PackageService.file_root(filename)
FileUtils.rm(file) if File.exist?(file)
......@@ -69,13 +96,12 @@ class PackageWorker
end
def open_file(file_path)
path = Rails.root.join('public', file_path)
path = Rails.root.join("public" + file_path)
return File.open(path) if File.exist? path
open_dspace_file(file_path)
end
def open_dspace_file(id)
dspace_client = DspaceService.create_client
file = dspace_client.bitstreams.retrieve(id: id)
unless file.nil?
file.open
......@@ -92,12 +118,7 @@ class PackageWorker
end
end
def cache_fetch(value)
filename = Rails.cache.fetch(@cache_key)
file = PackageService.file_root(filename) unless filename.nil?
FileUtils.rm(file) if !file.nil? && File.exist?(file)
Rails.cache.delete(@cache_key)
Rails.cache.write(@cache_key, value)
def dspace_client
@dspace_client ||= DspaceService.create_client
end
end
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
class ReviewAverageCalculatorWorker
include Sidekiq::Worker
sidekiq_options queue: :review
def perform(id, object_class)
object = object_class.constantize.where(id: id).first
object.review_average = object.review_ratings_average
object.save
ensure
ActiveRecord::Base.clear_active_connections!
end
end
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
class ScoreCalculatorWorker
include Sidekiq::Worker
sidekiq_options queue: :score
......@@ -5,14 +24,19 @@ class ScoreCalculatorWorker
def perform(id, object_class)
return false unless %w(User LearningObject Collection).include? object_class
object = object_class.constantize.find(id)
object = object_class.constantize.where(id: id).first
calculator = ScoreCalculatorService.new(object)
score = calculator.calculate
object.update(score: score) if score.is_a? Float
if score.is_a? Float
object.update_columns(score: score)
# object.reindex
end
object.update(user_category_id: calculator.category_by_reputation) if object_class == "User"
object.update_columns(user_category_id: calculator.category_by_reputation) if object_class == "User"
ensure
ActiveRecord::Base.clear_active_connections!
end
end
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
class ThumbnailGenerateWorker
include Sidekiq::Worker
sidekiq_options queue: :thumbnail
def perform(attachment_id, media_path = nil, force = false)
@attachment = ::LearningObject::Attachment.find(attachment_id)
return false if @attachment.nil? || (!@attachment.thumbnail.blank? && !force)
@attachment = ::LearningObject::Attachment.where(id: attachment_id).first
return false if @attachment.blank? || (!@attachment.thumbnail.blank? && !force) || @attachment.bundle_name == "LINK"
# object from dspace
if media_path.nil?
if ["ORE", "LINK", "TEMP"].include? @attachment.bundle_name
media = create_media(@attachment.retrieve_link)
end
media = bitstream_download(@attachment.id_dspace)
create_thumbnail(media)
File.unlink(media) if File.exist?(media.path)
# new object
else
create_thumbnail(create_media(media_path))
media = create_media(media_path)
end
return false if media.blank?
create_thumbnail(media)
ensure
ActiveRecord::Base.clear_active_connections!
dspace_client.logout
dspace_client.close_connection
end
private
def create_media(path)
return ::Screencap::Fetcher.new(path) if path =~ URI::regexp
return nil if path.blank? || path =~ URI::regexp
# return ::Screencap::Fetcher.new(path) if path =~ URI::regexp
File.open path
end
......@@ -29,11 +57,13 @@ class ThumbnailGenerateWorker
@attachment.update(thumbnail: thumbnail)
File.unlink(thumbnail) if File.exist?(thumbnail.path)
File.unlink(media) if File.exist?(media.path)
end
def bitstream_download(id)
client = DspaceService.create_client
client.bitstreams.retrieve(id: id).open
bitstream = dspace_client.bitstreams.retrieve(id: id)
return nil if !((bitstream.is_a? File) || (bitstream.is_a? Tempfile))
bitstream.open
end
def thumbnail_service
......@@ -42,10 +72,15 @@ class ThumbnailGenerateWorker
def generators
[
Thumbnail::Strategies::VideoThumbnailGenerator.new,
# Deactivated thumbnails for videos and URLs
# Thumbnail::Strategies::VideoThumbnailGenerator.new,
#Thumbnail::Strategies::UrlThumbnailGenerator.new,
Thumbnail::Strategies::ImageThumbnailGenerator.new,
Thumbnail::Strategies::PdfThumbnailGenerator.new,
Thumbnail::Strategies::UrlThumbnailGenerator.new
Thumbnail::Strategies::PdfThumbnailGenerator.new
]
end
def dspace_client
@dspace_client ||= DspaceService.create_client
end
end
_score * doc['score'].value
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
......
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
require_relative 'boot'
require 'rails'
......@@ -10,8 +29,6 @@ require 'action_view/railtie'
# require 'action_cable/engine'
# require 'sprockets/railtie'
require 'rails/test_unit/railtie'
require 'rack/redis_throttle'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
......@@ -22,26 +39,26 @@ module Portalmec
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# Limit the daily number of requests to 2500
config.middleware.use Rack::RedisThrottle::Daily, max: 2500
# Do not swallow errors in after_commit/after_rollback callbacks.
config.active_record.raise_in_transactional_callbacks = true
# loading lib files
config.autoload_paths << Rails.root.join('lib')
config.autoload_paths << Rails.root.join('app/builders')
config.eager_load_paths += Dir["#{Rails.root}/lib/**/"]
# protection against attacks
config.middleware.use Rack::Attack
# CORS for login via rest
# config.middleware.use Rack::Cors do
# config.middleware.insert_before 0, "Rack::Cors", :debug => true, :logger => (-> { Rails.logger }) do
......@@ -74,5 +91,15 @@ module Portalmec
# api mode
config.api_only = true
#TODO fix ugly code when omniauth is fixed
# Only loads a smaller set of middleware suitable for API only apps.
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.middleware.use ActionDispatch::Flash
config.middleware.use ActionDispatch::Cookies
config.middleware.use ActionDispatch::Session::CookieStore
end
end
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
require 'bundler/setup' # Set up gems listed in the Gemfile.
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
development:
adapter: async
......
default: &defaults
# default: &defaults
# adapter: postgresql
# encoding: unicode
development:
adapter: postgresql
encoding: unicode
development: &development
<<: *defaults
pool: 5
database: portalmec_dev
username: portalmec
password: 123mudar
test:
<<: *defaults
pool: 5
adapter: postgresql
encoding: unicode
database: portalmec_test
username: portalmec
password: 123mudar
host: postgres
production:
<<: *defaults
adapter: postgresql
encoding: unicode
timeout: 30000
host: <%= ENV['PORTALMEC_DB_HOST'] %>
pool: <%= ENV['PORTALMEC_DB_POOL'] %>
database: <%= ENV['PORTALMEC_DB_NAME'] %>
......
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
......