-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d68597f
commit 034072f
Showing
38 changed files
with
51 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# HotwireSpark | ||
# Hotwire Spark | ||
Short description and motivation. | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
app/channels/hotwire_spark/channel.rb → app/channels/hotwire/spark/channel.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
HotwireSpark::Engine.routes.draw do | ||
Hotwire::Spark::Engine.routes.draw do | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
require_relative "lib/hotwire_spark/version" | ||
require_relative "lib/hotwire/spark/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "hotwire_spark" | ||
spec.version = HotwireSpark::VERSION | ||
spec.name = "hotwire-spark" | ||
spec.version = Hotwire::Spark::VERSION | ||
spec.authors = [ "Jorge Manrubia" ] | ||
spec.email = [ "[email protected]" ] | ||
spec.homepage = "https://github.com/basecamp/hotwire_spark" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tion_cable/persistent_cable_middleware.rb → ...tion_cable/persistent_cable_middleware.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...k/action_cable/persistent_cable_server.rb → ...k/action_cable/persistent_cable_server.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...solid_cable_listener_with_safe_reloads.rb → ...solid_cable_listener_with_safe_reloads.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
require "action_cable/server/base" | ||
|
||
module HotwireSpark | ||
module Hotwire::Spark | ||
class Engine < ::Rails::Engine | ||
isolate_namespace HotwireSpark | ||
isolate_namespace Hotwire::Spark | ||
|
||
config.hotwire_spark = ActiveSupport::OrderedOptions.new | ||
config.hotwire_spark.merge! \ | ||
config.hotwire = ActiveSupport::OrderedOptions.new unless config.respond_to?(:hotwire) | ||
config.hotwire.spark = ActiveSupport::OrderedOptions.new | ||
config.hotwire.spark.merge! \ | ||
enabled: Rails.env.development?, | ||
css_paths: %w[ app/assets/stylesheets ], | ||
html_paths: %w[ app/controllers app/helpers app/models app/views ], | ||
stimulus_paths: %w[ app/javascript/controllers ] | ||
|
||
initializer "hotwire_spark.config" do |app| | ||
config.hotwire_spark.each do |key, value| | ||
HotwireSpark.send("#{key}=", value) | ||
config.hotwire.spark.each do |key, value| | ||
Hotwire::Spark.send("#{key}=", value) | ||
end | ||
end | ||
|
||
initializer "hotwire_spark.install" do |application| | ||
HotwireSpark.install_into application if HotwireSpark.enabled? | ||
Hotwire::Spark.install_into application if Hotwire::Spark.enabled? | ||
end | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
lib/hotwire_spark/file_watcher.rb → lib/hotwire/spark/file_watcher.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/hotwire_spark/middleware.rb → lib/hotwire/spark/middleware.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
class HotwireSpark::Middleware | ||
class Hotwire::Spark::Middleware | ||
def initialize(app) | ||
@app = app | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Hotwire | ||
module Spark | ||
VERSION = "0.1.0" | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Rails.application.routes.draw do | ||
mount HotwireSpark::Engine => "/hotwire_spark" | ||
mount Hotwire::Spark::Engine => "/hotwire_spark" | ||
|
||
root to: "home#show" | ||
end |