rails_requests 0.1.1 → 0.1.1.1

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
  SHA256:
3
- metadata.gz: 6f848e6c17d52d814b96b2e76339d628be9054114d3b9b749ede9890236cd89b
4
- data.tar.gz: bf2d49e8bb6552c64cba90124d6caf28b53223af3f7125f28540effc60c55ca5
3
+ metadata.gz: 65996ad3362adde637f925d0b3a7a5adc2fdb49ac199c62cfe24197547a150dd
4
+ data.tar.gz: 3bd0cee738363cc5799a9e5a867783496e653c0d676ace06dd2e78e9158e4835
5
5
  SHA512:
6
- metadata.gz: 1715b117aa52d3fe59d394483ae45d72aa90558dae6f1708f7cdbff8d2e5f272acf93685a1be3e7e382c521399116dec4b13b87eae77748fa346c344cc094070
7
- data.tar.gz: 61910fc724f9b0e216847a40f4087df8e9aed1f1adbb0fc8c36087654ccfd8dd22cf22040c784b7fdfd0a1099e3cf2a6090b49100f8d8b144555ab4c980233ec
6
+ metadata.gz: b3f5fee3a6a4ca205a7e5d9601c2d7b1e229ffb15813230bcbe1a2fe3a05f38ead85426c617aee023ef842ea99fa3622c9ec1cfb28412453f626e315d39e1762
7
+ data.tar.gz: 58322628976c875b2d43c0a3b485b0f14ca1613bc4fff129c496427809830aebd4c7227c0a2c7c40cc449adf752c325cb0e7267acc873c4494933ab9ca80196c
@@ -3,5 +3,10 @@ RailsRequests::Engine.routes.draw do
3
3
  end
4
4
 
5
5
  Rails.application.routes.draw do
6
- mount_routes
6
+ begin
7
+ mount RailsRequests::Engine => '/rails/requests', as: 'rails_requests'
8
+ rescue ArgumentError
9
+ # already added
10
+ # this cod exist here because engine not includes routing automatically
11
+ end
7
12
  end
@@ -81,6 +81,4 @@ module RailsRequests
81
81
  end
82
82
  end
83
83
 
84
- end
85
-
86
- require_relative 'rails_requests/routes'
84
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsRequests
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_requests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
@@ -77,7 +77,6 @@ files:
77
77
  - lib/rails_requests/metrics.rb
78
78
  - lib/rails_requests/middleware.rb
79
79
  - lib/rails_requests/record.rb
80
- - lib/rails_requests/routes.rb
81
80
  - lib/rails_requests/version.rb
82
81
  homepage: https://github.com/igorkasyanchuk/rails_requests
83
82
  licenses:
@@ -1,12 +0,0 @@
1
- module ActionDispatch::Routing
2
- class Mapper
3
- def mount_routes(options = {})
4
- begin
5
- mount RailsRequests::Engine => '/rails/requests', :as => options[:as] || 'rails_requests'
6
- rescue ArgumentError
7
- # already added
8
- # this cod exist here because engine not includes routing automatically
9
- end
10
- end
11
- end
12
- end