decidim-direct_verifications 0.22 → 0.22.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a3a36032cc453d0d386579125ace610fbc73e85a975196b56ae84c3f10a2296
4
- data.tar.gz: d20c11a81153e2c9fe79b0663d5b9cd7f077133714d8cf25a872ee1f70ca6741
3
+ metadata.gz: 860fec657e68dab8325cde196bbfaa66059ede6b76414bb250a549d5639ebe6e
4
+ data.tar.gz: f40a1f9bb946c0254c518cba3dd05a1e1764bd23729270e80554076cd07ffc12
5
5
  SHA512:
6
- metadata.gz: b3201103a89ca52e19fbd493018e45727d81d3b7d626eca0a5735253bc4ee21b5fc3260038cca70c405aed30f4556c807ae35b3b1ec00bc6157acc3f0c16cc33
7
- data.tar.gz: 170a4e48d8ecadd8abc262626669ed9b8820d85804a0a48350c1ea2a2dc7f2de4a87f6833f71ff23fe1b880ba817b81f8f4823059824bfcce9703d9b45720631
6
+ metadata.gz: 87f25e203fe473612d2b53ae4986a5452d2096f12543d00eba10c1a8ba7d04c09471cbc9a15eed4916281ea07186152c61d630d0e40320c27d63cde699b6b7a0
7
+ data.tar.gz: b3c34eccfd75f9849c5866fc402969fc7c0e2c99313983bd302fe025254e299356790697ed34ab9f96ef8c4cace2c335dd3bb6f4dbb412f9073c4316c1554d10
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Decidim::DirectVerifications
2
2
 
3
- ![[CI] Test](https://github.com/Platoniq/decidim-verifications-direct_verifications/workflows/%5BCI%5D%20Test/badge.svg)
3
+ ![Test](https://github.com/Platoniq/decidim-verifications-direct_verifications/workflows/Test/badge.svg)
4
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/2195deb4de6c6354a6bc/maintainability)](https://codeclimate.com/github/Platoniq/decidim-verifications-direct_verifications/maintainability)
5
5
  [![codecov](https://codecov.io/gh/Platoniq/decidim-verifications-direct_verifications/branch/master/graph/badge.svg?token=FR1zkV71S2)](https://codecov.io/gh/Platoniq/decidim-verifications-direct_verifications)
6
6
 
@@ -17,7 +17,7 @@ module Decidim
17
17
  def create
18
18
  enforce_permission_to :create, :authorization
19
19
 
20
- @userslist = params[:userlist]
20
+ @userslist = params[:userslist]
21
21
  @processor = UserProcessor.new(current_organization, current_user, session)
22
22
  @processor.emails = extract_emails_to_hash @userslist
23
23
  @processor.authorization_handler = current_authorization_handler
@@ -64,7 +64,7 @@ module Decidim
64
64
  end
65
65
 
66
66
  def show_users_info
67
- return if params[:authorize]
67
+ return if params[:authorize].in? %w(in out)
68
68
 
69
69
  @stats.emails = @processor.emails.keys
70
70
  flash.now[:info] = t(".info", handler: t("#{@processor.authorization_handler}.name", scope: "decidim.authorization_handlers"),
@@ -8,8 +8,8 @@
8
8
  <div class="card-section">
9
9
  <p><%= t("decidim.direct_verifications.verification.admin.new.info") %></p>
10
10
  <%= form_tag direct_verifications_path, multipart: true, class: "form" do %>
11
- <%= label_tag :userlist, t("admin.new.textarea", scope: "decidim.direct_verifications.verification") %>
12
- <%= text_area_tag :userlist, @userslist, rows: 10 %>
11
+ <%= label_tag :userslist, t("admin.new.textarea", scope: "decidim.direct_verifications.verification") %>
12
+ <%= text_area_tag :userslist, @userslist, rows: 10 %>
13
13
  <label>
14
14
  <%= check_box_tag :register %>
15
15
  <%= t("admin.new.register", scope: "decidim.direct_verifications.verification") %>
@@ -3,7 +3,7 @@
3
3
  shared_examples_for "checking users" do |params|
4
4
  context "when check without mails" do
5
5
  it "renders the index with info message" do
6
- params[:userlist] = ""
6
+ params[:userslist] = ""
7
7
  perform_enqueued_jobs do
8
8
  post :create, params: params
9
9
  expect(flash[:info]).not_to be_empty
@@ -15,7 +15,7 @@ shared_examples_for "checking users" do |params|
15
15
 
16
16
  context "when check with mails" do
17
17
  it "renders the index with info message" do
18
- params[:userlist] = "mail@example.com"
18
+ params[:userslist] = "mail@example.com"
19
19
  perform_enqueued_jobs do
20
20
  post :create, params: params
21
21
  expect(flash[:info]).not_to be_empty
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  # This holds the decidim-direct_verifications version.
5
5
  module DirectVerifications
6
- VERSION = "0.22"
6
+ VERSION = "0.22.1"
7
7
  DECIDIM_VERSION = "0.22"
8
8
  MIN_DECIDIM_VERSION = ">= 0.22.0"
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-direct_verifications
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.22'
4
+ version: 0.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Vergés