Commit fd5c8db5eb19d4f7198f2473b60aea6c2fefa484

Authored by Leandro Santos
2 parents d66aa24c e0bc04d3

Merge branch 'staging' of gitlab.com:participa/noosfero into staging

@@ -34,3 +34,6 @@ @@ -34,3 +34,6 @@
34 [submodule "rest-clients/proposal-app"] 34 [submodule "rest-clients/proposal-app"]
35 path = rest-clients/proposal-app 35 path = rest-clients/proposal-app
36 url = https://gitlab.com/participa/proposal-app.git 36 url = https://gitlab.com/participa/proposal-app.git
  37 +[submodule "plugins/serpro_captcha"]
  38 + path = plugins/serpro_captcha
  39 + url = git@gitlab.com:noosfero-plugins/serpro_captcha.git
plugins/serpro_captcha 0 → 160000
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +Subproject commit 34ffd86432be3d660a20cdfaacc860e83a5b6116
plugins/serpro_captcha/lib/serpro_captcha_plugin.rb
@@ -1,15 +0,0 @@ @@ -1,15 +0,0 @@
1 -class SerproCaptchaPlugin < Noosfero::Plugin  
2 -  
3 - def self.plugin_name  
4 - _('Serpro captcha plugin')  
5 - end  
6 -  
7 - def self.plugin_description  
8 - _("Provide a plugin to Serpro's captcha infrastructure.")  
9 - end  
10 -  
11 - def self.api_mount_points  
12 - [SerproCaptchaPlugin::API ]  
13 - end  
14 -  
15 -end  
plugins/serpro_captcha/lib/serpro_captcha_plugin/api.rb
@@ -1,16 +0,0 @@ @@ -1,16 +0,0 @@
1 -class SerproCaptchaPlugin::API < Grape::API  
2 -  
3 - # resource :dialoga_plugin do  
4 - # get 'random_topics/:discussion_id' do  
5 - # discussion = ProposalsDiscussionPlugin::Discussion.find(params[:discussion_id])  
6 - #  
7 - # # render articles using Entity Article  
8 - # present discussion.random_topics_one_by_category, :with => Noosfero::API::Entities::Article, :fields => params[:fields]  
9 - # end  
10 -  
11 - get 'test_captcha' do  
12 - present 'chegou no test_captcha do SerproCaptchaPlugin'  
13 - end  
14 - # end  
15 -  
16 -end  
plugins/serpro_captcha/test/test_helper.rb
@@ -1 +0,0 @@ @@ -1 +0,0 @@
1 -require File.dirname(__FILE__) + '/../../../test/test_helper'  
plugins/serpro_captcha/test/unit/api_test.rb
@@ -1,13 +0,0 @@ @@ -1,13 +0,0 @@
1 -require_relative '../test_helper'  
2 -require_relative '../../../../test/unit/api/test_helper'  
3 -  
4 -class APITest < ActiveSupport::TestCase  
5 -  
6 - def setup  
7 -# login_api  
8 - end  
9 -  
10 - should 'return something' do  
11 - end  
12 -  
13 -end