parliament-ruby 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parliament/response.rb +3 -1
- data/lib/parliament/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e9f43b1b3216271e56fde2cea9a6054f4fb5472
|
4
|
+
data.tar.gz: 69ada5e5d8e413631ff88a14134ba7d05d3f6024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3afd3a3357ada5d80f720a7c37bb8d7235fb68daf33582fc23d5ff03e40dc9f64c3844da28be8c63f1973cbc2c58413a5d8a8ff88cbe6b43f15278aecf4cfc02
|
7
|
+
data.tar.gz: e5d3c97b0da7451d945374cca337415132af524320f39b6027baf148b1ec8fc1d87a8db516c5538f2a6dc0380d203920d764dc1906ef9f0a84734b6055e651e2
|
data/lib/parliament/response.rb
CHANGED
@@ -40,7 +40,9 @@ module Parliament
|
|
40
40
|
grom_nodes = @nodes.dup
|
41
41
|
grom_nodes.delete_if { |node| rejected << node unless parameters.all? { |param| node.respond_to?(param) } }
|
42
42
|
grom_nodes.sort_by! do |node|
|
43
|
-
parameters.map
|
43
|
+
parameters.map do |param|
|
44
|
+
node.send(param).is_a?(String) ? I18n.transliterate(node.send(param).downcase) : node.send(param)
|
45
|
+
end
|
44
46
|
end
|
45
47
|
|
46
48
|
rejected.concat(grom_nodes)
|
data/lib/parliament/version.rb
CHANGED