cruj_cruj_cruj 0.0.8 → 0.0.9
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e16de308cceca7bf17bc9f0efe7983115ea7b041
|
4
|
+
data.tar.gz: 8a591bc0aaa7a137cc814c897821396e9a65df7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd7301bc71fe6bb9a1267e903bae5dd28cb297f725f843ca1f2e9a2688d2ef6474a9f84d18f1dd009abb93ae69d3f9523d4e6b7adea431068e7e28b9ba6798cc
|
7
|
+
data.tar.gz: 3a5ac68d29c8633fcbb0ddb8f55f3ec8f8a19bf04414a03d5d82fcc57d5c9f5909338f57c5b05a000e7649867d52407cf526f76e584ab5e964be67bd10fb0b2d
|
@@ -237,6 +237,10 @@ class CrujCrujCrujController < ApplicationController
|
|
237
237
|
"principal_firstname_or_principal_lastname_cont"
|
238
238
|
end
|
239
239
|
|
240
|
+
def filter_for_role
|
241
|
+
"role_name_cont"
|
242
|
+
end
|
243
|
+
|
240
244
|
def filter_for_enum(attribute, values)
|
241
245
|
["#{attribute}_eq", values]
|
242
246
|
end
|
@@ -130,7 +130,7 @@ module CrujCrujCruj
|
|
130
130
|
|
131
131
|
def self.validate_in_array(col, array, spreadsheet)
|
132
132
|
(2..spreadsheet.last_row)
|
133
|
-
.map { |i| { i => (spreadsheet.row(i)[col].blank? || array.map(&:downcase).include?(spreadsheet.row(i)[col].downcase)) } }
|
133
|
+
.map { |i| { i => (spreadsheet.row(i)[col].blank? || array.map(&:to_s).map(&:downcase).include?(spreadsheet.row(i)[col].to_s.downcase)) } }
|
134
134
|
.select { |e| !e.values.first }
|
135
135
|
.map { |e| e.keys.first }
|
136
136
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cruj_cruj_cruj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Campos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|