tension 0.9.12 → 0.9.13

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: 95257f7adf62e176df3ed678163e78ce4c326e14
4
- data.tar.gz: cfc546cd1439e647dd5ec2b5189b8b66e3ae59a6
3
+ metadata.gz: 64b25b44ab03279d7f615039ff68af05f90938db
4
+ data.tar.gz: 1cc11db047e788ec6e2588bfded8038e8845eb63
5
5
  SHA512:
6
- metadata.gz: 8b8a3ff79e452925800de9625469d4f9ecfdf9ce748c4ed147dd704741856980fb6d88c390b3d698358576b19d844ca0c69c65f0ff7ecfa719f8497c8c7cfdc2
7
- data.tar.gz: 06c36e7eb6bfef898917942149da24b3655d1f232391aeab3a0eada680c254d11b189790b02d3d21a61f85670b253c9429d66eed038323f1a7a57c9bb1b40841
6
+ metadata.gz: b1222f9a47a84c9ec680514d44bf980247b47893af75ff1a79a326c0da18512b7c3f0eea2e0f80c3839ee716503630d59d2bd25771f75fd2fd24f85afc0df277
7
+ data.tar.gz: 53cc3417937484fc3c18d71af10226e9f1b6e831544ab8911bd21a6e4f038f39c5517607333ce0d732a7046bfbc5d98e6a8b4b7e1209f046db2b40c5ddfa0971
@@ -60,17 +60,9 @@ module Tension
60
60
  # configured GET routes.
61
61
  #
62
62
  def configured_get_defaults
63
- @configured_get_defaults ||= begin
64
- get_routes = Rails.application.routes.routes.find_all do |route|
65
- route.verb.match("GET")
66
- end
67
-
68
- @configured_get_defaults = get_routes.map do |route|
69
- route.defaults unless route.defaults.empty?
70
- end
71
-
72
- @configured_get_defaults.compact!
73
- end
63
+ @configured_get_defaults ||= Rails.application.routes.routes.map do |route|
64
+ route.defaults if route.verb.match("GET") && !route.defaults.empty?
65
+ end.compact
74
66
  end
75
67
 
76
68
  end
@@ -1,3 +1,3 @@
1
1
  module Tension
2
- VERSION = "0.9.12".freeze
2
+ VERSION = "0.9.13".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.12
4
+ version: 0.9.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piers Mainwaring