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 +4 -4
- data/config/routes.rb +6 -1
- data/lib/rails_requests.rb +1 -3
- data/lib/rails_requests/version.rb +1 -1
- metadata +1 -2
- data/lib/rails_requests/routes.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65996ad3362adde637f925d0b3a7a5adc2fdb49ac199c62cfe24197547a150dd
|
4
|
+
data.tar.gz: 3bd0cee738363cc5799a9e5a867783496e653c0d676ace06dd2e78e9158e4835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3f5fee3a6a4ca205a7e5d9601c2d7b1e229ffb15813230bcbe1a2fe3a05f38ead85426c617aee023ef842ea99fa3622c9ec1cfb28412453f626e315d39e1762
|
7
|
+
data.tar.gz: 58322628976c875b2d43c0a3b485b0f14ca1613bc4fff129c496427809830aebd4c7227c0a2c7c40cc449adf752c325cb0e7267acc873c4494933ab9ca80196c
|
data/config/routes.rb
CHANGED
@@ -3,5 +3,10 @@ RailsRequests::Engine.routes.draw do
|
|
3
3
|
end
|
4
4
|
|
5
5
|
Rails.application.routes.draw do
|
6
|
-
|
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
|
data/lib/rails_requests.rb
CHANGED
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
|