rails_live_reload 0.3.4 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9719946dc13f20a304dd1d9c70238c2219252bd2a4c1b012bdb66f5c8ed1f8f0
4
- data.tar.gz: 843756b9a273ddd189eff2ac6f77b0e44535d4b261e098bb70a9c900bb2e9287
3
+ metadata.gz: '09678a98b517b5fd547ff373b84e002705546a08b1a1499abb8dc76e16886833'
4
+ data.tar.gz: aa3b6c8d850a3ba151d6679a2c4d05da0ac3ea5f1374a6526e091d68a15c3cf8
5
5
  SHA512:
6
- metadata.gz: 0bf3875244b09962a7da0a1269853215365a57b9ce22b29a09332e43a538b2483f96287480c345a455a7b3d83b63200cb3b2ea34e0cbfa015d8697ef154a446a
7
- data.tar.gz: 54a32215cdb6ae7c7811f46a6b6452aa5e86d9470d4d01732c10469ea5354197e5539806c9d703a67da391a39471a1c78025c9b4d28266c97cd68db4cf60dade
6
+ metadata.gz: 207b812d7c31f3119c19caf4a3cbc04f970f44b4bcd5041c6b19396de044217ed39d054351c50ad6adb254c5ba6a662262b3552db15ee970105fa3d0e40b952c
7
+ data.tar.gz: 196b2a092bde00adbc35af872505a189332250554d8399e96b05de3e30447dd1051c2a340fc3b5826e57fc3188b5dea701147303e7b246f81b3cb92038ab0624
data/README.md CHANGED
@@ -41,24 +41,14 @@ $ bundle
41
41
 
42
42
  ## Configuration
43
43
 
44
- ### Create initializer `config/initializers/rails_live_reload.rb`:
44
+ run command:
45
45
 
46
46
 
47
- ```ruby
48
- RailsLiveReload.configure do |config|
49
- # config.url = "/rails/live/reload"
50
-
51
- # Default watched folders & files
52
- # config.watch %r{app/views/.+\.(erb|haml|slim)$}
53
- # config.watch %r{(app|vendor)/(assets|javascript)/\w+/(.+\.(css|js|html|png|jpg|ts|jsx)).*}, reload: :always
54
-
55
- # More examples:
56
- # config.watch %r{app/helpers/.+\.rb}, reload: :always
57
- # config.watch %r{config/locales/.+\.yml}, reload: :always
58
-
59
- # config.enabled = Rails.env.development?
60
- end if defined?(RailsLiveReload)
47
+ ```bash
48
+ rails generate rails_live_reload:install
61
49
  ```
50
+ The generator will install an initializer which describes `RailsLiveReload` configuration options.
51
+
62
52
 
63
53
  ## How it works
64
54
 
@@ -76,6 +66,9 @@ The default configuration assumes that you either use asset pipeline, or that yo
76
66
 
77
67
  You are welcome to contribute. See list of `TODO's` below.
78
68
 
69
+ [<img src="https://opensource-heroes.com/svg/embed/railsjazz/rails_live_reload"
70
+ />](https://opensource-heroes.com/svg/embed/railsjazz/rails_live_reload)
71
+
79
72
  ## TODO
80
73
 
81
74
  - reload CSS without reloading the whole page?
@@ -0,0 +1,11 @@
1
+ require 'rails/generators'
2
+
3
+ module RailsLiveReload
4
+ class InstallGenerator < Rails::Generators::Base
5
+ source_root File.expand_path("../../templates", __FILE__)
6
+
7
+ def copy_initializer
8
+ template "rails_live_reload.rb", "config/initializers/rails_live_reload.rb"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ RailsLiveReload.configure do |config|
4
+ # config.url = "/rails/live/reload"
5
+
6
+ # Default watched folders & files
7
+ # config.watch %r{app/views/.+\.(erb|haml|slim)$}
8
+ # config.watch %r{(app|vendor)/(assets|javascript)/\w+/(.+\.(css|js|html|png|jpg|ts|jsx)).*}, reload: :always
9
+
10
+ # More examples:
11
+ # config.watch %r{app/helpers/.+\.rb}, reload: :always
12
+ # config.watch %r{config/locales/.+\.yml}, reload: :always
13
+
14
+ # config.enabled = Rails.env.development?
15
+ end if defined?(RailsLiveReload)
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Rails Live Reload 0.3.4
2
+ Rails Live Reload 0.3.5
3
3
  Copyright © 2023 RailsJazz
4
4
  https://railsjazz.com
5
5
  */
@@ -1,3 +1,3 @@
1
1
  module RailsLiveReload
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_live_reload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-22 00:00:00.000000000 Z
12
+ date: 2023-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -93,6 +93,8 @@ files:
93
93
  - MIT-LICENSE
94
94
  - README.md
95
95
  - Rakefile
96
+ - lib/generators/rails_live_reload/install_generator.rb
97
+ - lib/generators/templates/rails_live_reload.rb
96
98
  - lib/rails_live_reload.rb
97
99
  - lib/rails_live_reload/checker.rb
98
100
  - lib/rails_live_reload/command.rb
@@ -131,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
133
  - !ruby/object:Gem::Version
132
134
  version: '0'
133
135
  requirements: []
134
- rubygems_version: 3.4.8
136
+ rubygems_version: 3.4.22
135
137
  signing_key:
136
138
  specification_version: 4
137
139
  summary: Ruby on Rails Live Reload