Skip to content

Commit

Permalink
0.7.0: Move Yabeda configuration railtie to Yabeda itself
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Aug 21, 2020
1 parent e22c3a7 commit 5f2b6c4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 0.7.0 - 2020-08-21

### Removed

- Railtie to configure Yabeda – it is moved into Yabeda itself. Increase required Yabeda version to keep behavior for users who require only `yabeda-rails` in their Gemfiles. @Envek

## 0.6.0 - 2020-08-06

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Built-in metrics for out-of-the box [Rails] applications monitoring.

If your monitoring system already collects Rails metrics (e.g. NewRelic) then you don't need this gem metrics, but `yabeda-rails` also will automatically configure Yabeda in your Rails application.
If your monitoring system already collects Rails metrics (e.g. NewRelic) then most probably you don't need this gem.

Sample Grafana dashboard ID: [11668](https://grafana.com/grafana/dashboards/11668)

Expand Down
3 changes: 1 addition & 2 deletions lib/yabeda/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ def unicorn_server?
::Rails.const_defined?("Unicorn::Launcher")
end

config.after_initialize do
initializer "yabeda-rails.metrics" do
::Yabeda::Rails.install! if rails_server? || puma_server? || unicorn_server?
Yabeda.configure! unless Yabeda.already_configured?
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/yabeda/rails/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Yabeda
module Rails
VERSION = "0.6.0"
VERSION = "0.7.0"
end
end
2 changes: 1 addition & 1 deletion yabeda-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "yabeda", "~> 0.4"
spec.add_dependency "yabeda", "~> 0.8"
spec.add_dependency "rails"

spec.add_development_dependency "bundler", "~> 2.0"
Expand Down

0 comments on commit 5f2b6c4

Please sign in to comment.