Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
matey (0.1.6)
ahoy_matey (>= 4.0)
chartkick (~> 5.0.4)
groupdate (~> 6.4.0)
view_component (~> 2.74)

Expand Down Expand Up @@ -81,6 +82,7 @@ GEM
ast (2.4.2)
base64 (0.1.1)
builder (3.2.4)
chartkick (5.0.5)
concurrent-ruby (1.2.2)
crass (1.0.6)
date (3.3.3)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ View the available component color schemes [here](COLOR_SCHEMES.md).

View the list of available components [here](COMPONENTS.md).

> Note: Some components leverage Chartkick for presenting charts. Refer to [Chartkick documentation](https://chartkick.com/#importmap) to include it in your project.

**Note**: The more data, the more interesting the components will be. A common and helpful pattern is to capture events on all controller actions. Details on doing this can be found [here](https://github.com/ankane/ahoy#ruby).

## Development
Expand Down
1 change: 1 addition & 0 deletions matey.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "view_component", "~> 2.74"
spec.add_dependency "ahoy_matey", ">= 4.0"
spec.add_dependency "groupdate", "~> 6.4.0"
spec.add_dependency "chartkick", "~>5.0.4"

spec.add_development_dependency "rspec-rails", "~> 5.0"
spec.add_development_dependency "factory_bot_rails", "~> 6.0"
Expand Down
3 changes: 3 additions & 0 deletions spec/sample/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false

# include charting styles
gem "chartkick", "~>5.0.4"

# Use Sass to process CSS
# gem "sassc-rails"

Expand Down
2 changes: 2 additions & 0 deletions spec/sample/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
chartkick (5.0.4)
concurrent-ruby (1.2.2)
connection_pool (2.4.1)
crass (1.0.6)
Expand Down Expand Up @@ -319,6 +320,7 @@ PLATFORMS
DEPENDENCIES
bootsnap
capybara
chartkick (~> 5.0.4)
debug
importmap-rails
jbuilder
Expand Down
4 changes: 3 additions & 1 deletion spec/sample/app/javascript/application.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails"
import "controllers"
import "controllers"
import "chartkick"
import "Chart.bundle"
2 changes: 1 addition & 1 deletion spec/sample/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Application < Rails::Application
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
config.action_controller.asset_host = "http://assets.example.com"
# config.action_controller.asset_host = "http://assets.example.com"
end
end

Expand Down
2 changes: 2 additions & 0 deletions spec/sample/config/importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true

pin_all_from "app/javascript/controllers", under: "controllers"
pin "chartkick", to: "chartkick.js"
pin "Chart.bundle", to: "Chart.bundle.js"