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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ba737b8db8f3fd87a7b32cc9f1b4e486204731a
4
- data.tar.gz: 8d19896a5887dda30183f127e99ad404b7536d99
3
+ metadata.gz: 7e9f43b1b3216271e56fde2cea9a6054f4fb5472
4
+ data.tar.gz: 69ada5e5d8e413631ff88a14134ba7d05d3f6024
5
5
  SHA512:
6
- metadata.gz: 1976290a61db4cd8ca4d7d12f325b507ff586c0c4c5184ca3f8e6876295691b3c08c108d743a65ed8920013158df65f2d70ece2a8c0cb68d15b7ae3c2ef14a1b
7
- data.tar.gz: f7a434d27d4fbc55c3885e37c3928c1cfb0ece09e71fe38b77dae87c19536c8a3634bece2d5c2fa7bd24625118f8c9e2b0a6e9f5711f16a6a2435b03fd1c2204
6
+ metadata.gz: 3afd3a3357ada5d80f720a7c37bb8d7235fb68daf33582fc23d5ff03e40dc9f64c3844da28be8c63f1973cbc2c58413a5d8a8ff88cbe6b43f15278aecf4cfc02
7
+ data.tar.gz: e5d3c97b0da7451d945374cca337415132af524320f39b6027baf148b1ec8fc1d87a8db516c5538f2a6dc0380d203920d764dc1906ef9f0a84734b6055e651e2
@@ -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 { |param| node.send(param) }
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)
@@ -1,3 +1,3 @@
1
1
  module Parliament
2
- VERSION = '0.5.3'.freeze
2
+ VERSION = '0.5.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner