rails_live_reload 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09678a98b517b5fd547ff373b84e002705546a08b1a1499abb8dc76e16886833'
|
4
|
+
data.tar.gz: aa3b6c8d850a3ba151d6679a2c4d05da0ac3ea5f1374a6526e091d68a15c3cf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
44
|
+
run command:
|
45
45
|
|
46
46
|
|
47
|
-
```
|
48
|
-
|
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)
|
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
|
+
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-
|
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.
|
136
|
+
rubygems_version: 3.4.22
|
135
137
|
signing_key:
|
136
138
|
specification_version: 4
|
137
139
|
summary: Ruby on Rails Live Reload
|