Skip to content

Commit

Permalink
feat: add chartkick dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Loos committed Nov 16, 2023
1 parent cd2c783 commit c18a6cb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bundle install --gemfile spec/sample/Gemfile
# run test cases and ensure everything is passing
rake spec
# an interactive prompt that will allow you to experiment with matey (currently broken!)
# an interactive prompt that will allow you to experiment with matey
bin/console
```
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
3 changes: 3 additions & 0 deletions spec/sample/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
matey (0.1.5)
ahoy_matey (~> 4.0)
chartkick (~> 5.0.4)
groupdate (~> 6.4.0)
view_component (~> 2.74)

Expand Down Expand Up @@ -94,6 +95,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)
crass (1.0.6)
date (3.3.3)
Expand Down Expand Up @@ -295,6 +297,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"

0 comments on commit c18a6cb

Please sign in to comment.