incline 0.2.18 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d480afc97f1235565c6a453fc357d1a3055b3b0
4
- data.tar.gz: 439acc31750a1a618f1255f3fcf6d4efaea31492
3
+ metadata.gz: 56411284e4d17a3c8427fcd363ab5a9a06ee7238
4
+ data.tar.gz: cadb63efd1172b4de4315f27ffb91313cc6c50f3
5
5
  SHA512:
6
- metadata.gz: 3dd29096c66f7cf8678dee49f828fc9f0dfa79aa014837068fc1194ba031dc48ab915bf211344934e20cc495954a9267c9cea8837c609733d7b4d2b6ca16eddf
7
- data.tar.gz: 2e9f293bdd559bf718ea385031de52c15683f3978613df97370712dd518c76e8bc1899347edd3cfc0cc33ae5d1b99d3f1968124d16a1b99ca38d3a2e5c183e96
6
+ metadata.gz: 04d13291b6afcfb36c51547322fa707c11776719d4224edc88a36c14f2b637eb77df7be9f55a0d31e60a99c31e3886994a32aa66a32b7c4431bd9baeb0a2627f
7
+ data.tar.gz: 606cb3af25ea7278e0fc578edc2aa959c11fd86d9affca6c40d16ad5ee2fe796482b6a285eb1353d40a6c87c8423d34f387210cdf45df3bd96cdd17a7ae3f5f3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.2.18)
4
+ incline (0.2.19)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.2.18"
2
+ VERSION = "0.2.19"
3
3
  end
data/lib/incline.rb CHANGED
@@ -126,11 +126,7 @@ module Incline
126
126
  get_routes(Rails.application.routes.routes).sort do |a,b|
127
127
  if a[:engine] == b[:engine]
128
128
  if a[:controller] == b[:controller]
129
- if a[:action] == b[:action]
130
- a[:path] <=> b[:path]
131
- else
132
- a[:action] <=> b[:action]
133
- end
129
+ a[:action] <=> b[:action]
134
130
  else
135
131
  a[:controller] <=> b[:controller]
136
132
  end
@@ -242,11 +238,13 @@ module Incline
242
238
  end
243
239
 
244
240
  result.inject([]) do |ret,item|
245
- existing = ret.find{|r| r[:engine] == item[:engine] && r[:controller] == item[:controller] && r[:action] == item[:action]}
241
+ existing = ret.find{|r| r[:engine] == item[:engine] && r[:controller] == item[:controller] && r[:action] == item[:action] && r[:path] == item[:path]}
246
242
  if existing
247
- existing[:verb] += '|' + item[:verb]
243
+ verbs = existing[:verb].split('|')
244
+ verbs << item[:verb] unless verbs.include?(item[:verb])
245
+ existing[:verb] += verbs.sort.join('|')
248
246
  else
249
- ret << item
247
+ ret << item.dup
250
248
  end
251
249
  ret
252
250
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker