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: abd10d9dd9512c48b4392aa8fac01fd911439d42
4
- data.tar.gz: 389b98169692d6b6a589e1629125c07f9be99a75
3
+ metadata.gz: e16de308cceca7bf17bc9f0efe7983115ea7b041
4
+ data.tar.gz: 8a591bc0aaa7a137cc814c897821396e9a65df7a
5
5
  SHA512:
6
- metadata.gz: e67d75ae4e65847a3161ccb1abc9a97e5ee079b3a61bf0f589a704636d5f772fbad9f27abf5b6e8e2ab873ba6f6ddc9363103afd360a33fe112888a09aa83c03
7
- data.tar.gz: 86df7de85d8892a4c9f3266745a1a2309fc9aec77e93f06632e18907414a6a0970ecd6bdbbea59556792db08ecf4be1c506ecfa0e29839497b03f8d4216c0d97
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
@@ -1,3 +1,3 @@
1
1
  module CrujCrujCruj
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  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.8
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 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails