findbug 0.3.3 → 0.3.5
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 +4 -4
- data/README.md +1 -1
- data/docs/index.html +2288 -0
- data/lib/findbug/version.rb +1 -1
- data/lib/generators/findbug/templates/POST_INSTALL +10 -8
- data/lib/generators/findbug/templates/initializer.rb +3 -3
- metadata +4 -3
data/lib/findbug/version.rb
CHANGED
|
@@ -17,17 +17,19 @@ Next steps:
|
|
|
17
17
|
# Or set directly in config/initializers/findbug.rb:
|
|
18
18
|
config.redis_url = "redis://localhost:6379/1"
|
|
19
19
|
|
|
20
|
-
3.
|
|
20
|
+
3. Access the dashboard:
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
FINDBUG_USERNAME=admin
|
|
24
|
-
FINDBUG_PASSWORD=your-secure-password
|
|
22
|
+
http://localhost:3000/findbug
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
Default credentials (CHANGE IN PRODUCTION!):
|
|
25
|
+
Username: admin
|
|
26
|
+
Password: findbug
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
To customize, set environment variables:
|
|
29
|
+
FINDBUG_USERNAME=your-username
|
|
30
|
+
FINDBUG_PASSWORD=your-secure-password
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
4. (Optional) Configure alerts in config/initializers/findbug.rb:
|
|
31
33
|
|
|
32
34
|
config.alerts do |alerts|
|
|
33
35
|
alerts.slack(
|
|
@@ -36,7 +38,7 @@ Next steps:
|
|
|
36
38
|
)
|
|
37
39
|
end
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
5. (Multi-tenant apps) If using Apartment/ros-apartment, add to apartment.rb:
|
|
40
42
|
|
|
41
43
|
config.excluded_models = %w[Findbug::ErrorEvent Findbug::PerformanceEvent]
|
|
42
44
|
|
|
@@ -102,9 +102,9 @@ Findbug.configure do |config|
|
|
|
102
102
|
# ============================================================================
|
|
103
103
|
|
|
104
104
|
# Dashboard authentication (required for dashboard to be enabled)
|
|
105
|
-
#
|
|
106
|
-
config.web_username = ENV
|
|
107
|
-
config.web_password = ENV
|
|
105
|
+
# Default credentials are set for development - CHANGE THESE IN PRODUCTION!
|
|
106
|
+
config.web_username = ENV.fetch("FINDBUG_USERNAME", "admin")
|
|
107
|
+
config.web_password = ENV.fetch("FINDBUG_PASSWORD", "findbug")
|
|
108
108
|
|
|
109
109
|
# Dashboard URL path (default: "/findbug")
|
|
110
110
|
config.web_path = "/findbug"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: findbug
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Soumit Das
|
|
@@ -192,6 +192,7 @@ files:
|
|
|
192
192
|
- app/views/findbug/performance/index.html.erb
|
|
193
193
|
- app/views/findbug/performance/show.html.erb
|
|
194
194
|
- app/views/layouts/findbug/application.html.erb
|
|
195
|
+
- docs/index.html
|
|
195
196
|
- lib/findbug.rb
|
|
196
197
|
- lib/findbug/alerts/channels/base.rb
|
|
197
198
|
- lib/findbug/alerts/channels/discord.rb
|
|
@@ -224,11 +225,11 @@ files:
|
|
|
224
225
|
- lib/generators/findbug/templates/create_findbug_performance_events.rb
|
|
225
226
|
- lib/generators/findbug/templates/initializer.rb
|
|
226
227
|
- sig/findbug.rbs
|
|
227
|
-
homepage: https://
|
|
228
|
+
homepage: https://findbug.dev
|
|
228
229
|
licenses:
|
|
229
230
|
- MIT
|
|
230
231
|
metadata:
|
|
231
|
-
homepage_uri: https://
|
|
232
|
+
homepage_uri: https://findbug.dev
|
|
232
233
|
source_code_uri: https://github.com/ITSSOUMIT/findbug
|
|
233
234
|
changelog_uri: https://github.com/ITSSOUMIT/findbug/blob/main/CHANGELOG.md
|
|
234
235
|
rdoc_options: []
|