eyeloupe 0.1.0 → 0.2.0

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: 34e1fd5eb04fa196ab6163e97232eca59d4c3d20d31b1a7761de7bc6e0f0b96c
4
- data.tar.gz: 5d472b7ee15e5e699f99bb8f3342296bb32c8be364fa7b6e5f975c21965bed4e
3
+ metadata.gz: 7094456114ea58b40fb510872bbcf8fc980bcc3140b172ff453e12126b0b7fec
4
+ data.tar.gz: fc95215a4ed95e7ad5afadce42d809c2cf216b29ca977c16085fc1a1e5d83707
5
5
  SHA512:
6
- metadata.gz: '096bb0cc90cf6a836e13cc7894f46e6ba597046f0c3427e5a0322b32e4cdc7f89338b330ffdcd2538bf77e99f66804bb9e1880d7c2294f8582a1be448ac68297'
7
- data.tar.gz: e160242a1d2564176498e8ff6319cac337ac8ea5b241cc1a7ab2ab4ea93f1d2b633ccd78a84a069c75357dbc3912e66342cbd7175ac9ddd024395126015729e6
6
+ metadata.gz: 9544ddcf4d4e553ab4419c29b0e5108ba19df99f653807c1ce13c80db4b98afbd4fc0a178f2ae49efafb81418c2df2a49b8d09a623bc219afb7d89bedd540e55
7
+ data.tar.gz: b368ac6289aad17ea863b7b348940050db7dab36c0e50179375c64ede9feb059af5208cdb789b770ae038bc79d616f04477cb3e584c954ac7ba4addf7fba07ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
1
  ## 0.1.0
2
2
 
3
- - Initial release including incoming and outgoing requests.
3
+ - Initial release including incoming and outgoing requests.
4
+
5
+ ## 0.2.0
6
+
7
+ - Fix missing require for `pagy` gem.
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version][gem-version]][gem-url]
2
+
1
3
  [![Contributors][contributors-shield]][contributors-url]
2
4
  [![Forks][forks-shield]][forks-url]
3
5
  [![Stargazers][stars-shield]][stars-url]
@@ -23,7 +25,7 @@
23
25
 
24
26
  [![Eyeloupe screenshot][eyeloupe-screen]](https://github.com/alxlion/eyeloupe)
25
27
 
26
- Eyeloupe is the elegant Rails debug assistant. It helps you to debug your Rails application by providing a simple and elegant interface to view your incoming and outgoing requests, and a lot more.
28
+ Eyeloupe is the elegant Rails debug assistant. It helps you to debug your Rails application by providing a simple and elegant interface to view your incoming and outgoing requests (and a lot more to come).
27
29
 
28
30
  ## Installation
29
31
  Add this line to your application's Gemfile:
@@ -47,13 +49,18 @@ And run the migrations:
47
49
  $ rails db:migrate
48
50
  ```
49
51
 
52
+ To access Eyeloupe dashboard you need to add the following route to your `config/routes.rb` file:
53
+ ```ruby
54
+ mount Eyeloupe::Engine => "/eyeloupe"
55
+ ```
56
+
50
57
  ## Configuration
51
58
 
52
59
  This is an example of the configuration you can add to your `initializers/eyeloupe.rb` file:
53
60
 
54
61
  ```ruby
55
62
  Eyeloupe.configure do |config|
56
- config.excluded_paths = %w[assets favicon.ico dance.riv service-worker.js manifest.json]
63
+ config.excluded_paths = %w[assets favicon.ico service-worker.js manifest.json]
57
64
  config.capture = true
58
65
  end
59
66
  ```
@@ -63,7 +70,7 @@ end
63
70
 
64
71
  ## Usage
65
72
 
66
- Eyeloupe is exclusively developed for Rails framework.
73
+ Eyeloupe is exclusively developed for the Rails framework.
67
74
 
68
75
  You can use it in your development environment to debug your application but it's not recommended to use it in production.
69
76
 
@@ -84,7 +91,7 @@ Eyeloupe is not a performance-oriented tool, the request time is the same you ca
84
91
 
85
92
  ### Is this the Laravel Telescope for Rails ?
86
93
 
87
- Yes, Eyeloupe is inspired by Laravel Telescope. Lot of people coming from Laravel are missing Telescope or looking for something similar, so Eyeloupe is here to fill this gap.
94
+ Yes, Eyeloupe is inspired by Laravel Telescope. A lot of people coming from Laravel are missing Telescope or looking for something similar, so Eyeloupe is here to fill this gap.
88
95
 
89
96
  ## Roadmap
90
97
 
@@ -92,7 +99,7 @@ Yes, Eyeloupe is inspired by Laravel Telescope. Lot of people coming from Larave
92
99
  - [ ] Custom links to the menu - To access all of your debug tool in one place (Sidekiq web, Mailhog, etc.)
93
100
 
94
101
  ## Contributing
95
- Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
102
+ Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
96
103
 
97
104
  If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
98
105
  Don't forget to give the project a star! Thanks again!
@@ -126,4 +133,6 @@ Project Link: [https://github.com/alxlion/eyeloupe](https://github.com/alxlion/e
126
133
  [issues-url]: https://github.com/alxlion/eyeloupe/issues
127
134
  [license-shield]: https://img.shields.io/github/license/alxlion/eyeloupe.svg?style=for-the-badge
128
135
  [license-url]: https://github.com/alxlion/eyeloupe/blob/master/MIT-LICENSE.txt
129
- [eyeloupe-screen]: /doc/img/screen.png
136
+ [eyeloupe-screen]: /doc/img/screen.png
137
+ [gem-version]: https://badge.fury.io/rb/eyeloupe.svg
138
+ [gem-url]: https://rubygems.org/gems/eyeloupe
@@ -109,7 +109,7 @@ module Eyeloupe
109
109
  "HTML content"
110
110
  elsif @response.is_a?(ActionDispatch::Response)
111
111
  @response.body
112
- elsif @response.is_a?(Rack::BodyProxy)
112
+ elsif @response.is_a?(Rack::BodyProxy) && @response.respond_to?(:first)
113
113
  @response.first
114
114
  else
115
115
  @response
@@ -1,4 +1,4 @@
1
1
  module Eyeloupe
2
2
  # @return [String]
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
data/lib/eyeloupe.rb CHANGED
@@ -7,6 +7,7 @@ require 'eyeloupe/http'
7
7
  require 'eyeloupe/processors/in_request'
8
8
  require 'eyeloupe/processors/out_request'
9
9
 
10
+ require 'pagy'
10
11
  module Eyeloupe
11
12
 
12
13
  # @return [Eyeloupe::Configuration]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyeloupe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Lion
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-03 00:00:00.000000000 Z
11
+ date: 2023-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets-rails
@@ -108,7 +108,8 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.1'
111
- description: The All in one Rails monitoring tool
111
+ description: Eyeloupe is debug assistant for Rails. It provides a simple and elegant
112
+ way to debug your Rails application.
112
113
  email:
113
114
  - dev@alexandrelion.com
114
115
  executables: []